/admins. -
How can I do, at /admins command, if admin 1 haves admin level 3 and it's id 0 and id 1 is an admin level 2, will apear like this:
Re: /admins. -
Re: /admins. -
Re: /admins. -
why don't u try to reverse it , like try starting with lvl 1338 not lvl 1
Re: /admins. -
Re: /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;
}
Re: /admins. -
Re: /admins. -
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 2 && PlayerInfo[i][pAduty] == 0)
{
format(str, 256, "Trial Admin: %s (Off Duty)", PlayerName(i));
SendClientMessage(playerid, COLOR_RED2, str);
}
if(PlayerInfo[i][pAdmin] == 2 && PlayerInfo[i][pAduty] == 1)
{
format(str, 256, "Trial Admin: %s (On Duty)", PlayerName(i));
SendClientMessage(playerid, COLOR_GREEN, str);
}
Re: /admins. -