29.11.2011, 22:37
pawn Код:
if(strcmp(cmdtext, "/admins", true) == 0)
{
SendClientMessage(playerid,0x0080C0AA, "» Admins Online logados :");
new Jogador[24];
new count = 0;
new msg[120];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && pInfo[i][pAdmin] >= 1)
{
GetPlayerName(i,Jogador,24);
format(msg,sizeof(msg),"%s (%d)", Jogador,i);
SendClientMessage(playerid, 0xFFFFFFAA, msg);
count++;
}
}
}
if(count == 0) return 1;
return 1;
}