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

Does this exist?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nismoskyline86
Member
Join Date: Nov 2010
Old 04-06-2012 , 19:45   Does this exist?
Reply With Quote #1

I need a very simple plugin, it will check a database for values such as flags, and then apply the admin flag to that steamID. preferably with adjustable query settings and it would need to run along side sourcebans but be a separate system.

Essentially we have way to many VIPs and we want to take them out of sourcebans and just store them in a database for the server to reference every cycle.

Does this exist? or would this be something I would need to have custom made?

Thank you in advance guys!

Last edited by nismoskyline86; 04-06-2012 at 19:46.
nismoskyline86 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-06-2012 , 21:56   Re: Does this exist?
Reply With Quote #2

if I understand correctly, then yes.
It's already in SM, in the disabled folder.
You go to configs/sql-init-scripts\mysq\create_admins.sql
Import that into your desired MySQL database, then move the plugin
sql-admin-manager.smx
from the disabled folder to the plugins folder.
Then set up a database configuration in databases.cfg as either "admins" or just in the "default" one, and that should be all, you can either modify the database manually to add admins (VIPs in this case) or you can use these commands:
sm_sql_addadmin
sm_sql_deladmin
sm_sql_addgroup
sm_sql_delgroup
sm_sql_setadmingroups
You might also want to take a look at Sourcemod Webadmin:
http://forums.alliedmods.net/showthread.php?t=60174
minimoney1 is offline
nismoskyline86
Member
Join Date: Nov 2010
Old 04-06-2012 , 22:29   Re: Does this exist?
Reply With Quote #3

and this wont interfere with sourcebans?
nismoskyline86 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-07-2012 , 01:43   Re: Does this exist?
Reply With Quote #4

It should not, I'm not exactly sure though.
minimoney1 is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 04-07-2012 , 04:11   Re: Does this exist?
Reply With Quote #5

EDIT: See the next two posts.

It should work fine. Make sure you don't have *ANY* flat file admin plugins enabled, or you may have issues as the plugins race each other to update the files.

Note that SourceBans has an option to backup configs locally. Make sure you turn that OFF.
__________________

Last edited by recon0; 04-08-2012 at 14:43.
recon0 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-08-2012 , 14:20   Re: Does this exist?
Reply With Quote #6

Quote:
Originally Posted by recon0 View Post
It should work fine. Make sure you don't have *ANY* flat file admin plugins enabled, or you may have issues as the plugins race each other to update the files.

Note that SourceBans has an option to backup configs locally. Make sure you turn that OFF.
I'm using SourceBans with the backup configs option enabled, admins-flatfile, and admins-sql, and it's working fine...
__________________

Last edited by Dr. McKay; 04-08-2012 at 14:20.
Dr. McKay is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 04-08-2012 , 14:42   Re: Does this exist?
Reply With Quote #7

Quote:
Originally Posted by Dr. McKay View Post
I'm using SourceBans with the backup configs option enabled, admins-flatfile, and admins-sql, and it's working fine...
Yeah. On second thought, only SourceBans writes to the files, so it'd be fine.
__________________
recon0 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 20:03.


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