Author Topic: Help with modding murder.  (Read 1169 times)

0 Members and 1 Guest are viewing this topic.

Offline jcoolj13

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Help with modding murder.
« on: February 04, 2017, 08:49:16 PM »
Hello, I am fairly new to this website and I have one question. How do I make it where if the  bystander kills another bystander, they become blind for 45 seconds. Here is the code;
Code: [Select]
function IgniteBystander(victim,inflictor,attacker)
 
        if not attacker:GetMurderer() then
                attacker:Ignite()
        end
 
end
hook.Add("PlayerDeath", "BystanderPunishment", IgniteBystander)