Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
MaloModo
Veteran Member
Join Date: Aug 2008
Old 01-08-2015 , 15:44   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #151

Trying to do a "simple" vote to turn on|off grappling hook. The catch is that in order for the hook to work you have to have tf_spells_enabled set to 0. I like my spells so it is set to 1 at the moment. This works fine to toggle on|off the hook:


Code:
"Turn Hook {on|off}"
    {
        "type"            "simple"
        "vote"            "1"
        "ratio"            "0.5"
        "minimum"        "1"
        "command"        "tf_grapplinghook_enable {on|off}"
        "cvar"            "tf_grapplinghook_enable"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn grappling hook {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"    "votehook"
    }
But I can't seem to get spells set to 0 when hook set to 1 through voting. I have tried:
Code:
"minimum"        "1"
        "command"        "tf_grapplinghook_enable {on|off}"
        "command"        "tf_spells_enabled {on|off}"
        "cvar"            "tf_grapplinghook_enable"
+/-   "cvar"            "tf_grapplinghook_enable"
I was "hoping" that perhaps that the plugin would run the spells command when voted passed just switching on/off but no.

Anyone have any insight?

Last edited by MaloModo; 01-08-2015 at 16:01.
MaloModo is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 01-08-2015 , 18:53   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #152

Quote:
Originally Posted by MaloModo View Post
Trying to do a "simple" vote to turn on|off grappling hook. The catch is that in order for the hook to work you have to have tf_spells_enabled set to 0. I like my spells so it is set to 1 at the moment. This works fine to toggle on|off the hook:


Code:
"Turn Hook {on|off}"
    {
        "type"            "simple"
        "vote"            "1"
        "ratio"            "0.5"
        "minimum"        "1"
        "command"        "tf_grapplinghook_enable {on|off}"
        "cvar"            "tf_grapplinghook_enable"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn grappling hook {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"    "votehook"
    }
But I can't seem to get spells set to 0 when hook set to 1 through voting. I have tried:
Code:
"minimum"        "1"
        "command"        "tf_grapplinghook_enable {on|off}"
        "command"        "tf_spells_enabled {on|off}"
        "cvar"            "tf_grapplinghook_enable"
+/-   "cvar"            "tf_grapplinghook_enable"
I was "hoping" that perhaps that the plugin would run the spells command when voted passed just switching on/off but no.

Anyone have any insight?
Try 0 instead of off?
__________________
Phaiz is offline
D.P.W
Junior Member
Join Date: May 2014
Old 01-13-2015 , 10:59   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #153

I've tried asking before, but I'm trying to create a vote that when the vote itself has been called that a vote for that specific item (such as map changes. I want to be able to vote for a map change, if it fails they can't call it again) but I'm not sure how I would set that up, could anyone help me with this please?
D.P.W is offline
delidolu1genc
Member
Join Date: Feb 2013
Location: Belgium
Old 01-16-2015 , 16:45   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #154

Thanks for very nice plugins.

(Yes-No) I want to display options in a different language. I also want to remove the first 3 rows. Please help me.

Last edited by delidolu1genc; 01-16-2015 at 16:45.
delidolu1genc is offline
Send a message via MSN to delidolu1genc Send a message via Skype™ to delidolu1genc
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 01-30-2015 , 12:59   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #155

ok so the ban vote passes and it doesnt ban the player? why is that?
votekick works fine.
HvG Community is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 01-31-2015 , 16:50   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #156

Why isnt voteban working, there are no error logs
HvG Community is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 01-31-2015 , 17:01   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #157

Quote:
Originally Posted by HvG Community View Post
Why isnt voteban working, there are no error logs
Code:
    "Ban player"
    {
        "type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "cooldown"        "300"
        "ratio"            "0.70"
        "command"        "sm_ban {TARGET_NAME} 30 Votebanned by players"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to ban {TARGET_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"    "voteban"
    }
__________________
Phaiz is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 01-31-2015 , 18:26   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #158

Quote:
Originally Posted by Phaiz View Post
Code:
    "Ban player"
    {
        "type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "cooldown"        "300"
        "ratio"            "0.70"
        "command"        "sm_ban {TARGET_NAME} 30 Votebanned by players"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to ban {TARGET_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"    "voteban"
    }
it was Target_ID for some godamn reason.....my gratitudes
HvG Community is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 02-01-2015 , 08:13   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #159

Quote:
Originally Posted by HvG Community View Post
it was Target_ID for some godamn reason.....my gratitudes
That's what it is by default. I just tested the different options until it worked.
__________________
Phaiz is offline
Mac91
Member
Join Date: May 2014
Location: Germany
Old 02-04-2015 , 17:50   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #160

voteban function doesn't work for me aswell!
how di you fix it? I am using TARGET_ID

"Ban player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.4"
"maxcalls" "1"
"command" "sm_ban {TARGET_ID} 60"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to ban {TARGET_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" "voteban"
}
__________________
Mac91 is offline
Reply



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 15:16.


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