Raised This Month: $ Target: $400
 0% 

prevent a Ham registered event from going through


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-05-2014 , 05:06   Re: prevent a Ham registered event from going through
Reply With Quote #6

This is wrong : RegisterHam(Ham_TakeDamage, "player", "player_hurt_pre", 1)

Already stated by fysiks but you may understand better like this :


RegisterHam(Ham_TakeDamage, "player", "player_hurt_pre", 0) <- you can stop this one because you hook it before it is executed


RegisterHam(Ham_TakeDamage, "player", "player_hurt_post", 1) <- you can't stop this one because you hook it after it has been executed
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:04.


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