Dnthy

Untitled

Aug 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. Variables:
  2. {v.%player%} = 0
  3.  
  4. options:
  5. tnttag: &c&l[TNT TAG]
  6.  
  7. on first join:
  8. set {gamecoin.%player%} to 0
  9.  
  10. on join:
  11. wait 3 ticks
  12. while player is online:
  13. player is online
  14. wipe player's sidebar
  15. set name of sidebar of player to "&c&lTNT TAG"
  16. set score " " in sidebar of player to 11
  17. set score "&aプレイヤー " in sidebar of player to 10
  18. set score "&d%player%" in sidebar of player to 9
  19. set score " " in sidebar of player to 8
  20. set score "&9プレイヤー数" in sidebar of player to 7
  21. set score "&f%number of all players%" in sidebar of player to 6
  22. set score " " in sidebar of player to 5
  23. set score "&6コイン" in sidebar of player to 4
  24. set score "&e%{gamecoin}%" in sidebar of player to 3
  25. set score " " in sidebar of player to 2
  26. set score "&atest.playerrealms.com" in sidebar of player to 1
  27. wait a second
  28.  
  29. command /start:
  30. trigger:
  31. wait a tick
  32. set {}
  33. set {_countdown} to 30
  34. set {countdown.on} to true
  35. loop {_countdown} times:
  36. if {_countdown} is 30:
  37. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  38. play sound "block.note.hat" with volume 1 at player
  39. if {_countdown} is 10:
  40. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  41. play sound "block.note.hat" with volume 1 at player
  42. if {_countdown} is 5:
  43. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  44. play sound "block.note.hat" with volume 1 at player
  45. if {_countdown} is 4:
  46. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  47. play sound "block.note.hat" with volume 1 at player
  48. if {_countdown} is 3:
  49. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  50. play sound "block.note.hat" with volume 1 at player
  51. if {_countdown} is 2:
  52. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  53. play sound "block.note.hat" with volume 1 at player
  54. if {_countdown} is 1:
  55. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  56. play sound "block.note.hat" with volume 1 at player
  57. wait 1 seconds
  58. set {_countdown} to {_countdown} - 1
  59. set {_countdown} to {_countdown} - 1
  60. send "{@tnttag} &eゲームスタート!" to player
  61. play sound "block.note.hat" with volume 1 at player
  62. wait a tick
  63. set {tnttag.game} to true
  64. set {alive::*} to all player
  65. tagfirstoni()
  66. if {tag::*} is set:
  67. set player's tab name to "&c[TNT] %player%"
  68.  
  69.  
  70. command /join:
  71. trigger:
  72. add {joinplayers::*} to player
  73.  
  74. function tagfirstoni():
  75. delete {tag::*}
  76. delete {alive::*}
  77. set {tag::*} to a random element out of {alive::*}
  78. send "&cあなたはTNTです" to {tag::*}
  79.  
  80. command /summercoin:
  81. trigger:
  82. if {summercoin.%player%::*} is not set:
  83. execute console command "/addcoin 100"
  84. send "&6100コインを入手しました"
  85. wait a tick
  86. add player to {summercoin.%player%::*}
  87. stop
  88. if {summercoin.%player%} is set:
  89. send "&c既にコインを入手しています"
  90. stop
  91.  
  92. command /summercoinreset:
  93. permission: skript.summercoinreset
  94. trigger:
  95. if {summercoin.%player%} is set:
  96. remove player from {summercoin.%player%::*}
  97.  
  98. command /addcoin [<number>]:
  99. trigger:
  100. add arg 1 to {gamecoin}
  101.  
  102. command /setcoin [<number>]:
  103. trigger:
  104. set {gamecoin} to arg 1
  105.  
  106. command /check:
  107. trigger:
  108. send "&c鬼%{tnt::*}%"
  109. send "&c逃げる側%{alive::*}%"
Advertisement
Add Comment
Please, Sign In to add comment