Lvl system

Hi my names jeim11 i wod ned help to get a working lvl system i seen some people told me use Zoeys Experiance Mod but it dosent work att al a shity mod and will never in mel gibsons ass so if some 1 cod help me i wod be appreciated.
Who cares if i cant type i got a voice.

I could, for a price.

If you could, teach him how to spell also.

Isn’t there’s a XP system on gmod.org?

yeah there is

Please someone teach this kid how to spell… I have seen quite a few EXP mods try to look harder next time.

AMOUNT_PER_KILL = 25 //Amount of EXp you get per kill

function GM:PlayerInitialSpawn(ply)
ply:SetPData(“Level”, 0)
ply:SetPData(“EXP”, 0)
end

function ONNpcDeath(ply)
ply:SetPData(ply:GetPData(“EXP”) + AMOUNT_PER_KILL))
end

function LevelUp(ply)
if ply:GetPData(“EXP”) == 100 then
ply:SetPData(“Level”, 2)
ply:ChatPrint(“You are now level 2! Congrats!!!”)
//elseif --Continue this Im too lazy to write the rest -.-"
end

end
hook.Add(“OnNPCDeath”, “LevelUpLOL”, LevelUp)

This is kinda of a basic idea of a level system. Pretty crappy but hey it works ^_^. Only thing I could come up with in 5 minutes…

Use LUA Box please.

[lua]
AMOUNT_PER_KILL = 25 //Amount of EXp you get per kill

function GM:PlayerInitialSpawn(ply)
ply:SetPData(“Level”, 0)
ply:SetPData(“EXP”, 0)
end

function ONNpcDeath(ply)
ply:SetPData(ply:GetPData(“EXP”) + AMOUNT_PER_KILL))
end

function LevelUp(ply)
if ply:GetPData(“EXP”) == 100 then
ply:SetPData(“Level”, 2)
ply:ChatPrint(“You are now level 2! Congrats!!!”)
//elseif --Continue this Im too lazy to write the rest -.-"
end

end
hook.Add(“OnNPCDeath”, “LevelUpLOL”, LevelUp)
[/lua]

Actually, if you look in my addon someone posted earlier a good and arguably more stable approach is simply to store XP and have the level calculated out of that.

I donnt ned to learn how spell i use my microphone on my temspeak server + am 16 and dont care if i cant type

:suicide:

My mod is best…
And i called it “RPGmod” rofl