19.02.2011, 18:08
Nero:
I was googling etc, but how can I check which map has the most votes in the loop?
Can a nyone make an example? (cmd)... I am using Spawn for the map. like Spawn == 1. I have 32 maps (from Spawn == 0 to Spawn == 31).
Quote:
No we can only tell you how to make a Vote map system in general You need an player array (or you use pvars since it is rarely used) But why do we need a player array and not an array with the vote options ? Because without the player could double|triple|... vote Than you set the voted value (the mapid) in the array|pvar (in a command or wherever you want) At the end you only need to loop through the array|pvar and check which mapid got the most votes, done |
Can a nyone make an example? (cmd)... I am using Spawn for the map. like Spawn == 1. I have 32 maps (from Spawn == 0 to Spawn == 31).