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

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


Post New Thread Reply   
 
Thread Tools Display Modes
KiR
Senior Member
Join Date: Nov 2011
Old 09-02-2015 , 18:03   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #221

Hello,
I just put up your plugin on my CSGO server.
voteban function doesn't work for me, there are no error logs
Sourcebans1.4.10

Code:
"Custom Votes"
{
"Kick player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.6"
"team" "0"
"delay"    "10"
"cooldown" "180"
"maxcalls" "10"
"immunity" "99"
"bots" "0"
"command" "sm_kick {TARGET_NAME}"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to kick {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" "votekick"
}
"Ban player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.8"
"team" "0"
"delay"    "10"
"cooldown" "180"
"maxcalls" "10"
"immunity" "99"
"bots" "0"
"command" "sm_ban {TARGET_ID} 30" //  VOTER_NAME also does not work
"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"
}
"Mute player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.6"
"team" "0"
"delay"    "10"
"cooldown" "180"
"maxcalls" "10"
"immunity" "99"
"bots" "0"
"command" "sm_silence {TARGET_NAME}"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to mute {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" "votemute"
}
}
KiR is offline
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 09-13-2015 , 20:54   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #222

I want to set custom votes for team votekick in my Scrim server,can anyone help me please ?
__________________
Patience is the key to success.
Hunter6272 is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 10-22-2015 , 12:47   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #223

Quote:
Originally Posted by KiR View Post
Hello,
I just put up your plugin on my CSGO server.
voteban function doesn't work for me, there are no error logs
Sourcebans1.4.10

Try using {TARGET_NAME} instead of {TARGET_ID} in the command section.
__________________

Last edited by Wormy; 10-22-2015 at 12:47.
Wormy is offline
cheddar
Member
Join Date: Sep 2015
Old 11-20-2015 , 14:30   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #224

Is there any way to set how long a player that's kicked is kicked for? On my server when they're kicked they just come back

Last edited by cheddar; 11-20-2015 at 14:35.
cheddar is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 11-20-2015 , 21:06   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #225

Quote:
Originally Posted by cheddar View Post
Is there any way to set how long a player that's kicked is kicked for? On my server when they're kicked they just come back
Voteban does that.
__________________
AeroAcrobat is offline
KiR
Senior Member
Join Date: Nov 2011
Old 11-28-2015 , 22:48   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #226

With this version Sourcebans 1.5.3, works great
https://forums.alliedmods.net/showthread.php?t=263735
KiR is offline
cheddar
Member
Join Date: Sep 2015
Old 11-30-2015 , 20:42   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #227

Ok I got that to work. But for some reason when we try to kick someone, if they disconnect it doesn't count the votes correctly.

For instance say "butt_hole" is griefing the server

someone starts a vote to kick/ban "butt_hole" and it starts a vote

In the middle of the vote, "butt_hole" disconnects

The vote proceeds to take place however it doesn't count the votes correctly.

Lets say "AFTER" butt_hold disconnects 6/8 people vote to remove the player. I can see that multiple people have voted "yes" but at the end it says.

Vote failed. Recieved "1" Required "6".

When I clearly can count 6 votes for "yes"...

Why?
cheddar is offline
cheddar
Member
Join Date: Sep 2015
Old 12-01-2015 , 04:00   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #228

Anyone else that's having this problem it took me about 10 hours to figure this out.

"command" "sm_addban 15 {TARGET_STEAMID} 15_Minute_Ban ; kickid {TARGET_ID} 15_Minute_Ban"

sm_addban works where the other one does not. this seems to work flawlessly. I also added in kickid which works based on id to actually remove them.

Last edited by cheddar; 12-01-2015 at 04:31.
cheddar is offline
PUNKSNOTDEAF
Junior Member
Join Date: Oct 2015
Old 12-08-2015 , 13:23   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #229

Players that have quotes in their names break the plugin, so it is better to select them via their user ids.

But setting "sm_ban #{TARGET_ID}" will result in the following command: sm_ban #"2".

Line 2169 causes that problem.
PHP Code:
QuoteString(strTargetIdsizeof(strTargetId)); 
Heres the fixed .sp and .smx

Enjoy.
Attached Files
File Type: sp Get Plugin or Get Source (customvotes.sp - 154 views - 69.7 KB)
File Type: smx customvotes.smx (53.0 KB, 130 views)

Last edited by PUNKSNOTDEAF; 12-08-2015 at 13:24.
PUNKSNOTDEAF is offline
neploho
Member
Join Date: Jul 2010
Old 12-21-2015 , 16:54   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #230

How to count the percentage of votes, if set "team 1"?
neploho 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 02:07.


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