Before anyone gets the idea of complaining about how many times this has been asked, that was concerning pointshop ONE not pointshop TWO and yeah i honestly have looked everywhere for the answer but nooe, i cannot find anything.
As simple as the title is, ive managed to grab some code about kills into pointshop and changed the varibles a bit but still i get errors about this code not working:
hook.Add( "DoPlayerDeath", "Give Points", function( vict, att, dmginfo ) if not (IsValid(att) and att:IsPlayer() and att:Team() != vict:Team()) then return end ply:PS2_AddStandardPoints ( 5, "Nice job!" ) end
I am not new to lua as i know my stuff but this just goes over my head so could someone put me on the right track? And yeah i think those who are experianced in lua are probably laughing at me now.