04.08.2011, 17:44
(
Last edited by JaTochNietDan; 05/08/2011 at 03:58 AM.
)
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
Example Commands
There are just three example commands included in this Filterscript, those are:
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
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
- First, download the filterscript using the link below
- Then put it in your SA-MP server directory under "filterscripts"
- Head on over to http://www.samp-bans.com/page/register and make an account
- Once you have an account, login and click on account to see your API key!
- Open up the filterscript in your favourite PAWN editor, such as Pawno
- Place your API key in the filterscript where it is marked
- Compile the filterscript
- Load it into the server and enjoy your banlist!
Example Commands
There are just three example commands included in this Filterscript, those are:
- /ban <player> <reason> <time (minutes)>
- /unbanbyip <ip address>
- /unbanbyname <name>
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