|
Стаж: 2 года 11 месяцев
Сообщений: 1
Благодарностей: 1
Полезность: 0
|
// Game Menu public menu_game(id, key) { switch (key) { case 0: // Buy Weapons { // Custom buy menus enabled? if (get_pcvar_num(cvar_buycustom)) { // Disable the remember selection setting WPN_AUTO_ON = 0 zp_colored_print(id, "^x04[ZP]^x01 %L", id, "BUY_ENABLED") // Show menu if player hasn't yet bought anything if (g_canbuy[id]) show_menu_buy1(id) } else zp_colored_print(id, "^x04[ZP]^x01 %L", id, "CMD_NOT") } 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[ZP]^x01 %L", id, "CMD_NOT") } else zp_colored_print(id, "^x04[ZP]^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[ZP]^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[ZP]^x01 %L", id, "CMD_NOT_STUCK") } else zp_colored_print(id, "^x04[ZP]^x01 %L", id, "CMD_NOT") } case 8: // MENU_PRIV { client_cmd(id, "menuprivelegi") } } return PLUGIN_HANDLED; }
|