RSSy MYGO.pl Opublikowano Październik 31, 2018 o 23:34 RSSy Udostępnij Opublikowano Październik 31, 2018 o 23:34 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 pluginTemplate 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" "end" } } Attached Files Get Plugin or Get Source (hConfigMenus.sp - 3.2 KB) hMenus.cfg (3.0 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się