Mam pytanie chciał bym napisać plugin który na początku rundy w DR pokazywał by się terroryście o wybranie trybu gry Free albo Deathrun.Informuję iż jest to mój pierwszy plugin.
Na razie wykonałem coś takiego:
/* Plugin generated by AMXX-Studio */Czy to jest dobrze sformułowane ?
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "FreeOrDr"
#define VERSION "0.1"
#define AUTHOR "DeoNPL"
new mtrybgry // Menu
new mcbtrybgry // Menu Callback
public plugin_init() {
menu_display(id, mtrybgry, 0)
mtrybgry = menu_create("Jaki tryb Gramy ?", "mh_trybgry")
mcbtrybgry = menu_makecallback("mcb_trybgry")
menu_additem(mtrybgry, "Free", "ma_trybgry", ADMIN_USER, mcbtrybgry)
menu_additem(mtrybgry, "Deathrun", "ma_trybgry", ADMIN_USER, mcbtrybgry)
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("func_round",2,"1=Round_Start")
}
public func_round()
{
public mh_trybgry?(id, menu, item) {
/* This event is called when someone presses a key on this menu */
}
public ma_trybgry?(id) {
/* This event is called when an item was selected */
}
public mcb_trybgry?(id, menu, item) {
/* This is the callback-event, here you can set items enabled or disabled. */
/* If you want to enable an item, use: return ITEM_ENABLED */
/* If you want to disable an item, use: return ITEM_DISABLED */
}
}