What's new

non stop save i clean...

Status
Not open for further replies.

Aire Zena

Active User
Joined
Aug 23, 2010
Messages
126
Reaction score
3
Wie kto? dlaczego tak jest?

savei.png


Code:
local config = {
        broadcast = "no"
}

config.broadcast = getBooleanFromString(config.broadcast)
local function executeSave(seconds)
        if(seconds == 0) then
                doSaveServer()
                return true
        end

        if(seconds == 120 or seconds == 30) then
                doBroadcastMessage("Full server save within " .. seconds .. " seconds, please stay in safe place!")
        end

        seconds = seconds - 30
        if(seconds >= 0) then
                addEvent(executeSave, 30 * 1000, seconds)
        end
end

function onThink(interval, lastExecution, thinkInterval)
        if(not config.broadcast) then
                doSaveServer()
                doBroadcastMessage("Server saved")
                return true
        end

        executeSave(120)
        return true
end
 

zakius

Senior User
Joined
May 25, 2008
Messages
869
Reaction score
52
Odp: non stop save i clean...

zmieni?e? 0.3.6 na 0.4 bez zmiany daty tak?
w globalevents ustaw poprawne czasy(s? tam w ms anie w s w 0.4, nie wiem co ile chcesz to sobie policz, je?li jednak masz 0.3.6 to masz globaleventy w s)
 

Aire Zena

Active User
Joined
Aug 23, 2010
Messages
126
Reaction score
3
Odp: non stop save i clean...

mam tfs 0.4 :> a ten lua to kod z globalevents czyli?

@down odp
Prawda ;p

@down
?miga ^^
 
Last edited:

zakius

Senior User
Joined
May 25, 2008
Messages
869
Reaction score
52
Odp: non stop save i clean...

w xml ustawiasz co ile si? uruchamia, ja bym "nagradza?" za problemy zwi?zane z brakiem podstawowej wiedzy, ale modzi wol? dawa? bonusy za pomoc ni? komu? kto zas?u?y?...
 
Status
Not open for further replies.
Top