• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua House Reset

zetibia

Member
Joined
Jun 23, 2013
Messages
109
Reaction score
11
Guys, my server is not saving 100% ... How so? Sometimes the server saves the houses in the / save command

sometimes not saved ... why?

Script:

local savingEvent = 0

function onSay(cid, words, param)
if getPlayerAccess(cid) ~= 0 then
if isNumber(param) == TRUE then
stopEvent(savingEvent)
save(tonumber(param) * 60 * 1000)
else
saveServer()
end
end
end

function save(delay)
saveServer()
if delay > 0 then
savingEvent = addEvent(save, delay, delay)
end
end
 

Similar threads

Back
Top Bottom