19.09.2013, 19:15
Meu infoadmin ta bugado, Eu uso a base do Gamemode BMG = Brasil Magic Games, codei muito o gamemode e nгo quero deixa-lo para traz, alguйm pode me ajudar com esse bug ? o bug й tipo so aparece o admins Scripter e nao aparece o resto dos admins. obs: Acontece a mesma coisa com o /infovip.
Info Admin
Info VIP
Info Admin
PHP код:
if (strcmp("/infoadmins", cmdtext, true, 10) == 0)
{
if (PlayerInfo[playerid][pAdmin] < 1)
{
MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
return 1;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 8 && PlayerInfo[playerid][pAdmin] != 9 && PlayerInfo[playerid][pAdmin] != 10)
{
MSGPLAYER(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
new lol = 0;
new arquivo[128];
MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}Admins do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
while (lol < sizeof(AdmInfo))
{
if(lol == 0)
{
format(string, sizeof(string), "{AFEEEE}ID VAGA [FUNDADOR SCRIPTER] - Nome: %s", AdmInfo[0][gMembro]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
else
{
if(strcmp(AdmInfo[lol][gMembro],"Vazio",true) != 0)
{
if(PlayerInfo[playerid][pAdmin] == 10)
{
format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s - Cargo: [%d]", lol, AdmInfo[lol][gMembro],dini_Int(arquivo,"AdminLevel"));
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
else
{
format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s", lol, AdmInfo[lol][gMembro]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
}
}
lol++;
}
return 1;
}
PHP код:
if (strcmp("/infovip", cmdtext, true, 10) == 0 || strcmp("/infovips", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
return 1;
}
MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}VIP's Do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
for(new x=0; x<sizeof(VipInfo); x++)
{
if(strcmp(VipInfo[x][vNick],"Ninguem",true) != 0)
{
format(string, sizeof(string), "Vip ID:[%d]: %s Nнvel:[%d]", x, VipInfo[x][vNick], VipInfo[x][vTipo]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
}
return 1;
}