[FilterScript] Temporary Bans - SQLite, Zcmd, Sscanf
#1

Script Name: Temporary Bans
Description: With this script you can temporary banning players, they will be automatically unbanned after ban time.
Script Using: SQLite, Zcmd, Sscanf
Commands:
/Ban [Player ID] [Days] [Reason] - Banning player by ID.
/Banip [IP] [Days] [Reason] - Banning player by IP.
/Unban [Player Name] - Unbanning player by name.
/Unbanip [IP] - Unbanning player by IP.

Callbacks:
OnFilterScriptInit
OnFilterScriptExit
OnPlayerConnect

Forwards: TB_KickPlayer(PlayerID)
Functions:
TB_BanPlayerByID(BannedID,Time,Reason[],BannerID)
TB_BanPlayerByIP(BannedIP[],Time,Reason[],BannerID)
TB_UnbanPlayerByName(BannedName[],UnbannerID)
TB_UnbanPlayerByIP(BannedIP[],UnbannerID)
TB_ConvertTime(Seconds)

Downloads:
Solidfiles
Pastebin
Reply
#2

Nice and easy
Reply
#3

Nice FS, :P

I changed the orders /tempban & /tempuban, it will work or not?

+rep for u'r FS
Reply
#4

Easy to make but nice job for newbies to SQLite.
Reply
#5

There is a major flaw with this system, you need to set their ban into the SAMP ban list as well otherwise they can still connect and potentially cause problems. I also think using adfly is very lame please provide a direct link.
Reply
#6

Nice Good Job
Reply
#7

Good job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)