Toribash
Prev Previous Post   Next Post Next
Original Post
[REL&WIP] Voting script
Voting Script - v0.2 beta
Needs major help. Wrote it for the Lua exam (Fizik's group), so whoever takes the exam scripts - check it please .


Requesting help for:
  • Less symbols usage
  • Kick/ban functions




Things to do:
  • An "info" command that would whisper people "Number of positive votes: X, Number of negative votes: Y, Z more votes to go" where X is vote_y, Y the number of - votes (curr_vote-vote_y) and Z is the number of votes yet to be made before the average+1 limit. Negative votes will also be displayed;
  • Timer between polls;
  • Making an array of people, who has already voted, will be very helpful.





Abilities:
  • Starting a poll for loading suggested mod!

I think it will be helpful for public and usual servers' hosters.

Thanks to: Kyat - a lot of things suggested; Blam - little piece of code to get amount of people on server, JetFighter and Fizik - help on v0.1 version.
Comment and rate, suggest things!
Attached Files
ModVote.lua (3.4 KB, 29 views)
Last edited by MADrBOT; Feb 20, 2011 at 06:32 PM. Reason: Update