Synergy > General Discussion > Topic Details
VEER™ Mar 28 @ 12:39pm
SRCDS Restart on Crash script!
Anybody know of a script that automatclly restarts srcds on crash, but with the map still staying the same!

For example, my Syn Server crashes on map "d2_prison_01", and my current script restarts ot on crash, BUT.., it restarts to map "d1_trainstation_01" (Which is default), I would like it to restart to the map before it crashed, in this case "d2_prison_01".

Anyone know how to do this?
Showing 1-5 of 5 comments
< >
VEER™ Mar 28 @ 12:46pm 
I will show you my current script I use! (Windows Only)

@echo off
cls
echo Protecting SRCDS from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title SRDCS Protect
:srcds
echo (%time%) srcds started.
start /high /wait srcds.exe -console -game synergy -port 27015 +map d1_trainstation_01 +maxplayers 10 -nocrashdialog -insecure -nohltv
echo (%time%) WARNING: SRCDS closed or crashed, restarting.
goto srcds

You can download the .exe I made, but it is only for Synergy!
Here is the the exe file: (Place in the same folder as "srcds.exe")
SRCDS Protect

shqke Mar 31 @ 8:29pm 
find crashmap.smx (sourcemod plugin) and change it for your needs
VEER™ Apr 1 @ 4:41am 
Originally posted by kµrt nub:
find crashmap.smx (sourcemod plugin) and change it for your needs
Thanks, I really needed this!
VEER™ Apr 2 @ 11:32am 
Originally posted by kµrt nub:
find crashmap.smx (sourcemod plugin) and change it for your needs

I tried this and it messes up synergy, sm_map doesn't work, and loading the next map doesn't work either
VEER™ Apr 30 @ 5:21am 
Ok, I have fixed the problem.

Goto this thread, my friend made the plugin for me.

https://forums.alliedmods.net/showthread.php?t=239087
Showing 1-5 of 5 comments
< >
Per page: 15 30 50