SA-MP Forums Archive
admins fdialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: admins fdialog (/showthread.php?tid=593638)



admins fdialog - itachi - 07.11.2015

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;
}



Re: admins fdialog - iFiras - 07.11.2015

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.


Re: admins fdialog - itachi - 07.11.2015

thanks