Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: Ninjadude101 on May 29, 2009, 11:15:20 AM

Title: Sourcebans integration
Post by: Ninjadude101 on May 29, 2009, 11:15:20 AM
I've been looking into this quite a lot today, and I think some of you might be interested too.
I found someones attempt at creating a sourcebans compatable module for ULX, although they do not have garrysmod so were unable to test. I downloaded the script and had a look and fixed up a few things.

Long story short, I give you working code to create 3 functions (and ULX commands) to ban/unban using SourceBans.
I admit, my code could be cleaner, If anyone could take the time to cleanse it for me I'd be greatful but since it works as-is I'm going to leave it be.

Chat commands:
!sban <name> <time> <reason> -- Ban a user by their name (Uses sm_ban)
!sbanid <steamid> <time> <reason> -- Ban a user by their SteamID (Uses sm_addban)
!sunban <steamid> -- Unbans a user by their SteamID (Uses sm_unban)

Console commands:
ulx sban <name> <time> <reason> -- Ban a user by their name (Uses sm_ban)
ulx sbanid <steamid> <time> <reason> -- Ban a user by their SteamID (Uses sm_addban)
ulx sunban <steamid> -- Unbans a user by their SteamID (Uses sm_unban)

While I HAVE tested this code and confirm it to be working with ULX SVN revision 27, I make no guarantee that it will work for you, you may have a conflicting addon or garry may have broken something AGAIN.

Original credit goes to Alteran Ancient of www.interwavestudios.com/forums for the original release.

If this does break in future, and I'm still using it, I will most likely post a fix, If I'm not still using sourcebans to track my server bans then I'm sorry but I doubt I will have much interest in fixing this.

