30.09.2012, 05:18
here u go a simple one
i hope that helps
pawn Код:
new Float:RandomSpawns[][] =
{
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
};
pawn Код:
//underonplayerspawn
if(GetPlayerTeam(playerid) == 1)
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
//more team here and so on!