17.08.2010, 19:00
entao eu ajudei, happy !!!
olha esse e adapta para o seu, ele funfa, ja usei ele e mostra o nivel certo
pawn Код:
// === [Admins] ===
if(!strcmp(cmdtext, "/admins", true))
{
SendClientMessage(playerid, COLOR_BLUE, "Checando por administradores on-line...");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(logged[i] == 1)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
new str[256];
new pname[24];
GetPlayerName(i, pname, 24);
format(str, 256, "Admin %s [Level %d] ", pname, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_RED, str);
count++;
}
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_RED, "nгo tem nenhum admin on-line agora!");
}
return 1;
}