Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. // Game Menu
  2. public menu_game(id, key)
  3. {
  4. if (g_isalive[id]
  5. {
  6. switch (key)
  7. {
  8. case 0: // Buy Weapons
  9. {
  10. osnovnoe_menu_gun(id)
  11. }
  12. case 1: // Extra Items
  13. {
  14. // Extra items enabled?
  15. if (get_pcvar_num(cvar_extraitems))
  16. {
  17. // Check whether the player is able to buy anything
  18. if (g_isalive[id])
  19. show_menu_extras(id)
  20. else
  21. zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT")
  22. }
  23. else
  24. zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_EXTRAS")
  25. }
  26. case 2: // Zombie Classes
  27. {
  28. // Zombie classes enabled?
  29. if (get_pcvar_num(cvar_zclasses))
  30. show_menu_zclass(id)
  31. else
  32. zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_ZCLASSES")
  33. }
  34. case 3: // Unstuck
  35. {
  36. // Check if player is stuck
  37. if (g_isalive[id])
  38. {
  39. if (is_player_stuck(id))
  40. {
  41. // Move to an initial spawn
  42. if (get_pcvar_num(cvar_randspawn))
  43. do_random_spawn(id) // random spawn (including CSDM)
  44. else
  45. do_random_spawn(id, 1) // regular spawn
  46. }
  47. else
  48. zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT_STUCK")
  49. }
  50. else
  51. zp_colored_print(id, "^x04[ReZombie]^x01 %L", id, "CMD_NOT")
  52. }
  53.  
  54. case 4: { // 5. Меню Привилегий
  55.  
  56. }
  57.  
  58. case 5: // Меню Настроек
  59. {
  60.  
  61. }
  62.  
  63. case 6: { // Классовое меню(Люди)
  64.  
  65. }
  66.  
  67. case 7: // Меню Информации
  68. {
  69.  
  70. }
  71. }
  72. }
  73. return PLUGIN_HANDLED;
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement