09.12.2015, 21:16
(
Последний раз редактировалось Sinox; 10.12.2015 в 08:50.
)
Maybe something like this?
Код:
new Float:TeamOne[][] = { {PosX, PosY, PosZ}, //1st spawn point for team 1 {PosX, PosY, PosZ}, //2nd spawn point for team 1 {PosX, PosY, PosZ} //3rd spawn point for team 1 }; new Float:TeamTwo[][] = { {PosX, PosY, PosZ}, //1st spawn point for team 2 {PosX, PosY, PosZ}, //2nd spawn point for team 2 {PosX, PosY, PosZ} //3rd spawn point for team 2 }; //And when you want to spawn them new rand = random(sizeof(TeamOne)); if(gTeam[playerid] == TEAM_ONE) SetPlayerPos (playerid, TeamOne[rand][0], TeamOne[rand][1], TeamOne[rand][2]); new rand1 = random(sizeof(TeamTwo)); if(gTeam[playerid] == TEAM_TWO) SetPlayerPos (playerid, TeamTwo[rand1][0], TeamTwo[rand1][1], TeamTwo[rand1][2]);