How to check if an NPC killed a Player?

You should use this native.