siso_

Untitled

Apr 10th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. command /time:
  2. trigger:
  3. if {time.%{timenum}%} is not set:
  4. add 1 to {timenum}
  5. set {time.%{timenum}%} to floor(unix timestamp of now) + 15
  6. send "%{timenum}%"
  7. stop
  8. if {time.%{timenum}%} is set:
  9. delete {time.%{timenum}%}
  10. add 1 to {timenum}
  11. set {time.%{timenum}%} to floor(unix timestamp of now) + 15
  12. send "%{timenum}%"
  13. send "&a%floor(unix timestamp of now)% &c%{time.%{timenum}%}%"
  14. else:
  15. send "&cError" to ops
  16. every second:
  17. if {crs} is true:
  18. if number of all players >= 1:
  19. set {crs} to false
  20. broadcast "1111"
  21. stop
  22. if {time.%{timenum}%} is set:
  23. floor(unix timestamp of now) = {time.%{timenum}%} - 10:
  24. broadcast "&6残り10秒"
  25. floor(unix timestamp of now) = {time.%{timenum}%} - 5:
  26. broadcast "&6残り5秒"
  27. if floor(unix timestamp of now) >= {time.%{timenum}%}:
  28. delete {time.%{timenum}%}
  29. broadcast "unixed &b%{timenum}%"
  30. command /deti:
  31. trigger:
  32. delete {time.%{timenum}%}
  33. on skript stop:
  34. set {crs} to false
  35. on skript start:
  36. set {crs} to true
Add Comment
Please, Sign In to add comment