ULX

Author Topic: Need help with the sourcebans ULX integration  (Read 1636 times)

0 Members and 1 Guest are viewing this topic.

Offline Jerpy

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Need help with the sourcebans ULX integration
« on: January 23, 2015, 05:31:58 PM »
So I've gone through lots trying to install sourcebans onto the server itself, nothing to do with ULX. After many terribly failed attempts with anything, I went back to trying the ULX integration one. This one "kind of" works at the moment. The webpanel is working, SQL is working, all of it is syncing and groups are working with no issues. Bans at the moment are not working correctly, though. So what I believe is failing is the "SBAN.PlayerAuth" part which I think would have to do the most with this. This is just a small part of a much larger script.

Code: [Select]
function SBAN.PlayerAuth( ply, steamid )
//Check if banned
SBAN.Player_CheckBanned( steamid, function( bid, reason, length )
if bid != nil then
//Kicks player and adds a block to SBAN
SBAN.Kick( ply, reason, length )
SBAN.Player_AddBlock( ply, bid )
else
SBAN.Admin_Update( ply )
end
end )
end
hook.Add( "PlayerAuthed", "sban_ulx_auth", SBAN.PlayerAuth)

Tell me if you see any issues in this code because it doesn't seem to be working. When banning a player, the ban is added to the database along with all the correct info but when they attempt to rejoin they have no issue in doing so. No blocks are added to the database and the player is not kicked. Has anyone else tried to use this script and did they run into any similar issues?