AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSGO] New HTML Font supported hud element (https://forums.alliedmods.net/showthread.php?t=326935)

kratoss1812 02-03-2022 14:00

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by backwards (Post 2715352)
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?

bigborther 05-05-2022 07:14

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by MAGNET12 (Post 2715507)
Works exactly the same way on my server

try add "<br>"

echocage 08-28-2022 21:19

Re: [CSGO] New HTML Font supported hud element
 
Hello! Is it possible to hide the cs_win_panel_round interface itself and at the same time display its contents?

iGANGNAM 10-15-2022 08:30

Re: [CSGO] New HTML Font supported hud element
 
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


All times are GMT -4. The time now is 22:38.

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