local xp = getPlayerLevel(cid)*0.10 -- Porcentagem de Exp que o player ganhará por level (PS: Edite apenas o 0.10)
local waittime = 1 -- Tempo em horas
local storage = 8518
function addXp(cid)
if getPlayerStorageValue(cid, 8517) == 1 and exhaustion.check(cid, storage) then
doPlayerAddExp(cid, xp)
exhaustion.set(cid, storage, waittime*3600)
end
addEvent(addXp, 1000, cid) return true
end
function onStepIn(cid)
setPlayerStorageValue(cid, 8517, 1)
addEvent(addXp, 1000, cid)
doPlayerSendCancel(cid, "You are now gaining experience.")
return true
end
function onStepOut(cid)
doPlayerSendCancel(cid, "You aren't gaining experience anymore.")
setPlayerStorageValue(cid, 8517, -1)
return true
end