And here's the code!
Code: [Select]
ulx.setCategory( "Sourcebans" )
function ulx.cc_sban( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local target, err = ULib.getUser( argv[ 1 ], _, ply )
local target1 = ( "#" .. target:UserID() )

if not target then
ULib.tsay( ply, err, true )
return
end

local bantime = tonumber( argv[ 2 ] ) or 0
local dummy, dummy, reason = args:find( "^\"*" .. ULib.makePatternSafe( argv[ 1 ] ) .. "\"*%s+" .. ULib.makePatternSafe( argv[ 2 ] or "" ) .. "%s+(.*)$" )
reason = reason or "" -- Make sure it has a value

if bantime < 0 then
ULib.tsay( ply, "Invalid number!", true )
return
end

local time = "for " .. bantime .. " minute(s)"
//if bantime == 0 then time = "permanently" end
if reason ~= "" then reason = "(" .. reason .. ")" end
ulx.logUserAct( ply, target, "#A banned #T " .. time .. " " .. reason )

ply:ConCommand( "sm_ban " .. target1 .. " " .. bantime .. " " .. reason )
end
ulx.concommand( "sban", ulx.cc_sban, "<user> [<time>] [<reason>] - Bans a user for x minutes with Sourcebans, use 0 for permaban.", ULib.ACCESS_ADMIN, "!sban", _, ulx.ID_PLAYER_HELP )
ulx.addToMenu( ulx.ID_MCLIENT, "Sourcebans Ban (perma)", "ulx sban #T 0" )
ulx.addToMenu( ulx.ID_MCLIENT, "Sourcebans Ban (5 mins)", "ulx sban #T 5" )
ulx.addToMenu( ulx.ID_MCLIENT, "Sourcebans Ban (60 mins)", "ulx sban #T 60" )
ulx.addToMenu( ulx.ID_MCLIENT, "Sourcebans Ban (1 day)", "ulx sban #T 1440" )

function ulx.cc_sbanid( ply, cmd, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

if not string.find( argv[ 1 ], "STEAM_%d:%d:%d+" ) then
ULib.tsay( ply, "Invalid steamid." )
return
end

local bantime = tonumber( argv[ 2 ] ) or 0

if bantime < 0 then
ULib.tsay( ply, "Invalid number!", true )
return
end

local reason = string.gsub( args, "%s*" .. argv[ 1 ] .. "%s*" .. argv[ 2 ] .. "%s*", "" )

local time = "for " .. bantime .. " minute(s)"
//if bantime == 0 then time = "permanently" end
if reason then
ulx.logServAct( ply, string.format( "#A banned id %s %s (%s)", argv[ 1 ], time, reason ) )
else
ulx.logServAct( ply, string.format( "#A banned id %s %s", argv[ 1 ], time ) )
end
//ULib.addBan( argv[ 1 ], bantime, reason, nil, ply )

if file.Exists( "../cfg/banned_user.cfg" ) then
ULib.execFile( "../cfg/banned_user.cfg" )
end
ply:ConCommand("sm_addban " .. bantime .. " " .. argv[ 1 ] .. " " .. reason )
end
ulx.concommand( "sbanid", ulx.cc_sbanid, "<steamid> [<time>] [<reason>] - Add a steamid to Sourcebans database, use 0 for perma.", ULib.ACCESS_ADMIN, "!sbanid", _, ulx.ID_HELP )

function ulx.cc_sunban( ply, cmd, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

if not string.find( argv[ 1 ], "STEAM_%d:%d:%d+" ) then
ULib.tsay( ply, "Invalid steamid.", true )
return
end

ply:ConCommand("sm_unban " .. argv[ 1 ] )

ulx.logServAct( ply, "#A unbanned steamid " .. argv[ 1 ] )
end
ulx.concommand( "sunban", ulx.cc_sunban, "<steamid> - Remove the specified steamid from the banlist.", ULib.ACCESS_ADMIN, "!sunban", _, ulx.ID_HELP )

Simply create a file called sban.lua in addons\Sourcebans ULX Integration\lua\ulx\modules and paste this code inside.
Title: Re: Sourcebans integration
Post by: JamminR on May 29, 2009, 11:52:47 AM
Been discussed much here. I didn't have sourcebans to test.
Couldn't find many willing testers.
And now currently don't have Gmod installed.
Anyway, here's a post by Megiddo, which I linked to other discussions in my reply.
http://forums.ulyssesmod.net/index.php/topic,3835.0.html
Title: Re: Sourcebans integration
Post by: Snowden42 on April 07, 2010, 11:06:10 AM
I hate to bump a super old topic, but I'm wondering two things:

Does this still work?
Is there any way to replace the standard ulx ban buttons on the derma with these commands?
Title: Re: Sourcebans integration
Post by: JamminR on April 07, 2010, 04:01:24 PM
This wouldn't work with ULX svn.. command structure totally re-written.
As for replacement, this already adds to menu, you'd have to remove default ban button codes.
That too wouldn't be difficult.
Title: Re: Sourcebans integration
Post by: Megiddo on April 08, 2010, 01:28:21 PM
Moved a long sub-thread out of this thread to here: http://forums.ulyssesmod.net/index.php/topic,4632.0.html
Title: Re: Sourcebans integration
Post by: Buggzie on June 13, 2010, 06:36:22 AM
Since this is dead and i've got multiple servers and want them all connected through sourcebans, could someone have a go at fixing this, i mean do i have to install sourcemod onto my garrys mod server, I'm pretty sure it will not work because it runs on .dll files not lua.

Thanks for reading

~Eye
Title: Re: Sourcebans integration
Post by: JamminR on June 13, 2010, 10:44:39 AM
go at fixing this, i mean do i have to install sourcemod onto my garrys mod server,
Once our SVN is put out as a release, I plan on having a go at converting many of the releases that would be easy to convert.
This is one of them.,
As for SourceMod installation, yes, this and every other sourceban lua release I've seen is intended for SourceBans running on the gmod server.
When this release was made SourceBans could be installed following instructions found through Google or other search engines.
I've no idea about now.
Title: Re: Sourcebans integration
Post by: mishappp on July 24, 2010, 07:34:47 PM
Is there any news on this, does this work, or has it been converted, I really need this.
Title: Re: Sourcebans integration
Post by: ZachPL on November 04, 2012, 03:35:11 PM
I realize this is dead and super old, but if someone could get ulx working with sourcebans on gmod 13 I would be forever happy.

Also willing to test with a large server.
Title: Re: Sourcebans integration
Post by: Tristian Wood on November 04, 2012, 08:52:21 PM
I realize this is dead and super old, but if someone could get ulx working with sourcebans on gmod 13 I would be forever happy.

Also willing to test with a large server.
I agree It would be extremely helpful.
Title: Re: Sourcebans integration
Post by: iSnipeu on November 04, 2012, 09:24:12 PM
Code: [Select]
local CATEGORY_NAME = "Sourcebans"

function ulx.sban( calling_ply, target_ply, minutes, reason )
if target_ply:IsBot() then
ULib.tsayError( calling_ply, "Cannot ban a bot", true )
return
end

calling_ply:ConCommand( "sm_ban #" .. target_ply:UserID() .. " " .. minutes .. " " .. (reason or "") )

local time = "for #i minute(s)"
if minutes == 0 then time = "permanently" end
local str = "#A sourcebanned #T " .. time
if reason and reason ~= "" then str = str .. " (#s)" end
ulx.fancyLogAdmin( calling_ply, str, target_ply, minutes ~= 0 and minutes or reason, reason )
end
local sban = ulx.command( CATEGORY_NAME, "ulx sban", ulx.sban, "!sban" )
sban:addParam{ type=ULib.cmds.PlayerArg }
sban:addParam{ type=ULib.cmds.NumArg, hint="minutes, 0 for perma", ULib.cmds.optional, ULib.cmds.allowTimeString, min=0 }
sban:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
sban:defaultAccess( ULib.ACCESS_ADMIN )
sban:help( "Bans target via sourcebans." )

function ulx.sbanid( calling_ply, steamid, minutes, reason )
steamid = steamid:upper()
if not ULib.isValidSteamID( steamid ) then
ULib.tsayError( calling_ply, "Invalid steamid." )
return
end

local name
local plys = player.GetAll()
for i=1, #plys do
if plys[ i ]:SteamID() == steamid then
name = plys[ i ]:Nick()
break
end
end

calling_ply:ConCommand( "sm_addban " .. minutes .. " " .. steamid .. " " .. (reason or "") )

local time = "for #i minute(s)"
if minutes == 0 then time = "permanently" end
local str = "#A sourcebanned steamid #s "
if name then
steamid = steamid .. "(" .. name .. ") "
end
str = str .. time
if reason and reason ~= "" then str = str .. " (#4s)" end
ulx.fancyLogAdmin( calling_ply, str, steamid, minutes ~= 0 and minutes or reason, reason )
end
local sbanid = ulx.command( CATEGORY_NAME, "ulx sbanid", ulx.sbanid )
sbanid:addParam{ type=ULib.cmds.StringArg, hint="steamid" }
sbanid:addParam{ type=ULib.cmds.NumArg, hint="minutes, 0 for perma", ULib.cmds.optional, ULib.cmds.allowTimeString, min=0 }
sbanid:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
sbanid:defaultAccess( ULib.ACCESS_SUPERADMIN )
sbanid:help( "Bans steamid via sourcebans." )

function ulx.sunban( calling_ply, steamid )
steamid = steamid:upper()
if not ULib.isValidSteamID( steamid ) then
ULib.tsayError( calling_ply, "Invalid steamid." )
return
end

calling_ply:ConCommand( "sm_unban " .. steamid )
ulx.fancyLogAdmin( calling_ply, "#A unbanned steamid #s", steamid )
end
local sunban = ulx.command( CATEGORY_NAME, "ulx sunban", ulx.sunban )
sunban:addParam{ type=ULib.cmds.StringArg, hint="steamid" }
sunban:defaultAccess( ULib.ACCESS_ADMIN )
sunban:help( "Unbans steamid via sourcebans." )

This should work, but I don't have sourcebans so I'm unable to test it.
Title: Re: Sourcebans integration
Post by: Tristian Wood on November 04, 2012, 10:02:50 PM
Code: [Select]
local CATEGORY_NAME = "Sourcebans"

function ulx.sban( calling_ply, target_ply, minutes, reason )
if target_ply:IsBot() then
ULib.tsayError( calling_ply, "Cannot ban a bot", true )
return
end

calling_ply:ConCommand( "sm_ban #" .. target_ply:UserID() .. " " .. minutes .. " " .. (reason or "") )

local time = "for #i minute(s)"
if minutes == 0 then time = "permanently" end
local str = "#A sourcebanned #T " .. time
if reason and reason ~= "" then str = str .. " (#s)" end
ulx.fancyLogAdmin( calling_ply, str, target_ply, minutes ~= 0 and minutes or reason, reason )
end
local sban = ulx.command( CATEGORY_NAME, "ulx sban", ulx.sban, "!sban" )
sban:addParam{ type=ULib.cmds.PlayerArg }
sban:addParam{ type=ULib.cmds.NumArg, hint="minutes, 0 for perma", ULib.cmds.optional, ULib.cmds.allowTimeString, min=0 }
sban:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
sban:defaultAccess( ULib.ACCESS_ADMIN )
sban:help( "Bans target via sourcebans." )

function ulx.sbanid( calling_ply, steamid, minutes, reason )
steamid = steamid:upper()
if not ULib.isValidSteamID( steamid ) then
ULib.tsayError( calling_ply, "Invalid steamid." )
return
end

local name
local plys = player.GetAll()
for i=1, #plys do
if plys[ i ]:SteamID() == steamid then
name = plys[ i ]:Nick()
break
end
end

calling_ply:ConCommand( "sm_addban " .. minutes .. " " .. steamid .. " " .. (reason or "") )

local time = "for #i minute(s)"
if minutes == 0 then time = "permanently" end
local str = "#A sourcebanned steamid #s "
if name then
steamid = steamid .. "(" .. name .. ") "
end
str = str .. time
if reason and reason ~= "" then str = str .. " (#4s)" end
ulx.fancyLogAdmin( calling_ply, str, steamid, minutes ~= 0 and minutes or reason, reason )
end
local sbanid = ulx.command( CATEGORY_NAME, "ulx sbanid", ulx.sbanid )
sbanid:addParam{ type=ULib.cmds.StringArg, hint="steamid" }
sbanid:addParam{ type=ULib.cmds.NumArg, hint="minutes, 0 for perma", ULib.cmds.optional, ULib.cmds.allowTimeString, min=0 }
sbanid:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
sbanid:defaultAccess( ULib.ACCESS_SUPERADMIN )
sbanid:help( "Bans steamid via sourcebans." )

function ulx.sunban( calling_ply, steamid )
steamid = steamid:upper()
if not ULib.isValidSteamID( steamid ) then
ULib.tsayError( calling_ply, "Invalid steamid." )
return
end

calling_ply:ConCommand( "sm_unban " .. steamid )
ulx.fancyLogAdmin( calling_ply, "#A unbanned steamid #s", steamid )
end
local sunban = ulx.command( CATEGORY_NAME, "ulx sunban", ulx.sunban )
sunban:addParam{ type=ULib.cmds.StringArg, hint="steamid" }
sunban:defaultAccess( ULib.ACCESS_ADMIN )
sunban:help( "Unbans steamid via sourcebans." )

This should work, but I don't have sourcebans so I'm unable to test it.
I'll test it, but where do I put it?
Title: Re: Sourcebans integration
Post by: iSnipeu on November 04, 2012, 10:04:22 PM
lua\ulx\modules\sh\sourcebans.lua
Title: Re: Sourcebans integration
Post by: ZachPL on November 05, 2012, 05:30:54 AM
Alright first of all thanks for the help, but I am slightly confused on how this works...

Does this module require sourcemod in order to function correctly and if so I thought sourcemod is not compatible with gmod13. This is what is currently showing trying to use console command sm_ban

http://cloud-2.steampowered.com/ugc/939259113205840370/5E99A66529982528E85EE1A9F5DCCB4DC32E25BC/

Also the xgui part seems to be a little bit funky.

Title: Re: Sourcebans integration
Post by: Stickly Man! on November 05, 2012, 10:35:20 AM
Also the xgui part seems to be a little bit funky.

Yeah.. one of these days I'll get around to fixing that.
Title: Re: Sourcebans integration
Post by: Megiddo on November 05, 2012, 02:11:53 PM
We've been discussing possibly integrating sourcebans into ULX at some point in the future (read: long after we're sure everything's stable in GM13). That is, if sourcebans is available, that would be used instead of the traditional ULib ban system. There certainly seems to be enough interest in this area...
Title: Re: Sourcebans integration
Post by: JamminR on November 05, 2012, 02:29:34 PM
Yes, sourcemod would be required running on the server.
Any ulx admin with access to the ulx sban commands would also have to be registered in Sourcemod as someone with the access to perform the commands.
Title: Re: Sourcebans integration
Post by: Tristian Wood on November 05, 2012, 06:14:22 PM
Well I'm willing to use my servers as test servers, If that would be of any help
Title: Re: Sourcebans integration
Post by: ZachPL on November 05, 2012, 06:16:14 PM
I didn't even realize the original idea used sourcemods in this thread, woops. But yeah, it would be amazing if you guys could integrate ulx with sourcebans all our other servers are connected with sourcebans and it would make admining much easier.

Keep up the good work guys  :P
Title: Re: Sourcebans integration
Post by: kaytaro on November 05, 2012, 07:31:18 PM
i tried banning myself lol and i didn't :S
Title: Re: Sourcebans integration
Post by: JamminR on November 05, 2012, 08:17:36 PM
Can you ban yourself using the actual sourcemod command (I think it's sban - not sure)
As another person commented, is sourcemod compatible/will it run on Gmod13 servers?
Title: Re: Sourcebans integration
Post by: talmera on November 05, 2012, 08:22:42 PM
Can you ban yourself using the actual sourcemod command (I think it's sban - not sure)
As another person commented, is sourcemod compatible/will it run on Gmod13 servers?

MM and SM dont work as of Gmod13 and they don't plan to update meta mod for a while.
Title: Re: Sourcebans integration
Post by: iSnipeu on November 05, 2012, 08:31:51 PM
You could take a shot at using this (http://www.facepunch.com/showthread.php?t=980687)
Title: Re: Sourcebans integration
Post by: XenGaming on November 11, 2012, 11:27:34 AM
Installed it fine, but when I try banning someone..  i.e L 11/11/2012 - 19:21:18: [ULX] XenZibe sourcebanned Themself permanently (reason)
It does nothing but display that message, it doesn't kick or do anything just shows that in chat...
Can anyone help? (willing to pay)
Title: Re: Sourcebans integration
Post by: JamminR on November 11, 2012, 02:31:56 PM
XenGaming, is SourceBans/SourceMod working on your GMOD13 Server?
That is, can you use the SourceMod console command, without ULX, to ban/kick people?

All the code discussed in this thread does is run SourceMod commands from player or server console.
Admins who have the ULX access to run ulx command also have to be registered with a working copy of SourceMods.

As of two posts ago...SourceMod wasn't working in Gmod13.
Title: Re: Sourcebans integration
Post by: XenGaming on November 12, 2012, 08:45:58 AM
XenGaming, is SourceBans/SourceMod working on your GMOD13 Server?
That is, can you use the SourceMod console command, without ULX, to ban/kick people?

All the code discussed in this thread does is run SourceMod commands from player or server console.
Admins who have the ULX access to run ulx command also have to be registered with a working copy of SourceMods.

As of two posts ago...SourceMod wasn't working in Gmod13.

Yup its working fine (apart from the issue I described in my previous post)
It also works through console, but then again I get the same issue

Through console:
] ulx sban "Babaloo" 1 test
You sourcebanned Babaloo for 1 minute(s) (test)
Unknown command: sm_ban

Through ULX:
You sourcebanned Babaloo permanently (reason)

Title: Re: Sourcebans integration
Post by: JamminR on November 12, 2012, 07:06:50 PM
"Unknown command: sm_ban" <--- Indicates to me you don't have SourceMod installed/working on your Gmod server.
SourceMod is a binary mod that allows steam bans across multiple steam server types (CSS, TF2, etc), using commands such as 'sm_ban' and others that I don't know. (sm_kick?)

If you do not have SourceMod working on the server, or you can't run the sm_ban command by itself from your own console without ULX, this ULX module won't work.
Title: Re: Sourcebans integration
Post by: PAL-18 on November 25, 2012, 12:55:55 PM
Anyone know how to get this addon to replace the default ban function of ULX?
Title: Re: Sourcebans integration
Post by: talmera on November 26, 2012, 07:16:22 PM
Anyone know how to get this addon to replace the default ban function of ULX?

you cant yet as SB does not work in Gmod13 yet
Title: Re: Sourcebans integration
Post by: iSnipeu on November 26, 2012, 08:47:15 PM
you cant yet as SB does not work in Gmod13 yet

Actually you can add bans and stuff like that by doing querys on the sourcebans database. (using a module like mysqloo)
Title: Re: Sourcebans integration
Post by: PAL-18 on December 03, 2012, 12:58:09 AM
What did Gmod 13 change that broke sourcebans?  I got the attention of the developer of sourcebans and he's willing to fix it but he needs to know what broke (he doesnt seem to want to research it himself)
Title: Re: Sourcebans integration
Post by: talmera on December 04, 2012, 05:50:36 PM
What did Gmod 13 change that broke sourcebans?  I got the attention of the developer of sourcebans and he's willing to fix it but he needs to know what broke (he doesnt seem to want to research it himself)

it is not sourcebans or sourcemod it is metamod that is broken (as far as I know) it has nothing to do with sourcebans.
Title: Re: Sourcebans integration
Post by: PAL-18 on December 05, 2012, 12:48:40 PM
Sourcebans relies on Sourcemod though, not Metamod (its plugin is built in small scripting language that sourcemod uses, metamod uses c++).

Weeks ago i asked the developer of Metamod Source & Sourcemod if they were going to make a Gmod 13 compatible version and they said they dont have any plans for the future. So the odds of one being made is very very low.

So in other words.  We're all fricked.
Title: Re: Sourcebans integration
Post by: Megiddo on December 05, 2012, 01:39:32 PM
Sourcebans relies on Sourcemod though, not Metamod (its plugin is built in small scripting language that sourcemod uses, metamod uses c++).

Weeks ago i asked the developer of Metamod Source & Sourcemod if they were going to make a Gmod 13 compatible version and they said they dont have any plans for the future. So the odds of one being made is very very low.

So in other words.  We're all fricked.

So the real question then is, what did garry change that broke compatibility with these?
Title: Re: Sourcebans integration
Post by: centran on December 05, 2012, 02:28:03 PM
So in other words.  We're all fricked.

Anyone who wants sourcebans is not fricked. You don't need sourcemod to run sourcebans.

There was a script made that access the sourcebans DB directly. I posted a forum topic on how to integrate it with ULX. http://forums.ulyssesmod.net/index.php/topic,5875.0.html
I posted a new topic because this one is outdated. Even if sourcemod worked with gmod13 this script still wouldn't work with the current version of ulx.
Title: Re: Sourcebans integration
Post by: PAL-18 on December 08, 2012, 02:47:53 PM
Apparently ALOT has changed in Gmod 13.  Garry forked off his own version of the orangebox engine and most things have changed.

The Sourcemod/Metamod Source team would have to reverse engineer Gmod 13 to fix it and to do that to a new engine is a huge undertaking plus only a few hundred servers were using Sourcemod/Metamod so they dont see it a feasible course of action.
Title: Re: Sourcebans integration
Post by: Megiddo on December 08, 2012, 07:33:19 PM
Apparently ALOT has changed in Gmod 13.  Garry forked off his own version of the orangebox engine and most things have changed.

The Sourcemod/Metamod Source team would have to reverse engineer Gmod 13 to fix it and to do that to a new engine is a huge undertaking plus only a few hundred servers were using Sourcemod/Metamod so they dont see it a feasible course of action.

Ah yes, I remember Garry talking about wanting to modify core engine functions, now. Can't blame the sourcemod/metamod people at all for their choice.
Title: Re: Sourcebans integration
Post by: PAL-18 on December 11, 2012, 07:17:40 PM
Anyone who wants sourcebans is not fricked. You don't need sourcemod to run sourcebans.

There was a script made that access the sourcebans DB directly. I posted a forum topic on how to integrate it with ULX. http://forums.ulyssesmod.net/index.php/topic,5875.0.html
I posted a new topic because this one is outdated. Even if sourcemod worked with gmod13 this script still wouldn't work with the current version of ulx.

By "this script", do you mean the one in this thread or the script in all threads?
Title: Re: Sourcebans integration
Post by: centran on December 11, 2012, 10:09:24 PM
By "this script", do you mean the one in this thread or the script in all threads?

I mean the one in this thread.
Title: Re: Sourcebans integration
Post by: PAL-18 on December 19, 2012, 01:05:43 PM
You can't update the script to work the the current ULX?
Title: Re: Sourcebans integration
Post by: centran on December 19, 2012, 01:43:06 PM
You can't update the script to work the the current ULX?
You could but ULX does things differently now. Problem is this method relied on installed sourcemod and all it did was pass the command to console.... sm_ban

There is a script that has been written to directly interact with the sourcebans database so you don't need sourcemod. Sourcemod won't work with gmod 13 anyway.

I wrote up a new topic that is a "rewrite" of the code(if you want to call it that). However, my method uses the database script. It also doesn't pass the command to console but to the script. Therefore it integrates more nicely into ULX.
http://forums.ulyssesmod.net/index.php/topic,5875.0.html