29.08.2017, 19:02
Код:
CMD:admins(playerid, params[]) { new online, astring[256],string[50]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if(PlayerInfo[i][pAdmin]) online ++; } if(online == 0) return SendClientMessage(playerid, COLOR_GREY, "- Theres no admins online -"); format(string, sizeof(string), "- NY:RP Admins (%d Online) -", online); SendClientMessage(playerid, COLOR_LIGHTRED, string); for(new x = 0, j = GetPlayerPoolSize(); x <= j; x++) { if(PlayerInfo[x][pAdmin]) { format(astring, sizeof(astring), "{A35346}Name: {FFFFFF}%s{FFFFFF} | {A35346}Admin Level: {FFFFFF}%s (%d){FFFFFF} | {A35346}Admin Duty:{FFFFFF} %s |", RPN(x), RPALN(x), PlayerInfo[x][pAdmin], ADSTAT(x)); SendClientMessage(playerid, COLOR_WHITE, astring); } } SendClientMessage(playerid, COLOR_YELLOW, "Do not PM admins! Use /report & before reporting use /rules."); return 1; }
Why this is happening? Help..