Advertisement
ReverendV92

V92B-OC

Aug 5th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.80 KB | None | 0 0
  1. ::=======================::
  2. ::  SRCDS Guardian 3.0   ::
  3. ::         Mooga         ::
  4. ::       SRCDS.com       ::
  5. ::=======================::
  6.  
  7. ::=========================================================::
  8. :: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
  9. :: This script is open source.  Feel free to edit at will. ::
  10. ::                                                         ::
  11. :: This script was writen for the use of the srcds.com     ::
  12. :: online community.  If you are interested in running a   ::
  13. :: Source Dedicated Server or need help, drop by our       ::
  14. :: forums at... http://forums.srcds.com                    ::
  15. ::=========================================================::
  16.  
  17. ::=======================::
  18. ::  SET YOUR VARIABLES!  ::
  19. ::=======================::
  20.  
  21. ::=======================::
  22. ::  Window and Log name  ::
  23. ::  Replace "My Server"  ::
  24. ::=======================::
  25. set servername=V92-B
  26.  
  27. ::=======================::
  28. ::   Your start command  ::
  29. ::    Replace after =    ::
  30. ::=======================::
  31. set runcmd=D:\srcds\orangebox\srcds.exe -console -game obsidian -maxplayers 12 -fps_max 900 -port 27015 +map oc_lobby -tickrate 66
  32.  
  33. ::=======================::
  34. ::   End of variables    ::
  35. ::=======================::
  36.  
  37. :: This will keep the window clean and easy to read
  38. @echo off
  39.  
  40. :: Sets the title of the window
  41. title Guardian - %servername%
  42.  
  43. :: Clears the window incase there is anything there
  44. cls
  45.  
  46. :: Prints to the window what we are doing
  47. echo SRCDS Guardian 3.0 has been started!
  48. echo.
  49. echo *************************************************************************
  50. echo To close the server, close this window and type exit in the server window
  51. echo *************************************************************************
  52. echo.
  53. echo.
  54. echo %servername% is now starting...
  55. >> "%servername%.log" echo.
  56. >> "%servername%.log" echo.
  57. >> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
  58. >> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...
  59.  
  60. :: This is a return point in case the server crashes or is closed
  61. :restart
  62.  
  63. echo.
  64. echo (%date%)(%time%) %servername% is now ONLINE
  65. echo Watching %servername% for crashes...
  66. >> "%servername%.log" echo.
  67. >> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
  68. >> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...
  69.  
  70. ::Start the actual server
  71. start /wait %runcmd%
  72.  
  73. echo.
  74. echo (%date%)(%time%) Crash or Close detected!
  75. echo %servername% is now restarting...
  76. >> "%servername%.log" echo.
  77. >> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
  78. >> "%servername%.log" echo (%date%)(%time%) %servername% is now restarting...
  79.  
  80. ::Server crashed or closed, so we point it to the return point to start the server again
  81. goto restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement