Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sc [<world>] [<integer>] [<integer>] [<text>] [<player>]:
- permission: skript.op
- trigger:
- if arg-4 is "ffa" or "*":
- set {_Type} to "no"
- set {_Who} to "*"
- else if arg-4 is "team" or "teams":
- set {_Type} to "yes"
- if arg-5 is set:
- set {_Who} to "%arg-5%"
- broadcast "Scattering %arg-5%"
- command sender command "/scatter RandomSquare %{_Type}% %arg-2%:%arg-3% %arg-1%:0,0 %{_Who}%"
- set {Scatter.Started} to true
- set {Scatter.World} to arg-1
- set {_Players::*} to all players
- on teleport:
- {Scatter.Started} is true
- set {_Pre} to world of player
- wait 1 tick
- set {_New} to world of player
- {_New} is not equal to {_Pre}
- {_New} is equal to {Scatter.World}
- broadcast "{@H}%player% {@C}scattered!"
- execute console command "/aps note.bass"
- remove player from {_Players::*}
- (size of ({_Players::*})) is 0
- delete {Scatter.Started}
- delete {Scatter.World}
- wait 20 ticks
- broadcast "{@C}All players scattered!"
- loop 5 times:
- execute console command "/aps fireworks.twinkle"
- wait 2 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement