[Include] jBan - MySQL Ban System with timed bans
#1

Introduction

jBan is a simple include that will allow server owners to easily have a player banning system using a MySQL database as the storage center for the ban information. It should be compatible with just about every script out there, I've taken steps to ensure that there are no conflicts with other scripts and that it should be as easy to use as possible for newbies.

What's in the package?
  • The jBan include
  • An example Filterscript
  • An example website
Instructions

Make sure that the jBan include has been put into your "pawno/includes" directory, then simply add the following to the script you wish to use jBan in:
pawn Код:
#include <jBan>
Next you need to open up your jBan.inc file and edit the settings in there accordingly, you will need to at least enter in the details of your MySQL server and database.

Then you simply add the ban/unban functions where you need them and let the include do the work, if you're confused about it at this stage, please look at the Filterscript provided in the download package as an example.

Functions

pawn Код:
native jBan(player_banned, player_banner, reason[], time = 0);
// This function will create a new ban for player_banned by player_banner with a reason[] and a time. The time parameter can be used to set the ban length in minutes, it defaults to 0 (permanent).

native jUnbanName(name[], bool:expired = false);
//This function will remove a ban from the list with the name you specify. The expired parameter will specify whether or not you want to remove bans that have expired, it defaults to false, which will not remove expired bans.

native jUnbanIP(IP[], bool:expired = false);
// This function will remove a ban from the list with the IP you specify. The expired parameter will specify whether or not you want to remove bans that have expired, it defaults to false, which will not remove expired bans.
Download
https://github.com/JaTochNietDan/jBan/releases/tag/1.0

Credits
G-sTyLeZzZ - MySQL plugin
****** - sscanf and hooking methods
Reply


Messages In This Thread
jBan - MySQL Ban System with timed bans - by JaTochNietDan - 15.07.2011, 03:17
Re: jBan - MySQL Ban System with timed bans - by Donya - 15.07.2011, 03:19
Re: jBan - MySQL Ban System with timed bans - by DRIFT_HUNTER - 15.07.2011, 03:43
Re: jBan - MySQL Ban System with timed bans - by Lorenc_ - 15.07.2011, 03:52
Re: jBan - MySQL Ban System with timed bans - by Scenario - 15.07.2011, 04:18
Re: jBan - MySQL Ban System with timed bans - by Lorenc_ - 15.07.2011, 05:04
Re: jBan - MySQL Ban System with timed bans - by Cypress - 15.07.2011, 06:44
Re: jBan - MySQL Ban System with timed bans - by BaubaS - 15.07.2011, 07:16
Re: jBan - MySQL Ban System with timed bans - by FireCat - 15.07.2011, 08:45
Re: jBan - MySQL Ban System with timed bans - by Swiftz - 15.07.2011, 08:47
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 15.07.2011, 12:59
Re: jBan - MySQL Ban System with timed bans - by [HiC]TheKiller - 15.07.2011, 13:07
Re: jBan - MySQL Ban System with timed bans - by Scenario - 15.07.2011, 18:39
Re: jBan - MySQL Ban System with timed bans - by Davz*|*Criss - 15.07.2011, 19:09
Re: jBan - MySQL Ban System with timed bans - by John_Cooper - 16.07.2011, 04:10
Re: jBan - MySQL Ban System with timed bans - by Calgon - 16.07.2011, 04:26
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 16.07.2011, 06:05
Re: jBan - MySQL Ban System with timed bans - by John_Cooper - 16.07.2011, 09:18
Re: jBan - MySQL Ban System with timed bans - by *IsBack - 16.07.2011, 09:24
Re: jBan - MySQL Ban System with timed bans - by Hiddos - 16.07.2011, 10:56
Re: jBan - MySQL Ban System with timed bans - by adelmika - 16.07.2011, 11:06
Re: jBan - MySQL Ban System with timed bans - by justsomeguy - 16.07.2011, 13:04
Re: jBan - MySQL Ban System with timed bans - by Venice - 16.07.2011, 16:03
Re: jBan - MySQL Ban System with timed bans - by TheArcher - 16.07.2011, 16:05
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 16.07.2011, 17:53
Re: jBan - MySQL Ban System with timed bans - by Ronaldo_raul™ - 16.07.2011, 19:24
Re: jBan - MySQL Ban System with timed bans - by justsomeguy - 16.07.2011, 19:48
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 16.07.2011, 19:57
Re: jBan - MySQL Ban System with timed bans - by ReM!X - 16.07.2011, 20:15
Re: jBan - MySQL Ban System with timed bans - by fordawinzz - 18.07.2011, 16:08
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 18.07.2011, 16:24
Re: jBan - MySQL Ban System with timed bans - by fordawinzz - 18.07.2011, 16:28
Re: jBan - MySQL Ban System with timed bans - by dumbiik - 24.07.2011, 11:07
Re: jBan - MySQL Ban System with timed bans - by GeonMake - 26.07.2011, 11:53
Re: jBan - MySQL Ban System with timed bans - by Rock_Ro - 26.07.2011, 12:33
Re: jBan - MySQL Ban System with timed bans - by Jeroen52 - 26.07.2011, 14:43
Re: jBan - MySQL Ban System with timed bans - by Rock_Ro - 26.07.2011, 14:53
Re: jBan - MySQL Ban System with timed bans - by Jeroen52 - 26.07.2011, 15:04
Re: jBan - MySQL Ban System with timed bans - by TheArcher - 26.07.2011, 15:33
Re: jBan - MySQL Ban System with timed bans - by JaTochNietDan - 26.07.2011, 16:35
Re: jBan - MySQL Ban System with timed bans - by Piotrek - 16.03.2013, 12:15
Re: jBan - MySQL Ban System with timed bans - by iFear - 16.03.2013, 12:18
Re: jBan - MySQL Ban System with timed bans - by Konstantinos - 17.03.2013, 13:25
Re: jBan - MySQL Ban System with timed bans - by Firstaction - 09.06.2014, 12:19
Re: jBan - MySQL Ban System with timed bans - by Akcent_Voltaj - 22.01.2015, 15:56
Re: jBan - MySQL Ban System with timed bans - by Akcent_Voltaj - 22.01.2015, 16:33

Forum Jump:


Users browsing this thread: 5 Guest(s)