08.11.2014, 09:30
(
Последний раз редактировалось JawsPlus; 18.12.2014 в 02:20.
)
Why my admins dialog will only show one admin
PHP код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count=0,string[128],rank[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetInfo(i,"AdminLevel")>= 1)
{
format(string, 128, "{FF02A7}%s {ffffff}Level: %d", AdminName(i),GetInfo(i,"AdminLevel"));
ShowPlayerDialog(playerid, 5559, DIALOG_STYLE_MSGBOX, "Online administrator", string, "Close", "");
count++;
}
}
if (count == 0) SendClientMessage(playerid,LIGHTBLUE,"{FF02A7}[Admin]:{ffffff}There Are no Admins Online");
return 1;
}