Ban system with mysql
#6

In your MySQL table, create a column with data type timestamp, and when you ban some player, calculate the days using the days seconds * days banned.
When a player that is banned joins, check if their ban expired or not, if its not then kick them with the reason and the unban date, if it expired then remove the ban from the table and let them join..
Reply


Messages In This Thread
Ban system with mysql - by Cezar98 - 24.10.2018, 14:13
Re: Ban system with mysql - by ReD_HunTeR - 24.10.2018, 16:16
Re: Ban system with mysql - by Cezar98 - 24.10.2018, 16:50
Re: Ban system with mysql - by Infin1ty - 24.10.2018, 17:17
Re: Ban system with mysql - by Calisthenics - 24.10.2018, 17:53
Re: Ban system with mysql - by HoussemKeyCo - 25.10.2018, 06:55

Forum Jump:


Users browsing this thread: 2 Guest(s)