CMD:vips(playerid, params[]) { new string[65]; SendClientMessage(playerid, 0x07F86DAA, "VIPs e SУCIOS Online:"); foreach(Player, i) { if(PlayerInfo[i][pAdmin] <= 1337) { if(PlayerInfo[i][pVIP] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "» [ID: %d]VIP: %s", i,sendername); SendClientMessage(playerid,0xFF0000AA,string); } else if(PlayerInfo[i][pVIP] == 2) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,128, "» [ID: %d]SOCIO PLATINA: %s",i,sendername); SendClientMessage(playerid,0xFF0080AA,string); } else if(PlayerInfo[i][pVIP] == 5) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,128, "» [ID: %d]SУCIO POWER: %s",i,sendername); SendClientMessage(playerid,0xFFFFFFAA,string); } else if(PlayerInfo[i][pVIP] == 6) { GetPlayerName(i,sendername,sizeof(sendername)); format(string,128, "» [ID: %d]SУCIO GOLD: %s",i,sendername); SendClientMessage(playerid,0xFF8000AA,string); } } } return true; } |
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: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 3001) format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 5000) format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 133 format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]); else format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]); SendClientMessage(playerid,COLOR_GRAD1,string); } else { if(PlayerInfo[i][pAdmin] == 1337) format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 3001) format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 5000) format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]); else if(PlayerInfo[i][pAdmin] == 133 format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]); else format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[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; } |
CMD:lideres(playerid) { SendClientMessage(playerid,COR_ADMIN, "Lнderes Online:"); new string[65]; foreach(Player, i) { if(PlayerInfo[i][pLider] > 0) { format(string, sizeof string, "ID:[%d] %s (%s) - Tel:[%d]",i ,NomePlayer(i) ,GetOrgName(PlayerInfo[i][pLider]),PlayerInfo[i][pPnumber]); SendClientMessage(playerid, GetPlayerColor(i), string); } } return true; } CMDublideres(playerid) { SendClientMessage(playerid,COR_ADMIN, "Sub-Lнderes Online:"); new string[128]; foreach(Player, i) { if(PlayerInfo[i][pCargo] == 444) { format(string, sizeof string, "ID:[%d] %s (Sub[444] - %s) - Tel:[%d]", i, NomePlayer(i), GetOrgName(GetPlayerOrg(i)),PlayerInfo[i][pPnumber]); SendClientMessage(playerid, GetPlayerColor(i), string); } else if(PlayerInfo[i][pCargo] == 555) { format(string, sizeof string, "ID:[%d] %s (Sub[555] - %s) - Tel:[%d]", i, NomePlayer(i), GetOrgName(GetPlayerOrg(i)),PlayerInfo[i][pPnumber]); SendClientMessage(playerid, GetPlayerColor(i), string); } } return true; |
CMD:admins(playerid)
{
new str[200];
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(!IsPlayerConnected(i))
continue;
if(!IsPlayerAdmin(i))
continue;
static temp[50], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(temp, sizeof(temp), "Admin RCON: %s (%d)\n", name, i);
strcat(str, temp);
}
if(str[0] == '\0')
return SendClientMessage(playerid, -1, "Nгo hб administradores online neste momento.");
ShowPlayerDialog(playerid, 69, DIALOG_STYLE_MSGBOX, "Administradores RCON", str, "Fechar", #);
return 1;
}
CMD:admins(playerid, params[]) { new string[128], adminteext[24], funcao[32], adminsonline = 0; gs_Buffer[0] = EOS; strcat(gs_Buffer, "Nome\tCargo\tStatus\tFunзгo\n"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] > 0 && !admhide[i]) { if(admtrampando[i] == 0) adminteext = "{B60000}Jogando"; if(admtrampando[i] == 1) adminteext = "{33FF00}Trabalhando"; if(GetPVarInt(i, "varAFK")) { GetPVarString(i, "varAFKMotivo", adminteext, sizeof adminteext); adminteext = "{F6F600}Ausente"; } new AdminName[MAX_PLAYER_NAME]; if(PlayerInfo[i][pAdmin] == 1) AdminName = "MOD/Temp"; else if(PlayerInfo[i][pAdmin] == 2) AdminName = "S.MOD"; else if(PlayerInfo[i][pAdmin] == 3) AdminName = "Auxiliar"; else if(PlayerInfo[i][pAdmin] == 4) AdminName = "Admin/Fixo"; else if(PlayerInfo[i][pAdmin] == 5) AdminName = "M.Lider"; else if(PlayerInfo[i][pAdmin] == 6) AdminName = "M.Edit"; else if(PlayerInfo[i][pAdmin] == 7) AdminName = "M.Helper+"; else if(PlayerInfo[i][pAdmin] == 8) AdminName = "S.DONO"; else if(PlayerInfo[i][pAdmin] == 9) AdminName = "DONO"; else if(PlayerInfo[i][pAdmin] == 10) AdminName = "Fundador"; else if(PlayerInfo[i][pAdmin]) AdminName = "Atendimento"; if(!strlen(PlayerInfo[i][pFuncao])) funcao = "Em Teste"; else format(funcao, 32, PlayerInfo[i][pFuncao]); format(string, 128, "%s\t%s\t%s\t%s\n", PlayerName(i), AdminName, adminteext, funcao); strcat(gs_Buffer, string); adminsonline++; } } } if(adminsonline == 0) return SendClientMessage(playerid, 0xB22222FF, "{FF0000}*{FFFFFF} Nгo tem nenhum administrador online."); return ShowPlayerDialog(playerid, 279, DIALOG_STYLE_TABLIST_HEADERS, "{00BFFF}Administradores {F77777}Onlines:", gs_Buffer, "Fechar", ""); }