Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Chat › AMXBANS Delay
12 posts, 3 people · 5,106 views Thread Rating: ★★★★★
closedAMXBANS Delay
Started by Tank on 10-28-2008, 08:53 AM
Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
10-28-2008, 08:53 AM #1

I started this thread as I didn't want to hijack Dr G's thread about amxbans. I finally have amxbans running again with the update to amxmodx 1.81. I was just wondering if people like D-O know how to fix the delay in amxbans?rnrnI know delay can be set through config but changing that does not fix anything. Also my gameserver and webserver are hosting in the same location by the same company, so that shouldn't cause any delay to myknowledge.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
10-28-2008, 01:04 PM #2
rnrnI know delay can be set through config but changing that does not fix anything.
rnrnIn what config do you change that?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-28-2008, 01:22 PM #3

pretty sure it works for me... as i have my delay set to 5 and looking at the plugin code it looks like if it cant get the value from the mysql db it defaults to 10 and mine definitly isnt 10 seconds in my servernnit also looks like you cant use values of 2 seconds or lower and if you do it sets it to 10 secondsnn

nif(floatstr(kick_delay_str)>2.0)n    kick_delay=floatstr(kick_delay_str)nelsen    kick_delay=10.0
on the web front end, goto servers, then for the server you want to change it for click 'edit' under the actions section

Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
10-28-2008, 03:18 PM #4

Thanks a lot. I've posted this many times on the amxbans page and also read a lot of posts made by others but never had the answer I wanted.rnrnI will give it a go. It's btw really weird that you can't set it under 2 seconds as the server edit page does allow you to choose between 0, 1, 5 10 etc.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-28-2008, 04:04 PM #5

yeah that is wierd.. nni kinda think it might have a minimum of 2 seconds so that it makes sure it completes all the mysql server stuff before kicking the person

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
10-28-2008, 07:26 PM #6

Thx d-o... do ya think it actully needs those 10 sec to get it ready? or is it only a safty thing?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-29-2008, 04:27 AM #7

well the delay also gives the person time to read the motd window that pops up with the ban info as well..nnand like i said, mine is set to 5 and that seems to work fine for me

Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
10-30-2008, 06:50 AM #8

I've set it to 5 and no complains yet from my members. So I guess it works fine (wish my dod would function so I could see for myself).

Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
01-27-2009, 04:27 PM #9
if(floatstr(kick_delay_str)>2.0)rn    kick_delay=floatstr(kick_delay_str)rnelsern    kick_delay=10.0 rn
rnrnIn which file can I find this, I changed this before but forgot where.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
01-27-2009, 08:09 PM #10

isnt it in cmdBan.inl???

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-27-2009, 08:25 PM #11

no, i think it was init_functions.inl

Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
01-28-2009, 10:39 AM #12

Thank you Diamond, you were right. That were not the files I searched.

Archive › Old Forum Threads › General › Chat › AMXBANS Delay
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC