19.06.2012, 19:53
Perhaps take a look in OnPlayerTakeDamage
I'm not sure in what context you need this to be, so this is the best I can suggest.
pawn Код:
new CantBeHarmed = INVALID_PLAYER_ID;
OnMiniMissionStart()
{
CantBeHarmed = id;
return 1;
}
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(playerid == CantBeHarmed) return 0;
return 1;
}

