02.01.2013, 20:45
Код:
CMD:reports(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new reportdialog[1000], itemid = 0; for(new i = 0; i < MAX_REPORTS; i++) { if(Reports[i][BeingUsed] == 1 && itemid < 40) { ListItemReportId[playerid][itemid] = i; itemid++; format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | RID:%i | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, (Reports[i][Report]), Reports[i][TimeToExpire]); format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog); } } CancelReport[playerid] = itemid; format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog); format(reportdialog, sizeof(reportdialog), "%sCancel Reports", reportdialog); ShowPlayerDialog(playerid, REPORTSMENU, DIALOG_STYLE_LIST, "Reports", reportdialog, "Accept", "Trash"); } return 1; }