27.07.2013, 10:37
When you're in OnPlayerTakeDamage life packets have not yet arrived to the server.
So you can get player health and armour and restore it.
So you can get player health and armour and restore it.
Код:
public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid) { if(EnableDamage[weaponid] == false) { new Float:h, Float:a; GetPlayerHealth (playerid, h); GetPlayerArmour (playerid, a); SetPlayerHealth (playerid, h); SetPlayerArmour (playerid, a); return 1; // stop it, he dont have the hit really } return 1; }