I'm add at:
PHP Code:
public plugin_init()
And when i add this code:
PHP Code:
gCustomMenu = menu_create("Custom Menu", "mnuCustom", 0);
menu_additem(gCustomMenu, "Revive", "1", accessCustom, -1);
menu_additem(gCustomMenu, get_user_godmode(plr) ? "GODMODE: \yON" : "GODMODE: \rOFF", "2", accessCustom, -1);
menu_additem(gCustomMenu, "Scout + Usp", "3", accessCustom, -1);
menu_additem(gCustomMenu, "Healer", "4", accessCustom, -1);
menu_additem(gCustomMenu, "Sobre este plugin.", "5", 0, -1);
menu_setprop(gCustomMenu, MPROP_EXITNAME, "Main Menu");
With 'plr' apears the code bug:
undefined symbol 'plr'
and
argument type mistmach <argument 2>
And my plugin doesn't works with 'id' ... the way is add plr at:
PHP Code:
public plugin_init()
but i think this bug the plugin...