Raised This Month: $51 Target: $400
 12% 

Block message in message hook, but continue in code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Silencer123
Veteran Member
Join Date: Jul 2006
Old 06-07-2009 , 16:38   Block message in message hook, but continue in code
Reply With Quote #1

I want to block a message in its hook, yet have the code move on.
To a block a message you would return PLUGIN_HANDLED, but I cannot
chronologically append my code directly after it.
Code:
public plugin_init() {     register_message(somemsg, "msg_hook"); } public msg_hook(msg_id, msg_dest, id) {     // <-- Block the message here, as return PLUGIN_HANDLED would do ...     // ... yet have more code be executed after it ...     // ... like other message calls which would crash the game otherwise. }
__________________
EAT YOUR VEGGIES
Silencer123 is offline
 



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 14:46.


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