Raised This Month: $188 Target: $400
 47% 

Global banlist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-30-2006 , 21:40   Global banlist
Reply With Quote #1

v0.2b1

Get it here (Source)
*Note that timed bans do not expire with that version, for a fix, see the end of this thread.

Features:
Amxbans integration (for front end)
Threaded updates (no hurting game server performance)

Installation instructions:
Web:
  • Install and configure amxbans.. it's available from amxbans.net. Follow the default install instructions.
  • Open up checkid.php, edit the variables to the same ones you installed amxbans with
  • Upload checkid.php, remember where you put it

Server plugin:
  • Extract/upload it to \addons\
  • Install it like a normal plugin.
  • Add the following variables to your server.cfg
    Code:
    //This should be the correct URL to checkid.php
    banlist_check_url "http://somewebsite.com/checkid.php?steamid=%s"
    //The amount of time to ban banned people for (in minutes) (-1 will just kick them)
    banlist_bantime -1
    //The message to kick banned players with
    banlist_kickmsg "Banned"
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/

Last edited by devicenull; 03-28-2007 at 18:37.
devicenull is offline
germannavy
Member
Join Date: Dec 2004
Old 05-14-2006 , 16:32  
Reply With Quote #2

i think that will be a great plugin.

we have five 20slot css server and wemust update the banlist manuely.
can i only use localhost as database or works it also with another database not on the same machine.

see our server here:
http://www.bandofgamers.de/serverpark.php
germannavy is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-14-2006 , 19:26  
Reply With Quote #3

The way it's currently set up to update is by downloading updates from a web server.. I've got a php script that ties in with amxbans.

It's currently running on a few sourceforts server's, and updating fine over the internet..

Can you get on irc? irc.gamesurge.net channel #sourcemod .. It will probably be easier to discuss that way.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
germannavy
Member
Join Date: Dec 2004
Old 05-15-2006 , 04:26  
Reply With Quote #4

irc will be a problem, because the time differenz

can you give me the plugin and a little instruction ?

i think it will the best when i test the functions of the plugin
germannavy is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-15-2006 , 18:04  
Reply With Quote #5

Okay, to use this with amxbans, you have to do a few things:
Make sure you have MySQL and PHP5.
Along with PHP5, you need two extensions enabled: php_pdo and php_pdo_sqlite.
Install amxbans.. it's on amxmodx.org in the plugins forum.

You can add any bans or admins that you want at this point. One note: Rather then deleting bans from the amxbans database, you must unban them. Failure to do this will result in the person not being unbanned from all servers. I recommend that you do not give anyone access to delete bans.

Next, you need to create a directory for the web portion of the plugin.. it can be anywhere you like. Under that, you need a temp directory.. I named mine "temp"

Tree view of my amxbans folder:
Code:
amxbans
├───admin
├───images
├───include
├───plugin
│   └───temp
├───smarty
├───templates
└───tmp
(I removed amxban's subdirectories from the list)

Next, extract both the files from the web-0.11.zip file to the directory you just created. Open config.php and fill in the correct details. The path to temp variable must have any single slashes "\" replaced with double slashes "\\", like it is.

That's it for right now, there's a few things I need to modify in the serverside plugin, so you can actually change them. Any questions about the web stuff?

(See first post for download)
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/

Last edited by devicenull; 06-27-2006 at 18:08.
devicenull is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-15-2006 , 22:31  
Reply With Quote #6

Onto the server plugin:
Extract it to \addons\
Install it like a normal plugin.
You need to set two cvars:
banlist_update .. The number of hours between updates.
banlist_url .. The url to the update script. This is the path to getupdates.php in the plugin script.

And thats it.. everything should work from there. The plugin keeps track of it's bans internally.. anyone who joins and is on it's list will be banned for an hour. This prevents it from spamming the server's banlist.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Rebell
Veteran Member
Join Date: Nov 2004
Location: GERMANY
Old 05-16-2006 , 00:50  
Reply With Quote #7

This is a good idea , but whats with sharedbans ?

It looks the same...

__________________
Rebell is offline
tcviper
BANNED
Join Date: Oct 2005
Location: Netherlands
Old 05-16-2006 , 04:37  
Reply With Quote #8

Sharedbans is a global banning list in general which can work in a combination with this plugin. This plugin is more meant for your own servers.
tcviper is offline
Send a message via MSN to tcviper
germannavy
Member
Join Date: Dec 2004
Old 05-16-2006 , 05:25  
Reply With Quote #9

i thought that amxbans is only a cs1.6 plugin and not for source servers
germannavy is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-16-2006 , 15:23  
Reply With Quote #10

AmxBans is a HL1 plugin yes. I make use of the web frontend, which is independent of the HL1 stuff. It works out rather nice, because then I don't have to write my own front end.

This plugin works pretty much the same as sharedbans, but you can decide who is banned.. This plugin would be overkill for one server, but there's no easy way to managed multiple server's banlists in HL2
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull 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 05:55.


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