instagramfortnite

Untitled

Dec 24th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. command /play [<text>]:
  2. executable by: players
  3. trigger:
  4. if arg-1 is set:
  5. if arg-1 is "solo_normal" or "solo_insane":
  6. if {arena.amounts} is not 0:
  7. send "&aLooking for a game!"
  8. wait 1 second
  9. if arg-1 is "solo_normal":
  10. loop {sw.arena::*}:
  11. if {sw.arena.%loop-value%.mode} is "SOLO_NORMAL":
  12. if {sw.arena.run.%loop-value%} is false:
  13. if {sw.arena.%loop-value%.playing} >= 0:
  14. if {sw.arena.%loop-value%.playing} <= 12:
  15. if {sw.playing.%uuid of player%} is false:
  16. set {_value} to "%loop-value%"
  17.  
  18. if arg-1 is "solo_normal":
  19. if {sw.arena.%{_value}%.mode} is "SOLO_NORMAL":
  20. if {sw.arena.run.%{_value}%} is false:
  21. if {sw.arena.%{_value}%.playing} >= 0:
  22. if {sw.arena.%{_value}%.playing} <= 12:
  23. if {sw.playing.%uuid of player%} is false:
  24. if {_value} is set:
  25. send "&aFound a server running &bSOLO&6:&bNORMAL&a!&a Sending you to %{_value}%!"
  26. clear player's scoreboard
  27. set {sw.playing.arena.%uuid of player%} to "%{_value}%"
  28. set {sw.playing.%uuid of player%} to true
  29. set {sw.playing.active.%uuid of player%} to false
  30. add 1 to {sw.arena.%{_value}%.playing}
  31. add player to {sw.arena.%{_value}%.players.alive::*}
  32. teleport player to {sw.arena.%{_value}%.spawn.num.%{sw.arena.%{_value}%.playing}%}
  33. wait 1 tick
  34. set block at block under the player to glass
  35. set block at block under north of the player to glass
  36. set block at block under east of the player to glass
  37. set block at block under south of the player to glass
  38. set block at block under west of the player to glass
  39. # WALLS
  40. set block at block north of the player to glass
  41. set block at block east of the player to glass
  42. set block at block south of the player to glass
  43. set block at block west of the player to glass
  44. set block at block 1 above north of the player to glass
  45. set block at block 1 above east of the player to glass
  46. set block at block 1 above south of the player to glass
  47. set block at block 1 above west of the player to glass
  48. set block at block 2 above north of the player to glass
  49. set block at block 2 above east of the player to glass
  50. set block at block 2 above south of the player to glass
  51. set block at block 2 above west of the player to glass
  52. # ABOVE
  53. set block at block 3 above the player to glass
  54. set block at block 3 above north of the player to glass
  55. set block at block 3 above east of the player to glass
  56. set block at block 3 above south of the player to glass
  57. set block at block 3 above west of the player to glass
  58. invoke "sw.clearplayer" from player
  59. set {sw.gamekills.%{sw.player.%uuid of player%}%.%{_value}%} to 0
  60. set player's slot 8 to {@leaveitem} named "{@leaveitemname}"
  61. send "&7%player% &ehas joined (&b%{sw.arena.%{_value}%.playing}%&e/&b12&e)" to {sw.arena.%{_value}%.players.alive::*}
  62. if {sw.arena.run.%{_value}%} is false:
  63. if {sw.arena.%{_value}%.playing} >= 2:
  64. set {sw.arena.%{_value}%.status} to "{@Starting}"
  65. set {sw.arena.run.%{_value}%} to true
  66. set {sw.arena.%{_value}%.seconds} to {@cagetimesolo}
  67. send "&eThe game starts in &a%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  68. loop {sw.arena.%{_value}%.seconds} times:
  69. if {sw.arena.%{_value}%.seconds} is not 0:
  70. if {sw.arena.%{_value}%.playing} is not 0:
  71. remove 1 from {sw.arena.%{_value}%.seconds}
  72. wait 1 second
  73. if {sw.arena.%{_value}%.seconds} is 10:
  74. send {sw.arena.%{_value}%.players.alive::*} title "{@title10}" with subtitle "{@sub10}" for 0.5 seconds
  75. send "&eThe game starts in &6%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  76. if {sw.arena.%{_value}%.seconds} is 5:
  77. send {sw.arena.%{_value}%.players.alive::*} title "{@title5}" with subtitle "{@sub}" for 0.5 seconds
  78. send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  79. if {sw.arena.%{_value}%.seconds} is 4:
  80. send {sw.arena.%{_value}%.players.alive::*} title "{@title4}" with subtitle "{@sub}" for 0.5 seconds
  81. send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  82. if {sw.arena.%{_value}%.seconds} is 3:
  83. send {sw.arena.%{_value}%.players.alive::*} title "{@title3}" with subtitle "{@sub}" for 0.5 seconds
  84. send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  85. if {sw.arena.%{_value}%.seconds} is 2:
  86. send {sw.arena.%{_value}%.players.alive::*} title "{@title2}" with subtitle "{@sub}" for 0.5 seconds
  87. send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  88. if {sw.arena.%{_value}%.seconds} is 1:
  89. send {sw.arena.%{_value}%.players.alive::*} title "{@title1}" with subtitle "{@sub}" for 0.5 seconds
  90. send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
  91. if {sw.arena.%{_value}%.seconds} is 0:
  92.  
  93. set {sw.arena.%{_value}%.run} to true
  94. loop {sw.arena.%{_value}%.players.alive::*}:
  95. set {_p} to "%loop-value-1%"
  96. set {_puuid} to "%uuid of loop-value-1%"
  97. clear {_p}'s scoreboard
  98. set {sw.playing.active.%{_puuid}%} to true
  99. set {sw.playing.%{_puuid}%} to true
  100. wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment