Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::=======================::
- :: SRCDS Guardian 3.0 ::
- :: Mooga ::
- :: SRCDS.com ::
- ::=======================::
- ::=========================================================::
- :: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
- :: This script is open source. Feel free to edit at will. ::
- :: ::
- :: This script was writen for the use of the srcds.com ::
- :: online community. If you are interested in running a ::
- :: Source Dedicated Server or need help, drop by our ::
- :: forums at... http://forums.srcds.com ::
- ::=========================================================::
- ::=======================::
- :: SET YOUR VARIABLES! ::
- ::=======================::
- ::=======================::
- :: Window and Log name ::
- :: Replace "My Server" ::
- ::=======================::
- set servername=V92-B
- ::=======================::
- :: Your start command ::
- :: Replace after = ::
- ::=======================::
- set runcmd=D:\srcds\orangebox\srcds.exe -console -game obsidian -maxplayers 12 -fps_max 900 -port 27015 +map oc_lobby -tickrate 66
- ::=======================::
- :: End of variables ::
- ::=======================::
- :: This will keep the window clean and easy to read
- @echo off
- :: Sets the title of the window
- title Guardian - %servername%
- :: Clears the window incase there is anything there
- cls
- :: Prints to the window what we are doing
- echo SRCDS Guardian 3.0 has been started!
- echo.
- echo *************************************************************************
- echo To close the server, close this window and type exit in the server window
- echo *************************************************************************
- echo.
- echo.
- echo %servername% is now starting...
- >> "%servername%.log" echo.
- >> "%servername%.log" echo.
- >> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
- >> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...
- :: This is a return point in case the server crashes or is closed
- :restart
- echo.
- echo (%date%)(%time%) %servername% is now ONLINE
- echo Watching %servername% for crashes...
- >> "%servername%.log" echo.
- >> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
- >> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...
- ::Start the actual server
- start /wait %runcmd%
- echo.
- echo (%date%)(%time%) Crash or Close detected!
- echo %servername% is now restarting...
- >> "%servername%.log" echo.
- >> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
- >> "%servername%.log" echo (%date%)(%time%) %servername% is now restarting...
- ::Server crashed or closed, so we point it to the return point to start the server again
- goto restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement