Advanced Voting
Version 1.1.4
Support level: Bugs only
Description
This plugin simply provides votes, but you can add a command for each voting option that's run if the option wins.
Usage
CVars
Quote:
- sm_avote_version
The current version of the plugin.
|
Commands
Quote:
- sm_avote <title> <option1> <command1> ... <option10> <command10>
ADMFLAG_GENERIC
Initiate a vote.
- sm_asvote <title> <option1> <command1> ... <option10> <command10>
ADMFLAG_BAN
Initiate a vote. Commands will be executed on the server.
|
Tip: You can use /avote or /asvote in chat.
Example
Code:
sm_asvote "Enable something?" "Low grav" "sv_gravity 150" "Madness!" "sm_melee 1" "Something funny" "sm_beacon @all"
If
Low grav wins the vote
sv_gravity 150 will be executed, if
Madness! wins
sm_melee 1 is executed etc.
Screenshot
Soon.
Changelog
- v1.0.0 2009/06/23 Plugin created.
- v1.1.0 2009/06/25 Changed commands parameter, added sm_asvote
- v1.1.2 2009/06/25 Hotfixed sm_avote would run as server command.
- v1.1.3 2009/07/02 version cvar
- v1.1.4 2009/07/08 version cvar (notify)
Please report bugs here, I'll try to fix them as soon as possible.