|
|
#1 |
|
Banned
![]() Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,307
Reputation: 350
|
Introduction
jBanLite is a simple include that will allow server owners to easily have a player banning system using an SQLite 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. * Yes this is the same thing except for SQLite, although I decided to create another topic as it may confuse some users as to what they need to download, so I'd like to keep it separate. Additionally, this ban system does not ban people's nicknames, it will only ban people's IP addresses What's in the package?
Instructions Make sure that the jBanLite include has been put into your "pawno/includes" directory, then simply add the following to the script you wish to use jBanLite in: pawn Code:
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 Code:
Download and Demo Page You can view a demo of the example banlist here. Credits Y_Less - sscanf and hooking methods Last edited by JaTochNietDan; 01/08/2011 at 04:13 AM. |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 776
Reputation: 0
|
You should set ban time to "PLAYER HAS BEEN UNBANNED" when time pass 0. Because now that -*number* is for nothing?
|
|
|
|
|
|
#3 |
|
Banned
![]() Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,307
Reputation: 350
|
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: New Zealand
Posts: 3,005
Reputation: 368
|
Just a question, with this, does the sa-mp server have to be on the same server as the website?
|
|
|
|
|
|
#5 | |
|
Banned
![]() Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,307
Reputation: 350
|
Quote:
Update: I made the times on the example website far more readable, they now display in days, hours, minutes and seconds left. This update was on both of the jBan systems. |
|
|
|
|
|
|
#6 |
|
Huge Clucker
Join Date: Aug 2010
Location: Puerto Madryn
Posts: 244
Reputation: 3
|
Nice Job!
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2010
Location: Israel
Posts: 846
Reputation: 41
|
That's nice include, I might use it.
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Location: Home
Posts: 2,350
Reputation: 212
|
What change jBan and jBanLite?
|
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2011
Posts: 803
Reputation: 30
|
|
|
|
|
|
|
#10 |
|
Big Clucker
![]() ![]() Join Date: Jun 2011
Location: Romania
Posts: 125
Reputation: 11
|
Good job!!
Who helped me and me with my GM? has a big problem, I think it's a bug: D want to help me give me a pm |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Include] jBan - MySQL Ban System with timed bans | JaTochNietDan | Includes | 82 | 17/03/2013 12:25 PM |
| [FilterScript] LorencBank (SQLite Bank system) | Lorenc_ | Filterscripts | 18 | 13/01/2012 05:11 PM |
| Sqlite Vehicle System Bugging | Norn | Help Archive | 3 | 02/10/2010 12:42 AM |
| Timed kick | keujh | Help Archive | 4 | 25/02/2010 06:34 AM |
| SendClientMessage timed | CracK | Help Archive | 17 | 13/03/2009 10:33 AM |