SRCDS Steam group


exec on FTP or HTTP
#1
Hi all,
I have a question

Can i lunch a config file by http or FTP with my srcds.
in my server.cfg

exec http://mywebsite.net/banned.cfg

I don't want to install eventscript or other system.
It's possible ?

srcds support FTP¨or HTTP protocole ?
Thanks for you help Smile
Reply
#2
The only protocols that SRCDS supports is the protocols it uses for client connection, and gameplay. RCON would be the best way to go. You can code a PHP file to issue an RCON command, and run the PHP file via a browser, but I really would not recommend doing that Toungue
Reply
#3
what you can do instead is downloading the cfg file every hour or so and exec the downloaded file. are you on linux or windows?
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#4
Thank for your help Smile
My servers runs on windows and linux.

I would like to download every x hours my file (banned.cfg) (for refresh information)
For execute i add exec banned.cfg in my server.cfg.
banned.cfg is load when my server change map.

But i would like to download my banned.cfg every x hours.

The best solution is a .dll (windows) .so (linux) for refresh my banned.cfg
The file is on a FTP.

I know I can use eventscript but i would like to install my system on a war server and only zblock is installed on a war server.
I can install a plugin (same of zblock) for refresh my file but i don't want to install mani-admin-plugin or other system.

Thank you Smile
Reply
#5
It might be easier to use a MySQL ban plugin for Sourcemod to manage bans on more than one server.

http://forums.alliedmods.net/showpost.php?p=962721&postcount=144
Reply
#6
you can try on linux creating to create a cron job that executes a wget command every few minutes. but that requires you to have a root server probably (I don't think GSPs allow cron jobs on shared hosting). If you have a root server try editing the file /etc/crontab and add a line:

Code:
*/10  * * * *       <username>   wget -q http://path/to/the/file -O /path/to/the/target/file/on/disk

Replace "<username>" with the name of the user you run your game server with and of course replace the two paths.

On windows you can try something similar (IIRC there is wget for windows as well, try google) with the task manager.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)