14.04.2017, 17:26
alguem poderia me ajudar a adicionar admins nгo online em meu comando?
Esse й o comando.
Esse й o comando.
PHP код:
CMD:admins(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[500];
if(admtrampando[i] == 1)
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Master{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Subdono{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Fundador{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_LIST, "Administradores Online", string, "Fechar", "");
}
else
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Master{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Subdono{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Fundador{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_LIST, "Administradores Online", string, "Fechar", "");
}
}
}
}
if(PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[500];
if(admtrampando[i] == 1)
{
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Temporбrio{B4B5B7}]", sendername);
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_LIST, "Administradores Online", string, "Fechar", "");
}
else
{
format(string, 500, "{B4B5B7}Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Temporбrio{B4B5B7}] {FF0000}[Jogando]", sendername);
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_LIST, "Administradores Online", string, "Fechar", "");
}
}
}
}
return true;
}