16.03.2013, 18:10
Bem, mudei meu /admins (o antigo era do BMG) & quando dou /admins com o novo dб nisso ai ..
# 1 Screenshot - Com o novo /admins
Codigo Do /admins (novo)
Codigo Do /admins (antigo)
Й isso ai, espero que me ajudem :S
# 1 Screenshot - Com o novo /admins
Codigo Do /admins (novo)
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admtrampando[i] >= 1)
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1337)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1338)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1339)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 2800)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 2999)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 3000)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
else
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1337)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1338)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 1339)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 2800)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 2999)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
if(PlayerInfo[i][pAdmin] >= 3000)
{
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}
}
return 1;
}
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Admins Online ______________|");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[20];
if(PlayerInfo[i][pAdmin] == 1)
{
lolz = "Moderador";
}
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] == 1337)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == 1338)
{
lolz = "Web Master/Mapper";
}
if(PlayerInfo[i][pAdmin] == 1339)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == 1340)
{
lolz = "Sub-Dono";
}
if(PlayerInfo[i][pAdmin] == 1341)
{
lolz = "Dono";
}
if(PlayerInfo[i][pAdmin] == 1342)
{
lolz = "Dono/Scripter";
}
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(string, 128, "%s | Nivel: [%s] (Trabalhando)", sendername, lolz);
SendClientMessage(playerid, COR_ADMIN, string);
}
else
{
format(string, 128, "%s | Nivel: [%s] (Jogando)", sendername, lolz);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
else
{
format(string, 128, "%s | Nivel: [%s] [AFK]", sendername, lolz);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return 1;
}