native register_message(iMsgId, const szFunction[]);


Lets you directly hook a message in the engine!
You can overwrite the message before anything happens and either let the message continue
or fully block it. Here is how it works:
If you hook a message, the message is stored but not sent. You have the opportunity to
not only execute code, but to get/set the contents of the message, before you choose to
either block it or let it go on its way. The hooked function will be passed a msg_id, msg_dest, and entity index.
The return value can be passed to unregister_message() to stop the message from being hooked