29.09.2016, 16:22
CMD:admins(playerid)
{
if(Logado{playerid}==false)return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo estб logado para utilizar este comando!");
SCM(playerid, 0xADFF2FFF, "Todos os administradores online");
new AdmLevel[64], sztring[50], count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Logado{playerid} == true)
{
if(Player[i][Admin] >= 1)
{
if(Player[i][Admin] == 6) { AdmLevel = "Level 6"; }
if(Player[i][Admin] == 5) { AdmLevel = "Level 5"; }
if(Player[i][Admin] == 4) { AdmLevel = "Level 4"; }
if(Player[i][Admin] == 3) { AdmLevel = "Level 3"; }
if(Player[i][Admin] == 2) { AdmLevel = "Level 2"; }
if(Player[i][Admin] == 1) { AdmLevel = "Level 1"; }
format(sztring, sizeof(sztring), PegarConta(i));
if(Player[i][Admin] == 4 || Player[i][Admin] == 5 || Player[i][Admin] == 6)
{
SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d Funзгo: %s", Nome(i), AdmLevel, Player[i][pRpt], DOF2_GetString(sztring,"Funзгo"));
count++;
}
else SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d", Nome(i), AdmLevel, Player[i][pRpt]);
count++;
}
}
}
}
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
return 1;
}
{
if(Logado{playerid}==false)return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo estб logado para utilizar este comando!");
SCM(playerid, 0xADFF2FFF, "Todos os administradores online");
new AdmLevel[64], sztring[50], count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Logado{playerid} == true)
{
if(Player[i][Admin] >= 1)
{
if(Player[i][Admin] == 6) { AdmLevel = "Level 6"; }
if(Player[i][Admin] == 5) { AdmLevel = "Level 5"; }
if(Player[i][Admin] == 4) { AdmLevel = "Level 4"; }
if(Player[i][Admin] == 3) { AdmLevel = "Level 3"; }
if(Player[i][Admin] == 2) { AdmLevel = "Level 2"; }
if(Player[i][Admin] == 1) { AdmLevel = "Level 1"; }
format(sztring, sizeof(sztring), PegarConta(i));
if(Player[i][Admin] == 4 || Player[i][Admin] == 5 || Player[i][Admin] == 6)
{
SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d Funзгo: %s", Nome(i), AdmLevel, Player[i][pRpt], DOF2_GetString(sztring,"Funзгo"));
count++;
}
else SendFormattedMessage(playerid, 0xADFF2FFF, "Admin{FFFFFF}: %s [%s] Hits: %d", Nome(i), AdmLevel, Player[i][pRpt]);
count++;
}
}
}
}
if(count == 0) return SCM(playerid, COR_BRANCO, "Nгo tem nem um administrador online no momento.");
return 1;
}