28.07.2014, 20:40
Quote:
Depends how your "gangs" are stored in memory and how they are ranked. Typically, you can store them in a basic 2 dimensional array with the first cell being some reference to that gang (name, ID, etc) and the second cell being whatever you use to rank them (surface area of turf, points or whatever you use) then sort that array by the second column ascending or descending depending on your needs.
|
I have 51 GangZones, and i want reward players each minute of thier gameplay of score.
3 scores for players in Biggest Gang.
2 scores for players in 2nd Biggest Gang.
1 score for players in 3rd biggest gang.