I am hooking it like that:
PHP Code:
register_message( get_user_msgid( "DeathMsg" ) , "fw_EvDeathMsg" );
Then I have this:
PHP Code:
public fw_EvDeathMsg( msg_id , msg_dest , msg_entity )
Now what or who/would be msg_id , msg_dest?
Is msg_id the person who died or am I off the mark?
or can I use something like this:
PHP Code:
public fw_EvDeathMsg( msg_id , msg_dest , msg_entity )
{
if ( cs_get_user_team(msg_id) == T ) //died person?
{
client_print(0, print_chat, "a Terrorist died.")
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}