SA-MP Forums Archive
[FilterScript] Temporary Bans - SQLite, Zcmd, Sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Temporary Bans - SQLite, Zcmd, Sscanf (/showthread.php?tid=469380)



Temporary Bans - SQLite, Zcmd, Sscanf - Mishan1998 - 13.10.2013

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



Re: Temporary Bans - SQLite, Zcmd, Sscanf - filipkozina - 13.10.2013

Nice and easy


Re : Temporary Bans - SQLite, Zcmd, Sscanf - Wisdom - 13.10.2013

Nice FS, :P

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

+rep for u'r FS


Re: Temporary Bans - SQLite, Zcmd, Sscanf - DanishHaq - 13.10.2013

Easy to make but nice job for newbies to SQLite.


Re: Temporary Bans - SQLite, Zcmd, Sscanf - Pottus - 13.10.2013

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.


Re: Temporary Bans - SQLite, Zcmd, Sscanf - EmpireSk - 13.10.2013

Nice Good Job


Re: Temporary Bans - SQLite, Zcmd, Sscanf - Mark_Samp - 13.10.2013

Good job