I have been trying to make some code for points every time you kill the death for my DeathRun server. I am using Pointshop by _Undefined and I know this can be done because I have seen it before. I am not any kind of lua expert but this is what I came up with.
function PlayerKill(victim, weapon, killer) if killer:Team() == Runner then killer:PS_GivePoints(10) killer:PS_Notify(" You have gained 10 points for killing " ..victim:GetName.. " ! ") end end hook.add( "PlayerDeath", "playerDeathTest", PlayerKill)
I am putting this in my autorun folder for Pointshop. Please tell me if I am completely retarded and I don’t know what I’m doing because I really don’t.