rogerioexper Posted September 23, 2016 Share Posted September 23, 2016 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 Link to comment
Walid Posted September 23, 2016 Share Posted September 23, 2016 function resourceStart() local realtime = getRealTime() setTime(realtime.hour, realtime.minute) setMinuteDuration(60000) end addEventHandler("onResourceStart", getResourceRootElement(), resourceStart) Link to comment
rogerioexper Posted September 24, 2016 Author Share Posted September 24, 2016 thank you I thank you Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now