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

Sourcebans 1.4.11 Custom Edit to check IP+Steam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ownage Gaming
SourceMod Donor
Join Date: Aug 2011
Old 04-24-2015 , 07:43   Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #1

I made this quick little edit to the sourcebans 1.4.11 that still works for the 1.6.2 sourcemod release for anybody who wants it.

We had a problem where we would ban people and they would just rejoin with a new Steam account since they weren't being specifically banned via the IP. This version of the code changes the way it queries the database to "Check if Steam ID is banned AND check if the IP is banned" If either of these hit then it will count as a ban. I am the type that want all my bans to check for BOTH, not one or the other and this is my work around. If you still want to only ban via IP or via Steam then I wouldn't use this.... The only reason I made this is currently there was no way to ban via both IP and Steam ID even though they are both in the database after you banned somebody.

The attached .zip includes both the edited source and a compiled version of the sourcecode.
Attached Files
File Type: zip sourcebansIP.zip (51.7 KB, 71 views)

Last edited by Ownage Gaming; 04-24-2015 at 07:56.
Ownage Gaming is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-24-2015 , 10:23   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #2

[ANY] SourceSleuth is already capable of doing this.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 04-24-2015 , 15:13   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #3

Quote:
Originally Posted by arne1288 View Post
[ANY] SourceSleuth is already capable of doing this.
LOL.

SourceSleuth's code is in my plugin too.
__________________
Sarabveer is offline
Ownage Gaming
SourceMod Donor
Join Date: Aug 2011
Old 04-24-2015 , 15:58   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #4

Yes, I was hoping to avoid additional plugins on the server. I figured editing a single line of code to get the result I wanted instead of adding additional stuff to the server was the better route to go.

I also know that the new Forked version of sourcebans is able to do this, but that would require upgrading sourcemod to 1.7 which would break a couple of other plugins on my server and I just don't really have the need to do so currently.
Ownage Gaming is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 04-24-2015 , 18:14   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #5

Quote:
Originally Posted by Ownage Gaming View Post
Yes, I was hoping to avoid additional plugins on the server. I figured editing a single line of code to get the result I wanted instead of adding additional stuff to the server was the better route to go.

I also know that the new Forked version of sourcebans is able to do this, but that would require upgrading sourcemod to 1.7 which would break a couple of other plugins on my server and I just don't really have the need to do so currently.
It's still compatible with 1.6.x, just that in the future, it wont be.
__________________
Sarabveer is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 04-24-2015 , 18:18   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #6

Quote:
Originally Posted by Sarabveer View Post
It's still compatible with 1.6.x, just that in the future, it wont be.
Let me juts show you your requirements:

Quote:
Originally Posted by Sarabveer View Post
Code:
 * Webserver
   o PHP 5.4 or higher
     * ini setting: memory_limit greater than or equal to 64M
   o MySQL 5.6 or higher
 * Source Dedicated Server
   o MetaMod: Source
   o SourceMod: Greater Than or Equal To 1.7
   o SteamWorks Extension
Rytis is offline
Ownage Gaming
SourceMod Donor
Join Date: Aug 2011
Old 04-24-2015 , 18:37   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #7

If that is the case I will look into your Forked version again. Last time I looked at it, it looked like a great idea but it still used other plugins which is something that I was hoping to avoid. This is a great alternative to anybody who just wants to ban people via both without needing all the extra stuff that your plugin is starting to include.
Ownage Gaming is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 04-24-2015 , 19:51   Re: Sourcebans 1.4.11 Custom Edit to check IP+Steam
Reply With Quote #8

Quote:
Originally Posted by Ownage Gaming View Post
If that is the case I will look into your Forked version again. Last time I looked at it, it looked like a great idea but it still used other plugins which is something that I was hoping to avoid. This is a great alternative to anybody who just wants to ban people via both without needing all the extra stuff that your plugin is starting to include.
The other plugins are just sourcecomms.
__________________
Sarabveer 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 09:34.


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