Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $timer = TimerInit()
- $days = 0
- $hours = 0
- $mins = 0
- $seconds = 0
- while 1
- if TimerDiff($timer) > 999 Then
- $seconds += 1
- $timer = TimerInit()
- EndIf
- if $seconds = 60 Then
- $mins += 1
- $seconds = 0
- EndIf
- if $mins = 60 Then
- $hours += 1
- $mins = 0
- EndIf
- if $hours = 24 Then
- $days += 1
- $hours = 0
- EndIf
- $displaydays = $days
- $displayhours = $hours
- $displayseconds = $seconds
- $displaymins = $mins
- if $seconds < 10 Then
- $displayseconds = 0&$seconds
- EndIf
- if $mins < 10 Then
- $displaymins = 0&$mins
- EndIf
- if $days < 10 Then
- $displaydays = 0&$days
- EndIf
- if $hours < 10 Then
- $displayhours = 0&$hours
- EndIf
- ControlSetText("ManyCam Options", "", "RichEdit20A1", "Time Awake: "&$displaydays&":"&$displayhours&":"&$displaymins&":"&$displayseconds)
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement