22.11.2018, 04:51
Код:
CMD:turfs(playerid, params[]) { new string[5500]; new number = 0; for(new i; i < MAX_POINTS; i++) { if(Points[i][Type] >= 0) { number ++; if(Points[i][Vulnerable] == -1) { format(string, sizeof(string), "%d. %s\t{%h} %s\t%s\tTemporarily disabled", number, Points[i][Name],Points[i][Owner],Points[i][CapperName]); } else { format(string, sizeof(string), "%d. %s\t%s\t%s\t%d", number, Points[i][Name],Points[i][Owner],Points[i][CapperName],Points[i][Vulnerable]); } ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST_HEADERS, "Turfs", "{a9c4e4}Turf\tOwner\tPerk\tVulnerability", string, "Close", ""); } } return 1; }