Hey so I’ve recently started a dedicated Gmod server, and was wondering how I could make it change gamemode then reload the map to apply the changes whenever the server starts. Id also like to make it reboot on crash. I found this batch file that does the reboot thing so how would I add game mode and map change into this?
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 srcds.com Watchdog
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map gm_construct +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.