SourceMod SDK
1.7
|
Listens to user messages sent from the server. More...
#include <public/IUserMessages.h>
Public Member Functions | |
virtual void | OnUserMessageSent (int msg_id) |
Called when a hooked user message is sent, regardless of the hook type. More... | |
virtual unsigned int | GetUserMessageAPIVersion () |
Returns the user message API version. | |
virtual void | OnPostUserMessage (int msg_id, bool sent) |
Called when a hooked user message hook is finished, regardless of the hook type. More... | |
virtual UserMessageType | GetUserMessageType () const =0 |
Listens to user messages sent from the server.
|
inlinevirtual |
Called when a hooked user message hook is finished, regardless of the hook type.
Note: this is only called if hooked using the new API (version 2 or greater).
msg_id | Message Id. |
sent | True if message was sent, false if blocked. |
|
inlinevirtual |
Called when a hooked user message is sent, regardless of the hook type.
Note: This is called regardless of the API version, though it only happens if the message is successfully sent.
msg_id | Message Id. |