10.06.2012, 14:53
pawn Код:
new spawn[4] = { // you will just create new spawn's for each teams with different position's.
cords,
cords1,
cords2,
cords3,
};
new Teamspawn[2] = { // TEAM SPAWN...
cords,
cords1,
};
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,spawn[random(sizeof(spawn)]);
}
//if you wish to teams..
public OnPlayerSpawn(playerid)
{
if(gTeam == 1) // this can be different in your gm...
{
SetPlayerPos(playerid,Teamspawn[random(sizeof(Teamspawn)]);
}
// and so on...
}