14.04.2017, 13:58
Alguйm poderia por favor ajudar-me a adicionar dialog no meu comando /admins irei lhes mostrar o comando.
Se alguйm puder me ajudar por favor eu agradeзo muito!! Desde Jб agradeзo
PHP код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
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: {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, 128, "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, 128, "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, 128, "Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "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, 128, "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, 128, "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, 128, "Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}Gerente{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FF0000}%s {B4B5B7}Nнvel:[{FF0000}%d{B4B5B7}] Funзгo:[{FF0000}%s{B4B5B7}] {FF0000}[Jogando]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
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);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}[Jogando]", sendername);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}