mob/proc/deathcheck(var/mob/M)
if(src.hp <= 0)
world<<"[src] has died! Killed by [M]!"
src.loc=locate(1,1,1)
src.hp=src.maxhp
M<<"You killed [src]."
return 1
else return 0
Very very basic deathcheck code. Untested.
[EDIT: Whoops, forgot about that. :D ]
You still need to make deathcheck a proc which accepts an arguement.