View Single Post
Author Message
chundo
Senior Member
Join Date: May 2008
Old 06-10-2008 , 23:42   Help Menu v0.3 (7/10)
Reply With Quote #1

Help Menu v0.3 (7/10)

Displays a help menu to users when they type "!helpmenu" in chat. Help menus can be fully customized via a config file. Also displays two standard help menus: Current Map Rotation, and Online Admins.

Configuration is in configs/helpmenu.cfg. CONFIGURATION HAS CHANGED SIGNIFICANTLY SINCE 0.2 - you will need to update your config file when you upgrade.

The new configuration format removes the old "standard" menus for Rules, Clan Info, and Chat Commands and instead lets you specify arbitrary custom help menus. Each section of the file is its own menu, using the following format:

Code:
"Menu Name"
{
    "title"      "Menu Title"
    "type"     "list"
    "items"
    {
        ""      "Here's an informational item"
        "sm_browse www.mysite.com"  "This launches a client command when selected"
    }
}
You can also specify a "text" type to avoid displaying line numbers in the menu if you just want a wall of text and don't need to execute any commands. Please look through the attached configuration for examples.

CVars:

sm_helpmenu_version - Plugin version.
sm_helpmenu_welcome - Display a welcome message when users connect, telling them they can type "!helpmenu" to view the menu. 1 is on, 0 is off. (default 1)
sm_helpmenu_admins - Display a list of online admins in the help menu. 1 is on, 0 is off. (default 1)

Commands:

sm_helpmenu - Show the help menu.

Installing:

helpmenu.smx -> addons/sourcemod/plugins/
helpmenu.sp -> addons/sourcemod/scripting/
helpmenu.cfg -> addons/sourcemod/configs/
plugin.helpmenu.cfg (optional, create if you need to customize cvars) -> cfg/sourcemod/

Changelog:

0.1 - Initial release
0.2 - Fixed some timer bugs
0.3 - Revamped config format to add flexibility
Attached Files
File Type: sp Get Plugin or Get Source (helpmenu.sp - 18536 views - 8.9 KB)
File Type: cfg helpmenu.cfg (1.5 KB, 18645 views)
__________________

Last edited by chundo; 07-10-2008 at 18:35. Reason: New version
chundo is offline