SRCDS Steam group


Script to auto restart server at set time of day
#1
Hello,

Well im not very good at making scrips for anything game related but willing to give it a shot. Could you guys explain how to have SRCDS exec a .cfg at a certain time of day (midnight to be exact Big Grin) and what commands that need to be used in the config for like a 30 seconds after I have the server say "Server set to restart in 30 seconds, please rejoin shortly"?

I verry much appreciate you guys helping me with this Big Grin

Thank you
Reply
#2
Try using the search option on this site you should find something right away.[/align]
Reply
#3
I know BeetlesMod can do that. I would guess the other major admin mods can do it too.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#4
Well, you can use mattie's eventscripts. I use this script called cron_jobs to restart a zombiemod server everyday at 2:00 a.m.

Here's the script btw if you decide to use eventscripts.

http://addons.eventscripts.com/addons/view/cron_jobs

Note: You need to download eventscrips 2.0 to use the script above or anything else on that website.
Earn Points, get Free Rewards with your Amazon Points!
Points2Shop

Reply
#5
Mani admin plugin can do that. Take a look at the crontablist.txt in the cfg/mani_admin_plugin folder.
Reply
#6
Thanks for all the replys guys Big Grin

Sorry I should have tryed to search before I posted, ill keep that in mind for next time. Ill take a look at the eventscript and bettlesmod. I have metamod and mani already on it so maybe ill take a look at the text file you said eirlier.

Thanks guys Smile
Reply
#7
Hmm I cant seem to get the crontablist to do anything.

"" "10:00-10:05" exec Auto_restart.cfg <-- is how I have it set now but it dont execute. can someone shed some light as to how I can get it to work?

THank yo guys very much for helping me Smile
Reply
#8
What's in Auto_restart.cfg?
Are you sure it's .cfg and not .cfg.txt ?
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#9

.txt   auto_restart.txt (Size: 2.46 KB / Downloads: 26) Yes im shure its a .cfg(gone down that road before trying to find out why it wont save as a .cfg). Its a config I made to count down from 5 minutes to the last 30 seconds before the quit command Big Grin.

Here I uploaded it for you guys if you wana edit it for your servers Big Grin.
Reply
#10
Sleepy Wrote:Yes im shure its a .cfg(gone down that road before trying to find out why it wont save as a .cfg). Its a config I made to count down from 5 minutes to the last 30 seconds before the quit command Big Grin.

Here I uploaded it for you guys if you wana edit it for your servers Big Grin.

add 1234567 in front of your time between the quotes:

"1234567" "06:00" exit

like this Toungue
http://www.basthijs.net - game forum.
Reply
#11
thnx it helped me to
I Wrote:Who eat all the donuts.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)