Champz usa esse, é mais "compacto" e simples:
local savingEvent = 0
function onThink(interval, lastExecution, thinkInterval)
doSaveServer()
return true
end
function save(delay)
doSaveServer()
if(delay > 0) then
savingEvent = addEvent(save, delay, delay)
end
end
Tag:
<globalevent name="save" interval="1800000" event="script" value="save.lua"/>
Espero ter o ajudado.