• Lvl system
    10 replies, posted
  • Avatar of jeims11
  • 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.
  • Avatar of Deadman123
  • [QUOTE=sintwins;34529340]I could, for a price.[/QUOTE] If you could, teach him how to spell also.
  • Avatar of Greatie
  • Isn't there's a XP system on gmod.org? [url]http://www.garrysmod.org/downloads/?a=view&id=127854[/url] yeah there is
  • Avatar of wishbone
  • Please someone teach this kid how to spell... I have seen quite a few EXP mods try to look harder next time.
  • Avatar of darren.splash
  • 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...
  • Avatar of JeffDOA
  • [QUOTE=darren.splash;34595032]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...[/QUOTE] 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.
  • Avatar of jeims11
  • I donnt ned to learn how spell i use my microphone on my temspeak server + am 16 and dont care if i cant type