help on this...
#4

Here:

pawn Код:
//Put it in the top of your GameMode:

new Float:RandomPlayerSpawns[6][3] = {//Change the 6 to the max coordinates that you have in the variable
{376,-2034,7.83},
{376, -2034, 7.83},
{613, -1775, 14.31},
{647, -1645, 15.047},
{736, -1386, 13.7},
{833, -1761, 13.6} //You can't put a comma in the last coordinate
};

And use it in the OnPlayerSpawn callback:

pawn Код:
new rand = random(sizeof(RandomPlayerSpawns));
SetPlayerPos(playerid,RandomPlayerSpawns[random][0],RandomPlayerSpawns[random][1],RandomPlayerSpawns[random][2]);

I hope that i have helped
Reply


Messages In This Thread
help on this... - by marinov - 20.01.2011, 22:49
Re: help on this... - by blackwave - 20.01.2011, 22:57
Re: help on this... - by marinov - 20.01.2011, 23:22
Re: help on this... - by rjjj - 21.01.2011, 00:59

Forum Jump:


Users browsing this thread: 2 Guest(s)