Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. variables:
  2. {heavymetal} = false
  3. {_heavymetal.%player%} = 0
  4.  
  5. command /heavymetal <status> <time>
  6. description: enables or disables heavymetal skript
  7. usage: /heavymetal <enable:disable:toggle:help> <time>
  8. permission: host
  9. trigger:
  10. if arg 1 is enable:
  11. {heavymetal} is false:
  12. set {heavymetal} to true
  13. message %player% "Heavy Metal has been enabled."
  14. wait %arg 2% minutes
  15. broadcast "Heavy Metal is now active"
  16. else:
  17. message %player% "Heavy Metal has already been enabled."
  18. else if arg 1 is disable:
  19. {heavymetal} is true:
  20. set {heavymetal} to true
  21. message %player% "Heavy Metal has been disabled."
  22. else:
  23. message %player% "Heavy Metal has already been disabled."
  24. else if arg 1 is toggle:
  25. {heavymetal} is false:
  26. set {heavymetal} to true
  27. message %player% "Heavy Metal has been enabled."
  28. wait %arg 2% minutes
  29. broadcast "Heavy Metal is now active"
  30. else:
  31. set {heavymetal} to false
  32. message %player% "Heavy Metal has been disabled."
  33. else if arg1 is help:
  34. message %player% "/heavymetal <enable:disable:toggle:help> <minutes until PVP starts>
  35. else:
  36. execute command "/heavymetal <help>"
  37. every second:
  38. player's slot 100 isn't empty:
  39. add 1 to {_heavymetal.%player%}
  40. player's slot 101 isn't empty:
  41. add 1 to {_heavymetal.%player%}
  42. player's slot 102 isn't empty:
  43. add 1 to {_heavymetal.%player%}
  44. player's slot 103 isn't empty:
  45. add 1 to {_heavymetal.%player%}
  46. player is wearing leather helmet:
  47. add 1 to {_heavymetal.%player%}
  48. player is wearing leather chestplate:
  49. add 1 to {_heavymetal.%player%}
  50. player is wearing leather leggings:
  51. add 1 to {_heavymetal.%player%}
  52. player is wearing leather leggins:
  53. add 1 to {_heavymetal.%player%}
  54. player is wearing leather boots:
  55. add 1 to {_heavymetal.%player%}
  56. player is wearing diamond helmet:
  57. add 5 to {_heavymetal.%player%}
  58. player is wearing diamond chestplate:
  59. add 5 to {_heavymetal.%player%}
  60. player is wearing diamond leggings:
  61. add 5 to {_heavymetal.%player%}
  62. player is wearing diamond boots:
  63. add 5 to {_heavymetal.%player%}
  64. size of {_heavymetal.%player%} is 1:
  65. apply swiftness 1 to the player for 2 seconds
  66. size of {_heavymetal.%player%} is 2:
  67. apply swiftness 2 to the player for 2 seconds
  68. size of {_heavymetal.%player%} is 3:
  69. apply swiftness 3 to the player for 2 seconds
  70. size of {_heavymetal.%player%} is 4:
  71. apply swiftness 4 to the player for 2 seconds
  72. size of {_heavymetal.%player%} is 10:
  73. apply slowness 2 to the player for 2 seconds
  74. size of {_heavymetal.%player%} is 20:
  75. apply slowness 4 to the player or 2 seoncods
  76. reset {_heavymetal.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement