PHP Code:
public onlineadmins(id) {
new players[32],pnum, player;
get_players(players,pnum);
get_pcvar_string(TAG, PREFIX, charsmax(PREFIX));
new temp[501],name[32], count
for( new i; i<pnum; i++ ) {
if(!g_HideRank[players[i]]) {
player = players[i]
count++
get_user_name(player,name,31)
formatex(temp,500,"%s %s !n(!g%s!n),!t ", temp, name, AccessType[RankName[player]])
}
}
if(count)
client_printc(id, "!g[%s]!n Admins Online:!t %s!n", PREFIX, temp)
else
client_printc(id, "!g[%s]!n No admins online.", PREFIX)
return PLUGIN_HANDLED;
}
ok still not working... it shows EVERYONE as manager unless they are admin or head admin... grr.. its annoying...
what im doing wrong