Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tpspawn:
- trigger:
- set {_posx} to x-location of player
- set {_posy} to y-location of player
- set {_posz} to z-location of player
- set {_time} to 5
- set {_odliczanie} to 6
- send "&2[&4Serwer&2] &6Poczekaj na teleport! Nie ruszaj sie ! "
- loop {_time} times:
- difference between x-location of player and {_posx} is bigger than 0.5:
- send "&eTeleportacja przerwana."
- remove nausea from the player
- stop
- difference between y-location of player and {_posy} is bigger than 0.5:
- send "&eTeleportacja przerwana."
- remove nausea from the player
- stop
- difference between z-location of player and {_posz} is bigger than 0.5:
- send "&eTeleportacja przerwana."
- remove nausea from the player
- stop
- add -1 to {_time}
- add -1 to {_odliczanie}
- send "&2[&4Serwer&2] &6Pozostalo <green>%{_odliczanie}% &6sekund"
- wait 1 second
- {_time} is 0:
- send "&2[&4Serwer&2] &6Witaj na spawnie !"
- execute player command "/spawn"
- stop
Advertisement
Add Comment
Please, Sign In to add comment