From 3a8e103faf00c46a8ee6d72e0f58d04c9341edb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Sat, 9 Oct 2004 10:13:16 +0000 Subject: [PATCH] Added custommenuitems.cfg to standard cfg files. menufront.sma executes this file on plugin loa, adding the specified menu items to amxmodmenu. --- configs/custommenuitems.cfg | 13 +++++++++++++ plugins/menufront.sma | 5 +++++ 2 files changed, 18 insertions(+) create mode 100755 configs/custommenuitems.cfg 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