Added custommenuitems.cfg to standard cfg files.

menufront.sma executes this file on plugin loa, adding the specified menu items to amxmodmenu.
This commit is contained in:
Johnny Bergström 2004-10-09 10:13:16 +00:00
parent f4b1c9f78a
commit 3a8e103faf
2 changed files with 18 additions and 0 deletions

13
configs/custommenuitems.cfg Executable file
View File

@ -0,0 +1,13 @@
// Here you can add menu items from any plugin to Menus Front-End plugin, aka "amxmodmenu".
//
// Usage: "amx_addmenuitem <menu text> <menu command> <access flags> <plugin name>"
//
// <menu text>: This is the text displayed in the menu itself for this item.
// <menu command>: This is the client command used to access the menu.
// <access flags>: Specify what access flags admins must have to use this menu item. (Check users.ini for access flags.)
// <plugin name>: This must be the _exact_ (though case insensitive) name of the plugin which holds the menu command. (Use "amxx plugins" in server console, plugin names are listed in Name column.)
//
// Example: (be sure to use quotes around parameters with spaces!)
//
// amx_addmenuitem "Weapon Arena" "weaponarena_menu" "hu" "Weapon Arena"

View File

@ -211,4 +211,9 @@ public plugin_init() {
g_coloredMenus = colored_menus() g_coloredMenus = colored_menus()
AddDefaultMenus() AddDefaultMenus()
// Add custom menu items
new configs[128]
get_configsdir(configs, 127)
server_cmd("exec %s/custommenuitems.cfg", configs)
} }