Show a HUD message indefinitely
Hello
Is it possible to show a HUD message indefinitely ? I mean like when a player goes to SPEC or dies during the game. I want to show a HUD message till the player joins T or CT or gets respawned in the next round. I tried hooking DeathMsg and Spectator messages like this: Code:
but the HUD is displayed only for a short time. |
Re: Show a HUD message indefinitely
How about giving us some code?
|
Re: Show a HUD message indefinitely
I have already created that for my server.
Will give tomorrow. |
Re: Show a HUD message indefinitely
You have to use a repeating task of some sort to constantly re-show the message. There are several threads on there that ask about this and it's typically termed "permanent HUD message" or something similar.
|
Re: Show a HUD message indefinitely
Quote:
|
Re: Show a HUD message indefinitely
Quote:
|
Re: Show a HUD message indefinitely
Quote:
PHP Code:
|
Re: Show a HUD message indefinitely
@iceeedr
I don't know what you mean. @fysiks Thanks for the keyword. I've already tried something similar (using set_task), but the message is shown only for one time, dunno maybe did something wrong. I'll look into those threads. @CrAzY MaN Gonna try it out, thanks. |
Re: Show a HUD message indefinitely
I did it like this:
Code:
It works, I just wanna know if I could make it better. Would there be any difference if I used a "get user team" in order to show the message when the player joins the SPEC or the current "register_message(120, "join_spec");" is OK ? And I would appreciate it if someone could briefly explain the difference between hudmessage and dhudmessage. The obvious difference from the API is that dhudmessage has no channel parameter. Thanks. |
Re: Show a HUD message indefinitely
Code:
:arrow: Code:
|
| All times are GMT -4. The time now is 04:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.