[Ajuda] SERVER: Unknowm Command
#2

Cara, faz muito tempo que nгo fuзo no pawn, mas tenta isso..


PHP код:
if(!strcmp(cmdtext"/admins"true))
{
    new const 
Ranks[][] =
    {
        
"{FFFF00}Ajudante",
        
"{FF8C00}Moderador(a)",
        
"{009ACD}Administrador(a)",
        
"{FF0000}Sub-Staff",
        
"{03FF35}Staff{FFFFFF}"
    
};
    new const 
PlayerAfk[][] =
    {
        
"Online",
        
"{FF0000}Ausente"
    
};
    new 
STR[256], STX[256], adminonNickName[MAX_PLAYER_NAME], Counts;
    
format(STRsizeof(STR), "Admin\tCargo\tStatus\n");
    for(new 
0GetMaxPlayers(); != yx++)
    {
        if(
admin[x])
        {
            
GetPlayerName(xNickNamesizeof(NickName));
            if(
>= pAdmin[x] > 0)
            {
                
format(STRsizeof(STR), "%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
    {
        
format(STXsizeof(STX), "{FFFFFF}Admins Online [ {328E0A}%s {FFFFFF}]"Counts);
        
ShowPlayerDialog(playerid128DIALOG_STYLE_TABLIST_HEADERSSTXSTR"Fechar""");
        
PlayerPlaySound(playerid10570.00.00.0);
    }
    return 
1;

e porfavor, comeзa a usar ZCMD..
Reply


Messages In This Thread
SERVER: Unknowm Command - by LeonardoMD - 30.07.2018, 22:07
Re: SERVER: Unknowm Command - by rolex - 30.07.2018, 22:29
Re: SERVER: Unknowm Command - by LeonardoMD - 30.07.2018, 23:11
Re: SERVER: Unknowm Command - by LeonardoMD - 30.07.2018, 23:15
Re: SERVER: Unknowm Command - by Surak - 30.07.2018, 23:50
Re: SERVER: Unknowm Command - by SIZET - 31.07.2018, 00:02
Re: SERVER: Unknowm Command - by Surak - 31.07.2018, 00:07
Re: SERVER: Unknowm Command - by rolex - 31.07.2018, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)