12.06.2017, 05:35
Alguйm poderia me ajudar ? й um sistema fбcil mais estou com um erro bobo gostaria que quando o admin der /afk aparece AUSENTE no /admins dele mais acho que to fazendo alguma coisa errada.
Esse й o comando /afk
Esse й o comando /admins
Esse й o comando /afk
PHP код:
CMD:afk(playerid, params[])
{
new string[128];
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdminTemp] >= 1)
{
if(admafk[playerid] > 0)
{
admafk[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк acaba de sair do modo AFK !");
format(string, 128, " AdmCmd: O admin %s saiu do modo {00FF00}AFK",sendername, playerid);
ABroadCast(COLOR_GRAD1,string,1);
BPSLogs("adminsafk", string);
}
else
{
admafk[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк acaba de entrar no modo AFK !");
format(string, 128, " AdmCmd: O admin %s entrou em modo {FF0000}AFK",sendername, playerid);
ABroadCast(COLOR_GRAD1,string,1);
}
}
}
PHP код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
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] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
//if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. ADM/HELPER";
//if(PlayerInfo[i][pAdmin] >= 1339 && PlayerInfo[i][pAdmin] <= 3000)lolz = "SUB-DONO";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "FUNDADOR";
new string[128];
if(admtrampando[i] == 1 || admafk[i] == 1)
{
format(string, 128, "Admin: %s Nнvel: [%s]", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nнvel: [%s][JOGANDO]", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
if else
{
format(string, 128, "Admin: %s Nнvel: [%s] {FF0000}(AUSENTE)", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}