Advertisement
rockbandcheeseman

lakjsflkjalsfja;slf

Nov 22nd, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function OnPlayerKill(killer, victim, mode)
  2.  
  3.     local khash = gethash(killer)
  4.     local vhash = gethash(victim)
  5.     if mode == 4 then
  6.         if last_damage[vhash] then
  7.             if string.find(last_damage[vhash], "melee") then
  8.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a melee. ")
  9.             end
  10.            
  11.             if last_damage[vhash] == "weapons\\frag grenade\\explosion" then
  12.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
  13.             end
  14.        
  15.             if last_damage[vhash] == "weapons\\plasma grenade\\explosion" then
  16.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
  17.             end
  18.            
  19.             if last_damage[vhash] == "weapons\\plasma grenade\\attached" then
  20.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a grenade. ")
  21.             end
  22.         end
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement