View Single Post
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-24-2020 , 12:55   Re: [CSGO] New HTML Font supported hud element
Reply With Quote #5

Quote:
Originally Posted by backwards View Post
Hello, while searching for a new hud element to display text to clients in csgo I found this



It's supports HTML Font flags as well and is part of the round end cs panel. Here's a snippet on how it works.

PHP Code:
Event newevent_message CreateEvent("cs_win_panel_round");
newevent_message.SetString("funfact_token""message here");

for(
int z 1<= MaxClientsz++)
  if(
IsClientInGame(z) && !IsFakeClient(z))
    
newevent_message.FireToClient(z);
                                
event_fake.Cancel(); 
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.
thanks for sharing this
any idea how to show pictures? like a few post above
and how to clear the message from screen?
__________________

Last edited by 8guawong; 08-24-2020 at 12:55.
8guawong is offline