HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <zombieplague>
  3.  
  4. #define PLUGIN "[ZP] Extra Item: T-Virus"
  5. #define VERSION "1.0"
  6. #define AUTHOR "fezh"
  7.  
  8. new g_virus, name[32]
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. g_virus = zp_register_extra_item("T-Virus", 10, ZP_TEAM_HUMAN)
  14. }
  15.  
  16. public zp_extra_item_selected(id, itemid)
  17. {
  18. if (itemid == g_virus)
  19. {
  20. get_user_name(id, name, 31)
  21. set_hudmessage(0, 255, 0, -0.05, -0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
  22. show_hudmessage(0, "%s megfertozve a T-Virus altal!", name)
  23. set_task(5.0, "set_zombie", id)
  24. }
  25. }
  26.  
  27. public set_zombie(id)
  28. {
  29. get_user_name(id, name, 31)
  30. server_cmd("amx_show_activity 0")
  31. server_cmd("zp_zombie %s", name)
  32. server_cmd("amx_show_activity 2")
  33. }
  34. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  35. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  36. */
  37.