A simple polling system using SQLite.
You can add options, delete options and vote options.
When players connect, if they haven't voted on the poll they'll be prompted with a voting screen. Useful to know what your players want.
Admin Commands
sm_addoption/sm_createpolloption I'd like to see skins
sm_deleteoption/sm_deletepolloption Opens panel with options, the selected one will be deleted WITH NO CONFIRMATION, so be extra careful
User commands
Both do the same, they open a panel with all the options, ordered from most votes to less votes and showing the percentage of votes for each option.
sm_poll
sm_results
Just drop polling.smx in addons/plugins.
The only configuration needed is adding this to /configs/databases.cfg
HTML Code:
"polling" {
"driver" "sqlite"
"host" "localhost"
"database" "polling-sqlite"
"user" "root"
"pass" ""
}
Feel free to pull request at
https://github.com/alerad/sm-polling