getting lua errors with this, anyone know whats up?
Last read Never
function PlayerDeath(victim, weapon, killer) if GetGlobalBool( "Purge", true ) then if(victim != killer) then if(killer:IsPlayer()) then local xpgot = killer:addXP(40*(killer:getDarkRPVar('level') or 1), true) DarkRP.notify(killer, 0,4,'You got '..xpgot..'XP for killing '..victim:Nick()) else DarkRP.notify(killer,0,4,'You killed '..victim:Nick())
end
end
end
end
Why use Facepunch or make one thread instead of 3? :v
You posted no errors.
Don't overwrite that function, make it into a hook. Post some errors and we can probably help.
Users viewing this thread
Nobody