Raised This Month: $ Target: $400
 0% 

Event Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 06-08-2019 , 07:26   Event Hud Message
Reply With Quote #1

is there a way to read an event when a hudmessage pops up?

and also get the string inside it

like for example


public event_hudmessage(text)
{

client_print(0,print_chat,"%s",text);

}

ty
Ynet is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-08-2019 , 08:15   Re: Event Hud Message
Reply With Quote #2

hudmessage from amxx? no
unless you row your own using TE_TEXTMESSAGE, but sent trough the emessage natives and then hook the SVC_TEMPENTITY message and check the params from there......
__________________
<VeCo> is offline
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 06-08-2019 , 08:34   Re: Event Hud Message
Reply With Quote #3

Quote:
Originally Posted by <VeCo> View Post
hudmessage from amxx? no
unless you row your own using TE_TEXTMESSAGE, but sent trough the emessage natives and then hook the SVC_TEMPENTITY message and check the params from there......
not from amxx

i am using a map on my server that advertises a website using a white hudmessage and i want to remove it

Last edited by Ynet; 06-08-2019 at 08:35.
Ynet is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-08-2019 , 08:48   Re: Event Hud Message
Reply With Quote #4

Quote:
Originally Posted by Ynet View Post
not from amxx

i am using a map on my server that advertises a website using a white hudmessage and i want to remove it
If I understood you correctly, his text can be formatted in many different ways, according to the syntax provided.
Do you want to delete a particular message from the map you are using or something created from amxx?

Last edited by Fuck For Fun; 06-08-2019 at 09:33.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-08-2019 , 09:05   Re: Event Hud Message
Reply With Quote #5

Quote:
Originally Posted by Ynet View Post
not from amxx

i am using a map on my server that advertises a website using a white hudmessage and i want to remove it
The entity for that HUD is env_message, you can remove it or change it's "message" key value trough the DispatchKeyValue native.
__________________
<VeCo> 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 23:09.


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