how to show translated text in hud?
Hi. How can I show translated text keys (like "#Bomb_Planted", etc.) in HUD messages? So instead of "#Bomb_Planted" players will see "The bomb has been planted!"
|
Re: how to show translated text in hud?
You would use TextMsg to do that. I implemented the following code based on regamedll source, refer to for more examples. Make sure you to not pass a string with length greater than 190 characters, otherwise the server will probably crash.
Code:
enum |
Re: how to show translated text in hud?
tysm for this useful snippet i will steal it, but i wanted a bit different (maybe I asked the question incorrectly). Is it possible to show that texts with hud_showmessage?
|
| All times are GMT -4. The time now is 02:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.