maybe something like this?....
PHP Code:
new players[32], playerCount, pid
get_players(players, playerCount, "ch") // get all players, exclude bots and hltv
//if you do not want to exclude bots remove "c" flag there
new total, temp
for(new i = 0; i < playerCount; i++) { // loop thru all players
pid = players[i] // cache player id
temp = 0 // reset before looping
for(x = 1; x <= UPGRADES; x++) {
if(PlayerPoints[pid][x] == 1)
temp += 150
if(PlayerPoints[pid][x] == 2)
temp += 375
... // MORE 'if' STATEMENTS
}
total += temp
}