Map vote (quote) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Map vote (quote) (
/showthread.php?tid=228458)
Map vote (quote) -
Baboon - 19.02.2011
Nero:
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
|
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).