Pivity

getting lua errors with this, anyone know whats up?

Last read Never
#1

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

Dumb x 2
#2

Why use Facepunch or make one thread instead of 3? :v

#3

You posted no errors.

#4

Don't overwrite that function, make it into a hook. Post some errors and we can probably help.

Optimistic x 1
Users viewing this thread
Nobody