Well, I tried posting this on the Facepunch forums, but didn't get much help.
I don't know why, but i'm not a huge fan of the Facepunch community. They're not very welcoming to noobs.. /rant
Anyway, on point..
So I own a Murder server and it's relatively basic as far as addons and whatnot.
My goal is to make it so that whenever a Bystander kills another Bystander, they are instantly ignited via the ULX command "ulx ignite <player>" as punishment for killing an innocent.
Is this possible? If so, how might I go about it?
Please know that although I get the basic structuring of LUA, it is still very new territory for me. (Be gentle..)
IceMod from Facepunch reccomended I try something along these lines:
function IgniteBystander(victim,inflictor,attacker)
if victim:IsBystander() and attacker:IsBystander() then
attacker:Ignite()
end
end
hook.Add("PlayerDeath", "BystanderPunishment", IgniteBystander)
Would this work? Where exactly would this be added?