18.01.2012, 18:01
tenta
pawn Код:
if(!strcmp(cmdtext, "/admins", true))
{
SendClientMessage(playerid, 0x00CD00FF, "(INFO) Checando por administradores on-line...");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
new str[128];
new pname[24];
GetPlayerName(i, pname, 24);
format(str, 128, "Nome: [%s] | [ID: %d] ", pname, playerid);
SendClientMessage(playerid, -1, str);
count++;
}
}
}
}