Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. onplayerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime )
  2. {
  3. weapon_class = getweaponclass( sweapon );
  4.  
  5. if ( smeansofdeath == "MOD_TRIGGER_HURT" || smeansofdeath == "MOD_SUICIDE" || smeansofdeath == "MOD_FALLING" )
  6. return;
  7.  
  8. if ( weapon_class == "weapon_sniper" || sweapon == "hatchet_mp" )
  9. {
  10.  
  11.  
  12. self.health = 0;
  13. }
  14. else
  15. self.health += idamage;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement