Raised This Month: $ Target: $400
 0% 

[L4D2] HUD Server Logo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GoGetSomeSleep
Senior Member
Join Date: Dec 2018
Location: Miami/Florida
Old 08-02-2022 , 11:34   Re: [L4D2] HUD Server Logo
Reply With Quote #16

Quote:
Originally Posted by Marttt View Post
Probably something like this:

local hostname = Convars.GetStr("hostname");
and use it inside the hud
like this?

Code:
local hostname = Convars.GetStr("hostname");

HUDTable <-
{
	Fields = 
	{
		hud = { slot = HUD_FAR_RIGHT, special = hostname, flags = HUD_FLAG_ALIGN_RIGHT, name = "host" }
	}
}


HUDSetLayout(HUDTable)
     HUDPlace( HUD_FAR_RIGHT, 0.0100, 0.0350, 0.0595, 0.075 )
or this

Code:
local hostname = Convars.GetStr("hostname");

HUDTable <-
{
	Fields = 
	{
	     hud   = { slot = HUD_RIGHT_TOP, hostname  = Convars.GetStr("hostname");, name = "HUD" }
	}
}


HUDSetLayout(HUDTable)
     HUDPlace( HUD_RIGHT_TOP, 0.0100, 0.0350, 0.0595, 0.075 )

Last edited by GoGetSomeSleep; 08-02-2022 at 11:37.
GoGetSomeSleep is offline
 



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 23:46.


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