Raised This Month: $32 Target: $400
 8% 

Hooking HUD Message Disappearing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-20-2010 , 12:24   Hooking HUD Message Disappearing
Reply With Quote #1

Hello.

I wanted to ask if there's a way to hook when a HUD message disappears. Showing HUD message and setting a task with the time equal to message's holdtime sucks, as HUD messages tend to disappear randomly when I intensively use them. I'd need an universal method working with any GoldSource game.

Thanks for the answers.
__________________
hleV is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-20-2010 , 15:42   Re: Hooking HUD Message Disappearing
Reply With Quote #2

I don't think you can use other way than task, just make a task with holdtime and make a check to see if other message it's called on same channel before holdtime expires, then call "Message_End" and remove old task.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode