Quote:
Originally Posted by ReFlexPoison
Why not just use the options vote and set "no" to do nothing...?
|
That doesn't do it for me. If I have a vote and it says, "Turn radar On?" and it's on, the players want it off, that leaves them no way to do so. It needs it work like chundo's plugin.
Expressions:
In addition to parameter replacement, Custom Votes has a handy expression replacement feature, which allows you to insert CVar values. Vote titles, vote commands, trigger notices, option keys and option values can all contain expressions.
Example title: "Turn all talk {!sv_alltalk|onoff}?"
This would parse to "Turn all talk on?" or "Turn all talk off?", depending on the current value of sv_alltalk.
Syntax: {[!]cvar_name[|modifier(s)]}
An initial "!" reverses the value of boolean CVars (useful for toggle votes). Any modifiers after the CVar determine how the variable displays. Current modifiers are "onoff", "yesno", "upper", "lower", and "capitalize." Multiple modifiers can be strung together (i.e. {sv_alltalk|onoff|capitalize}).