- Código:
CMD:admon(playerid, const params[])
{
new IsAdmin;
SendClientMessage(playerid, -1, "Admin Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) {
if(pInfo[i][Admin] > 0)
{ if(pInfo[i][Trabalhando] == true)
format(String, sizeof(String), "%s | %s", PlayerName(i), NomeAdm(pInfo[i][Admin]));
SendClientMessage(playerid, -1, String);
IsAdmin ++;
}
}
}
if(IsAdmin == 0)
{
SendClientMessage(playerid, CINZA, "{080000}[ERRO] {FFFFFF} Nenhum Admin Online!");
}
IsAdmin = 0
return 1;
}
Creditos: Rickzin021