View Full Version : AMXBANS Delay
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?
I 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.
I know delay can be set through config but changing that does not fix anything.
In what config do you change that?
diamond-optic
10-28-2008, 01:22 PM
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 server
it also looks like you cant use values of 2 seconds or lower and if you do it sets it to 10 seconds
if(floatstr(kick_delay_str)>2.0)
kick_delay=floatstr(kick_delay_str)
else
kick_delay=10.0on the web front end, goto servers, then for the server you want to change it for click 'edit' under the actions section
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.
I 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
10-28-2008, 04:04 PM
yeah that is wierd..
i 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
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
10-29-2008, 04:27 AM
well the delay also gives the person time to read the motd window that pops up with the ban info as well..
and like i said, mine is set to 5 and that seems to work fine for me
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).
if(floatstr(kick_delay_str)>2.0)
kick_delay=floatstr(kick_delay_str)
else
kick_delay=10.0
In which file can I find this, I changed this before but forgot where.
diamond-optic
01-27-2009, 07:25 PM
no, i think it was init_functions.inl
Thank you Diamond, you were right. That were not the files I searched.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.