Advertisement
Guest User

Untitled

a guest
May 14th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. case 5: {
  2. if(PlayerInfo[playerid][pClanRank] < 6) return 1;
  3.  
  4. new szDialog[512];
  5. strcat(szDialog, "Model\tRank\n");
  6. strcat(szDialog, "Buy a vehicle\n");
  7.  
  8. new x;
  9. for(new v = 0; v < MAX_SVEHICLES; v++) {
  10. if(ServerVehicles[v][vClan] == PlayerInfo[playerid][pClan]) {
  11. format(string, sizeof(string), "%s\t%d\n", aVehicleNames[ServerVehicles[v][vModel]-400], ServerVehicles[v][vRank]);
  12. strcat(szDialog, string);
  13. SelectedFaction2[playerid][x] = v;
  14. x++;
  15. }
  16. }
  17.  
  18. ShowPlayerDialog(playerid, DIALOG_CLAN_VEHICLE, DIALOG_STYLE_TABLIST_HEADERS, "Clan Vehicles:", szDialog, "Select", "Cancel");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement