Weapon is returned as a string. To check a string, use equal.
Also weapon is returned without "weapon_" in front of it's name.
But if you need the function only for knife kill, you can just register the event like this:
PHP Code:
register_event("DeathMsg","OnPlayerDeath","a","4=knife")
__________________