set up a gmod server code example
Example 1: how to make a gmod server
GMOD SERVER CFG FILE
// Base Configuration
hostname "servername"
sv_password ""
rcon_password "password"
gamemode "darkrp"
// Network Configuration
sv_loadingurl ""
sv_downloadurl ""
sv_allowdownload 1
sv_allowupload 0
net_maxfilesize 64
// Logging Configuration
log on
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
// Exec Bans
exec banned_user.cfg
exec banned_ip.cfg
Example 2: how to make a gmod server
SERVER .BAT START FILE
@echo off
cls
echo Protecting srcds from crashes...
echo if you want to close scrds and this script type Y then enter
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map rp_downtown_tits_v2 +maxplayers 30 -gamemode DarkRP +host_workshop_collection "paste collection key" -authkey
echo (%time%) WARNING: srcds closed or crashed, restarting.