AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Refreshing admin.cfg from outside of the game (https://forums.alliedmods.net/showthread.php?t=204845)

Mr. Man 01-04-2013 02:37

Refreshing admin.cfg from outside of the game
 
Is it possible to refresh admin.cfg from outside of the game? To this day, whenever I update people with donor rank on my server, I have to physically log into the server and execute /admin -> Refresh admin.cfg

Is there an easier way to do this? (Perhaps with SSH or whatnotabob)?

hamilton5 01-04-2013 03:36

Re: Refreshing admin.cfg from outside of the game
 
unless you want to restart the server.. sm_reloadadmins from a console.

ozgaming 01-04-2013 05:57

Lot of game panels where you change settings have rcon so could do it from there. Even sourcebans if you use it

ecca 01-04-2013 18:02

Re: Refreshing admin.cfg from outside of the game
 
As he uses admins.cfg he's probably not using sourcebans neither MySQL.

For your question SSH would be fine by just executing rcon sm_reloadadmins which will regenerate the admin cache. Also for your information the admin cache is cleared every mapchange by default.

Dr. McKay 01-04-2013 21:02

Re: Refreshing admin.cfg from outside of the game
 
If you want to use PHP, here's a basic class that you can use to send rcon commands to your server. http://fremnet.net/article/199/source-rcon-class


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

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