16.10.2011, 23:22
tenta
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new count = 0;
SendClientMessage(playerid, COLOR_GREEN, "____________________[ Administradores em serviзo ]____________________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
{
new admtext[64];
if(PlayerInfo[i][pAdmin] == 2012) { admtext = "Admin Dono 2012"; }
else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Administrador Superior 4"; }
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Administrador Nivel 3"; }
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Moderador Nivel 2"; }
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderador Nivel 1"; }
else { admtext = "Moderador Nivel 1"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"[INFO:] Nгo hб administrador em serviзo.");
}
SendClientMessage(playerid, COLOR_GREEN, "___________________________________________________________________");
}
return 1;
}

