Quote:
Originally Posted by fysiks
Another question:
I switched from register_event("DeathMsg", "player_death", "a") to RegisterHam(Ham_Killed, "player", "ham_player_death", 1). In player_death() I used PLUGIN_CONTINUE for all my return values. From what I read in the constant include files I should convert all PLUGIN_CONTINUEs to HAM_HANDLED?
I was told that PLUGIN_HANDLED in the register_event case would cause the death to be unhookable by other plugins.
|
You should not compare the returns by ther value, but for their meanings
In your case, a direct comparison would be:
PLUGIN_CONTINUE = HAM_IGNORED
PLUGIN_HANDLED = HAM_SUPERCEDE
__________________