Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 02-26-2018 , 09:23   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #271

Quote:
Originally Posted by Sarabveer View Post
It's a good thing he doesn't allow using Voter Names, as a User could put a command in his username and run it on the server.

However, my issue of Voter SteamID not working is still a problem.
Didn't think about that, good point. Also yeah, the voter SteamID issue is a problem for me as well. I'm going to guess that the voter and all their information is stored into an array, (guessing the command is a string) but when the command is processed and formatted, the string replacements for say {VOTER_STEAMID} are either setup incorrectly or they are non-existent (if you understand what I mean by this). I am considering rewriting this plugin to add support for that (and to fix any and all issues that are still existent).

Last edited by ThatKidWhoGames; 02-26-2018 at 09:28.
ThatKidWhoGames is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 07-12-2018 , 03:50   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #272

Is there a way to execute multiple commands/cvar on vote pass?
Dragonisser is offline
distobj
AlliedModders Donor
Join Date: Mar 2017
Old 07-16-2018 , 14:10   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #273

Quote:
Originally Posted by Dragonisser View Post
Is there a way to execute multiple commands/cvar on vote pass?
You can use a semi-colon between commands, but AFAIK there's no way to set multiple cvars.
distobj is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 07-17-2018 , 07:18   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #274

Quote:
Originally Posted by distobj View Post
You can use a semi-colon between commands, but AFAIK there's no way to set multiple cvars.
That's what i thought, but i hadn't any luck so far. Gonna try it later again.
Dragonisser is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 08-16-2018 , 14:16   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #275

Hey guys, figured I'd update this plugin a bit since it's quite a useful tool.

I stumbled upon a fork of it on github which implemented logging, and appears to have implemented an anti-grief system (targeted players leaving during a vote). Logging appears to work just fine, I have not tested the anti-grief system yet.

I have changed/added a few things:
  • Added proper KZTimer support
  • Utilize Multi-Colors to support more games
  • Fixed default mapcycle resulting in an empty map list in a "map" vote (thank you Headline for spotting this)
  • Bumped maximum number of maps in a mapvote to 1024

Fork is quite active:

Download
__________________

Last edited by sneaK; 02-03-2019 at 19:41.
sneaK is offline
roosterarda
New Member
Join Date: Aug 2018
Old 08-26-2018 , 10:24   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #276

If everyone doesn't cast a vote, the command isn't executed. Help would be appreciated

Code:
	"Mod değişsin mi"
	{
    	"delay"			"900"
        "cooldown"		"900"
		"type"			"simple"
		"vote"			"1"
		"ratio"			"0.51"
		"command"		"sm_votemap jb_buyukisyan_son awp_lego_2 surf_ski_2_go deathrun_deluxe_csgo aim_redline"
		"start_notify"	"[POSEİDON] {VOTER_NAME} mod değiş/kal oylaması başlattı."
		"pass_notify"	"[POSEİDON] Oylama başarılı, lütfen harita seçin."
		"fail_notify"	"[POSEİDON] Oylama başarısız. Alınan oy: {VOTE_AMOUNT} Gerekli oy: {VOTE_REQUIRED}"
		"chattrigger"	"mod"
	}
Also how can you make the cooldown act on admins ass well?
roosterarda is offline
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 08-31-2018 , 17:07   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #277

Quote:
Originally Posted by sneaK View Post
I stumbled upon a fork of it on github which implemented logging, and appears to have implemented an anti-grief system (targeted players leaving during a vote). Logging appears to work just fine, I have not tested the anti-grief system yet.
The anti-grief system exists since version 1.1.
caxanga334 is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 09-22-2018 , 06:32   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #278

Hey my server is running it and only four of the votes work...
PHP Code:
"Custom Votes"
{
    
"Turn alltalk {on|off}"
    
{
        
"type"            "simple"
        "vote"            "1"
        "ratio"            "0.6"
        "minimum"        "4"
        "command"        "sv_alltalk {on|off}"
        "cvar"            "sv_alltalk"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:全局通话 {on|off}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votealltalk"
    
}
    
"Kick Player"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.6"
        "command"        "sm_kick {TARGET_NAME}"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:踢出 {TARGET_NAME}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votekick"
    
}
    
"Ban player for 30 mins"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.8"
        "command"        "sm_ban {TARGET_ID} 30"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:封禁 {TARGET_NAME} 30分钟"
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "voteban"
    
}
    
"Mute Player"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.6"
        "command"        "sm_silence "
{TARGET_ID}""
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:禁言 {TARGET_NAME}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votemute"
    
}
    
"Make player cute"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.5"
        "command"        "sm_rename {TARGET_ID} _(:з」∠)_"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 想把 {TARGET_NAME} 变成马猴烧酒"
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votecute"
    
}

The votemenu ends up on the "muteplayer" vote.
I don't know where I did wrong..Can anyone help me?
Hoto Cocoa is offline
doroemon
Senior Member
Join Date: Dec 2009
Location: TF2 AFK Server
Old 09-22-2018 , 10:10   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #279

Quote:
Originally Posted by Hoto Cocoa View Post
Hey my server is running it and only four of the votes work...
PHP Code:
"Custom Votes"
{
    
"Turn alltalk {on|off}"
    
{
        
"type"            "simple"
        "vote"            "1"
        "ratio"            "0.6"
        "minimum"        "4"
        "command"        "sv_alltalk {on|off}"
        "cvar"            "sv_alltalk"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:全局通话 {on|off}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votealltalk"
    
}
    
"Kick Player"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.6"
        "command"        "sm_kick {TARGET_NAME}"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:踢出 {TARGET_NAME}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votekick"
    
}
    
"Ban player for 30 mins"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.8"
        "command"        "sm_ban {TARGET_ID} 30"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:封禁 {TARGET_NAME} 30分钟"
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "voteban"
    
}
    
"Mute Player"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.6"
        "command"        "sm_silence "
{TARGET_ID}""
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:禁言 {TARGET_NAME}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votemute"
    
}
    
"Make player cute"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.5"
        "command"        "sm_rename {TARGET_ID} _(:з」∠)_"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 想把 {TARGET_NAME} 变成马猴烧酒"
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votecute"
    
}

The votemenu ends up on the "muteplayer" vote.
I don't know where I did wrong..Can anyone help me?
You can try to "Mute Player" like this:
PHP Code:
    "Mute Player"
    
{
        
"type"            "players"
        "vote"            "1"
        "minimum"        "4"
        "ratio"            "0.6"
        "command"        "sm_silence {TARGET_ID}"
        "start_notify"    "[SM] {VOTER_NAME} ({VOTER_STEAMID}) 发起投票:禁言 {TARGET_NAME}."
        "call_notify"    "[SM] 投票为 {yes|no}."
        "pass_notify"    "[SM] 投票通过"
        "fail_notify"    "[SM] 投票失败 收到{VOTE_AMOUNT} 需要: {VOTE_REQUIRED}"
        "chattrigger"    "votemute"
    

__________________
I'm just a guy who's a server operator for fun.
https://steamcommunity.com/groups/cfmsg
doroemon is offline
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
Reply


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 01:24.


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