Raised This Month: $ Target: $400
 0% 

Any way to overwrite hudmessages from other plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 04-16-2017 , 12:14   Any way to overwrite hudmessages from other plugins?
Reply With Quote #1

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.
redivcram is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-16-2017 , 13:29   Re: Any way to overwrite hudmessages from other plugins?
Reply With Quote #2

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.

Last edited by klippy; 04-16-2017 at 13:29.
klippy is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 04-16-2017 , 13:52   Re: Any way to overwrite hudmessages from other plugins?
Reply With Quote #3

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.

Last edited by PartialCloning; 04-16-2017 at 13:52.
PartialCloning 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 18:01.


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