dcmd_admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
{
switch(AccInfo[i][OnDuty])
{
case 0: AdmDuty = "Busy";
case 1: AdmDuty = "Available";
}
format(string, 128, "Admin %s (ID: %i)- Level %d - %s\n",PlayerName2(i),i, AccInfo[i][Level],AdmDuty);
count++;
ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Online Admins",string,"Close","");
}
}
}
if (count == 0)
ShowPlayerDialog(playerid,NO_ADMINS,DIALOG_STYLE_MSGBOX,"Online Admins","\n\n\n\nThere are no admins online.","Close","");
return 1;
}
Mir wird immer nur ein Administrator angezeigt, obwohl mehrere Online sind.