Raised This Month: $ Target: $400
 0% 

where do amx bans save


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pr0jeCt
Junior Member
Join Date: Sep 2005
Old 10-04-2005 , 21:54   where do amx bans save
Reply With Quote #1

I got a problem, whenever i ban someone..
amx_addban "steamid" 0 - usually.

Well no matter what type of ban.. i wanna know where they save at.. i see day after day people who i have banned..are back in server.. In banned.cfg on the server i usually see steamid's in there.. but it always fluxuates..soem days like 4 in there.. some days like 10..

I just banned over 6 people.. and i dont see their steamid in the banned.cfg.

Where do allt he bans from amx save at?
Pr0jeCt is offline
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 10-04-2005 , 22:46  
Reply With Quote #2

i think its in banned.cfg or banlist.cfg Anyways thats how it is for my clan
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
Pr0jeCt
Junior Member
Join Date: Sep 2005
Old 10-04-2005 , 23:29  
Reply With Quote #3

banned.cfg is erased.. always ..cant find the other file..


so does anyone on the amxx forum... know where amxx saves bans.
Pr0jeCt is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-04-2005 , 23:36  
Reply With Quote #4

amxx doesn't save bans anywhere, unless you mean where does it LOG them? which is in the addons/amxmodx/logs folder.

to clarify, amxx doesn't save the bans anywhere, it sends the ban command to hlds and then the writeid command which makes hlds save the bans to the banned.cfg. To erase all your bans you cannot simply erase your banned.cfg because when the server starts it executes that file, thus loading all the bans into memory. So, to quickly erase all bans, shut the server down first, then delete the banned.cfg.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Pr0jeCt
Junior Member
Join Date: Sep 2005
Old 10-05-2005 , 00:46  
Reply With Quote #5

ok i understand now.. however i dont want to loose my bans.. but i do.. the banned.cfg is always empty... it erases itsself.. ill ban .. then ill look at it.. ban might be there sometimes.. other times i look its gone.

Example their was just 1 ban in my cfg file.. i restarted server..and its gone

it was a permanant ban..
Pr0jeCt is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 10-05-2005 , 01:23  
Reply With Quote #6

add these lines to your server.cfg:

Code:
filterban 1
exec banned.cfg
writeid
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Pr0jeCt
Junior Member
Join Date: Sep 2005
Old 10-05-2005 , 01:37  
Reply With Quote #7

alright..i added.. but i dont see how that will keep amx/hlds from reseting the banned.cfg but ill try.
Pr0jeCt is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-05-2005 , 07:55  
Reply With Quote #8

actually.... you dont need the writeid,

but you should put this in the server.cfg

Code:
//Banning Setup (Re-Bans on Server Restart)
filterban 1
exec banned.cfg
exec listip.cfg
the reason your banned.cfg may have been getting erased was this. When you ban someone using the amxx commands, it bans them, first using the server command "bannid" which puts the ban into hlds memory, then it sends "writeid" which writes the CURRENT bans in memory to the banned.cfg. You are supposed to have those lines in the server.cfg to execute the banned.cfg when the server is restarted, and if you do not then the bans will not get realoaded into memory. So if you ban someone again it will be only thier steamid in the banned.cfg (it will erase all the other entries form the last time the server was loaded). With these commands in place the old bans will get loaded into memory and then any new bans will be added to the end.

There is no server command to erase all your bans, there really is no way the server is erasing your banned.cfg. Only way it could be erased is if some plugins is doing it. Let us know if putting these commands in the server.cfg helps you out.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Anthraxnz
Senior Member
Join Date: May 2005
Location: New Zealand
Old 10-05-2005 , 10:31  
Reply With Quote #9

also check you FTP file permissions, if your banned.cfg isnt being written even with writeid you permissions to the file might be 000 or read only.

try the unix code 775 for a semi secure method otherwise 777 is full access
__________________
Dont know how to add admins?

use my program
http://www.amxmodx.org/forums/viewto...=129092#129092

it does the work for you ... sort of
Anthraxnz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode