-
Content Count
403 -
Joined
-
Last visited
-
Days Won
52
Status Replies posted by Dan
-
-
-
jojo can u help me ? i need know my server time
-
jojo can u help me ? i need know my server time
-
Some other functions that can help you understand. Found in Functions.lua
function GetNowWeek ( )
local Now_Week = os.date("%w")
local Now_WeekNum = tonumber(Now_Week)
return Now_WeekNum
end
function GetNowTime ( )
local Now_Time = os.date("%H")
local NowTimeNum = tonumber(Now_Time)
return NowTimeNum
end
-
-
jojo can u help me ? i need know my server time
-
On Notepad -> file name -> Timer.lua
**Extension Wise**
dofile Timer.luado
RanNotice = {}
endRanNotice.Text = {
}
function RanNoticeTicking()
local second, minute = tonumber(os.date('%S')), tonumber(os.date('%M'))
local every_5_min = math.mod(minute,RanNotice.Every)
if(every_5_min == 0)then
if(second == 1)then
local total = table.getn(RanNotice.Text)
local ran = math.random(1,(total+1))
if(ran > total)then
Notice(RanNotice.Heading..': Server Time ['..os.date()..']')
else
Notice(RanNotice.Heading..': '..RanNotice.Text[ran])
end
end
end
end
-
-
jojo can u help me ? i need know my server time