admins fdialog
#2

Quote:
Originally Posted by itachi
Посмотреть сообщение
please convert this to the admins online dialog

Код:
QCMD:admins(){
SCM(playerid, 0xFF9900AA, "Administrбtori On-line:");
ForPlayers(i){
if(IsPlayerAdmin(i)){
if(Admin[i] > 0) SCMF(playerid,0x33CCFFAA,"[On-line] %s |  [ LVL %d + RCON ]",Jmeno(i),Admin[i]);
else SCMF(playerid,0x33CCFFAA,"[On-line] %s |  [ RCON ]",Jmeno(i));
}
else if(Admin[i] > 0){
SCMF(playerid,0x33CCFFAA,"[On-line] %s |  [ LVL %d ]",Jmeno(i),Admin[i]);
}
}
return true;
}
pawn Код:
QCMD:admins()
{
    new string[128], str[256];
    ForPlayers(i)
    {
        if(IsPlayerAdmin(i))
        {
            if(Admin[i] > 0)
            {
                format(string, sizeof(string), "{33CCFF}[On-line] %s | [ LVL %d + RCON ]\n", Jmeno(i), Admin[i]);
                strcat(str, string);
            }
            else if(Admin[i] <= 0)
            {
                format(string, sizeof(string), "{33CCFF}[On-line] %s |  [ RCON ]\n", Jmeno(i));
                strcat(str, string);
            }
        }
        else
        {
            if(Admin[i] > 0)
            {
                format(string, sizeof(string), "{33CCFF}[On-line] %s |  [ LVL %d ]\n", Jmeno(i), Admin[i]);
                strcat(str, string);
            }
        }
    }
    ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "{FF9900}Administrбtori On-line:", str, "OK", "");
    return true;
}
I think this should work.
Reply


Messages In This Thread
admins fdialog - by itachi - 07.11.2015, 20:51
Re: admins fdialog - by iFiras - 07.11.2015, 21:22
Re: admins fdialog - by itachi - 07.11.2015, 21:34

Forum Jump:


Users browsing this thread: 2 Guest(s)