03.03.2017, 15:37
Eu queria se possivel esses 3 comandos em dialog , Grato
PHP код:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_VERDE, "Admins Online:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && JogadorInfo[i][pAdmin] > 0 && JogadorInfo[i][pAdmin] < 1342)
{
if(admtrabalhando[i] == 1)
{
if(JogadorInfo[i][pAdmin] >= 1 && JogadorInfo[i][pAdmin] < 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [%d] (Trabalhando)", sendername, JogadorInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master] (Trabalhando)", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master+] (Trabalhando)", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1339)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master++] (Trabalhando)", sendername);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
if(admtrabalhando[i] == 0)
{
if(JogadorInfo[i][pAdmin] >= 1 && JogadorInfo[i][pAdmin] < 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [%d] (Jogando)", sendername, JogadorInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master] (Jogando)", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master+] (Jogando)", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pAdmin] == 1339)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | Nivel: [Master++] (Jogando)", sendername);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}
}
}
return 1;
}
PHP код:
if(strcmp(cmd, "/infolider", true) ==0 || strcmp(cmd, "/infolideres", true) ==0)
{
SendClientMessage(playerid, COLOR_WHITE, "|_______________| Inicio Info Lideres |_______________|");
SendClientMessage(playerid, COLOR_WHITE, "|____________| Oficiais da Justiзa |____________|");
format(string, sizeof(string), "Governo: %s", InfoOrg[7][Lider]);
SendClientMessage(playerid, COR_GOV, string);
format(string, sizeof(string), "Mйdicos: %s", InfoOrg[4][Lider]);
SendClientMessage(playerid, COR_SAMU, string);
format(string, sizeof(string), "Policia Militar: %s", InfoOrg[1][Lider]);
SendClientMessage(playerid, COR_PM, string);
format(string, sizeof(string), "Policia Civil: %s", InfoOrg[17][Lider]);
SendClientMessage(playerid, COR_PC, string);
format(string, sizeof(string), "Policia Federal: %s", InfoOrg[25][Lider]);
SendClientMessage(playerid, COR_PF, string);
format(string, sizeof(string), "B.O.P.E: %s", InfoOrg[2][Lider]);
SendClientMessage(playerid, COR_BOPE, string);
format(string, sizeof(string), "G.A.T.E: %s", InfoOrg[13][Lider]);
SendClientMessage(playerid, COR_GATE, string);
format(string, sizeof(string), "Interpol: %s", InfoOrg[12][Lider]);
SendClientMessage(playerid, COR_INTERPOL, string);
format(string, sizeof(string), "Exйrcito: %s", InfoOrg[3][Lider]);
SendClientMessage(playerid, COR_EXE, string);
SendClientMessage(playerid, COLOR_WHITE, "|____________| Gangsters |____________|");
format(string, sizeof(string), "Los Aztecas: %s", InfoOrg[5][Lider]);
SendClientMessage(playerid, COR_AZTECAS, string);
format(string, sizeof(string), "Los Vagos: %s", InfoOrg[19][Lider]);
SendClientMessage(playerid, COR_VAGOS, string);
format(string, sizeof(string), "PCC: %s", InfoOrg[11][Lider]);
SendClientMessage(playerid, COR_PCC, string);
format(string, sizeof(string), "Ballas: %s", InfoOrg[18][Lider]);
SendClientMessage(playerid, COR_BALLAS, string);
format(string, sizeof(string), "Groove Street: %s", InfoOrg[15][Lider]);
SendClientMessage(playerid, COR_GRO, string);
format(string, sizeof(string), "Comando Vermelho: %s", InfoOrg[23][Lider]);
SendClientMessage(playerid, COR_CV, string);
format(string, sizeof(string), "Ada: %s", InfoOrg[27][Lider]);
SendClientMessage(playerid, COR_ADA, string);
SendClientMessage(playerid, COLOR_WHITE, "|____________| Mafiosos |____________|");
format(string, sizeof(string), "Mбfia Yakuza: %s", InfoOrg[20][Lider]);
SendClientMessage(playerid, COR_YAK, string);
format(string, sizeof(string), "Mбfia CN: %s", InfoOrg[22][Lider]);
SendClientMessage(playerid, COR_COSA, string);
format(string, sizeof(string), "Mбfia Russa: %s", InfoOrg[28][Lider]);
SendClientMessage(playerid, COR_RUSSA, string);
format(string, sizeof(string), "Mбfia Mexicana: %s", InfoOrg[29][Lider]);
SendClientMessage(playerid, COR_MEXICANA, string);
SendClientMessage(playerid, COLOR_WHITE, "|____________| Terroristas |____________|");
format(string, sizeof(string), "Taliban: %s", InfoOrg[6][Lider]);
SendClientMessage(playerid, COR_TAL, string);
format(string, sizeof(string), "Al'qaeda: %s", InfoOrg[16][Lider]);
SendClientMessage(playerid, COR_AL, string);
format(string, sizeof(string), "Hamas: %s", InfoOrg[30][Lider]);
SendClientMessage(playerid, COR_HAMAS, string);
SendClientMessage(playerid, COLOR_WHITE, "|____________| Mercenбrios |____________|");
format(string, sizeof(string), "Sons of Anarchy: %s", InfoOrg[21][Lider]);
SendClientMessage(playerid, COR_SONS, string);
format(string, sizeof(string), "Devils Tribe: %s", InfoOrg[24][Lider]);
SendClientMessage(playerid, COR_DEVILS, string);
SendClientMessage(playerid, COLOR_WHITE, "|____________| Outras ORG's |____________|");
format(string, sizeof(string), "Hitmans: %s", InfoOrg[8][Lider]);
SendClientMessage(playerid, COR_HITMAN, string);
format(string, sizeof(string), "Assassins: %s", InfoOrg[26][Lider]);
SendClientMessage(playerid, COR_ASSASSINS, string);
format(string, sizeof(string), "Rede Globo: %s", InfoOrg[9][Lider]);
SendClientMessage(playerid, COR_REP, string);
format(string, sizeof(string), "Taxistas: %s", InfoOrg[10][Lider]);
SendClientMessage(playerid, COR_TAXI, string);
format(string, sizeof(string), "Mecвnicos: %s", InfoOrg[14][Lider]);
SendClientMessage(playerid, COR_MECANICO, string);
SendClientMessage(playerid, COLOR_WHITE, "|_______________| Fim Info Lideres |_______________|");
return 1;
}
PHP код:
if(strcmp(cmd, "/aa", true) == 0)
{
if(JogadorInfo[playerid][pAdmin] < 1)
{
return 1;
}
if(admtrabalhando[playerid] < 1 && JogadorInfo[playerid][pAdmin] != 1340 && JogadorInfo[playerid][pAdmin] != 1342 && JogadorInfo[playerid][pAdmin] != 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
if(IsPlayerConnected(playerid))
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_VERDE, "Ajuda Administrador:");
if (JogadorInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "");
SendClientMessage(playerid, 0x9acd32FF,"|1| Auxiliar *** | /kitadm /tvon /tvoff /par /kick /ir /trazer /voar /tapa /tapao /desbugar /teleportes");
SendClientMessage(playerid, 0x9acd32FF,"|1| Auxiliar *** | /av(avisar) /testegod /statuscel /paredao /rparedao /avisados");
SendClientMessage(playerid, 0x9acd32FF,"|1| Auxiliar *** | /numeroprofs /ls /lv /sf /monte /irin /irtunning /orgvips");
if(JogadorInfo[playerid][pAdmin] == 1)
{
SendClientMessage(playerid, 0x9acd32FF,"Auxiliar vocк foi colocado no modo admin em fase de testes, entгo trabalhe corretamente para ser promovido.");
}
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, 0x7fff00FF,"|2| Moderador *** | /repararid /blindarid /abastecerid /respawnid /cadeia /carandiru /settime");
SendClientMessage(playerid, 0x7fff00FF,"|2| Moderador *** | /ver /infoplayer /infoarmas /calar /congelar /descongelar /infovip");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, 0x39aa39FF,"|3| Moderador *** | /1 /2 /3 /go /banir /aviso /voaron /voaroff /orelhas /retiraraviso /respawnperto /tunning");
SendClientMessage(playerid, 0x39aa39FF,"|3| Moderador *** | /retirarbq /retirarbr /retirarpregos /retirarbloqueios /online /retirararmas /versms");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, 0x33ff00FF,"|4| Moderador *** | /tesouro /sethora /ip /rt /lt /dn /up /entrarcarro(Passageiro) /onveiculocomprar /offveiculocomprar /carroslivres");
SendClientMessage(playerid, 0x33ff00FF,"|4| Moderador *** | /trazerx1 /fogo /eventos /destruirid /entrarcarro2(Motorista) /onvestacionar /offvestacionar /sethora");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, 0x00ff00FF,"|1337| Master *** | /editar /explodir /votacao /encerrar /lider /limparlider /setskin /carroantigo /ircarro /desbanirnick /onmudarnick /offmudarnick");
SendClientMessage(playerid, 0x00ff00FF,"|1337| Master *** | /abastecercarros /respawncarros /respawnorg /trazercarro /desbanirip /destruirguerra /onmudarsenha /offmudarsenha");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, 0x39aa39FF,"|1338| Master + *** | /mark /irmak /setworld /darcolete /darvida /irsemp /darlicencas");
SendClientMessage(playerid, 0x39aa39FF,"|1338| Master + *** | /biz /sbizz /casa /setgrana /dargrana /iremp /ircasa");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1339)
{
SendClientMessage(playerid, 0xb4b5b7FF,"|1339| Master ++ *** | /mark /irmak /setworld /darcolete /darvida /irsemp /darlicencas");
SendClientMessage(playerid, 0xb4b5b7FF,"|1339| Master ++ *** | /biz /sbizz /casa /setgrana /dargrana /iremp /ircasa /pegarlider");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1340)
{
SendClientMessage(playerid, 0x9acd32FF,"|1340| Ajudante Sub-Dono *** | /reloadlogs /gmx /darsocio /darvip /retirarsocio /retirarvip");
SendClientMessage(playerid, 0x9acd32FF,"|1340| Ajudante Sub-Dono *** | /setpos /admvcasaall /admvcasa /reloadbans");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1341)
{
SendClientMessage(playerid, 0x90ee90FF,"|1341| Sub-Dono *** | /savefiles /kitadm /veh /deslogartodos /ativarorgvip");
SendClientMessage(playerid, 0x90ee90FF,"|1341| Sub-Dono *** | /descricao /carid /blindarid /darprocurado /retirarprocura");
SendClientMessage(playerid, COLOR_WHITE, "");
}
if (JogadorInfo[playerid][pAdmin] >= 1342)
{
SendClientMessage(playerid, COR_ROSAPINK,"|1342| Dono *** | /limparadmin /daradmin /rcarro /esconderijo /senha /crashar /deletarorgs");
SendClientMessage(playerid, COR_ROSAPINK,"|1342| Dono *** | /deletarconta /atualizar3dtext /retiraradmin /iro /deletarconf");
SendClientMessage(playerid, COLOR_WHITE, "");
}
}
}
return 1;
}