Würde mein Befehl um Admins anzuzeigen so funktionieren?
CMD:admins(playerid, params[])
{
new iString[512] = '\0';
foreach(new i : Player)
{
if(Player[i][Level] > 0 && Player[i][IsOnDuty] == true)
{
format(iString, sizeof(iString), "%s{00c5ff}%s {808080}|| {00c5ff}%s {808080}|| {00FF7F}Im Dienst\n", iString, Player[i][Name], GetRang(i));
}
if(Player[i][Level] > 0 && Player[i][IsOnDuty] == false)
{
format(iString, sizeof(iString), "%s{00c5ff}%s {808080}|| {00c5ff}%s\n", iString, Player[i][Name], GetRang(i));
}
}
if(strlen(iString) < 1) ShowPlayerDialog(playerid,DIALOG_HELPS,DIALOG_STYLE_MSGBOX,"{FFFF00}Teammitglieder Online", "Keine Teammitglieder Online","Ok","");
else ShowPlayerDialog(playerid,DIALOG_HELPS,DIALOG_STYLE_MSGBOX,"{FFFF00}Teammitglieder Online", iString,"Ok","");
return 1;
}