Unnamed
public lua v1 · immutablelocal savingEvent = 0local savingDelay = 0function onSay(cid, words, param) if getPlayerAccess(cid) ~= 0 then if param == "" then savePlayers() elseif isNumber(param) == TRUE then stopEvent(savingEvent) savingDelay = param * 1000 * 60 save() end endendfunction save() savingEvent = addEvent(save, savingDelay, {}) broadcastMessage("Server saving in 5 minutes. Please logout.") addEvent(saveServer, 300000, parameter)endfunction saveServer() savePlayers()end