diff --git a/configs/custommenuitems.cfg b/configs/custommenuitems.cfg new file mode 100755 index 00000000..41af2ea3 --- /dev/null +++ b/configs/custommenuitems.cfg @@ -0,0 +1,13 @@ +// Here you can add menu items from any plugin to Menus Front-End plugin, aka "amxmodmenu". +// +// Usage: "amx_addmenuitem " +// +// : This is the text displayed in the menu itself for this item. +// : This is the client command used to access the menu. +// : Specify what access flags admins must have to use this menu item. (Check users.ini for access flags.) +// : 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" + diff --git a/plugins/menufront.sma b/plugins/menufront.sma index fe18c7a4..a2b80500 100755 --- a/plugins/menufront.sma +++ b/plugins/menufront.sma @@ -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) } \ No newline at end of file