team spawn point
#4

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]);
Reply


Messages In This Thread
team spawn point - by GeneralAref - 09.12.2015, 10:12
Re: team spawn point - by Jstylezzz - 09.12.2015, 12:59
Re: team spawn point - by GeneralAref - 09.12.2015, 16:37
Re: team spawn point - by Sinox - 09.12.2015, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)