local config = {
broadcast = {120, 30},
flags = 13,
delay = 120,
events = 30
}
local function onTime()
if(isInArray(config.broadcast, seconds)) then
doBroadcastMessage("Server save within " .. seconds .. " seconds, please mind it may freeze!")
end
if(seconds > 0) then
addEvent(executeSave, config.events * 1000, seconds - config.events)
else
doSaveServer(config.flags)
end
end
function onTime()
if(table.maxn(config.broadcast) == 0) then
doSaveServer(config.flags)
else
executeSave(config.delay)
end
return true
end
Este aqui ao menos não trava.




info
Grupo: Barão
Registrado: 23/03/08
Posts: 205
Reputação: +4
ola gente eu tenho um script de save, porem quando da save trava tudo o jogo e host trava tudo.
queria saber se tem outro tipo de script de save que seja mais leve!