26.09.2009, 10:40
To do this you can create randomally spawns.
Something like this:
Something like this:
pawn Код:
new Float:randomSpawns[][3] =
{
{0.0,0.0,0.0}, // spawn #1
{0.0,0.0,0.0}, // spawn #2
{0.0,0.0,0.0}, // spawn #3
{0.0,0.0,0.0} // spawn #4
};
public OnPlayerSpawn(playerid)
{
new r = random(sizeof(randomSpawns));
SetPlayerPos(playerid,randomSpawns[r][0],randomSpawns[r][1],randomSpawns[r][2]);
return 1;
}