How to make hudmessage not go away?
Hi, im tryign to display a users kills with a hud message and i wonder how do i make it not go away?
Code: PHP Code:
|
Re: How to make hudmessage not go away?
|
Re: How to make hudmessage not go away?
yeh but i dont want the message to go away until the map end or possibly round end.
|
Re: How to make hudmessage not go away?
The solution is simple. When it's about to "go away" display it again.
The simplest way to code that is to use set_task. PHP Code:
|
Re: How to make hudmessage not go away?
I will try that, but what shud i do with "start_displaying"?
|
Re: How to make hudmessage not go away?
Quote:
Here's some extra info that may help you... If you want to stop displaying the HUD at any time, call remove_task( 2356 ). To check if this HUD is being displayed, use task_exists( 2356 ). If you want to display the HUD for only X seconds while allowing it to be updated w\ new data each second, pass the "a" flag instead of "b" and specify the number of seconds. For example, to show the above HUD for only 30 seconds: set_task( 1.0 , "display_msg" , 2356 , _ , _ , "a" , 30 ); |
Re: How to make hudmessage not go away?
alright, thanks ill test as soon as ive rewritten my code.
Edit: i think i want to thank you. |
Re: How to make hudmessage not go away?
Yes, but then you have 10+ HUD messages per second overlapping each other.
|
Re: How to make hudmessage not go away?
Quote:
|
Re: How to make hudmessage not go away?
..
shud i use set_task or client_PreThink !? I tested both and prethink so far works best. |
All times are GMT -4. The time now is 01:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.