AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event Hud Message (https://forums.alliedmods.net/showthread.php?t=316746)

Ynet 06-08-2019 07:26

Event Hud Message
 
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

<VeCo> 06-08-2019 08:15

Re: Event Hud Message
 
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......

Ynet 06-08-2019 08:34

Re: Event Hud Message
 
Quote:

Originally Posted by <VeCo> (Post 2654830)
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

Fuck For Fun 06-08-2019 08:48

Re: Event Hud Message
 
Quote:

Originally Posted by Ynet (Post 2654831)
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?

<VeCo> 06-08-2019 09:05

Re: Event Hud Message
 
Quote:

Originally Posted by Ynet (Post 2654831)
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.


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

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