Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CatchSound(#Sound1, ?Sound1, ?EndSound1-?Sound1)
  2. PlaySound (#Sound1, #PB_Sound_Loop)
  3. #delaytime=3000
  4. starttime=ElapsedMilliseconds()
  5. Repeat
  6.     Repeat
  7.         Event = WindowEvent()
  8.         If Event = #PB_Event_CloseWindow : Quit = #True : EndIf
  9.     Until Event = 0
  10.    
  11.     If ElapsedMilliseconds()-starttime=>#delaytime
  12.       ElapsedTime=1-ElapsedTime
  13.       starttime=ElapsedMilliseconds()
  14.     EndIf
  15.    
  16.     If ElapsedTime=0
  17.       DoSomeShit
  18.     Else
  19.       DoSomePiss
  20.     EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement