admins fdialog
#1

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;
}
Reply
#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
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)