Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:factions(playerid, params[]) {
- gString[0] = EOS;
- new dialog[512];
- strcat(dialog, "Faction\tMembers\tLeader\tApplications\n");
- new apps[28];
- for(new i = 1; i <= factions; i++) {
- if(FactionInfo[i][fApps] == 0) format(apps, sizeof(apps), "{FF0000}No{FFFFFF}");
- else if(FactionInfo[i][fApps] == 1) format(apps, sizeof(apps), "{5DFF00}Yes{FFFFFF}");
- format(gString, sizeof(gString), "[%d]%s\t%d/%d\t%s\t%s", i, FactionInfo[i][fName], FactionInfo[i][fMembers], FactionInfo[i][fSlots], FactionInfo[i][fLeader], apps);
- strcat(dialog, gString);
- }
- ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factions:", dialog, "Ok", "Cancel");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement