Randomized Spawnpoints, help needed.
#4

Put this with the other new's
pawn Код:
new Float:RandomSpawns[2][3] = {
{X, Y, Z}, // Change X, Y, Z.
{X, Y, Z}
};
Put this In"OnPlayerSpawn"
pawn Код:
new rand;
rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
Reply


Messages In This Thread
Randomized Spawnpoints, help needed. - by Kelito - 26.06.2009, 14:08
Re: Randomized Spawnpoints, help needed. - by arnutisz - 26.06.2009, 14:12
Re: Randomized Spawnpoints, help needed. - by iLinx - 26.06.2009, 14:14
Re: Randomized Spawnpoints, help needed. - by Stah - 26.06.2009, 14:17
Re: Randomized Spawnpoints, help needed. - by Kelito - 26.06.2009, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)