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

Connecting sm_voteban to Sourcebans


Post New Thread Reply   
 
Thread Tools Display Modes
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 10-08-2012 , 16:49   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #11

Just tested votebanning myself then tried to rejoin, I was sucessfully banned.
__________________
Werewolf_UK is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-08-2012 , 16:53   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #12

I just updated the plugin earlier in the thread, try it now.
__________________
Dr. McKay is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 10-08-2012 , 17:25   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #13

Re-downloaded both files, and uploaded both to the proper respective folders. Restarted the server, connected and votebaned myself.

I now have 81 separate, 5-minutes bans, all issued at the same time! They all also list our servers website as the ban reason, not "Banned by Vote"

EDIT: Correction, one of the bans was for 30 minutes, but I only noticed it as I was mass-deleting the bans and didn't get a chance to check its listed reason
__________________

Last edited by Werewolf_UK; 10-08-2012 at 17:26. Reason: Adding details
Werewolf_UK is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-08-2012 , 19:38   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #14

Quote:
Originally Posted by sgt_phsco View Post
Re-downloaded both files, and uploaded both to the proper respective folders. Restarted the server, connected and votebaned myself.

I now have 81 separate, 5-minutes bans, all issued at the same time! They all also list our servers website as the ban reason, not "Banned by Vote"

EDIT: Correction, one of the bans was for 30 minutes, but I only noticed it as I was mass-deleting the bans and didn't get a chance to check its listed reason
I see absolutely no reason why this should happen, unless the server itself was banning you 81 times.
__________________
Dr. McKay is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 10-09-2012 , 13:32   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #15

At first I thought I could have been some kind of backlog from previous times I had been votekicked/banned because I've often used those commands on myself when testing.

However I just used voteban on 2 other players and both of them had 81 extra bans. I'm going to remove the plugin for now, but I hope this can get fixed soon
__________________

Last edited by Werewolf_UK; 10-09-2012 at 13:34.
Werewolf_UK is offline
melaf
Senior Member
Join Date: Aug 2011
Old 09-13-2013 , 04:17   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #16

__________________
melaf is offline
Potatofactory
Junior Member
Join Date: Apr 2013
Old 10-16-2013 , 07:10   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #17

Quote:
Originally Posted by Dr. McKay View Post
This should work.
I tried this and it spams the ban a huge amount of times
__________________
Howdy! I'm the wire


Last edited by Potatofactory; 11-24-2014 at 17:25.
Potatofactory is offline
Walliski
Senior Member
Join Date: May 2013
Old 10-19-2013 , 08:10   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #18

Wild guess since I am in no way a Sourcemod plugins developer: The sourcebans plugin also calls a function named BanClient, which means that when you ban a client with the plugin, the plugin will trigger itself?
Walliski is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 12-28-2013 , 12:42   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #19

I thought I'd give this another try with latest SourceBans and SourceMod.

I get this:
Quote:
L 12/28/2013 - 173:46: [SM] Plugin encountered error 8: Not enough space on the stack
L 12/28/2013 - 173:46: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 12/28/2013 - 173:46: [SM] [0] Line 2294, D:\scripting\sourcebans.sp::UTIL_InsertBan()
L 12/28/2013 - 173:46: [SM] [1] Line 2274, D:\scripting\sourcebans.sp::CreateBan()
L 12/28/2013 - 173:46: [SM] [2] Line 2389, D:\scripting\sourcebans.sp:repareBan()
L 12/28/2013 - 173:46: [SM] [3] Line 2198, D:\scripting\sourcebans.sp::Native_SBBanPlaye r()
L 12/28/2013 - 173:46: [SM] Plugin encountered error 8: Not enough space on the stack
L 12/28/2013 - 173:46: [SM] Native "SBBanPlayer" reported: Error encountered while processing a dynamic native
L 12/28/2013 - 173:46: [SM] Displaying call stack trace for plugin "sourcebans_listener.smx":
L 12/28/2013 - 173:46: [SM] [0] Line 21, /home/groups/alliedmodders/forums/files/1/5/0/8/4/5/110631.attach::OnBanClient()
__________________
Werewolf_UK is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 12-29-2013 , 20:20   Re: Connecting sm_voteban to Sourcebans
Reply With Quote #20

SBBanPlayer eventually calls banid, which calls OnBanClient again, causing an infinite loop. I think it should be more along these lines:

PHP Code:
public Action:OnBanClient(clienttimeflags, const String:reason[], const String:kick_message[], const String:command[], any:source) {
    if(
StrEqual(command"banid")) {
        return 
Plugin_Continue;
    }
    if(
source || source MaxClients) {
        return 
Plugin_Continue;
    }
    if(
source && (!IsClientInGame(source) || GetUserAdmin(source) == INVALID_ADMIN_ID)) {
        return 
Plugin_Continue;
    }
    
    
SBBanPlayer(sourceclienttimereason);
    return 
Plugin_Handled;

__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 03-14-2014 at 04:28.
DJ Tsunami 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:29.


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