SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/08/2011, 05:44 PM   #1
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 2,502
Reputation: 363
Default SAMP-BANS Example Filterscript

Introduction
So you've always wanted to show your banlist on a website, but you've never had the resources to do it? Well now it's easier than ever, all you have to do is use our API over at http://www.samp-bans.com and we will host your banlist for you. This filterscript is an example of how you can use our websites API to create your own banlist for your SA-MP server.

Installation
  1. First, download the filterscript using the link below
  2. Then put it in your SA-MP server directory under "filterscripts"
  3. Head on over to http://www.samp-bans.com/page/register and make an account
  4. Once you have an account, login and click on account to see your API key!
  5. Open up the filterscript in your favourite PAWN editor, such as Pawno
  6. Place your API key in the filterscript where it is marked
  7. Compile the filterscript
  8. Load it into the server and enjoy your banlist!

That's it, you now have an online banlist that we're hosting for you! You can even manage your bans from the website now through a super easy to use interface!

Example Commands
There are just three example commands included in this Filterscript, those are:
  • /ban <player> <reason> <time (minutes)>
  • /unbanbyip <ip address>
  • /unbanbyname <name>

RCON administration access required

How do I find my banlist?
Go to my account and then click on the number next to "Account ID", that is your unique banlist page.

What else?
We're hoping that in the future people will implement this into their filterscripts, this is an example filterscript in order to show you how to make use of our API at samp-bans.com. We'll be adding more features as time goes on and accept suggestions all of the time in order to improve our service to you.

Help, I banned myself!
We've already implemented a feature that will allow you to remove bans from the website. Simply login, go to your banlist and you should see "Delete" buttons next to all of your bans, only you can see this. Clicking this button will remove the ban on that line!

Download


You can also view our demo page here

How does it work?
It uses the built in threaded http client in the SA-MP server to send requests to our API. You can find documentation on our API here.

If you have any questions or problems, please feel free to ask them and we will help as best we can
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]

Last edited by JaTochNietDan; 05/08/2011 at 03:58 AM.
JaTochNietDan is offline   Reply With Quote
Old 04/08/2011, 05:56 PM   #2
FireCat
High-roller
 
FireCat's Avatar
 
Join Date: Jul 2010
Posts: 2,322
Reputation: 609
Default Re: SAMP-BANS Example Filterscript

Nice and easy
FireCat is offline   Reply With Quote
Old 04/08/2011, 06:07 PM   #3
!!--Ryder_RO--!!
Big Clucker
 
Join Date: Jun 2011
Location: Romania
Posts: 110
Reputation: 21
Default Re: SAMP-BANS Example Filterscript

Nice and easy ..
__________________
Hi ^^
!!--Ryder_RO--!! is offline   Reply With Quote
Old 04/08/2011, 06:10 PM   #4
sleepysnowflake
Gangsta
 
sleepysnowflake's Avatar
 
Join Date: Dec 2009
Posts: 925
Reputation: 138
Default Re: SAMP-BANS Example Filterscript

Great!
sleepysnowflake is offline   Reply With Quote
Old 04/08/2011, 06:54 PM   #5
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,420
Reputation: 203
Default Re: SAMP-BANS Example Filterscript

Useful, keeps the players banned in case of data lost, host change, etc.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 04/08/2011, 07:01 PM   #6
NewRevolutionaryRolePlay
Little Clucker
 
Join Date: Jun 2011
Posts: 2
Reputation: 0
Default Re: SAMP-BANS Example Filterscript

Nice job, like CyNiC said.

Quote:
Originally Posted by CyNiC View Post
Useful, keeps the players banned in case of data lost, host change, etc.
__________________

(Click the Image above to be re-directed to the Forums.)
NewRevolutionaryRolePlay is offline   Reply With Quote
Old 05/08/2011, 06:45 AM   #7
SmileyForCheat
Big Clucker
 
SmileyForCheat's Avatar
 
Join Date: Jun 2011
Posts: 174
Reputation: 13
Default Re: SAMP-BANS Example Filterscript

i Want Ban System permanent
SmileyForCheat is offline   Reply With Quote
Old 05/08/2011, 08:29 AM   #8
QuaTTrO
Gangsta
 
QuaTTrO's Avatar
 
Join Date: Aug 2009
Posts: 516
Reputation: 75
Default Re: SAMP-BANS Example Filterscript

I have problem. When i want to check ban using HTTP i have this :
Code:
Error?Ban not found
But ban exist in my banlist at samp-bans.com ...
QuaTTrO is offline   Reply With Quote
Old 05/08/2011, 12:11 PM   #9
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 2,502
Reputation: 363
Default Re: SAMP-BANS Example Filterscript

Quote:
Originally Posted by SmileyForCheat View Post
i Want Ban System permanent
All you have to do is set the time to 0 or else don't send a time and it will be permanent.

Quote:
Originally Posted by __[ShaDoW]__ View Post
I have problem. When i want to check ban using HTTP i have this :
Code:
Error?Ban not found
But ban exist in my banlist at samp-bans.com ...
Okay, there was an error on our side. It has been fixed, no update needed on your side!
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline   Reply With Quote
Old 05/08/2011, 12:37 PM   #10
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 1,768
Reputation: 1001
Default Re: SAMP-BANS Example Filterscript

This is nice !
__________________

Need host-tab ? Contact me on discord^

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
You last visited: 09/10/2018 at 08:30 PM
Michael@Belgium is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
bans imposter? Sampiscool123 Help Archive 2 08/02/2010 05:02 PM


All times are GMT. The time now is 02:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.