03.08.2018, 15:10
If you make loop,and if player is not on near by it coordinates he will get two times message "You are not in the site positions!
So it's better make on this way:
So it's better make on this way:
Код:
for(new i= 0; i < sizeof( PositionsSite ); i++) { if(IsPlayerInRangeOfPoint(playerid, 3.0, PositionsSite[i][0],PositionsSite[i][1],PositionsSite[i][2])) { ///Player is near by an positionssite(i) } }