Temporary banning (SQLite) - Easy to use and it works! -
__ - 14.05.2011
Temporary banning (SQLite)
Scripted by __
Introduction
This release is a filterscript that I made last night, but never got around to testing/releasing until today.
This filterscript uses:
- Stock version of sscanf (because plugins and filterscripts can be painful)
- SQLite to store bans
- zcmd to process commands
- Unix timestamps
Credits
I made this script myself, but as I said above, I used some released functions while making this, credits to:
- ****** for creating sscanf, DB_Escape and mktime()
- Zeex for creating zcmd
- RoBo for creating the SQLite documentation on the wiki
- KyleSmith for beta testing prior to release
- Me for the creating the script
Download
A list of download links/mirrors is available below:
Installation notes
Here are the notes for installation:
- Move 'tban.amx' to your filterscripts directory
- Move 'bans.db' to your scriptfiles directory
- Add 'tban' to your server.cfg 'filterscripts' line
- Start your SA-MP server
Other notes
Commands scripted for this FS:
- /tempban
- /unbanip
- /unbanname
You can set a PVar for "Admin" so you can integrate this script with your gamemodes.
/unbanip and /unbanname haven't yet been tested, but I'm pretty sure they'll work.
The code for more specific times with ban expiry messages is available
here. I don't have SA-MP installed and can't test it so I'm not overwriting the original release.
Re: Temporary banning (SQLite) -
Kyle - 14.05.2011
Nice Script! Keep them coming.
Re: Temporary banning (SQLite) - Easy to use and it works! -
Hiddos - 14.05.2011
Looking good, but how about adding the ZCMD include to the .zip file or at least providing a link to the ZCMD topic ^^?
Re: Temporary banning (SQLite) - Easy to use and it works! -
__ - 14.05.2011
Will do later.
Re: Temporary banning (SQLite) - Easy to use and it works! -
DRIFT_HUNTER - 14.05.2011
Do not use dialog to show player cos if you show player dialog and close connection he get stuck and must get out to desktop and stop gta_sa.exe
Re: Temporary banning (SQLite) - Easy to use and it works! -
__ - 14.05.2011
Quote:
Originally Posted by DRIFT_HUNTER
Do not use dialog to show player cos if you show player dialog and close connection he get stuck and must get out to desktop and stop gta_sa.exe
|
There aren't any dialogs in this script... You should look at the script before making a pointless comment.
Re: Temporary banning (SQLite) - Easy to use and it works! -
DRIFT_HUNTER - 14.05.2011
Quote:
Originally Posted by __
There aren't any dialogs in this script... You should look at the script before making a pointless comment.
|
Sorry i just looked at another FS
https://sampforum.blast.hk/showthread.php?tid=255118
Re: Temporary banning (SQLite) - Easy to use and it works! -
Norn - 15.05.2011
Great script, extremely useful.
Re: Temporary banning (SQLite) - Easy to use and it works! -
__ - 15.05.2011
Thanks for all of the positive comments so far, people.
Re: Temporary banning (SQLite) - Easy to use and it works! -
Paul.eboy - 15.05.2011
thanks for it.