15.02.2017, 22:40
Esse meu /admins esta bugado. Tipo quando tem 2 admins online nгo aparece os dois. sу aparece 1. Alguйm pode me ajuda.
PHP код:
*CMD:admins(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[200];
if(admtrampando[i] == 1)
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
if(PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}]", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}[Jogando]", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
}
return true;
}