Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerKill(killer, victim, mode)
- local khash = gethash(killer)
- local vhash = gethash(victim)
- if mode == 4 then
- if last_damage[vhash] then
- if string.find(last_damage[vhash], "melee") then
- say(getname(killer) .. " killed " .. getname(victim) .. " with a melee. ")
- end
- if last_damage[vhash] == "weapons\\frag grenade\\explosion" then
- say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
- end
- if last_damage[vhash] == "weapons\\plasma grenade\\explosion" then
- say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
- end
- if last_damage[vhash] == "weapons\\plasma grenade\\attached" then
- say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement