15.09.2012, 18:44
You should have explained it better...
Maybe:
Maybe:
pawn Код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, 0xffff00ff, "Online admins:");
new isAdminOnline = false;
new adminLine[64], adminName[MAX_PLAYER_NAME];
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (GetPVarInt(i, "Level") >= 1) // change 1 to the the minimum admin level
{
isAdminOnline = true;
GetPlayerName(i, adminName, MAX_PLAYER_NAME);
format(adminLine, sizeof adminLine, "%s - Level: %d", adminName, GetPVarInt(i, "Level"));
SendClientMessage(playerid, 0x00ff00ff, adminLine);
}
}
if (!isAdminOnline) SendClientMessage(playerid, 0xff0000ff, "There are no admins online.");
return 1;
}