View Single Post
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