Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################################
- # #
- # AUTOR: marek2303 #
- # Zapraszam na serwer,IP: McKoxer.cubehost.pl #
- # #
- #################################################
- #
- # Pamiętaj, aby ustawić spawn komendą /setspawn
- #
- on skript load:
- wait 2 seconds
- send "&9Wbij na serwer, IP: McKoxer.cubehost.pl" to the console
- on first join:
- wait 1 tick
- teleport player to {spawn}
- on death:
- wait 1 tick
- teleport player to {spawn}
- on death of player:
- wait 1 tick
- teleport player to {spawn}
- on respawn:
- wait 1 tick
- teleport player to {spawn}
- on first login:
- wait 1 tick
- teleport player to {spawn}
- command /setspawn:
- permission: spawn.ustaw
- description: Ustawiasz miejsce spawnu.
- trigger:
- set {spawn} to location of player
- send "&2Ustawiles miejsce spawnu!"
- options:
- time: 10 # czas w sekundach po jakim ma teleportowac
- cena: 1 diamond # ilosc i nazwa itemka po angielsku
- x: 0 # pozycja spawnu x
- z: 0 # pozycja spawnu z
- command /spawn:
- trigger:
- player has {@cena}:
- remove {@cena} from player
- set {_posx} to x-location of player
- set {_posz} to z-location of player
- set {_posy} to y-location of player
- set {_time} to {@time}
- apply nausea to player for {@time} seconds
- send "&2Zostaniesz przeniesiony na spawn za &7%{_time}% sek&2. Nie ruszaj sie!"
- wait 1 second
- loop {@time} times:
- difference between x-location of player and {_posx} is bigger than 0.5:
- send "&2Teleportacja przerwana."
- give {@cena} to the player
- remove nausea from the player
- stop
- difference between z-location of player and {_posz} is bigger than 0.5:
- send "&2Teleportacja przerwana."
- give {@cena} to the player
- remove nausea from the player
- stop
- difference between y-location of player and {_posy} is bigger than 0.5:
- send "&2Teleportacja przerwana."
- give {@cena} to the player
- remove nausea from the player
- stop
- add -1 to {_time}
- {_time} is 0:
- teleport player to {spawn}
- remove nausea from the player
- send "&2Witaj na spawnie!"
- stop
- send "&2Teleportacja nastapi za &7%{_time}% sek&2."
- wait 1 second
- stop
- send "&2Koordynaty spawnu: &9x:{@x}, z:{@z}"
- send "&2Aby teleportowac sie musisz miec {@cena}."
Advertisement
Add Comment
Please, Sign In to add comment