Help making /tempban cmd
#1

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)