1
[GlobalEvents] Necesito Script SaveServer tfs 1.0 Vie Dic 12, 2014 6:39 pm
layerd

Miembro

trate de hacer uno pero solo me hace el save pero no anuncia el mensaje ni me hace clean u.u
- Código:
local cleanMapAtServerSave = true
local function serverSave()
if cleanMapAtServerSave then
cleanMap()
else
Game.setGameState(GAME_STATE_NORMAL)
saveServer()
end
local function onThink(interval)
broadcastMessage("Server is saving game in 30 seconds. Please go to a safe place.", MESSAGE_STATUS_WARNING)
addEvent(serverSave, 30000)
end
return true
end