Getting the player or entity that killed you?

Hey people.

I am coding a gamemode where I need to find out who killed who. How do I call this kind of information?
If it helps; when the “catcher” chops you with his crowbar, the person to be killed by the crowbar needs to become the new “catcher”
Hope someone can help me out :smiley:

You could just say you’re making a “tag, you’re it!” gamemode.

Anyway, there’s a hook for it. Look on the wiki.

It seems like you didn’t learn anything from the last time I posted code to help you out.
http://gmodwiki.net/Lua/Hooks/Base/DoPlayerDeath

xD sorry Brandon, I was confused on how exactly I use that :confused:

[editline]6th June 2013[/editline]

Okay I figured it out. Thanks lads.