Advertisement
fleft17

Untitled

Nov 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. command /aps [<text>] [<number>] [<player>]:
  2. permission: skript.op
  3. usage: /aps <sound> <pitch>
  4. aliases: /aps
  5. trigger:
  6. if arg-1 is not set:
  7. message "{@C}Specify a sound!"
  8. if arg-2 is not set:
  9. set {_pitch} to 1
  10. if arg-2 is set:
  11. set {_pitch} to arg-2
  12. if arg-3 is not set:
  13. loop all players:
  14. execute console command "/playsound %arg-1% %loop-player% ~ ~ ~ 1 %{_pitch}% 1"
  15. else if arg-3 is set:
  16. execute console command "/playsound %arg-1% %arg-3% ~ ~ ~ 1 %{_pitch}% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement