SA-MP Forums Archive
[HELP] Command that shows online team members? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Command that shows online team members? (/showthread.php?tid=286515)



[HELP] Command that shows online team members? - ChaosLad - 29.09.2011

Hi,

I need a command that shows online players that are mmebers of gTeam 1. For example, if I type /team I get a list of all online members of that team.

Thanks


Re: [HELP] Command that shows online team members? - ChaosLad - 29.09.2011

Bump


Re: [HELP] Command that shows online team members? - Cameltoe - 29.09.2011

pawn Код:
command(team, playerid, params[])
{
     for(new i; i < MAX_PLAYERS; i++)
     {
          if(gTeam[i] == 1) printf("PlayerID: %d is in team id: %d", i, gTeam[i]);
     }
     return 1;
}



Re: [HELP] Command that shows online team members? - ChaosLad - 29.09.2011

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
pawn Код:
command(team, playerid, params[])
{
     for(new i; i < MAX_PLAYERS; i++)
     {
          if(gTeam[i] == 1) printf("PlayerID: %d is in team id: %d", i, gTeam[i]);
     }
     return 1;
}
Thanks!