27.10.2015, 23:45
Quote:
Код:
CMD:admins(playerid, params[]) { new count = 0; SendClientMessage(playerid, COLOR_YELLOW, "Online Administrators:"); foreach (new i : Player) if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1) { if (PlayerData[i][pAdminDuty]) SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]); else SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]); count++; } if (!count) { SendClientMessage(playerid, COLOR_WHITE, "There is no admins currently online"); } return 1; } I'll overlook this code later on today and I will make you a new one which will be better and functional. |