...
...
|
Re: Read data
It would make more sense to trigger off of some other event.
|
Re: Read data
Agree with fysiks. Explain what you're ultimately trying to do, there may be a much simpler way instead of scanning every single server message.
|
Re: Read data
Quote:
I just want to know if such a thing is possible at all? |
Re: Read data
....
|
Re: Read data
For client print there exist fakemeta forward, just register this FM_ClientPrintf(haven't tried but it should work fine).
For color chat i guess it use SayText event so you need to register it. How to register if u don't know for client_print function HTML Code:
public plugin_init()HTML Code:
public plugin_init() |
Re: Read data
Tell us specifically what you are trying to do and we may be able to recommend a better and more efficient way to do it.
I understand you want to read console messages, but that does not answer my question. |
Re: Read data
....
|
Re: Read data
Stop glossing over questions and answer them. You still don't make sense as to what you want to achieve. We can't just throw around random code and get a "didn't work". It doesn't work because you didn't properly ask for what you want. This is where the "better and more efficient way" comes in when you properly ask a question, or in translation "way that works".
|
Re: Read data
If the message is sent by the server or one of the amxmodx natives (client_print, engclient_print, etc), you could use orpheu. if it's sent by some plugin using message_begin and SayText, you will need to edit the plugin (search for emessage_begin) so you are able to hook the message as hitD showed you in his second code. Orpheu could also be used in that case, but you would hook the message_begin native instead.
It would be easier to simply edit the plugin that sends the message or do what fysiks suggested to be honest, I'm not sure why you are not considering that option. |
| All times are GMT -4. The time now is 14:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.