[Ajuda] /admins - Dialog
#2

Nгo testei, aqui compilou, use aн, teste, e veja se funciona

PHP Code:
CMD:admins(playeridparams[])
{
    new 
coutstr[128], rankname[23];
    for(new 
iMAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PlayerInfo[i][pAdmin] > 0)
            {
                switch(
PlayerInfo[i][pAdmin])
                {
                    case 
1rankname "{FFFF00}Ajudante";
                    case 
2rankname "{FF8000}Moderador";
                    case 
3rankname "{00FFFF}Administrador";
                    case 
4rankname "{AF30CF}Sub-Dono(a)";
                    case 
5rankname "{26F321}Staff";
                }
                new 
name[24]; GetPlayerName(inamesizeof(name));
                
format(str128"Admins:\tCargo:\n%s\t%s\n"namerankname);
                
cout++;
            }
        }
    }
    if(
cout == 0ShowPlayerDialog(playerid123DIALOG_STYLE_MSGBOX"[!] Online Admins:""No Online Admins""Ok""");
    else
    
ShowPlayerDialog(playerid123DIALOG_STYLE_TABLIST_HEADERS"Admins Online:"str"Ok""");
    return 
1;

Reply


Messages In This Thread
/admins - Dialog - by Ryuzaki07 - 06.11.2018, 09:40
Re: /admins - Dialog - by Electrifying - 06.11.2018, 10:18
Re: /admins - Dialog - by Felipealves - 06.11.2018, 10:26
Re: /admins - Dialog - by Ryuzaki07 - 06.11.2018, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)