for(new i = 0; i < sizeof(Locations); i++){ if(IsPlayerInRangeOfPoint(playerid, 100, Locations[i][0],Locations[i][1],Locations[i][2]) { //Something here? }}