team problem.
#2

You have to pass a loop through all players, and check if the passed player is from the team you want

try this:

pawn Код:
// Where you want to teleport mercenaries
for(new a; a < MAX_PLAYERS; ++a)
{
    if(IsPlayerConnected(a))
    {
        if(gTeam[a] == MERC)
            SetPlayerPos(a,x,y,z);
    }
}
If you want more information, read this: https://sampwiki.blast.hk/wiki/Loops
Reply


Messages In This Thread
team problem. - by kurt225 - 21.07.2013, 14:43
Re: team problem. - by arakuta - 21.07.2013, 14:46
Re: team problem. - by kurt225 - 21.07.2013, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)