26.09.2009, 08:25
so when i start the game the player is spawn only 1
place i want to make many places
so what i need to do ?
place i want to make many places
so what i need to do ?
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;
}