HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <zombieplague>
  6. #include <hamsandwich>
  7.  
  8. #define PLUGIN "No fall damage for zombies"
  9. #define VERSION "1.0"
  10. #define AUTHOR "Sn!ff3r"
  11.  
  12. #define DMG_FALL (1<<5)
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17. RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
  18. }
  19.  
  20. public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
  21. {
  22. if (!(damage_type & DMG_FALL))
  23. return HAM_IGNORED
  24.  
  25. if (!zp_get_user_zombie(victim))
  26. return HAM_IGNORED
  27.  
  28. return HAM_SUPERCEDE
  29. }
  30.