I have this PlayerPoints[id][x] function but I want to collect the points of all the players in both t and ct teams. If there are 6 players in teams, it will be sum of total2/6 = total. How to collect on total can you make a example script?
PHP Code:
new total,total2
for(x=1; x<=UPGRADES; x++) {
if(PlayerPoints[id][x] == 8)
total2 += 125
if(PlayerPoints[id][x] == 7)
total2 += 100
if(PlayerPoints[id][x] == 6)
total2 += 75
if(PlayerPoints[id][x] == 5)
total2 += 50
if(PlayerPoints[id][x] == 4)
total2 += 25
}
total = +.....total2 ?
}