05.10.2013, 22:57
pawn Код:
new bool:PlayerInPoint[MAX_PLAYERS char];
pawn Код:
PlayerInPoint{playerid} = false;
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, -111.3551, 1566.8140, 17.5715))
{
if(!PlayerInPoint{playerid})
{
PlayerInPoint{playerid} = true;
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnectedEx(i))
if(IsGov(i) && duty[i])
SendClientMessageA(i,COLOR_FACTION,"[Ground Detector] We have detected a vehicle heading towards Area 51! Intercept it!");
}
return 1;
}
PlayerInPoint{playerid} = false;
return 1;
}