Advertisement
Guest User

Untitled

a guest
May 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. options:
  2. EndOfEp: &e[&6RRName&e] &lEnd of Episode
  3. B: &e--&6--&e--&6--&e--&6--&e--&6--&e--&6--&e--&6--&e--
  4.  
  5. command /rr <text> [<integer>]:
  6. usage: /rr <start/stop/settime> <minutes>
  7. trigger:
  8. if arg-1 is "start":
  9. set {rrRunning} to true
  10. set {rrTimer} to 0
  11. set {currentEpisode} to 1
  12. loop all players:
  13. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  14. broadcast "{@B}"
  15. broadcast "&e&l The game has started!"
  16. broadcast " &e&l Good luck!"
  17. broadcast "{@B}"
  18.  
  19.  
  20.  
  21.  
  22. else if arg-1 is "stop":
  23. delete {rrRunning}
  24. delete {rrTimer}
  25.  
  26. command /endepisode:
  27. permission: skript.op
  28. trigger:
  29. broadcast "{@B}"
  30. broadcast "{@EndOfEp} %{currentEpisode}%! "
  31. broadcast "&e&o %{currentEpisode} * 20% minutes have elapsed."
  32. broadcast "{@B}"
  33. loop all players:
  34. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  35. set {currentEpisode} to {currentEpisode} + 1
  36.  
  37.  
  38. every 5 seconds:
  39. {rrRunning} is true
  40.  
  41. add 5 to {rrTimer}
  42. set {_nummoduled} to {rrTimer} / 60
  43. while {_nummoduled} is greater than 0:
  44. set {_nummoduled} to {_nummoduled} - 20
  45. if {_nummoduled} is 0:
  46. command "/endepisode"
  47.  
  48. command /time:
  49. trigger:
  50. send "&6--------------------------------"
  51. send "&e Time Left This Episode: &a%((20 * {currentEpisode}) -({rrTimer} / 60))% Min."
  52. send "&6--------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement