SA-MP Forums Archive
Help making /tempban cmd - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help making /tempban cmd (/showthread.php?tid=273234)



Help making /tempban cmd - Nenad - 31.07.2011

As the title say I need help making /tempban cmd. When I tempban someone how to auto-unban him? For example I do /tempban [playerid/name] [time in minutes/days] [reason]
( /tempban 1 5 test (that would ban playerid 1 for 5 minutes/days, reason test))
And after the 5 minutes/days if player connect he won't be banned anymore but if he connect for example in 4 minutes/days he will get kicked.


Re: Help making /tempban cmd - [L3th4l] - 31.07.2011

You can use Unix timestamps, there's a tutorial about it on the tut section. If you cba creating one, there's a filterscript by the same author of the unix timestamps tut so that you can learn from.


Re: Help making /tempban cmd - Nenad - 31.07.2011

Thanks for fast reply. Can you give me the link to filterscript? I can't find it :S


Re: Help making /tempban cmd - [OC]Zero - 31.07.2011

https://sampforum.blast.hk/showthread.php?tid=255092