Here's a image shows how the script looks like
www.hostingpics.net/viewer.php?id=620205Untitled3.png
Could you help me please with that?
Bye.
votesRequired = 14 -- how many votes are needed to change map? votesCurrent = 7 -- current YES votes. You could also take NO votes into account and change the math accordingly voteBarLength = 12 -- how long the HUDTXT bar will be print("|".. string.rep("=", math.floor(voteBarLength * (votesCurrent/votesRequired))) .. ">" .. string.rep(" ", math.ceil((voteBarLength+1) * (votesCurrent/votesRequired))) .. "|")
print("|".. string.rep("=", math.floor(voteBarLength * (votesCurrent/votesRequired))) .. ">" .. string.rep(" ", math.ceil((voteBarLength+1) * (votesCurrent/votesRequired))) .. "|")
votesRequired = 14 -- how many votes are needed to change map? votesCurrent = 0 -- current YES votes. You could also take NO votes into account and change the math accordingly voteBarLength = 12 -- how long the HUDTXT bar will be print("|".. string.rep("=", math.floor(voteBarLength * (votesCurrent/votesRequired))) .. ">" .. string.rep(" ", 2* math.ceil(voteBarLength - (voteBarLength) * (votesCurrent/votesRequired))) .. "|")