Command /ban on a day
#2

You can use "NOW()" in MySQL and save the timestamp into your database. Learn how to use timestamps (conversion to seconds) and send a query NOW() - UNIXTIMESTAMP(..) > 5184000 (he's banned more than a day)

I believe that's how ^^ works - using seconds!

another thing u can do is using MySQL events system there's a thread about this somewhere on forums!

I hope I helped any feedback is appreciated!
Reply


Messages In This Thread
Command /ban on a day - by Jimmi - 25.06.2015, 21:40
Re: Command /ban on a day - by Stanford - 25.06.2015, 21:52
Re: Command /ban on a day - by Jimmi - 25.06.2015, 21:54
Re: Command /ban on a day - by Stanford - 25.06.2015, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)