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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Rednided
Junior Member
Join Date: Sep 2014
Old 08-03-2015 , 18:13   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #211

Hello, I have problems adding this plugin. I installed it, but i cant open the votemenu (Both of the commands of this plugin are an unknown command when I use the console)
I have the config and all installed and i already have added a custom vote to the list.
Rednided is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 08-03-2015 , 21:36   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #212

Hello and many thanks for this plugin. I had a question though.

How would i use a vote to ban a player for 30 minutes via sourcebans? This is what i have but it's not working. I must have made a mistake with the command.
Quote:
"Ban a player for 30 minutes?"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.8"
"command" "sm_ban {TARGET_ID} 30"
"cooldown" "600"
"maxcalls" "10"
"immunity" "6"
"bots" "0"
"call_notify" "[SM] Vote cast for {yes|no}."
"pass_notify" "[SM] Vote passed. {TARGET_ID} was banned for 30 minutes."
"fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
"chattrigger" "voteban"
}
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
Rednided
Junior Member
Join Date: Sep 2014
Old 08-04-2015 , 08:05   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #213

After further testing, i realized that some commands work. F.e. I can do !votegravity 200 400 800 in the chat and it will cast a vote with the options 200, 400 and 800. It wont use the predetermined options that are set in this plugin's cfg. I guess that !votegravity is one of the standard SM votes, right?
Rednided is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 08-04-2015 , 21:00   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #214

OK so after reading through the entire 22 pages i found out that i have to use TARGET_NAME instead of TARGET_ID. I'm running Sourcebans 1.4.11

But to my surprise it still wasn't working. And when i checked the server console i saw this:

Quote:
L 08/04/2015 - 19:50:07: [SM] Native "ReadPackString" reported: DataPack operation is out of bounds.
L 08/04/2015 - 19:50:07: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 08/04/2015 - 19:50:07: [SM] [0] Line 1070, sourcebans.sp::VerifyInsert()
I googled it and found this:

https://forums.alliedmods.net/showthread.php?p=2318224
https://github.com/Sarabveer/SourceBans-Fork/issues/14

So i'll try to install Sourcebans 1.5F and see if it works and post back. This seems to be a result of the Gunmettle update, i'd expect lots of people to have broken votemenu's because of this?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
Rednided
Junior Member
Join Date: Sep 2014
Old 08-05-2015 , 13:39   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #215

Somehow my issue resolved itself without me doing anything.
Rednided is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 08-05-2015 , 19:22   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #216

I can confirm that after upgrading to Sourcebans 1.5 beta all is good now. Voteban works and so does sm_silence. Nice thing about it is that Sourcecomms is integrated with this release so you can also manage gags and mutes via the web interface.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 08-07-2015 , 09:55   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #217

Why am I getting this error in the console when I try to load the plugin?

Code:
KeyValues Error: RecursiveLoadFromBuffer:  got empty keyname in file addons/sourcemod/configs/customvotes.cfg
Custom Votes, (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute player*), (*{*), (*options*), 
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Mute pl
NEVERMIND, found the issue.

Code:
"command"		"sm_silence "{TARGET_ID}""
You may want to remove that extra " before the {TARGET_ID} line as well as the one after it, so other people won't get the same issue. I didn't write that in there myself.
__________________

Last edited by Wormy; 08-07-2015 at 10:20.
Wormy is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 08-07-2015 , 10:33   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #218

I have run into another problem though, how do I remove the immunity for the custom1 flag? My donators on my server use the "o" flag (which is custom1) and they got vote immunity.

-- edit: Figured it out, used the "immunity" option for all votes and set to 100.
__________________

Last edited by Wormy; 08-12-2015 at 18:09.
Wormy is offline
KillermanGR
Junior Member
Join Date: Oct 2014
Old 08-09-2015 , 14:39   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #219

Would be nice if you added a global cooldown to use over the per player one.
KillermanGR is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 08-10-2015 , 13:48   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #220

[strike]Is there a way to limit how-often custom votes are started?[/strike]
Nevermind, just noticed the "cooldown" option. Duh.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 08-10-2015 at 13:50.
Weasel 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 12:57.


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