diff options
| author | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
| commit | 5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch) | |
| tree | 054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-core/menus/mode_menu.sp | |
| parent | 341db13a008dc12bb22ceb50452d93d01476308c (diff) | |
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-core/menus/mode_menu.sp')
| -rw-r--r-- | sourcemod/scripting/gokz-core/menus/mode_menu.sp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sourcemod/scripting/gokz-core/menus/mode_menu.sp b/sourcemod/scripting/gokz-core/menus/mode_menu.sp deleted file mode 100644 index 934d29c..0000000 --- a/sourcemod/scripting/gokz-core/menus/mode_menu.sp +++ /dev/null @@ -1,40 +0,0 @@ -/* - Lets players choose their mode. -*/ - - - -// =====[ PUBLIC ]===== - -void DisplayModeMenu(int client) -{ - Menu menu = new Menu(MenuHandler_Mode); - menu.SetTitle("%T", "Mode Menu - Title", client); - GOKZ_MenuAddModeItems(client, menu, true); - menu.Display(client, MENU_TIME_FOREVER); -} - - - -// =====[ EVENTS ]===== - -public int MenuHandler_Mode(Menu menu, MenuAction action, int param1, int param2) -{ - if (action == MenuAction_Select) - { - GOKZ_SetCoreOption(param1, Option_Mode, param2); - if (GetCameFromOptionsMenu(param1)) - { - DisplayOptionsMenu(param1, TopMenuPosition_LastCategory); - } - } - else if (action == MenuAction_Cancel && GetCameFromOptionsMenu(param1)) - { - DisplayOptionsMenu(param1, TopMenuPosition_LastCategory); - } - else if (action == MenuAction_End) - { - delete menu; - } - return 0; -}
\ No newline at end of file |
