17.11.2016, 21:41
(
Последний раз редактировалось henriqueTL; 19.11.2016 в 19:45.
)
bom primeira mente boa noite bom dia boa tarde eu queria ajuda de para resolver o erro que vou deixa no print
PHP код:
dcmd_admins(playerid, params[])
{
#pragma unused params
if(Player[playerid][pLogged] == false) return SendClientMessage(playerid, COR_ERRO, "[ERRO] Vocк nгo estб logado para utilizar este comando!");
new AdmLevel[64], count=0, sztring[50];
SendClientMessage(playerid, 0x6495EDFF, "» Todos os administradores online:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Player[i][pLogged] == true)
{
if(Player[i][pAdmin] >= 1)
{
if(Player[i][pAdmin] == 6) { AdmLevel = "Level: 6"; }
if(Player[i][pAdmin] == 5) { AdmLevel = "Level: 5"; }
if(Player[i][pAdmin] == 4) { AdmLevel = "Level: 4"; }
if(Player[i][pAdmin] == 3) { AdmLevel = "Level: 3"; }
if(Player[i][pAdmin] == 2) { AdmLevel = "Level: 2"; }
if(Player[i][pAdmin] == 1) { AdmLevel = "Level: 1"; }
format(sztring, sizeof(sztring), CONTAS, getPName(i));
if(Player[i][pAdmin] >= 1 && Player[i][pAdmin] <= 6)
{
SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin: %s [%s][Hits: %d][Status: %s][Responsбvel: %s.", getPName(i), AdmLevel, Player[i][pHITSidos],ocupado ? ("Livre") : ("Ocupado"), DOF2_GetString(sztring, "FunзгoGM"));
}
else SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin: %s [%s]", getPName(i), AdmLevel);
count++;
}
}
if(count == 0) return SendClientMessage(playerid, TEXTO, "Nгo tem nenhum admin online!");
}
return 1;
}
dcmd_ocupado(playerid, params[])
{
#pragma unused params
if(Player[playerid][pAdmin] >= 1 && Player[playerid][pAdmin] >= 1)
{
if(ocupado[playerid] == false)
{
SendFormattedMessage(playerid, 0x33AAFFFF, "O Administrador %s Estб OCUPADO", getPName(playerid));
ocupado[playerid] = true;
return 1;
}
else
{
SendFormattedMessage(playerid, 0x33AAFFFF, "O Administrador %s Estб LIVRE", getPName(playerid));
ocupado[playerid] = false;
return 1;
}
}
return 1;
}