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

Work: [FS] BanTemp system
Author: hemen

With this FS you can ban player temporary (for 3 hours or four 24 hours).

How to work?


In order to ban someone , you should be RCON admin.
Command - /bantemp [playerid] [hours of ban] [reason]
You must create a folder in bantemp scriptfiles, to avoid a server crash


filterscripts.rar is 2nd fix
Reply
#2

a bit like seif's temp ban system not bad.
Reply
#3

nice, its a little bit like siefs one but its always good to have more choices!
Reply
#4

Nice system
Reply
#5

I was not looking code Seif.
Reply
#6

This check

pawn Код:
if(dini_Int(bstring2,"hour") < h && dini_Int(bstring2,"day") < aday && dini_Int(bstring2,"month") < amonth && dini_Int(bstring2,"year") < ayear)
won't work, because your ban date can be for example 31/12/2009 and if the player joins 02/01/2010 it will say that the ban is still active because day and month are not bigger than the ban day and month.
Reply
#7

fs fixed
Reply
#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
#9

nice work.
Reply
#10

I personally never steal someone else's code. Though I knew that there SeifAdmin, but did not know that there is bantemp system in SeifAdmin
Reply
#11

seif wasnt the first person to think of a temporary ban system people.
Reply
#12

Well there is similarity between many codes...doesn't mean he copied it.He may have written it by himseif (lol) himself and the code was similar to the other codes.There are a few ways to write a perfect code people.

Good JOb!
Reply
#13

So where can i download it? gosh
Reply
#14

no download link?? WOOOOOOOOOOOOOOOOOT
Reply
#15

Where r download link..
Reply
#16

nice.
Reply
#17

re-upload?
Reply
#18

Gratz on bumping a 10 month old thread!

As for Matej: Sorry to insult you, but somewhere I think you only posted out of either "looking cool" or raising post count lols.
Reply
#19

where is the download link
Reply
#20

Nice Good One!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)