Guest User

Untitled

a guest
Apr 4th, 2014
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. options:
  2. Prefix: &7[&5&oSwitcheroo!&7]&r
  3.  
  4. command /switcheroo [<text>]:
  5. permission: skript.switcheroo
  6. trigger:
  7. if arg 1 is equal to "on":
  8. if {Switcheroo} is true:
  9. message "{@Prefix} Already enabled!"
  10. else:
  11. set {Switcheroo} to true
  12. loop all players:
  13. command "/playsound random.pop %loop-player%"
  14. if loop-player has the permission "skript.switcheroo":
  15. message "{@Prefix} &cENABLED! &4[&rby &9%command sender%&4]" to loop-player
  16. else:
  17. message "{@Prefix} &cENABLED!" to loop-player
  18. else if arg 1 is equal to "off":
  19. if {Switcheroo} is not set:
  20. message "{@Prefix} Already disabled!"
  21. else:
  22. delete {Switcheroo}
  23. loop all players:
  24. command "/playsound random.break %loop-player%"
  25. if loop-player has the permission "skript.switcheroo":
  26. message "{@Prefix} &aDisabled! &4[&rby &9%command sender%&4]" to loop-player
  27. else:
  28. message "{@Prefix} &aDisabled!" to loop-player
  29. else:
  30. message "{@Prefix} &e/switcheroo on &9- &7Enable Switcheroo"
  31. message "{@Prefix} &e/switcheroo off &9- &7Disable Switcheroo"
  32.  
  33. on damage:
  34. {Switcheroo} is true
  35. attacker is a player
  36. attacker is alive
  37. victim is a player
  38. victim is alive
  39. damage was caused by projectile
  40. projectile is an arrow
  41. set {_templocation} to (location of victim)
  42. teleport victim to (location 0.3 below attacker)
  43. teleport attacker to {_templocation}
Advertisement
Add Comment
Please, Sign In to add comment