01.08.2010, 00:30
Dont know if it works with npcs, but normally when a player is killed by a car, OnPlayerDeath ist called with the car death reason.
You could check if the killerid is the driving npc and then SendChat.
If not, you could check the distance to the npc, if a player is called with an unknown reason to see if he could be hit by the tram.
You could check if the killerid is the driving npc and then SendChat.
If not, you could check the distance to the npc, if a player is called with an unknown reason to see if he could be hit by the tram.