08.06.2014, 19:36
I don't know what should I show more than this.
It's enough.
getdate() returns the number of days passed since the beginning of the year.
So if you add 5 days to getdate(), it will be (getdate() + 5).
Each time the player will connect, we'll check if the var DaysBanned, which contains (getdate() + 5) is superior to getdate(). If it is, it means that the player is still banned. If it's not, then the player will be able to connect normally.
It's enough.
getdate() returns the number of days passed since the beginning of the year.
So if you add 5 days to getdate(), it will be (getdate() + 5).
Each time the player will connect, we'll check if the var DaysBanned, which contains (getdate() + 5) is superior to getdate(). If it is, it means that the player is still banned. If it's not, then the player will be able to connect normally.