24.09.2015, 17:34
If you want to negate damage done to certain players you could do it like this:
This way, no matter what weapon you use, the damage that the weapon does will be given back to the player as health, resulting in 0 damage done overall.
Код:
new Float:h; GetPlayerHealth(playerid, h); SetPlayerHealth(playerid, h + dmg);