Custommenuitems.cfg will add menu items to either "amxmodmenu" for admins or "amx_menu" for users. A user gets the menu when he gives the command "amx_menu" in the console. But by default there wont be any items in this menu. These can be added by this line in this config file.
amx_addclientmenuitem "menu label" "menu command" "access flags" "plugin name"
To add something to the main menu of amxmodmenu, this is the command to be given in this line,
amx_addmenuitem "menu label" "menu command" "access flags" "plugin name"
This menu label will be added to the amxmodmenu in its fourth page.
Ex: amx_addmenuitem "Enable GunGame" "amx_gg_enable 1" "" "gungame.amxx"
Flags can be almost neglected in many cases. But you need to add the required flags. If the user needs to access a menu the flags need to be include is "u" and etc.
No comments:
Post a Comment