27.11.2014, 19:38
Yes it will, as it always takes a random number between 0 and the max-size of that array.
You could do this:
Or more directly:
You could do this:
pawn Код:
new RandCoord = random(sizeof(BusCP));
new Float:x = BusCP[RandCoord][0];
new Float:y = BusCP[RandCoord][1];
new Float:z = BusCP[RandCoord][2];
SetPlayerCheckpoint(playerid, x, y, z, 10);
pawn Код:
new RandCoord = random(sizeof(BusCP));
SetPlayerCheckpoint(playerid, BusCP[RandCoord][0], BusCP[RandCoord][1], BusCP[RandCoord][2], 10);