when xx.chat."auto events" begin
s=select("A",D",E")
if s==1 then
server_loop_timer("auto_events_start", 1)
server_loop_timer("auto_events_end", 1)
syschat("A")
elseif s == 2 then
clear_server_timer("auto_events_start")
clear_server_timer("auto_events_end")
syschat("D")
end
when auto_events_start.server_timer begin
events_time_begin = os.date("%H")
if events_time == 19 then
game.set_event_flag("xx", x )
end
when auto_events_end begin
events_time_end = os.date("%H")
if events_time == 22 then
game.set_event_flag("xx", x )
notice_all("")
end
or table for all events will be better
events = {
[1] = {x, x,................}
[2] = {x, x,................ } put what you need
[3] = {x, x,................}
}
as well make sure you make flag check so as don't repeat activation
that's all
I hope this is what you ask for
^
all of this is example only