Alright guys, its a simple one, but i donno how

I want that when a player dies, to execute a part of the code.
is it this one?:
http://www.amxmodx.org/funcwiki.php?go=func&id=898
if yes, why is there killer, victim and such
also i want it to work when also he suicides and such, in the function comments, it says it wont work when someone suicide
isnt there a function that works like client_putinserver(id)
i mean a function that i pass through it the id of the player
thanks in advance