Oct 17, 2010, 07:36 PM
The results are passed into the function you specify. Checkout mapveto.lua.
Code:
function mapveto_voteover(vote)
local yesvotes = vote.picks[1]
local total = vote.picks[1] + vote.picks[2]
local nonvoters = table.Count(player.GetAll()) - total
local yespercentage = (yesvotes / total) * 100
local percentyes = tostring(math.floor(yespercentage)) .. "%"
...
end