Raised This Month: $ Target: $400
 0% 

Solved [HELP] Stopping Brass Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 08-10-2019 , 23:37   Re: [HELP] Stopping Brass Event
Reply With Quote #1

Quote:
Originally Posted by CrazY. View Post
Code:
register_message(get_user_msgid("Brass"), "EjectBrass"); ... public EjectBrass() {     return PLUGIN_HANDLED; }

or hook Ham_Weapon_PrimaryAttack and set the m_flEjectBrass member to 0.0
It works! Thank you! So basically I just had to switch from event to message, I didn't understand that the first thEsp told me. Finally fixed it after a long while.

Quote:
Originally Posted by HamletEagle View Post
register_event is a post hook, you can not block anything.
register_message is a pre hook.
Very good to know, thank you very much! I'm sure I'll keep that in mind from now on...
__________________

Last edited by hellmonja; 08-10-2019 at 23:51. Reason: grammar
hellmonja 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 17:22.


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