[FilterScript] [FS] BanTemp system (fixed)
#8

Few days ago I created temp ban sistem for my GM but I used MySQL functions so it was quite easier to calculate ban expire day. Here is my check if the ban has expired. I didn't have chance for complete test, but it seams working. Maybe it helps you.

pawn Код:
if (!(day >= bday) && (month == bmonth && year == byear) || !(month >= bmonth) && (year == byear) || !(year >= byear) || (day == bday && month == bmonth && year == byear) && !(hour >= bhour) || (day == bday && month == bmonth && year == byear && hour == bhour) && !(minute >= bminute) || (day == bday && month == bmonth && year == byear && hour == bhour && minute == bminute) && !(second >= bsecond))
{
  // Player is banned
}
It also has ban minutes and seconds...

EDIT: b prefix is for ban date and time
Reply


Messages In This Thread
[FS] BanTemp system (fixed) - by hemen - 27.11.2009, 05:52
Re: [FS] BanTemp system - by shady91 - 27.11.2009, 06:23
Re: [FS] BanTemp system - by Oxside - 27.11.2009, 06:31
Re: [FS] BanTemp system - by RenisiL - 27.11.2009, 07:06
Re: [FS] BanTemp system - by hemen - 27.11.2009, 09:31
Re: [FS] BanTemp system - by Dujma - 27.11.2009, 10:20
Re: [FS] BanTemp system - by hemen - 27.11.2009, 10:23
Re: [FS] BanTemp system - by Dujma - 27.11.2009, 10:33
Re: [FS] BanTemp system (fixed) - by _Gangster_ - 27.11.2009, 11:08
Re: [FS] BanTemp system (fixed) - by hemen - 01.12.2009, 13:35
Re: [FS] BanTemp system (fixed) - by kel - 04.12.2009, 09:36
Re: [FS] BanTemp system (fixed) - by DJDhan - 05.12.2009, 06:36
Re: [FS] BanTemp system (fixed) - by Bates - 25.10.2010, 18:21
Re: [FS] BanTemp system (fixed) - by jonnyboy - 26.10.2010, 13:07
Re: [FS] BanTemp system (fixed) - by Bull_BoY - 29.10.2010, 02:57
Re: [FS] BanTemp system (fixed) - by Matej_ - 29.10.2010, 07:44
Re: [FS] BanTemp system (fixed) - by WillyP - 29.10.2010, 17:07
Re: [FS] BanTemp system (fixed) - by Hiddos - 29.10.2010, 17:12
Re: [FS] BanTemp system (fixed) - by $t3ve - 30.10.2010, 06:24
Re: [FS] BanTemp system (fixed) - by nGen.SoNNy - 30.10.2010, 06:29
Re: [FS] BanTemp system (fixed) - by Kwarde - 30.10.2010, 06:40
Re: [FS] BanTemp system - by Scenario - 30.10.2010, 07:18
Respuesta: [FS] BanTemp system (fixed) - by SuperMarioRol - 30.10.2010, 20:47
Re: [FS] BanTemp system (fixed) - by Lorenc_ - 31.10.2010, 04:41
Re: [FS] BanTemp system (fixed) - by Myk3l - 31.10.2010, 11:55
Re: [FS] BanTemp system (fixed) - by Steven Paul - 14.01.2011, 13:23
Re: [FS] BanTemp system (fixed) - by [FeK]Knife - 17.01.2011, 01:50
Re: [FS] BanTemp system (fixed) - by [03]Garsino - 17.01.2011, 05:16
Re: [FS] BanTemp system (fixed) - by Natrens - 17.01.2011, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)