fleft17

Untitled

Apr 28th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. command /rm <text>:
  2. permission: skript.op
  3. trigger:
  4. if arg-1 is "on":
  5. set {current rating} to true
  6. broadcast "&7&l[&9Favonius&7&l]&e Rate Match on!"
  7. if arg-1 is "off":
  8. set {current rating} to false
  9. broadcast "&7&l[&9Favonius&7&l]&e Rate Match off!"
  10.  
  11.  
  12.  
  13.  
  14. command /rmb:
  15. permission: skript.op
  16. trigger:
  17. broadcast "&7&l[&9Favonius&7&l]&e The match received a rating of:&c&l %{match rating}% / %{tmr}%"
  18.  
  19.  
  20. command /rmreset:
  21. permission: skript.op
  22. trigger:
  23. set {current rating} to true
  24. set {match rating} to 0
  25. set {tmr} to 0
  26. loop all players:
  27. set {rating.%player%} to 0
  28. set {isDead.%player%} to false
  29. set {hasRated.%player%} to false
  30.  
  31. on death of player:
  32. {current rating} is true
  33. set {isDead.%player%} to true
  34. wait 7 seconds
  35. message "&7&l[&9Favonius&7&l]&e How would you rate the match? Use /rm1-5. 5 being the best, 1 worst." to the player
  36.  
  37.  
  38. command /rm1:
  39. usage: rate the match!
  40. trigger:
  41. {current rating} is true
  42. {isDead.%player%} is true
  43. {hasRated.%player%} is false:
  44. add 1 to {match rating}
  45. add 5 to {tmr}
  46. message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
  47. wait 0.1 second
  48. set {hasRated.%player%} to true
  49. if {isDead.%player%} is false:
  50. message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
  51.  
  52. command /rm2:
  53. usage: rate the match!
  54. trigger:
  55. {current rating} is true
  56. {isDead.%player%} is true
  57. {hasRated.%player%} is false:
  58. add 2 to {match rating}
  59. add 5 to {tmr}
  60. message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
  61. wait 0.1 second
  62. set {hasRated.%player%} to true
  63. if {isDead.%player%} is false:
  64. message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
  65.  
  66. command /rm3:
  67. usage: rate the match!
  68. trigger:
  69. {current rating} is true
  70. {isDead.%player%} is true
  71. {hasRated.%player%} is false:
  72. add 3 to {match rating}
  73. add 5 to {tmr}
  74. message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
  75. wait 0.1 second
  76. set {hasRated.%player%} to true
  77. if {isDead.%player%} is false:
  78. message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
  79.  
  80.  
  81. command /rm4:
  82. usage: rate the match!
  83. trigger:
  84. {current rating} is true
  85. {isDead.%player%} is true
  86. {hasRated.%player%} is false:
  87. add 4 to {match rating}
  88. add 5 to {tmr}
  89. message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
  90. wait 0.1 second
  91. set {hasRated.%player%} to true
  92. if {isDead.%player%} is false:
  93. message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
  94.  
  95. command /rm5:
  96. usage: rate the match!
  97. trigger:
  98. {current rating} is true
  99. {isDead.%player%} is true
  100. {hasRated.%player%} is false:
  101. add 5 to {match rating}
  102. add 5 to {tmr}
  103. message "&7&l[&9Favonius&7&l]&e Your rating was sent. Thanks!"
  104. wait 0.1 second
  105. set {hasRated.%player%} to true
  106. if {isDead.%player%} is false:
  107. message "&7&l[&9Favonius&7&l]&e You have not died! You must die to rate the match."
Advertisement
Add Comment
Please, Sign In to add comment