use the example of killing,
function rewardOnWasted ( ammo, killer, killerweapon, bodypart )
if (killer) and (killer ~=source) then
local exp = getElementData(killer,"exp")
if exp then
setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5)
outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0)
else
setElementData(killer,"exp",0)
end
end
end
addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted )
now go kill players and you will raise levels..
I think you don't get how it works,
levels[0] = {"Test 0", "10"}
levels[0] = level number
Test 0 = level name or whatever you want example: Level 1
10 = experience required to reach that level