[HELP] How to get players in team. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How to get players in team. (
/showthread.php?tid=168422)
[HELP] How to get players in team. -
[HIR]AlbanianSoilder - 16.08.2010
Please help me if you can, but i am trying to make a command that shows all the online admins. So far, I am no where, and i am needing help.
I want player to type /admins and it brings up a list of all the online admins.
Hope i can get some help Thank you!
Re: [HELP] How to get players in team. -
wups - 16.08.2010
show us the value, where info is stored about admins.
Here is my command:
pawn Код:
if(strcmp(cmdtext, "/admin", true) == 0)
{
new zin[256] = "Admins online:";
new name[MAX_PLAYER_NAME];
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerDB[i][admin]){
GetPlayerName(i,name,MAX_PLAYER_NAME);
format(zin,256,"%s %s,",zin,name);
}
SendClientMessage(playerid,0x45A9BAFF,zin);
return 1;
}
Re: [HELP] How to get players in team. -
[HIR]AlbanianSoilder - 16.08.2010
I got it fixed. Sorry to bother sir. Thank you