Raised This Month: $ Target: $400
 0% 

[ANY] Custom ServerInfo Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ugng
New Member
Join Date: Dec 2021
Plugin ID:
8463
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Replace the text sent to clients in CBaseClient::SendServerInfo
    Old 05-17-2023 , 23:42   [ANY] Custom ServerInfo Text
    Reply With Quote #1

    This plugin allows for customization of the server info text that's sent to clients each time they connect.



    Format:
    • Values are inserted with printf format specifiers.
    • Since this plugin does not modify the internal snprintf call at all, you have the following values at your disposal (in this order):
      [ Game description (%s), Map name (%s), Current players (%d), Max players (%d), Build number (%d), Server number (%d) ]
    • Using less values than those available is okay (e.g. omitting the last specifier for server number).
    • String values can be skipped using "%.s".

    CVars:
    • serverinfotext_version - plugin version

    Dependencies:
    Installation:
    • Make sure you have Source Scramble installed.
    • Place the plugin in sourcemod/plugins and the gamedata file in sourcemod/gamedata.
    • Create a file named infotext.txt in sourcemod/configs with your custom text. An example config is provided below.
    • Load the plugin as normal. Plugin must be reloaded for config changes to take effect.

    Thanks to Zabaniya / Suza for help with mempatching this properly.

    Download plugin (serverinfotext.smx)
    Download gamedata (serverinfotext.txt)
    Download example config (infotext.txt)

    View source (serverinfotext.sp)

    Last edited by ugng; 05-18-2023 at 04:31.
    ugng 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 12:44.


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