/admins.
#6

It's going in order of the players, not the admins

pawn Код:
if(!strcmp(cmdtext[1],"admins",true))
{
  new tmpstr[100];
  new counth;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==1338)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Head Admin][Level 1338][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,0x0069c4AA,tmpstr),counth++;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==1337)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Lead of Lead Admin][Level 1337][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,COLOR_LIGHTRED,tmpstr),counth++;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==4)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Lead Admin][Level 4][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,0x00EC00FF,tmpstr),counth++;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==3)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Super Admin][Level 3][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,0x796600FF,tmpstr),counth++;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==2)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Regular Admin][Level 2][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,0x00B8D7FF,tmpstr),counth++;
  for(new ply;ply<MAX_PLAYERS;ply++)if(PlayerInfo[i][pAdmin]==1)GetPlayerName(i,pname,100),format(tmpstr,100,"%s[%d]  [Trial Admin][Level 1][%s-Duty]",tmpstr,i,AdminDuty[i]?("On"):("Off")),SendClientMessage(playerid,0xDFE200FF,tmpstr),counth++;
  if(!counth)SendClientMessage(playerid,0xFF6347AA,"* Currently no admins are online.");
  return 1;
}
Reply


Messages In This Thread
/admins. - by Razvann - 02.02.2010, 20:12
Re: /admins. - by hvampire - 02.02.2010, 20:15
Re: /admins. - by Razvann - 02.02.2010, 20:32
Re: /admins. - by hvampire - 02.02.2010, 20:49
Re: /admins. - by Razvann - 02.02.2010, 20:52
Re: /admins. - by Joe Staff - 02.02.2010, 21:01
Re: /admins. - by Razvann - 28.02.2010, 10:09
Re: /admins. - by MisterTickle - 28.02.2010, 11:10
Re: /admins. - by Razvann - 28.02.2010, 11:14

Forum Jump:


Users browsing this thread: 3 Guest(s)