Search the forums prior to requesting code.
Untested.
PHP Code:
public plugin_init()
{
register_event( "DeathMsg" , "EvDeathMsg" , "a" , "3=1" , "4&knife" );
}
public EvDeathMsg()
{
static szKiller[ 33 ] , szVictim[ 33 ];
new iKiller = read_data( 1 );
new iVictim = read_data( 2 );
get_user_name( iKiller , szKiller , charsmax( szKiller ) );
get_user_name( iVictim , szVictim , charsmax( szVictim ) );
client_cmd( 0 , "spk misc/headshot" );
client_print( 0 , print_chat , "* %s killed %s with knife headshot!" , szKiller , szVictim );
}
__________________