-.Paradox.- Posted June 21, 2013 Share Posted June 21, 2013 (edited) Hi, can someone see what wrong here ? server.lua exports.scoreboard:scoreboardAddColumn("EXP") function win(ammo, killer, weapon, bodypart) local H = getElementData(killer, "EXP") local killer1 = getPlayerName(killer) local noob = getPlayerName(source) if killer and killer ~=source then if tonumber(H) < 10 then setElementData(killer, "EXP", tonumber(H)+1) end outputChatBox(killer1 .. "Killed " .. noob .. " and gained +1 EXP", getRootElement(), 255, 255, 0, false) end end addEventHandler("onPlayerWasted", getRootElement(), Win) Thanks for help ! Edited June 25, 2013 by Guest Link to comment
-.Paradox.- Posted June 21, 2013 Author Share Posted June 21, 2013 I want a exp/level system that if player killed somebody he earn +5 exp and if he have 100exp he move to level 2 0 : level 1 100 : level 2 500 : level 3 1500 : level 4 3000 : level 5 4500 : level 6 Does it need client.lua Link to comment
TAPL Posted June 21, 2013 Share Posted June 21, 2013 LoL this code is still alive, it was posted almost 5 times before one year or more. https://forum.multitheftauto.com/viewtopic.php?f=91&t=40112 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now