Raised This Month: $51 Target: $400
 12% 

perm ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killjoy64
AlliedModders Donor
Join Date: Apr 2012
Location: 81.773644,-46.933594
Old 09-09-2012 , 14:15   perm ban
Reply With Quote #1

Someone told me that after a servers IP change or server restart all bans are lifted D: is this true?\

EDIT
And how could i make sure someone is banned for good? without a database

Last edited by killjoy64; 09-09-2012 at 15:34.
killjoy64 is offline
michael1995
Member
Join Date: Sep 2009
Old 09-09-2012 , 17:19   Re: perm ban
Reply With Quote #2

Have you written following in server config.cfg

exec banned_user.cfg
exec banned_ip.cfg

Remember, too, and check the files is located on the server

Last edited by michael1995; 09-09-2012 at 17:20.
michael1995 is offline
VJScope
Senior Member
Join Date: Jul 2012
Location: Finland
Old 09-09-2012 , 17:49   Re: perm ban
Reply With Quote #3

Here's pretty good link
__________________
Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.
VJScope is offline
killjoy64
AlliedModders Donor
Join Date: Apr 2012
Location: 81.773644,-46.933594
Old 09-09-2012 , 18:01   Re: perm ban
Reply With Quote #4

Quote:
Originally Posted by michael1995 View Post
Have you written following in server config.cfg

exec banned_user.cfg
exec banned_ip.cfg

Remember, too, and check the files is located on the server
But doesnt the banned_user erase after a map change or server reboot?


Quote:
Originally Posted by VJScope View Post
Il try it

Last edited by killjoy64; 09-09-2012 at 18:03.
killjoy64 is offline
killjoy64
AlliedModders Donor
Join Date: Apr 2012
Location: 81.773644,-46.933594
Old 09-09-2012 , 21:33   Re: perm ban
Reply With Quote #5

i wrote those in console, but when it exec banned_ip it says its over 1 MB....what does that mean?
killjoy64 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 09-09-2012 , 21:44   Re: perm ban
Reply With Quote #6

Quote:
Originally Posted by killjoy64 View Post
i wrote those in console, but when it exec banned_ip it says its over 1 MB....what does that mean?
It means that the file is empty.

Your server.cfg needs to contain this somewhere, in this order:

Code:
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
Any temporary bans will be cleared when the server restarts, but permanent bans will be retained. To save temporary bans, you need something like SourceBans.
__________________
Dr. McKay is offline
killjoy64
AlliedModders Donor
Join Date: Apr 2012
Location: 81.773644,-46.933594
Old 09-09-2012 , 23:39   Re: perm ban
Reply With Quote #7

Quote:
Originally Posted by Dr. McKay View Post
It means that the file is empty.

Your server.cfg needs to contain this somewhere, in this order:

Code:
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
Any temporary bans will be cleared when the server restarts, but permanent bans will be retained. To save temporary bans, you need something like SourceBans.
I dont have sourcebans because i cant get a database if my life depended on it but i am using This to save temporary bans,
and i have the code:
Code:
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
in the exact order in my server.cfg

Last edited by killjoy64; 09-09-2012 at 23:40.
killjoy64 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 09-09-2012 , 23:40   Re: perm ban
Reply With Quote #8

Quote:
Originally Posted by killjoy64 View Post
I dont have sourcebans because i cant get a database if my life depended on it but i am using This to save temporary bans,
and i have the code:
Code:
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
in the exact order in my server.cfg
You should be good to go then.
__________________
Dr. McKay is offline
VJScope
Senior Member
Join Date: Jul 2012
Location: Finland
Old 09-10-2012 , 05:04   Re: perm ban
Reply With Quote #9

I had all of those in my server.cfg and it didn't work. Then I left

writeid
writeip

in my server.cfg and put

exec banned_user.cfg
exec banned_ip.cfg

in my autoexec.cfg. Then it started working. I guess it's got something to do with the code or that autoexec is used only when server restarts and server.cfg in every map change.. not sure. You should try this but if it doesn't work you could try to contact bacardi or get that sourcebans.
__________________
Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.

Last edited by VJScope; 09-10-2012 at 05:07.
VJScope is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-10-2012 , 10:04   Re: perm ban
Reply With Quote #10

Always execute bans first.
Then write them.
Right order or else it will create blank file everytime when you reboot server.

*I have suggest exec perm bans just once when server launch from autoexec.cfg
Just for that reason that ban plugins not need read 10,000 perm bans lines every map change.
__________________
Do not Private Message @me

Last edited by Bacardi; 09-10-2012 at 10:07.
Bacardi 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 10:12.


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