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