View Single Post
PixelatedGamer
New Member
Join Date: Sep 2018
Old 09-22-2018 , 15:12   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #280

So I recently installed this on my server and I set up a few votes. From what I can tell I made them correctly and the vote can be called in the server but when people vote "yes" it counts a "no" vote. I can't seem to figure out whats wrong.

I am using the NativeVotes version.

Here is how I have my customvotes.cfg set up.
PHP Code:
"Custom Votes"
{
    
"Turn Random Crits {on|off}"
    
{
        
"type"        "simple"
        "vote"        "1"
        "delay"        "60"
        "cooldown"    "60"
        "ratio"        "0.6"
        "minimum"    "4"
        "command"    "tf_weapon_criticals {on|off}"
        "cvar"        "tf_weapon_criticals"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn random crits {on|off}."
        "call_notify"    "[SM] vote cast for {yes|no}."
        "pass_notify"    "[SM] Vote passed."
        "fail_notify"    "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
        "chattrigger"    "critvote"
    
}
    
"Turn Random Bullet Spread {on|off}"
    
{
        
"type"        "simple"
        "vote"        "1"
        "delay"        "60"
        "cooldown"    "60"
        "ratio"        "0.6"
        "minimum"    "4"
        "command"    "tf_use_fixed_weaponspreads {on|off}"
        "cvar"        "tf_use_fixed_weaponspreads"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn random bullet spread {on|off}."
        "call_notify"    "[SM] vote cast for {yes|no}."
        "pass_notify"    "[SM] Vote passed."
        "fail_notify"    "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
        "chattrigger"    "bulletspeadvote"
    
}
    
"Turn all talk {on|off}"
    
{
        
"type"        "simple"
        "vote"        "1"
        "delay"        "60"
        "cooldown"    "60"
        "ratio"        "0.6"
        "minimum"    "4"
        "command"    "sv_alltalk {on|off}"
        "cvar"        "sv_alltalk"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn all-talk {on|off}."
        "call_notify"    "[SM] vote cast for {yes|no}."
        "pass_notify"    "[SM] Vote passed."
        "fail_notify"    "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
        "chattrigger"    "alltalkvote"
    
}
    
"Enable medieval mode"
    
{
        
"type"        "list"
        "vote"        "1"
        "delay"        "60"
        "cooldown"    "60"
        "ratio"        "0.6"
        "minimum"    "4"
        "command"    "sm_force_medieval {OPTION_RESULT}"
        "options"
        
{
            
"5 Minutes"        "300"
            "10 Minutes"    "600"
            "15 Minutes"    "900"
            "20 Minutes"    "1200"
        
}
        
"start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to enable medieval mode for {OPTION_NAME}."
        "call_notify"    "[SM] vote cast for {yes|no}."
        "pass_notify"    "[SM] Vote passed."
        "fail_notify"    "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
        "chattrigger"    "medievalvote"
    
}

PixelatedGamer is offline