Advertisement
Guest User

Untitled

a guest
Sep 15th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. CMD:factions(playerid, params[]) {
  2. gString[0] = EOS;
  3. new dialog[512];
  4. strcat(dialog, "Faction\tMembers\tLeader\tApplications\n");
  5. new apps[28];
  6. for(new i = 1; i <= factions; i++) {
  7. if(FactionInfo[i][fApps] == 0) format(apps, sizeof(apps), "{FF0000}No{FFFFFF}");
  8. else if(FactionInfo[i][fApps] == 1) format(apps, sizeof(apps), "{5DFF00}Yes{FFFFFF}");
  9. 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);
  10. strcat(dialog, gString);
  11. }
  12. ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factions:", dialog, "Ok", "Cancel");
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement