View Single Post
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, 72 views)

Last edited by Ownage Gaming; 04-24-2015 at 07:56.
Ownage Gaming is offline