21.01.2011, 00:59
Here:
And use it in the OnPlayerSpawn callback:
I hope that i have helped
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