16.02.2015, 23:52
Yes, that example should work fine. Another example:
P:S: I miss the old PAWN BBCode syntax
pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, weaponid, bodypart)
{
if(IsPlayerInRangeOfPoint(playerid, safeZoneRange, safeZoneX, safeZoneY, safeZoneY, safeZoneZ))
{
new Float: health;
GetPlayerHealth(playerid, health+amount);
SetPlayerHealth(playerid, health);
return 0;
}
return 1;
}

