Something like this I believe:
PHP Code:
// plugin_init
register_event("DeathMsg", "player_death", "a","1>0")
public player_death(id)
{
new killerid = read_data(1)
new victimid = read_data(2)
new szWeapon[20]; read_data(4, szWeapon, charsmax(szWeapon));
if( equal(szWeapon, "knife") )
{
// killerid killed victimid with a knife
}
else
{
// killerid killed victimid with something other than knife
}
}
__________________