09.06.2012, 17:07
How do I make random spawns for a certain team?
new Float:RandomSpawn[][4] = {
{coordx, coordy, coordz, coorda},
{coordx, coordy, coordz, coorda},
{coordx, coordy, coordz, coorda}
};
public OnPlayerSpawn(playerid)
{
new rands = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rands][0], RandomSpawn[rands][1], RandomSpawn[rands][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rands][3]);
return 1;
}