- Dołączył
- Lipiec 29, 2009
- Posty
- 231
- Liczba reakcji
- 9
- Wiek
- 32
Witam.
Poszukuje skryptu kt?ry robi save co 15min, a 30 sec przed save pisze:za 30secund restart.
Oto m?j save.lua:
Poszukuje skryptu kt?ry robi save co 15min, a 30 sec przed save pisze:za 30secund restart.
Oto m?j save.lua:
local savingEvent = 0
local savingDelay = 0
function onSay(cid, words, param)
if getPlayerAccess(cid) ~= 0 then
if param == "" then
broadcastMessage(cid, "Server save.", 11)
saveData()
elseif isNumber(param) == TRUE then
stopEvent(savingEvent)
savingDelay = 15 * 1000 * 60
save()
end
end
end
function save()
savingEvent = addEvent(save, savingDelay, {})
broadcastMessage(cid, "Server save. Next save too 15 minutes.", 11)
saveData()
end

