25.04.2011, 13:12
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:x,Float:y,Float:z;
GetVehiclePos(link, x, y, z);
new Float:health;
GetPlayerHealth(playerid,health);
if(IsPlayerInRangeOfPoint(playerid, 9.3, x, y, z))
{
if(!sharkkill[playerid]) {
SetPlayerHealth(playerid, 0);
sharkkill[playerid]=1;
SendClientMessage(playerid,COLOR_RED,"You are killed by a Shark!");
}
}else(
sharkkill[playerid]=0;
}
return 1;
}