HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2.  
  3. #include <fun>
  4.  
  5. #include <zombieplague>
  6.  
  7.  
  8.  
  9. new g_inf_swarm
  10.  
  11.  
  12.  
  13. public plugin_init()
  14.  
  15. {
  16.  
  17. register_plugin("[ZP] Fertozo Bomba Raj Mod", "1.0.3", "fezh")
  18.  
  19.  
  20.  
  21. g_inf_swarm = zp_register_extra_item("Fertozo Granat (Csak rajd modba)", 35, ZP_TEAM_ZOMBIE)
  22.  
  23. }
  24.  
  25.  
  26.  
  27. public zp_extra_item_selected(player, itemid)
  28.  
  29. {
  30.  
  31. if (itemid == g_inf_swarm)
  32.  
  33. {
  34.  
  35. if (zp_is_swarm_round())
  36.  
  37. {
  38.  
  39. give_item(player, "weapon_hegrenade")
  40.  
  41. client_print(player, print_chat, "[ZP] Nincs eleg loszer csonagod az Infection Bomb-hoz!")
  42.  
  43. }
  44.  
  45. else
  46.  
  47. {
  48.  
  49. client_print(player, print_chat, "[ZP] Ez csak Raj Mod-ban engedelyezett!")
  50.  
  51. return 97;
  52.  
  53. }
  54.  
  55. }
  56.  
  57. return PLUGIN_HANDLED;
  58.  
  59. }