30.04.2013, 21:31
Just add an array at the top of your script, like this:
then under where someone votes:
and then do something like this to find the highest voted map:
and then the winner is votes[winner]
pawn Code:
new votes[NUMBER_OF_MAPS_HERE];
pawn Code:
votes[MAP_NUMBER_HERE]++;
pawn Code:
new numvotes, winner;
for(i=0;i<NUMBER_OF_MAPS_HERE;i++)
{
if(votes[i] > numvotes)
{
winner = i;
}
}