15.02.2014, 19:43
What are you exactly trying to do? Heal the player after he has been attacked by a player of his own team? Damage the attacker by the same amount of damage he did to his team mate?
Why don't you use SetPlayerTeam instead which prevents damage among players of same teams?
Or return 0 at OnPlayerWeaponShot ...
Shouldn't that be
?
Why don't you use SetPlayerTeam instead which prevents damage among players of same teams?
Or return 0 at OnPlayerWeaponShot ...
Код:
newhealth = health -= amount;
Код:
newhealth = health - amount;