Raised This Month: $399 Target: $400
 99%   Almost there!

[L4D1 AND L4D2] Dynamic Info In Hostname


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ernecio
Member
Join Date: Sep 2019
Location: The United Mexican State
Plugin ID:
6857
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    The plugin shows in Hostname the difficulty and the number of players in real time.
    Old 12-16-2019 , 16:16   [L4D1 AND L4D2] Dynamic Info In Hostname
    Reply With Quote #1

    [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.

    Description:
    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)

    Convars:

    PHP Code:
    // Enables/Disables The Plugin. 0 = Plugin OFF, 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_hostname_enable "1"

    // Name of the server to be used
    // -
    // Default: "HostName"
    l4d_hostname_data "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"
    l4d_hostname_modes "1" 
    Known Bugs:
    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

    Installation:

    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)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_dynamic_info_in_hostname.sp - 278 views - 7.0 KB)

    Last edited by Ernecio; 12-16-2019 at 16:26.
    Ernecio is offline
    Marttt
    Senior Member
    Join Date: Jan 2019
    Old 12-16-2019 , 21:06   Re: [L4D1 AND L4D2] Dynamic Info In Hostname
    Reply With Quote #2

    Nice, I made a similar plugin a while ago, never thought about the difficulty settings, good catch.
    __________________
    Marttt is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 12-16-2019 , 23:10   Re: [L4D1 AND L4D2] Dynamic Info In Hostname
    Reply With Quote #3

    Quote:
    Originally Posted by Marttt View Post
    Nice, I made a similar plugin a while ago, never thought about the difficulty settings, good catch.
    Yes, I saw your post and it's great plugin, thank you
    Ernecio is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:37.


    Powered by vBulletin®
    Copyright ©2000 - 2020, vBulletin Solutions, Inc.
    Theme made by Freecode