HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4. #include <zombieplague>
  5.  
  6. // Zombie Attributes
  7. new const zclass_name[] = { "Fertozo Zombi" } // name
  8. new const zclass_info[] = { "Fertozo granatot kap,keves HP" } // description
  9. new const zclass_model[] = { "zombie_eye" } // model
  10. new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
  11. const zclass_health = 200 // health
  12. const zclass_speed = 350 // speed
  13. const Float:zclass_gravity = 0.8 // gravity
  14. const Float:zclass_knockback = 0.6 // knockback
  15.  
  16. new g_zclass_infecter, Ammo
  17.  
  18. public plugin_init(){
  19. Ammo = register_cvar("zp_infecter_amt", "3")
  20. }
  21.  
  22. public plugin_precache()
  23. {
  24. register_plugin("[ZP] Zombie Class: Infecter Zombie", "1.2", "Zombiezzz")
  25.  
  26. g_zclass_infecter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
  27. }
  28.  
  29. public zp_user_infected_post(id, infector)
  30. {
  31. if (zp_get_user_zombie_class(id) == g_zclass_infecter && !zp_get_user_nemesis(id))
  32. {
  33. client_print(id, print_chat, "/g[ZP]/y Te Fertozo Zombi vagy. Kaptal egy fertozo granatot")
  34. give_item (id, "weapon_hegrenade")
  35. set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,300)
  36. cs_set_user_bpammo(id, CSW_HEGRENADE, get_pcvar_num(Ammo))
  37. }
  38. }
  39. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  40. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  41. */
  42.