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;
}