04.05.2016, 12:25
Quote:
No, there's no way to do that.
You can only reverse the damage by putting his health back when he's hit, but apart from OnPlayerWeaponShot the callbacks are only called afterwards as mentioned. |
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { new Float:Health; GetPlayerHealth(damagedid, Health); if(playerid != INVALID_PLAYER_ID) { SetPlayerHealth(damagedid, Health); } return 1; }