RSSy MYGO.pl Opublikowano Luty 2, 2023 o 09:19 RSSy Udostępnij Opublikowano Luty 2, 2023 o 09:19 Advanced Help Menu, using json configs, menus can be paralleled or nested. Cvar advh_config - config file path (def:"configs/advhelpmenu.json") Commandsm_advhr - reload help menu (need adminflags_kick) Example Config Spoiler Note that shortcuts are chat triggers, use | to split, each menu can only have up to 10 shortcuts, and the maximum number of characters is 10, and those prefixed with / will be automatically hidden in the chat. maplist_name is the title of the maplist menu. flags are the permissions required to enter the menu. PHP Code: { "advhelpmenu": [{ "Help Menu": { "exit": "true", "type": "menu", "shortcut": "h|!h|!help|/help|help", "data": [{ "Vip Menu": { "exit": "true", "flags": "o", "type": "menu", "shortcut": "vip|!vip|/vip", "data": [ {"Fly": { "index": "1", "type": "text", "cmd": "say /fly" }}, {"this text can't be clicked": { "type": "text" }} ] }}, {"List of Maps": { "type": "maplist" }}, {"Thirdperson": { "type": "text", "cmd": "say /tp" }}, {"Firstperson": { "type": "text", "cmd": "say /fp" }} ] } } , {"Admin Menu": { "exit": "true", "type": "menu", "flags": "abc", "shortcut": "/adm", "data": [{ "Open Sourcemod Admin Menu": { "type": "text", "cmd": "say /admin" } }] } }} ], "maplist_name": "List of Maps" } Attached Files Get Plugin or Get Source (advhelpmenu.sp - 7.2 KB) sourcemod.zip (24.5 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi