Try this
pawn Код:
#define MAXLevel 10 //Now the max level is 10 for owner.
CMD:admins(playerid,params[]) // Admins command
{
SendClientMessage(playerid,blue,"[----Current on duty Administrators----]");
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(IsOnAdminDuty[i] == true)
{
new aname[24],astring[124];
GetPlayerName(playerid,aname,sizeof(aname));
format(astring,sizeof(astring),"%s ",aname);
SendClientMessage(playerid,blue,astring);
}
if(IsOnAdminDuty[i] == true && AccInfo[i][Level]>=MAXLevel)
{
new aname[24],astring[124];
GetPlayerName(playerid,aname,sizeof(aname));
format(astring,sizeof(astring),"%s (Owner) ",aname);
SendClientMessage(playerid,blue,astring);
}
}
return 1;
}
I've used another admin variable "
AccInfo[playerid][Level]", so please replace it and use.
Also here, maxlevel is 10.
You can change it to your maxlevel.
Edit: Oops, I thought you need /admin command which shows owner rank according to levels.
Sorry now Im seeing that if "MAX" is logged in, then in admin list he should have owner rank.