[L4D1 AND L4D2] Dynamic Info In Hostname
This is a basic Plugin based on the original idea of Players count in hostname by D1maxa and in Server namer by Sheo, but unlike these plugins this version can show: Difficulty, HostName and Player Counter in the main name of the server, withot extra configs file (Only Autoxec autocreated by default). this plugin not show game modes or other values in the server name.
This plugin has three operating modes which can show basic information about the current difficulty on the server, server name and player counter, the plugin updates the information in real time (It also depends on the speed of the steam master server update ), for example: [Advanced] My Awesome Server [8/10]
(This plugin has only been designed for coop game mode and therefore only tested in coop mode)
// Enables/Disables The Plugin. 0 = Plugin OFF, 1 = Plugin ON.
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
// Name of the server to be used
// Default: "HostName"
// Select HostName Format Modes.
// 1 = Show: Difficulty, HostName And Player Counter.
// 2 = Show: Difficulty And HostName.
// 3 = Show: HostName And Player Counter.
// Default: "1"
// Minimum: "1.000000"
// Maximum: "3.000000"
If the name of the server is changed by external sources then the format established by the plugin will be lost, to return to its normality only wait for a change in the difficulty or connected players
1 - Click "Get Plugin" and put the l4d_dynamic_info_in_hostname.smx file into your server \addons\sourcemod\plugins\ folder.
2 - The first time the plugin is executed, it will create a configuration file called: l4d_dynamic_info_in_hostname.cfg in the path: cfg\sourcemod \ forlder.
change the parameter (HostName) in this file: l4d_hostname_data "HostName" to your prefer, example: l4d_hostname_data "My Awesome Server"
3 - (Optional) In order for the plugin to work correctly at the server startup it is necessary to have: sv_pausable 0 in server.cfg
Otherwise the server will go into hibernation and the default name assigned in server.cfg will be displayed (the plugin will display information until a player connects or changes the difficulty if its set sv_pausable 1)
(Note the Web compiler is configured for SM 1.10)