Advertisement
sniperwolf1130

midoronpa

Aug 12th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. on join:
  2. set the join message to "[Server]<green><bold>%player%さんがサーバーに参加しました。"
  3.  
  4. on quit:
  5. set the quit message to "[Server]<green><bold>%player%さんがサーバーを退出しました。"
  6.  
  7. on explode:
  8. cancel event
  9.  
  10. command /tim:
  11. trigger:
  12. if {state} is set:
  13. send "<green><bold>現在の残り時間は%{time}%秒です。" to player
  14. else:
  15. send "<green><bold>現在試合は行われていません。"
  16.  
  17.  
  18. command /midstart <int>:
  19. permission: op
  20. trigger:
  21. if arg < 10:
  22. send "<green><bold>指定された残り時間が短すぎます!10秒以上にしてください。"
  23. else:
  24. broadcast "[Server]<green><bold>今回のみどろんぱの残り時間は%arg%秒です。"
  25. broadcast "[Server]<green><bold>みどろんぱ開始まで30秒..."
  26. wait 10 seconds
  27. broadcast "[Server]<green><bold>みどろんぱ開始まで20秒..."
  28. wait 10 seconds
  29. broadcast "[Server]<green><bold>みどろんぱ開始まで10秒..."
  30. wait 5 seconds
  31. broadcast "[Server]<green><bold>みどろんぱ開始まで5秒..."
  32. wait 1 seconds
  33. broadcast "[Server]<green><bold>みどろんぱ開始まで4秒..."
  34. wait 1 seconds
  35. broadcast "[Server]<green><bold>みどろんぱ開始まで3秒..."
  36. wait 1 seconds
  37. broadcast "[Server]<green><bold>みどろんぱ開始まで2秒..."
  38. wait 1 seconds
  39. broadcast "[Server]<green><bold>みどろんぱ開始まで1秒..."
  40. wait 1 seconds
  41. broadcast "[Server]<green><bold>みどろんぱを開始します。"
  42.  
  43. set {state} to 1
  44.  
  45. set {_countdown} to arg-10
  46. loop arg-10 times:
  47. wait 1 seconds
  48. set {_countdown} to {_countdown} - 1
  49. set {time} to {_countdown} + 10
  50.  
  51. broadcast "[Server]<green><bold>みどろんぱ終了まで10秒前..."
  52. set {time} to 10
  53. wait 1 seconds
  54. set {time} to 9
  55. wait 1 seconds
  56. set {time} to 8
  57. wait 1 seconds
  58. set {time} to 7
  59. wait 1 seconds
  60. set {time} to 6
  61. wait 1 seconds
  62. broadcast "[Server]<green><bold>みどろんぱ終了まで5秒前..."
  63. set {time} to 5
  64. wait 1 seconds
  65. broadcast "[Server]<green><bold>みどろんぱ終了まで4秒前..."
  66. set {time} to 4
  67. wait 1 seconds
  68. broadcast "[Server]<green><bold>みどろんぱ終了まで3秒前..."
  69. set {time} to 3
  70. wait 1 seconds
  71. broadcast "[Server]<green><bold>みどろんぱ終了まで2秒前..."
  72. set {time} to 2
  73. wait 1 seconds
  74. broadcast "[Server]<green><bold>みどろんぱ終了まで1秒前..."
  75. set {time} to 1
  76. wait 1 seconds
  77. broadcast "[Server]<green><bold>みどろんぱ終了!"
  78. delete {state}
  79. delete {_countdown}
  80. delete {time}
  81.  
  82. command /midend:
  83. permission: op
  84. trigger:
  85. if {state} is not set:
  86. send "<green><bold>現在試合は行われていません。"
  87. else:
  88. broadcast "[Server]<green><bold>みどろんぱ終了!"
  89. delete {state}
  90. delete {_countdown}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement