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

Refresh admins on all servers (add new ones) with PHP?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mathiaas
Senior Member
Join Date: Aug 2014
Location: Sweden ♥
Old 01-03-2015 , 15:07   Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #1

Basically I have made my own PHP VIP system with text/SMS. It inserts into the database and all, but it does NOT add the VIP's to the admins.cfg (like it does when you add a VIP/admin on the webpanel)

So how would I do this?
Mathiaas is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 01-03-2015 , 15:22   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #2

sm_rehash?
nomy is offline
Mathiaas
Senior Member
Join Date: Aug 2014
Location: Sweden ♥
Old 01-03-2015 , 15:25   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #3

Ignore this post.

Last edited by Mathiaas; 01-03-2015 at 15:27.
Mathiaas is offline
Mathiaas
Senior Member
Join Date: Aug 2014
Location: Sweden ♥
Old 01-03-2015 , 15:49   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #4

Nah, didn't help with rehash.
Mathiaas is offline
Mathiaas
Senior Member
Join Date: Aug 2014
Location: Sweden ♥
Old 01-03-2015 , 16:34   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #5

How does sourcebans update the admins.cfg file? I need to do the same. I tried sb_reload & then sm_rehash, but didn't work. It doesn't insert new admins into admins.cfg

Last edited by Mathiaas; 01-03-2015 at 16:39.
Mathiaas is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 01-03-2015 , 17:30   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #6

Because SourceBans keeps admin in SourceMod cache. That is why when your SourceBans DB goes down, and you restart your server, no one is admin.
__________________
Sarabveer is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 01-03-2015 , 17:39   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #7

Quote:
Originally Posted by Sarabveer View Post
Because SourceBans keeps admin in SourceMod cache. That is why when your SourceBans DB goes down, and you restart your server, no one is admin.
lol, maybe in v2 but not v1.x.x
Rytis is offline
Mathiaas
Senior Member
Join Date: Aug 2014
Location: Sweden ♥
Old 01-03-2015 , 18:18   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #8

Quote:
Originally Posted by Sarabveer View Post
Because SourceBans keeps admin in SourceMod cache. That is why when your SourceBans DB goes down, and you restart your server, no one is admin.
So how would I do this? To make it reload from the DB? (sb_reload & sm_rehash doesn't help)
Mathiaas is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 01-03-2015 , 20:14   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #9

Yes, it is 1.x.x

Just do sm_rehash, it refreshes the cache.
__________________
Sarabveer is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 01-03-2015 , 20:17   Re: Refresh admins on all servers (add new ones) with PHP?
Reply With Quote #10

BTW, that's how SB Donations Controls work, maybe you could build off of that instead.
__________________
Sarabveer 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 00:22.


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