Options available
1) You can specify your server name that the current game mode will be added to.
2) You can specify the server number, useful if you have many servers.
3) You can manually edit or add game modes in external key values file, useful if you have custom mutations on your servers.
4) You can specify the static hostname using console command at any time
5) You can format dynamic hostname as you wish.
ConVars
sn_host_num "0" - set your server number here, this is usually added to launch command line.
sn_main_name "Hostname" - set your server name here.
sn_hostname_format1 "[{hostname} #{servernum}] {gamemode}" - choose preferable format of a hostname without difficulty levels, such as Confogl match or vanilla Versus
sn_hostname_format2 "[{hostname} #{servernum}] {gamemode} - {difficulty}" - choose preferable format of a hostname with difficulty levels, such as Campaign
sn_hostname_format3 "[{hostname} #{servernum}]" - choose preferable format of an emty server
Console commands
sn_hostname "Server name" - set your static hostname here, it wont be changed until you type
sn_hostname without arguments: this will set the hostname back to dynamic.
Installation
Put the server_namer.smx to your
plugins folder.
Put the server_namer.txt to your
configs folder.
Don`t forget to remove
hostname cvar and replace it by
sn_main_name "This is my server"
Changelog