[FilterScript] Temporary banning (SQLite) - Easy to use and it works!
#1

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:
  1. Move 'tban.amx' to your filterscripts directory
  2. Move 'bans.db' to your scriptfiles directory
  3. Add 'tban' to your server.cfg 'filterscripts' line
  4. 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.
Reply
#2

Nice Script! Keep them coming.
Reply
#3

Looking good, but how about adding the ZCMD include to the .zip file or at least providing a link to the ZCMD topic ^^?
Reply
#4

Will do later.
Reply
#5

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
Reply
#6

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.
Reply
#7

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
Reply
#8

Great script, extremely useful.
Reply
#9

Thanks for all of the positive comments so far, people.
Reply
#10

thanks for it.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)