From anon, 1 Year ago, written in Plain Text.
This paste will slip away in 1 Second.
Embed
  1. #!/bin/sh
  2. #Server Start Script by The1Speck / balon
  3. #Vars
  4. SRVRNICK="csgo-climb102"
  5. TICKRATE="102.4"
  6. MAXP="24"
  7. MAP="kz_lego"
  8. IP="167.114.57.216"
  9. PORT="-strictportbind -port 27015"
  10. TYPES="+game_type 3 +game_mode 0"
  11. CMDLINE="-game csgo -console -usercon -debug -ip $IP $PORT -tickrate $TICKRATE -maxplayers_override $MAXP $TYPES +map $MAP"
  12.  
  13. if screen -ls | grep -q $SRVRNICK; then
  14.         screen -S $SRVRNICK -X quit
  15.         screen -dmS $SRVRNICK ./srcds_run $CMDLINE
  16.         echo Your server has been restarted.
  17. else
  18.         screen -dmS $SRVRNICK ./srcds_run $CMDLINE
  19.         echo Your server has been started.
  20. fi