mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 18:25:44 +00:00
31 lines
1.4 KiB
Batchfile
31 lines
1.4 KiB
Batchfile
@echo off
|
|
::Paste the server key from https://platform.plutonium.pw/serverkeys here
|
|
set key=
|
|
::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=CoD4x Bot Warfare
|
|
::Port used by the server (default: 28960)
|
|
set port=28969
|
|
::What ip to bind too
|
|
set ip=0.0.0.0
|
|
::Mod name (default "")
|
|
set mod=
|
|
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
|
|
set gamepath=%cd%
|
|
::Max clients in your server
|
|
set maxclients=64
|
|
|
|
title CoD4x 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%" "%~dp0cod4x18_dedrun.exe" +set dedicated "2" +set sv_authtoken "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +set sv_maxclients "%maxclients%" +exec "%cfg%" +map_rotate
|
|
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
|
goto Server
|