19.08.2010, 12:37
Fallout's way is an option, OR:
pawn Код:
new RandomSpawns[][4] = { // X - Y - Z- Angle
{1250.00000, -1250.00000, 50.00000, 360},
{180.00000, -30.00000, 2.00000, 300},
{1250.00000, -1250.00000, 3.50000, 20} //Add a new line for each new spawn position, the last line must be WITHOUT comma.
};
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[rand][4]);
return 1;
}