NilssoN042
Banned User
Hello! This is the frist script I ever edited!
I took "broadcasting" from a clean script and putted it into a server save script, so it broadcast and save the servers.
Script that I "edited" = serversave script + broadcasting:
Edit in your globalevent "interval" to 1800. The server will save 1 time each 30minutes.
I know that this already exist but I just tried to make it work and I did it!
I know that Iam a noob in scripting...
REP ME if you like it
I took "broadcasting" from a clean script and putted it into a server save script, so it broadcast and save the servers.
Script that I "edited" = serversave script + broadcasting:
Code:
function executeSaveServer()
doSaveServer()
doBroadcastMessage("Server saved, next save in 30 minutes.")
return true
end
function onThink(interval, lastExecution, thinkInterval)
doBroadcastMessage("Automatic Serversave in 10seconds!")
addEvent(executeSaveServer, 10000)
return true
end
Edit in your globalevent "interval" to 1800. The server will save 1 time each 30minutes.
Code:
<globalevent name="save" interval="1800" event="script" value="save.lua"/>
I know that this already exist but I just tried to make it work and I did it!
I know that Iam a noob in scripting...
REP ME if you like it