Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Game Menu
- public menu_game(id, key)
- {
- if (g_isalive[id]
- {
- switch (key)
- {
- case 0: // Buy Weapons
- {
- osnovnoe_menu_gun(id)
- }
- case 1: // Extra Items
- {
- // Extra items enabled?
- if (get_pcvar_num(cvar_extraitems))
- {
- // Check whether the player is able to buy anything
- if (g_isalive[id])
- show_menu_extras(id)
- else
- zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT")
- }
- else
- zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_EXTRAS")
- }
- case 2: // Zombie Classes
- {
- // Zombie classes enabled?
- if (get_pcvar_num(cvar_zclasses))
- show_menu_zclass(id)
- else
- zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_ZCLASSES")
- }
- case 3: // Unstuck
- {
- // Check if player is stuck
- if (g_isalive[id])
- {
- if (is_player_stuck(id))
- {
- // Move to an initial spawn
- if (get_pcvar_num(cvar_randspawn))
- do_random_spawn(id) // random spawn (including CSDM)
- else
- do_random_spawn(id, 1) // regular spawn
- }
- else
- zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_STUCK")
- }
- else
- zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT")
- }
- case 4: { // 5. Меню Привилегий
- }
- case 5: // Меню Настроек
- {
- }
- case 6: { // Классовое меню(Люди)
- }
- case 7: // Меню Информации
- {
- }
- }
- }
- return PLUGIN_HANDLED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement