Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #|===========================|
- #| Author: NikoKlb |
- #| Version: 1.0 Alpha |
- #| Zabrania sie: |
- #| - zarabiania na skrpycie |
- #| - usuwania notki o autorze|
- #|===========================|
- variables:
- {gabka.ev} = 0
- {perla} = 0
- {kres} = 0
- {niewidka} = 0
- {chatoff} = false
- options:
- tag: Event
- on rightclick on sign:
- if line 1 is "[EVENT]":
- if line 2 is "dolacz":
- make player execute command "/event"
- stop
- on walking on sponge:
- {gabka.ev} is 1:
- teleport player to {event}
- stop
- on walking on end stone:
- {kres} is 1
- loop all players:
- execute command "/playsound random.pop %name of player% %location of player% 50 1 25"
- message "&6 Graczu &b%player% &6udalo sie ukonczyc event" to loop-player
- stop
- command /event [<text>] [<text>] [<items>] [<player>]:
- trigger:
- if arg 1 is "i":
- if arg 2 is set:
- loop all players:
- message "&a============================================" to loop-player
- message "&a============================================" to loop-player
- message "&4{@tag} &3 %arg 2% " to loop-player
- message "&a============================================" to loop-player
- message "&a============================================" to loop-player
- arg 1 is "daj":
- arg 2 is "n":
- arg 3 is set:
- arg 4 is set:
- if player has permission "event.daj" or "event.*":
- give arg-4 arg-3
- message "&7Przyznano dla %arg 3%."
- stop
- give player arg-3
- message "&7Przyznano dla %player%."
- stop
- message "&7Uzycie: /event daj n <ilosc> <itemy> <gracz>"
- stop
- message "&7Uzycie: /event daj n <ilosc> <itemy> <gracz>"
- stop
- if arg 1 is not set:
- if {event} is not set:
- message "&cAktualnie nie odbywa siÄ™ event :("
- stop
- message "&7Dolaczyles do eventu"
- teleport the player to {event}
- execute command "/playsound mob.blaze.hit %name of player% %location of player% 50 1 25"
- {niewidka} is 1:
- apply invisibility to the player for 12 second
- stop
- if arg 1 is "komendy" or "list":
- if player has permission "event.list" or "event.*":
- send "&4 {@tag}"
- send "&5Lista Komenda"
- send "&6/event start &b- startuje event"
- send "&6/event odlicz &b- odlicza i autmoatycznie startuje event"
- send "&6/event stop &b- Zatrzymuje event"
- send "&6/event niewidka &b- sprawdza czy niewidzialnosc jest wlaczona"
- send "&6/event niewidka on &b- wlacza niewidke"
- send "&6/event niewidka off &b- wylacza niewidke"
- send "&6/event daj n <ilosc> <item> <nick> &b- Daje item danemu graczowi"
- send "&6/event i <text> &b- Wyjasnia o co chodzi w evencie"
- else:
- send "&cNie masz uprawien"
- stop
- if arg 1 is "start":
- set {gabka.ev} to 1
- set {kres} to 1
- set {perla} to 1
- if player has permission "event.start" or "event.*":
- set {event} to location of player
- loop all players:
- message "&2Ustawiono start eventu"
- message "&2&6Event rozpoczety! &2" to loop-player
- message "&2&bAby dolaczyc /event&2" to loop-player
- else:
- send "&cNie masz uprawien"
- stop
- if arg 1 is "stop":
- set {gabka.ev} to 0
- set {kres} to 0
- set {perla} to 0
- execute command "/heal %name of player%"
- if player has permission "event.stop" or "event.*":
- delete {event}
- set {niewidka} to 0
- execute command "/playsound note.bassattack %name of player% %location of player% 50 1 25"
- wait 1 second
- execute command "/playsound note.bassattack %name of player% %location of player% 50 1 25"
- wait 1 second
- execute command "/playsound note.hat %name of player% %location of player% 50 1 25"
- loop all players:
- message "&4Event Zakonczony" to loop-player
- else:
- send "&cNie masz uprawien"
- stop
- if arg 1 is "odlicz":
- if player has permission "event.odlicz" or "event.*":
- loop all players:
- message "Odliczanie do rozpoczecia eventu:" to loop-player
- message "&65" to loop-player
- execute command "/playsound note.pling %name of player%"
- wait 1 second
- message "&64" to loop-player
- execute command "/playsound note.pling %name of player% "
- wait 1 second
- message "&63" to loop-player
- execute command "/playsound note.pling %name of player% "
- wait 1 second
- message "&62" to loop-player
- execute command "/playsound note.pling %name of player% "
- wait 1 second
- message "&61" to loop-player
- execute command "/playsound note.pling %name of player% "
- wait 1 second
- execute command "/playsound note.bass %name of player% "
- make player execute command "/event start"
- else:
- send "&cNie masz uprawien"
- stop
- if arg 1 is "niewidka":
- if arg 2 is not set:
- if player has permission "event.niewidka" or "event.*":
- {niewidka} is 0:
- send "&cNiewidka off"
- {niewidka} is 1:
- send "&5Niewidka on"
- else:
- send "&cNie masz uprawien"
- if arg 2 is "on":
- if player has permission "event.niewidka" or "event.*":
- set {niewidka} to 1
- send "&3Niewidka On" to the player
- else:
- send "&cNie masz uprawien"
- stop
- if arg 2 is "off":
- if player has permission "event.niewidka" or "event.*":
- set {niewidka} to 0
- remove invisibility from the player
- send "&4Niewidka off" to the player
- else:
- send "&cNie masz uprawien"
- stop
Advertisement
Add Comment
Please, Sign In to add comment