Jump to content

Assistance real timer


rogerioexper

Recommended Posts

Posted

hello I'm in need of a base to make a real-time server script on the day and the night are changing very fast 10 in 10 minutes I want is 12 in 12 hours day and night on the server can help me

 



int getMinuteDuration ( )
----------------------------
setWeather ( 0 )
------------------------------
local weatherID = getWeather()
outputChatBox ( "The current weather ID is " .. weatherID )
---------------------------------
setWeather ( 9 )
outputChatBox ( "Weather changed to foggy!" )
------------------------------------------------------

I do not know which to use any script can give me an initiative

 

Posted
function resourceStart()
    local realtime = getRealTime()
    setTime(realtime.hour, realtime.minute)
    setMinuteDuration(60000)
end
addEventHandler("onResourceStart", getResourceRootElement(), resourceStart)

 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...