04.02.2017, 13:35
Bem quando eu digito o comando /admins, ele aparece no chat, em forma de mensagem.. Gostaria de transformar em dialog, podem me ajudar?
O que mudo aqui?
O que mudo aqui?
PHP код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
if(PlayerInfo[i][pAdmin] == 2)lolz = "2";
if(PlayerInfo[i][pAdmin] == 3)lolz = "3";
if(PlayerInfo[i][pAdmin] == 4)lolz = "4";
if(PlayerInfo[i][pAdmin] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
//if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. ADM/HELPER";
//if(PlayerInfo[i][pAdmin] >= 1339 && PlayerInfo[i][pAdmin] <= 3000)lolz = "SUB-DONO";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "FUNDADOR";
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nнvel: [%s]", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nнvel: [%s][JOGANDO]", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}