Raised This Month: $12 Target: $400
 3% 

[CSGO] New HTML Font supported hud element


Post New Thread Reply   
 
Thread Tools Display Modes
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 02-03-2022 , 14:00   Re: [CSGO] New HTML Font supported hud element
Reply With Quote #21

Quote:
Originally Posted by backwards View Post
Sadly it has drawbacks of not rendering for 1 second when you send the message. So if you want to constantly update the text like surf\bhop timer, it will be invisible or delayed. Thought I would share this with the community.
has anyone found a work-around for this?
__________________
kratoss1812 is offline
bigborther
Member
Join Date: Feb 2014
Location: china
Old 05-05-2022 , 07:14   Re: [CSGO] New HTML Font supported hud element
Reply With Quote #22

Quote:
Originally Posted by MAGNET12 View Post
Works exactly the same way on my server
try add "<br>"
bigborther is offline
echocage
Member
Join Date: Oct 2021
Old 08-28-2022 , 21:19   Re: [CSGO] New HTML Font supported hud element
Reply With Quote #23

Hello! Is it possible to hide the cs_win_panel_round interface itself and at the same time display its contents?
echocage is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 10-15-2022 , 08:30   Re: [CSGO] New HTML Font supported hud element
Reply With Quote #24

In case you would like to overlap cs_win_panel_round (same text as warmup, match starting in.. etc)
Quote:
stock void PrintCenterTextHtml(int client, int iDuration, const char[] message, any ...) {
if(IsClientInGame(client) && !IsFakeClient(client))
{
char buffer[512];
SetGlobalTransTarget(client);
VFormat(buffer, sizeof(buffer), message, 4);
Event hEvent_html = CreateEvent("show_survival_respawn_status", true);
SetEventString(hEvent_html, "loc_token", buffer);
SetEventInt(hEvent_html, "duration", iDuration);
SetEventInt(hEvent_html, "userid", GetClientUserId(client));

hEvent_html.FireToClient(client);
CancelCreatedEvent(hEvent_html);
}
}
It does support font, image stuff as well
__________________

Last edited by iGANGNAM; 10-15-2022 at 08:32.
iGANGNAM 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 14:07.


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