Hey, would someone help me, to do a plugin that divides users by their numbers for example, Like I've 10 players,
PHP Code:
PLAYER_NAME NUMBER
reinert1 150
reinert2 600
reinert3 50
reinert4 200
reinert5 300
reinert6 450
reinert7 500
reinert8 300
reinert9 100
reinert10 200
I Would like to make that they will be divided to 2 parts ( 5 / 5 ), and the first part total number would be equal or similar to the second parts number.
Total NUMBER is 2850, so I'll divide them by 2, and then Part1 should be around 1425 and part2 aswell..
So part1 will be: reinert1 + reinert2 + reinert4 + reinert8 + reinert10 (total number 1450)
and part2 will be: reinert3 + reinert5 + reinert6 + reinert7 + reinert9 (1400)
Help help help !