Hey i cant figure how to raise XP on my lvl system. I made everything serverside work other then raising level.
[CODE]function LevelRaise(pl)
if pl:GetNWInt("EXP") == 130 then
pl:SetNWInt("EXP) = 0
pl:GetNWInt("SkillPoints") +1 )
end
hook.Add( "PlayerDeath", "LevelRaise", LevelRaise )[/CODE]
[code]
hook.Add( "PlayerDeath", "LevelRaise", function (pl)
if pl:GetNWInt("EXP") == 130 then
pl:SetNWInt("EXP",0)
pl:SetNWInt("SkillPoints", pl:GetNWInt("SkillPoints") + 1)
end
end )[/code]
Sorry, you need to Log In to post a reply to this thread.