I am running servers on a computer I built by myself in my basement and am in need of some sort of Garry’s Mod server restart thingy. I have everything setup so that if the server crashes or closes, it starts itself up again, but that’s not what I need. I really need a script of some sort or a plugin thingy that restarts the server completely at a certain time whether that be when a timer is up, at a time of day, or when no players are on the server for an amount of time (I would rather have when no players are online). I need the server to restart completely so that the addons have a chance to update, the map is set back to the default, and any stability problems are solved instantly.
What I need:
I need a script that restarts a Garry’s Mod server at a certain time, resetting the map back to default and letting the addons update.
If anybody knows of a fast and simple way to sync ulx bans and ulx group’s users between multiple, similar Garry’s Mod servers, please let me know. I am not very SQL Database literate. :-[
I did my research:
I can’t for the life of me find anything close to what I need anywhere on the internet and decided this was the place to post. Not even this forum has a topic similar to this that has an answer or is less than 2 years old.
I have this scripts : in lua>autorun>server
if os.date( "%I:%M %p" ) == "3:00 AM" then BroadcastLua("LocalPlayer():ConCommand(\"disconnect; snd_restart; retry\")") timer.Simple(0.5, function() game.ConsoleCommand("exit ") game.ConsoleCommand("shutdown ") game.ConsoleCommand("killserver ") end) end