[Ajuda] Dialog
#6

PHP код:
    if(!strcmp(cmdtext"/admins"true))
    {
    new 
Counts;
    new const 
Ranks[][] =
    {
    
" {FFFF00}Ajudante ",
    
" {FC851C}Moderador(a) ",
    
" {008bce}Administrador(a) ",
    
" {328E0A}Staff{FFFFFF} "
    
};
    new const 
PlayerAfk[][] =
    {
    
" Online ",
    
" {FF0000}Ausente "
    
};
    new 
STR[9999];
    new 
STX[3005], adminon;
    
format(STRsizeof(STR"Admin\tCargo\tStatus\n");
    for(new 
0GetMaxPlayers(); != yx++)
     {
    if(!
IsPlayerConnected(x)) continue;
    if(
admin[x])
    {
    new 
NickName[25];
    
GetPlayerName(xNickName25);
    if(
pAdmin[x] >= && pAdmin[x] <= 6)
    {
    
format(STR500"%s{FFFFFF}%s {FFFFFF}  \t%s{FFFFFF}  {FFFFFF}\t{00A600}%s{FFFFFF}\n"STRNickNameRanks[pAdmin[x] - 1], PlayerAfk[AFK[x] - 0]);
    
adminon++;
    }
    
Counts++;
     }
    }
    
//teste
    
if(adminon == 0)
    {
    
ShowPlayerDialog(playerid500DIALOG_STYLE_MSGBOX"{FFFFFF}Admins [ {FF0000}0{FFFFFF} ]""{FF0000}Nгo hб membros da Administraзгo online no momento !""Fechar""");
    
PlayerPlaySound(playerid10570.00.00.0);
    }
    else if(
adminon == 1)
    {
    
ShowPlayerDialog(playerid128DIALOG_STYLE_TABLIST_HEADERS"{FFFFFF}Admins Online [ {328E0A}1 {FFFFFF}]"STR"Fechar""");
    
PlayerPlaySound(playerid10570.00.00.0);
    }
     else
    {
    
//teste
    
format(STX500"{FFFFFF}Admins Online [ {328E0A}%d{FFFFFF} ]"adminon);
    
ShowPlayerDialog(playerid500DIALOG_STYLE_TABLIST_HEADERSSTXSTR"Fechar""");
    
PlayerPlaySound(playerid10570.00.00.0);
    }
     return 
1;
    } 
Reply


Messages In This Thread
Dialog - by Geremias1533 - 05.12.2017, 21:27
Re: Dialog - by DelK - 05.12.2017, 22:04
Re: Dialog - by Geremias1533 - 05.12.2017, 22:43
Re: Dialog - by DelK - 05.12.2017, 22:52
Re: Dialog - by Geremias1533 - 05.12.2017, 23:02
Re: Dialog - by DelK - 05.12.2017, 23:20
Re: Dialog - by Geremias1533 - 06.12.2017, 00:13
Re: Dialog - by Marllun - 06.12.2017, 00:37
Re: Dialog - by WalterSantos - 06.12.2017, 00:40
Re: Dialog - by Geremias1533 - 06.12.2017, 01:21

Forum Jump:


Users browsing this thread: 3 Guest(s)