When i connect a server, my points count become 0, every time.
This happens when I insert bit of code to get points for killing like this
[URL="Post"]http://facepunch.com/showthread.php?t=1389120&p=44658203#post44658203[/URL]
[CODE]hook.Add("PlayerDeath", "", function( victim, inflictor, attacker )
if not IsValid(attacker) or not attacker:IsPlayer() then return end
if attacker == victim then return end
attacker:PS_GivePoints(5)
end)[/CODE]
Sorry, you need to Log In to post a reply to this thread.