[FUNCTION SEARCH] player kills someone

okay, im looking for a function that will make something if you kill a player.

thank you all for answering, i know my english is horrible.

Hooks are here for just that reason
[lua]
local function PlayerWasKilled(victim, inflictor, killer)
–do things here
end
hook.Add(“PlayerDeath”, “MyPlayerDeathHook”, PlayerWasKilled)
[/lua]
MyPlayerDeathHook is just a unique name for the hook, you can call it whatever you want.

woah, im so stupid X( , thank you!!!

PeACe

[editline]12:27AM[/editline]