relog from what? relog of actions & etc... when server is online?
Can you explain a little more?
He means when they logout, then log back in.
function saveRepeat(cid)
if not isPlayer(cid) then return true end
doPlayerSave(cid)
doPlayerSendTextMessage(cid,19, 'Your character\'s progress is saved.')
doSendMagicEffect(getThingPos(cid), 11)
save = addEvent(saveRepeat, math.random(30,43) *60*1000, cid)
end
function onLogin(cid)
save = addEvent(saveRepeat, math.random(30,43)*60*1000, cid)
return true
end
function onLogout(cid)
stopEvent(save)
return true
end
local config = {
savePlayersOnAdvance = true
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(config.savePlayersOnAdvance) then
doPlayerSave(cid, true)
end
return true
end