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