09.04.2015, 11:48
Hii, my suggestion is to use the MySQL events system .. dont use the script to autounban the player once he connects after his banning period is done .. so to be more helpful here are some tips .. use the [days] parameter to calculate the date of ban expiration and save it .. then go to your SGBD (phpMyAdmin) and create an event that repeats itself every minute and that event deletes the rows where expiration date is the current date .. I know that what I said wont help much so here is a link that will help you:
https://sampforum.blast.hk/showthread.php?tid=546630
https://sampforum.blast.hk/showthread.php?tid=546630