Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playTimeSound()
- local hour, minutes = getTime()
- if hour == 17 and minutes == 0 then
- timesound = playSound("day.mp3",true)
- elseif hour == 12 and minutes == 0 then
- timesound = playSound("day.mp3",true)
- elseif hour == 15 and minutes == 0 then
- timesound = playSound("day.mp3",true)
- elseif hour == 20 and minutes == 0 then
- timesound = playSound("night.mp3",true)
- setSoundVolume(timesound,0.5)
- end
- end
- addEventHandler("onClientRender", getRootElement(), playTimeSound )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement