Quote:
Originally Posted by Dwane
pawn Код:
#include <zcmd> #include <foreach>
CMD:admins(playerid, params[]) { new string[128], CountAdmins, Name[MAX_PLAYER_NAME]; foreach(Player, i) { GetPlayerName(i, Name, sizeof(Name)); if(PlayerInfo[playerid][AdminLevel] >= 1) { CountAdmins = 1; } } if(CountAdmins == 1) { SendClientMessage(playerid, COLOR, "Admins Online List"); foreach(Player, i) { if(PlayerInfo[playerid][AdminLevel] >= 1) { format(string, sizeof(string), "Admin: %s (ID: %d) - Level: %d", Name, i, PlayerInfo[i][AdminLevel]); SendClientMessage(playerid, COLOR, string); } } } if(CountAdmins == 0) SendClientMessage(playerid, COLOR, "There are no currently Admins online!"); CountAdmins = 0; return 1; }
The command was /admins, not /setadmin
|
:O
Sorry i misread.
I am really sorry for the mistake