Raised This Month: $ Target: $400
 0% 

[CSGO] New HTML Font supported hud element


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 22:38.


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