Okay so I still can't manage to get it working, this is what I did, apologies in advance, I'm probably failing.
This is the function
Code:
public hook_deathmsg(msgId,msgDest,iReceiver){
new pevVictim = get_msg_arg_int( 2 )
if(UserData[pevVictim][HideDeathMSG]==true){
UserData[pevVictim][HideDeathMSG]=false
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
This is the code in plugin init
Code:
public plugin_init(){
register_plugin("Main","1.0","Snoozy")
gmsgDeathMsg = get_user_msgid("DeathMsg")
register_message(gmsgDeathMsg,"hook_deathmsg")
}