local minlvl = 20
function onLogin(cid)
if getPlayerLevel(cid) < minlvl then
doPlayerAddExperience(cid, getExperienceForLevel(minlvl))
end
return true
end
hmm i need add it to login.lua or do new lua?
local minlvl = 20
function onLogin(cid)
if getPlayerLevel(cid) < minlvl then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
end
return true
end