05.07.2018, 13:13
Olб! eu gostaria de alinhas meu admins,tipo toda vez que coloco 2 adms e vejo no /admins, ele fica desalinhado,por exemplo:
e eu gostaria que fosse assim:
Grato a quem me ajudar <3
CMD:
PHP код:
"Fulano Nнvel 1/5 Online
"Fulano2 Nivйl 1/5 Online"
PHP код:
Fulano Nнvel 1/5 Online
Fulano2 Nнvel 1/5 Online
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(playerid, pname, MAX_PLAYER_NAME);
format(SACSB, sizeof(SACSB), "| CMDS-LOG | O(A) jogador(a) %s[%d] usou o comando ( /Admins )", pname, playerid);
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,a = GetMaxPlayers();i < a;i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][Level] > 0)
{
if(AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
{
level = PlayerInfo[i][Level];
GetPlayerName(i, Name, sizeof(Name));
if(admscount < 15) format(Adms, sizeof(Adms), "%s[%i] \t%i/5 \tOnline\n%s",Name,i,level,Adms);
admscount++;
}
}
}
}
if(admscount > 0)
format(ADMsDialog, sizeof(ADMsDialog), "%s",Adms);
else
format(ADMsDialog2, sizeof(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;}