28.02.2010, 20:07
First put this at the top of your script
new RandomSpawn[3] = {
Cords,
cords,
cords
};
Right above main
and on playerspawn
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand]);
Then it will randomly pull the three cords you have on the top, to random spawn.
this is what i use.
new RandomSpawn[3] = {
Cords,
cords,
cords
};
Right above main
and on playerspawn
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand]);
Then it will randomly pull the three cords you have on the top, to random spawn.
this is what i use.