AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Any way to overwrite hudmessages from other plugins? (https://forums.alliedmods.net/showthread.php?t=296269)

redivcram 04-16-2017 12:14

Any way to overwrite hudmessages from other plugins?
 
I want to make a plugin that will display a hud message and remove and prevent every other hud channels from other plugins until its time is up and others are called again.

klippy 04-16-2017 13:29

Re: Any way to overwrite hudmessages from other plugins?
 
http://amxmodx.org/api/message_const#te-textmessage
SVC_TEMPENTITY message with these params is what gets sent when you send a hud message. Hooking it with register_message() might work. You have to check if the first param is TE_TEXTMESSAGE and the second one is a desired channel.

PartialCloning 04-16-2017 13:52

Re: Any way to overwrite hudmessages from other plugins?
 
It won't work, the message from the other plugins doesn't get sent to other plugins unless you use emessage. However you can hook it with orpheu or a(nother) module.


All times are GMT -4. The time now is 18:01.

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