27.10.2011, 19:37
Like if there are 5 persons in the server
put 3 in pos x,y,z
and put the other 2 in the pos x,y,z
put 3 in pos x,y,z
and put the other 2 in the pos x,y,z
Iter_Count(Player) //For the amount of players
CMD:getblue(playerid, params[])
{
new Float:x, Float:y, Float:z;
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(gTeam[i] == TEAM_BLUE)
{
GetPlayerPos(playerid, x ,y ,z);
SetPlayerPos(i, x, y, z);
}
}
}
CMD:getred(playerid, params[])
{
new Float:x, Float:y, Float:z;
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(gTeam[i] == TEAM_GREEN)
{
GetPlayerPos(playerid, x ,y ,z);
SetPlayerPos(i, x, y, z);
}
}
}