Guest User

Untitled

a guest
Dec 6th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. #|===========================|
  2. #| Author: NikoKlb |
  3. #| Version: 1.0 Alpha |
  4. #| Zabrania sie: |
  5. #| - zarabiania na skrpycie |
  6. #| - usuwania notki o autorze|
  7. #|===========================|
  8. variables:
  9. {gabka.ev} = 0
  10. {perla} = 0
  11. {kres} = 0
  12. {niewidka} = 0
  13. {chatoff} = false
  14.  
  15. options:
  16. tag: Event
  17.  
  18. on rightclick on sign:
  19. if line 1 is "[EVENT]":
  20. if line 2 is "dolacz":
  21. make player execute command "/event"
  22. stop
  23.  
  24. on walking on sponge:
  25. {gabka.ev} is 1:
  26. teleport player to {event}
  27. stop
  28.  
  29. on walking on end stone:
  30. {kres} is 1
  31. loop all players:
  32. execute command "/playsound random.pop %name of player% %location of player% 50 1 25"
  33. message "&6 Graczu &b%player% &6udalo sie ukonczyc event" to loop-player
  34. stop
  35.  
  36. command /event [<text>] [<text>] [<items>] [<player>]:
  37. trigger:
  38. if arg 1 is "i":
  39. if arg 2 is set:
  40. loop all players:
  41. message "&a============================================" to loop-player
  42. message "&a============================================" to loop-player
  43. message "&4{@tag} &3 %arg 2% " to loop-player
  44. message "&a============================================" to loop-player
  45. message "&a============================================" to loop-player
  46. arg 1 is "daj":
  47. arg 2 is "n":
  48. arg 3 is set:
  49. arg 4 is set:
  50. if player has permission "event.daj" or "event.*":
  51. give arg-4 arg-3
  52. message "&7Przyznano dla %arg 3%."
  53. stop
  54. give player arg-3
  55. message "&7Przyznano dla %player%."
  56. stop
  57. message "&7Uzycie: /event daj n <ilosc> <itemy> <gracz>"
  58. stop
  59. message "&7Uzycie: /event daj n <ilosc> <itemy> <gracz>"
  60. stop
  61. if arg 1 is not set:
  62. if {event} is not set:
  63. message "&cAktualnie nie odbywa siÄ™ event :("
  64. stop
  65. message "&7Dolaczyles do eventu"
  66. teleport the player to {event}
  67. execute command "/playsound mob.blaze.hit %name of player% %location of player% 50 1 25"
  68. {niewidka} is 1:
  69. apply invisibility to the player for 12 second
  70. stop
  71. if arg 1 is "komendy" or "list":
  72. if player has permission "event.list" or "event.*":
  73. send "&4 {@tag}"
  74. send "&5Lista Komenda"
  75. send "&6/event start &b- startuje event"
  76. send "&6/event odlicz &b- odlicza i autmoatycznie startuje event"
  77. send "&6/event stop &b- Zatrzymuje event"
  78. send "&6/event niewidka &b- sprawdza czy niewidzialnosc jest wlaczona"
  79. send "&6/event niewidka on &b- wlacza niewidke"
  80. send "&6/event niewidka off &b- wylacza niewidke"
  81. send "&6/event daj n <ilosc> <item> <nick> &b- Daje item danemu graczowi"
  82. send "&6/event i <text> &b- Wyjasnia o co chodzi w evencie"
  83. else:
  84. send "&cNie masz uprawien"
  85. stop
  86. if arg 1 is "start":
  87. set {gabka.ev} to 1
  88. set {kres} to 1
  89. set {perla} to 1
  90. if player has permission "event.start" or "event.*":
  91. set {event} to location of player
  92. loop all players:
  93. message "&2Ustawiono start eventu"
  94. message "&2&6Event rozpoczety! &2" to loop-player
  95. message "&2&bAby dolaczyc /event&2" to loop-player
  96. else:
  97. send "&cNie masz uprawien"
  98. stop
  99. if arg 1 is "stop":
  100. set {gabka.ev} to 0
  101. set {kres} to 0
  102. set {perla} to 0
  103. execute command "/heal %name of player%"
  104. if player has permission "event.stop" or "event.*":
  105. delete {event}
  106. set {niewidka} to 0
  107. execute command "/playsound note.bassattack %name of player% %location of player% 50 1 25"
  108. wait 1 second
  109. execute command "/playsound note.bassattack %name of player% %location of player% 50 1 25"
  110. wait 1 second
  111. execute command "/playsound note.hat %name of player% %location of player% 50 1 25"
  112. loop all players:
  113. message "&4Event Zakonczony" to loop-player
  114. else:
  115. send "&cNie masz uprawien"
  116. stop
  117. if arg 1 is "odlicz":
  118. if player has permission "event.odlicz" or "event.*":
  119. loop all players:
  120. message "Odliczanie do rozpoczecia eventu:" to loop-player
  121. message "&65" to loop-player
  122. execute command "/playsound note.pling %name of player%"
  123. wait 1 second
  124. message "&64" to loop-player
  125. execute command "/playsound note.pling %name of player% "
  126. wait 1 second
  127. message "&63" to loop-player
  128. execute command "/playsound note.pling %name of player% "
  129. wait 1 second
  130. message "&62" to loop-player
  131. execute command "/playsound note.pling %name of player% "
  132. wait 1 second
  133. message "&61" to loop-player
  134. execute command "/playsound note.pling %name of player% "
  135. wait 1 second
  136. execute command "/playsound note.bass %name of player% "
  137. make player execute command "/event start"
  138. else:
  139. send "&cNie masz uprawien"
  140. stop
  141. if arg 1 is "niewidka":
  142. if arg 2 is not set:
  143. if player has permission "event.niewidka" or "event.*":
  144. {niewidka} is 0:
  145. send "&cNiewidka off"
  146. {niewidka} is 1:
  147. send "&5Niewidka on"
  148. else:
  149. send "&cNie masz uprawien"
  150. if arg 2 is "on":
  151. if player has permission "event.niewidka" or "event.*":
  152. set {niewidka} to 1
  153. send "&3Niewidka On" to the player
  154. else:
  155. send "&cNie masz uprawien"
  156. stop
  157. if arg 2 is "off":
  158. if player has permission "event.niewidka" or "event.*":
  159. set {niewidka} to 0
  160. remove invisibility from the player
  161. send "&4Niewidka off" to the player
  162. else:
  163. send "&cNie masz uprawien"
  164. stop
Advertisement
Add Comment
Please, Sign In to add comment