Since OP hasn't specified which OS he's using.
Quote:
Originally Posted by Kempus
Add -autorestart to server launch commands.
|
That only works for Linux.
For windows however, Save the following code as a .bat and place it in the folder where scrds.exe is. Be sure to edit it to fit your needs as well.
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds, close the srcds window and type Y depending on your language followed by Enter.
title Server Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game GAME +map MAP +maxplayers 24
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Obviously replace "GAME" with the game, for tf2 it's "tf" for csgo I belive it's "csgo" and for css I belive it's "cs"
"MAP" Should be obvious as what to do.
__________________