Raised This Month: $ Target: $400
 0% 

Custom Votes Redux (v1.7 - 4/13/14)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sipster19
Senior Member
Join Date: Mar 2011
Old 02-25-2014 , 23:54   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #11

Quote:
Originally Posted by ReFlexPoison View Post
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}).

Last edited by sipster19; 02-25-2014 at 23:54.
sipster19 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode