t5_bot_warfare/z_server.bat
2021-09-04 23:39:57 -06:00

25 lines
1.1 KiB
Batchfile

@echo off
::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
set rcon_password=
::Name of the config file the server should use.
set cfg=server.cfg
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=RektT5 Bot Warfare
::Port used by the server (default: 28960)
set port=28967
::What ip to bind too
set ip=0.0.0.0
::Mod name (default "")
set mod=
title RektT5 MP - %name% - Server restarter
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"!
echo To shut down the server close this window first!
echo (%date%) - (%time%) %name% server start.
:server
start /wait /abovenormal "%name%" "%~dp0rekt\t5m.exe" -console +set dedicated "2" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%"
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server