07.03.2015, 17:33
Quote:
This callback was added in SA-MP 0.3z and will not work in earlier versions!
|
You could also try with this:
In 0.3z or news versions-.
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(IsPlayerInRangeOfPoint(playerid, 110.0,-1489.6556, 751.8200, 7.2345))
{
SetPlayerHealth(playerid, 0.0);
}
return true;
}
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(IsPlayerInRangeOfPoint(playerid, 110.0,-1489.6556, 751.8200, 7.2345))
{
SetPlayerHealth(playerid, 0.0);
}
return true;
}