Guest User

Untitled

a guest
Oct 23rd, 2014
980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. # - Sitris did help me with the on shoot part - #
  2. # - because it kept infinetly repeating itself - #
  3. # - Made by Sitris And RemixNsG - #
  4.  
  5.  
  6. options:
  7. Pre: &8[&b3xArrows&8]
  8. CC: &c
  9. HC: &l
  10. WUS: /playsound random.break %command sender% ~ ~ ~ 1 1 1
  11. ES: /playsound note.pling %loop-player% ~ ~ ~ 1 1 1
  12. Comm: /3arrows
  13. Perm: skript.op
  14. HelpSound: /playsound random.
  15.  
  16. command {@Comm} <text>:
  17. trigger:
  18. if arg-1 is "enable":
  19. if player has permission "{@Perm}":
  20. if {3x.Enabled} is not set:
  21. set {3x.Enabled} to true
  22. broadcast "{@Pre}{@CC} Enabled by: {@HC}&8[{@CC}%command sender%&8]"
  23. loop all players:
  24. execute console command "{@ES}"
  25. else:
  26. message "{@Pre}{@CC} Already Enabled!"
  27. execute console command "{@WUS}"
  28. else:
  29. message "{@CC}No Permission."
  30. execute console command "{@WUS}"
  31.  
  32. if arg-1 is "disable":
  33. if player has permission "{@Perm}":
  34. if {3x.Enabled} is true:
  35. delete {3x.Enabled}
  36. broadcast "{@Pre}{@CC} Disabled by: {@HC}&8[{@CC}%command sender%&8]"
  37. loop all players:
  38. execute console command "{@ES}"
  39. else:
  40. message "{@Pre}{@CC} Already Disabled!"
  41. execute console command "{@WUS}"
  42. else:
  43. message "{@CC}No Permission."
  44. execute console command "{@WUS}"
  45. if arg-1 is "help":
  46. message "------{@Pre}------"
  47. message "{@CC} {@Comm} enable - {@HC}Enables 3x Arrows"
  48. message "{@CC} {@Comm} disable - {@HC}Disables 3x Arrows"
  49. message "{@CC} {@Comm} help - {@HC}Displays Help Messages"
  50. message "------{@Pre}------"
  51.  
  52.  
  53.  
  54.  
  55.  
  56. on shoot:
  57. {3x.Enabled} is true
  58. projectile is an arrow
  59. shooter is player
  60. shooter is alive
  61. set {3x.waited} to difference between {3x.time} and now
  62. if {3x.waited} is less than 1 tick:
  63. stop
  64. set {3x.time} to now
  65. shooter has 2 arrows
  66. loop 2 times:
  67. make the shooter shoot a arrow at speed 3
  68. remove 2 arrows from the shooter
Advertisement
Add Comment
Please, Sign In to add comment