07.02.2016, 19:11
Hello. I have the following code.
As you can see i check if player is near a point, and randomly assign another one to drive to.
But how to exclude the pickup location as dropoff location?
As you can see i check if player is near a point, and randomly assign another one to drive to.
But how to exclude the pickup location as dropoff location?
Код:
if(IsPlayerInRangeOfPoint(playerid, 5, Destinations[j][LoadX], Destinations[j][LoadY], Destinations[j][LoadZ])) { PlayerCache[playerid][pMissionStatus] = 1; new rand = random(sizeof(Destinations)); SetPlayerMapIcon(playerid, MapIcon[playerid], Destinations[rand][LoadX], Destinations[rand][LoadY], Destinations[rand][LoadZ], 51, 0, MAPICON_GLOBAL_CHECKPOINT);