13.03.2011, 18:44
Tipo Como, nao funfa , quando da gmx buga , e tipo so aparece o admins Scripter e nao aparece o resto
Codigos do /infoadmins
Codigo /admins
Codigos do /infoadmins
pawn Код:
if (strcmp("/infoadm", cmdtext, true, 10) == 0 || strcmp("/infoadmin", cmdtext, true, 10) == 0 || strcmp("/infoadmins", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
}
new lol = 0;
new arquivo[128];
SendClientMessage(playerid, COLOR_WHITE, "|______________ Admins do Server ______________|");
while (lol < sizeof(AdmInfo))
{
if(lol == 0)
{
format(string, sizeof(string), "Dono/Scripter: %s", AdmInfo[0][gMembro]);
SendClientMessage(playerid, COLOR_AZULBB, string);
}
else
{
if(strcmp(AdmInfo[lol][gMembro],"Vazio",true) != 0)
{
if(PlayerInfo[playerid][pAdmin] == 105)
{
format(arquivo, sizeof(arquivo), "Players/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "Vaga %d: %s, Cargo: %d", lol, AdmInfo[lol][gMembro],dini_Int(arquivo,"AdminLevel"));
SendClientMessage(playerid, COLOR_AZULBB, string);
}
else
{
format(arquivo, sizeof(arquivo), "Players/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "Vaga %d: %s", lol, AdmInfo[lol][gMembro]);
SendClientMessage(playerid, COLOR_AZULBB, string);
}
}
}
lol++;
}
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] == 100)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == 101)
{
lolz = "Web Master/Mapper";
}
if(PlayerInfo[i][pAdmin] == 102)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == 103)
{
lolz = "Sub-Dono";
}
if(PlayerInfo[i][pAdmin] == 104)
{
lolz = "Dono";
}
if(PlayerInfo[i][pAdmin] == 105)
{
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;
}