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;
}
Nгo й pra criar um tуpico novo a cada vez que nгo for ajudado! edite o tуpico antigo e utilize @up em um novo post slб
Mano, aqui nгo й igual certos forum que й so chegar, mandar fazer, que vгo fazer, nгo cara. Vai estudar e faz tu mesmo
Ao invйs de criticar/rebaixar seria melhor dar uma luz com uma resposta que auxilie o cara.
Amigo, estude mais sobre a funзгo nativa do samp (file_functions) e depois vocк cria um comando que ler o que tб escrito nela. Lembre-se sempre do