17.02.2013, 11:24
eae galera, queria ajuda de vocкs pra colocar o comando /admins em dialog...
CMD:
alguem pode mim ajudar? obg !
CMD:
Код:
if (strcmp(cmd, "/admins", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COR_GRO, "Admins Online:"); for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0 && PlayerInfo[i][pAdmin] < 1340) { if(admtrampando[i] == 1) { if(PlayerInfo[i][pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Moderador] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[2] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[3] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[4] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1337) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1338) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master+] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1339) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master++] (Trabalhando)", sendername); SendClientMessage(playerid, COLOR_GRAD1, string); } } if(admtrampando[i] == 0) { if(PlayerInfo[i][pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Moderador] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[2] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[3] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[4] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1337) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1338) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master+] (Jogando)", sendername); SendClientMessage(playerid, COLOR_WHITE, string); } else if(PlayerInfo[i][pAdmin] == 1339) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "%s | Nivel:[Master++] (Jogando)", sendername); SendClientMessage(playerid, COLOR_GRAD1, string); } } } } } return 1; }