View Single Post
Author Message
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Old 10-31-2018 , 19:34   [Any?] hConfigMenus <1.1|11/2/18>
Reply With Quote #1

Description
This plugin allows you to make a menu within a config file. The default prefix for this is |, you will have to recompile it if you wanted to change this.
You can do basic functions with this plugin: reopen the menu that is open, a client command, or no command. I was bored so I just made this for fun.

ConVars
sm_hMenus_enabled "1" //Enables or disables the plugin
sm_hMenus_joinmenu "1" //(1) The join menu will only show once (0) The join menu will show on every map change

Template
File location: sourcemod/configs/hMenus.cfg
PHP Code:
"Menus"
{
    
"|template"
    
{
        
"flag" ""
        "title" "This is a regular template that anyone can use"
        "item0" "You can make it do certain commands.||reopen menu"
        "item1" "For Example, if you have store it will open up the store menu||sm_store"
        "item2" "There are a maximum of 16 items||reopen menu"
        "item3" "If you need any help, make sure to post your question on the forums||reopen menu"
        "item4" "If any bugs do occur with this please post ASAP on the forums||reopen menu"
        "item5" "I do not have anything planned with this plugin currently||reopen menu"
        "item6" "If you have any suggestions again post it on the forums xD||reopen menu"
        "item7" "-------------------------------------------------||reopen menu"
        "item8" "Now to make a menu is fairly simple||reopen menu"
        "item9" "First you would make the command to look for, which is |template in this case||reopen menu"
        "item10" "Then you can set a flag for that menu by doing *flag* *a* or whatever||reopen menu"
        "item11" "Next, you would want to set a title for it. *title* *your title*"
        "item12" "Lastly, set your items of the menu. Make sure you add 1 to the end||reopen menu"
        "item13" "Current commands you can use are: reopen menu, none, or an actual command||reopen menu"
        "item14" "* these are supposed to be quotes||reopen menu"
        "item15" "If you would like to close this menu do this for the command||none"
    
}
    
"|template2"
    
{
        
"flag" "z"
        "title" "This is a flagged template that certain people can use"
        "item0" "You can make it do certain commands.||reopen menu"
        "item1" "For Example, if you have store it will open up the store menu||sm_store"
        "item2" "There are a maximum of 16 items||reopen menu"
        "item3" "If you need any help, make sure to post your question on the forums||reopen menu"
        "item4" "If any bugs do occur with this please post ASAP on the forums||reopen menu"
        "item5" "I do not have anything planned with this plugin currently||reopen menu"
        "item6" "If you have any suggestions again post it on the forums xD||reopen menu"
        "item7" "-------------------------------------------------||reopen menu"
        "item8" "Now to make a menu is fairly simple||reopen menu"
        "item9" "First you would make the command to look for, which is |template in this case||reopen menu"
        "item10" "Then you can set a flag for that menu by doing *flag* *a* or whatever||reopen menu"
        "item11" "Next, you would want to set a title for it. *title* *your title*"
        "item12" "Lastly, set your items of the menu. Make sure you add 1 to the end||reopen menu"
        "item13" "Current commands you can use are: reopen menu, none, or an actual command||reopen menu"
        "item14" "* these are supposed to be quotes||reopen menu"
        "item15" "If you would like to close this menu do this for the command||none"
    
}
    
"|template3"
    
{
        
"flag" "z"
        "title" "This is a flagged template that certain people can use"
        "item0" "Only want a certain amount do end on an item||none"
        "item1" "Open SubMenu1||submenu::[submenu1]"
        "item2" "Open SubMenu2||submenu::[submenu2]"
        "item3" "SubMenus can be any name in any format. It does not have to follow [submenu...]"
        "item4" "Open Target Menu. (Command sm_profile <target>)||targetmenu::sm_profile"
        "item5" "end"
    
}
    
"join"
    
{
        
"flag" ""
        "title" "This is a template for creating a join menu"
        "item0" "This is great for welcome messages||reopen menu"
        "item1" "end"
    
}
    
"[submenu1]"
    
{
        
"flag" ""
        "title" "This is a template for creating a sub menu"
        "item0" "This is just for testing purposes||reopen menu"
        "item1" "This is just for testing purposes||none"
        "item2" "end"
    
}
    
"[submenu2]"
    
{
        
"flag" ""
        "title" "This is a template for creating a sub menu"
        "item0" "Do sm_rank||sm_rank"
        "item1" "This is just for testing purposes||none"
        "item2" "end"
    
}

Change Log
Code:
1.1 - Added sub menus, target menus, and a join menu. One ConVar was added sm_hMenus_joinmenu.
1.0 - Released plugin
Attached Files
File Type: sp Get Plugin or Get Source (hConfigMenus.sp - 559 views - 6.7 KB)
File Type: cfg hMenus.cfg (3.8 KB, 243 views)

Last edited by alexr153; 11-02-2018 at 23:44.
alexr153 is offline