05.10.2013, 21:40
i am sry
the problem on the code i posted before is that if the player is at the point the variable
is set for the player to false then if the timer call this statement again it call the else -statement because
the variable is set to false.
But to work with the Streamerplugin and the funktion CreateDynamicRectangle is a better idea
Код:
public OnPlayerUpdate(playerid) { for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerConnectedEx(i)) { if(IsPlayerInRangeOfPoint(playerid, 10, -111.3551,1566.8140,17.5715)) { if(IsGov(i) && duty[i] && value{playerid}) { SendClientMessageA(i,COLOR_FACTION,"[Ground Detector] We have detected a vehicle heading towards Area 51! Intercept it!"); value{playerid}= false; } }else value{playerid} = true; } return 1; }
is set for the player to false then if the timer call this statement again it call the else -statement because
the variable is set to false.
But to work with the Streamerplugin and the funktion CreateDynamicRectangle is a better idea