Raised This Month: $32 Target: $400
 8% 

Sourcebans/admin-flatfile.smx help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 12-30-2012 , 14:01   Sourcebans/admin-flatfile.smx help
Reply With Quote #1

Hey guys, this is pretty much only a question, but i would also like some help if it's possible to do.

The problem is, that atm we are running with both sourcemod and mani.
We only use mani for the reservedslot part since we got a script in evenscripts for supporters(donators) that writes people to the reservedslot file.

But seeing that mani will soon die, im trying to move it over to sourcemod.

now the problem is that we are running with sourcebans, so i want to know if it's possible to make either sourcebans or admin-flatfile.smx to read both the admin.cfg file but also the admins_simple.ini file, since i got a plugin that can add people to the admins_simple.ini, and then our script will be able to add them to that file automatically and remove em.
They don't need webaccess or anything, it's just to give the supporters reserved slot without needing to add them in sourcebans, since that would need me to do it manually everytime some donates to us.

Hope anyone is able to help me out

happy new year!
DoPe^ is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-31-2012 , 13:58   Re: Sourcebans/admin-flatfile.smx help
Reply With Quote #2

SM (admin-flatfile) will already load both config files into the admin cache.
__________________
asherkin is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 12-31-2012 , 23:29   Re: Sourcebans/admin-flatfile.smx help
Reply With Quote #3

even if you are running with sourcebans?

because i tried adding a client with the "a" flag into the admin_simple.ini using a chat tag plugin, and he wasnt able to get a chat tag.

i tried it on myself and i was able to use the tag, which i thought was pretty weird :p but i thought it had something to do with me already being added to sourcebans, even though i removed my admin privileges in sourcebans.

But what you say is, even though sourcebans is running.
admin-flatfile is still also working (if loaded), and is looking in both admin.cfg and admin_simple.ini, so if i added a client to admin_simple.ini he should get the permissions i have added?

if that is true, i guess there must be something wrong with the plugin then.
DoPe^ is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-01-2013 , 09:07   Re: Sourcebans/admin-flatfile.smx help
Reply With Quote #4

You can use sm_dump_admcache to dump the internal state of the admin cache.
__________________
asherkin is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 01-02-2013 , 13:58   Re: Sourcebans/admin-flatfile.smx help
Reply With Quote #5

yeah it's working was just an error in the plugin, found another instead.

thanks for the help asherkin!
DoPe^ is offline
Reply


Thread Tools
Display Modes

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:30.


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