PHP Code:
#include <a_samp>
#include <zcmd>
#include <foreach>
#define scm SendClientMessage
#define red -1
#define limegreen -1
#define green -1
#define orange -1
#define yellow -1
#define white -1
#define royalblue -1
enum pInfoEnum{
Name[24],
Level,
bool:Logged,
bool:AOD
};
new pInfo[MAX_PLAYERS][pInfoEnum];
CMD:admins(pid){
scm(pid,-1, " ");
scm(pid,-1, "{5EFF00}___________ |- Online Admins -| ___________");
scm(pid,-1, " ");
new arank[9][]={"RCON Administrator","Trial Moderator","Junior Moderator","Super Moderator","Administrator","Supreme Administrator","Expert Administrator",
"Delta Administrator","Alfa Administrator"};
new acolor[9]={red,orange,green,yellow,limegreen,white,royalblue,red,red},str[120],cnt;
foreach(Player,i){
if(pInfo[i][Logged] && pInfo[i][Level] > 0 || IsPlayerAdmin(i)){
format(str,sizeof(str),"%d > %s | %s | %s",++cnt,pInfo[i][Name],arank[IsPlayerAdmin(i)?0:pInfo[i][Level]],pInfo[i][AOD]?("{5EFF00}On Duty"):("{FF0000}Off Duty"));
scm(pid,acolor[IsPlayerAdmin(i)?0:pInfo[i][Level]],str);
}
}
if(!cnt)scm(pid,red,"No admins online!");
return 1;
}