11.06.2013, 21:33
A good idea would be to use gettime(). Work out how many seconds in a day* then add that to the current time value, then store that in mySQL. If a player joins and they're banned and their unban time isn't reached, kick them. Simple.
* To work out seconds in a day:
1 minute = 60 sec
1 hour = 3600 seconds
24 hours = 86400
Set ban time to gettime() + (86400 * days);
* To work out seconds in a day:
1 minute = 60 sec
1 hour = 3600 seconds
24 hours = 86400
Set ban time to gettime() + (86400 * days);