[pawn]
enum playerspawns {
Float:spawnx,
Float:spawny,
Float:spawnz,
}
new RandomPlayerSpawns [ ] [playerspawns] =
{
{-999.5219 ,120.5592 ,9.2921},
{-890.4131 ,-307.4079 ,11.0832},
{-808.0995 ,-347.5157 ,10.7984},
{-634.9841 ,-501.6519 ,11.0253},
{-384.4496 ,-540.6746 ,17.2831},
{205.3157 ,-502.1331 ,11.8203},
{125.4754 ,-487.0941 ,12.1190},
{33.2781 ,-642.0747 ,9.9650},
{-614.8451 ,-1500.9324 ,8.8648},
{-663.2899 ,769.8389 ,11.2795},
{83.5795 ,-1461.6901 ,10.5655},
{-1717.4724 ,-245.1584 ,14.8683},
{-670.3488 ,607.9666 ,11.0845}
};
//theses go at the top
[/pawn]
[pawn]
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(RandomPlayerSpawns));
SetPlayerPos(playerid,RandomPlayerSpawns[rand][spawnx], RandomPlayerSpawns[rand][spawny], RandomPlayerSpawns[rand][spawnz],0,0);
return 1;
}
[/pawn]