21.07.2013, 14:46
You have to pass a loop through all players, and check if the passed player is from the team you want
try this:
If you want more information, read this: https://sampwiki.blast.hk/wiki/Loops
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);
}
}