[Ajuda] /Admins
#1

Olб! eu gostaria de alinhas meu admins,tipo toda vez que coloco 2 adms e vejo no /admins, ele fica desalinhado,por exemplo:

PHP код:
"Fulano  Nнvel 1/5   Online
"
Fulano2     Nivйl 1/5   Online
e eu gostaria que fosse assim:

PHP код:
Fulano     Nнvel 1/5     Online
Fulano2    Nнvel 1
/5     Online 
Grato a quem me ajudar <3

CMD:

PHP код:
dcmd_admins(playerid,params[]) {
#pragma unused params
//Alertar admins para quem digitar o comando /admins
if(PlayerInfo[playerid][Level] < 1){
new 
pname[MAX_PLAYER_NAME],SACSB[100];GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(SACSBsizeof(SACSB), "| CMDS-LOG | O(A) jogador(a) %s[%d] usou o comando ( /Admins )"pnameplayerid);
CallRemoteFunction("MessageToAdmins","is",yellow,SACSB);}
//Estrutura do comando /admins
new Adms[650],ADMsDialog[810],ADMsDialog2[810],Name[MAX_PLAYER_NAME],level,admscount;
for(new 
i,GetMaxPlayers();a;i++)
{
    if(
IsPlayerConnected(i))
    {
        if(
PlayerInfo[i][Level] > 0)
        {
            if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
            {
            
level PlayerInfo[i][Level];
            
GetPlayerName(iNamesizeof(Name));
            if(
admscount 15format(Admssizeof(Adms), "%s[%i]  \t%i/5 \tOnline\n%s",Name,i,level,Adms);
            
admscount++;
            }
        }
    }
}
if(
admscount 0)
format(ADMsDialogsizeof(ADMsDialog), "%s",Adms);
else
format(ADMsDialog2sizeof(ADMsDialog2), "{FF0000}Nгo hб administradores online no momento!"admscount,Adms);
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Admins",ADMsDialog,"Fechar","");
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"Admins",ADMsDialog2,"Fechar","");
return 
1;} 
Reply


Messages In This Thread
/Admins - by CSSDean - 05.07.2018, 13:13
Re: /Admins - by ipsLuan - 05.07.2018, 13:24
Re: /Admins - by CSSDean - 05.07.2018, 13:36
Re: /Admins - by F1N4L - 05.07.2018, 14:05
Re: /Admins - by CSSDean - 05.07.2018, 14:13
Re: /Admins - by ipsLuan - 05.07.2018, 14:19
Re: /Admins - by F1N4L - 05.07.2018, 14:30
Re: /Admins - by CSSDean - 05.07.2018, 14:33
Re: /Admins - by F1N4L - 05.07.2018, 14:40
Re: /Admins - by ipsLuan - 05.07.2018, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)