mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
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:
parent
f4b1c9f78a
commit
3a8e103faf
13
configs/custommenuitems.cfg
Executable file
13
configs/custommenuitems.cfg
Executable 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"
|
||||
|
@ -211,4 +211,9 @@ public plugin_init() {
|
||||
g_coloredMenus = colored_menus()
|
||||
|
||||
AddDefaultMenus()
|
||||
|
||||
// Add custom menu items
|
||||
new configs[128]
|
||||
get_configsdir(configs, 127)
|
||||
server_cmd("exec %s/custommenuitems.cfg", configs)
|
||||
}
|
Loading…
Reference in New Issue
Block a user