Advertisement
fleft17

Untitled

Dec 13th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. command /sc [<world>] [<integer>] [<integer>] [<text>] [<player>]:
  2. permission: skript.op
  3. trigger:
  4. if arg-4 is "ffa" or "*":
  5. set {_Type} to "no"
  6. set {_Who} to "*"
  7. else if arg-4 is "team" or "teams":
  8. set {_Type} to "yes"
  9. if arg-5 is set:
  10. set {_Who} to "%arg-5%"
  11. broadcast "Scattering %arg-5%"
  12. command sender command "/scatter RandomSquare %{_Type}% %arg-2%:%arg-3% %arg-1%:0,0 %{_Who}%"
  13. set {Scatter.Started} to true
  14. set {Scatter.World} to arg-1
  15. set {_Players::*} to all players
  16.  
  17. on teleport:
  18. {Scatter.Started} is true
  19. set {_Pre} to world of player
  20. wait 1 tick
  21. set {_New} to world of player
  22. {_New} is not equal to {_Pre}
  23. {_New} is equal to {Scatter.World}
  24. broadcast "{@H}%player% {@C}scattered!"
  25. execute console command "/aps note.bass"
  26. remove player from {_Players::*}
  27. (size of ({_Players::*})) is 0
  28. delete {Scatter.Started}
  29. delete {Scatter.World}
  30. wait 20 ticks
  31. broadcast "{@C}All players scattered!"
  32. loop 5 times:
  33. execute console command "/aps fireworks.twinkle"
  34. wait 2 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement