Guest User

Teleport spawn

a guest
Jan 20th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. command /tpspawn:
  2. trigger:
  3. set {_posx} to x-location of player
  4. set {_posy} to y-location of player
  5. set {_posz} to z-location of player
  6. set {_time} to 5
  7. set {_odliczanie} to 6
  8. send "&2[&4Serwer&2] &6Poczekaj na teleport! Nie ruszaj sie ! "
  9. loop {_time} times:
  10. difference between x-location of player and {_posx} is bigger than 0.5:
  11. send "&eTeleportacja przerwana."
  12. remove nausea from the player
  13. stop
  14. difference between y-location of player and {_posy} is bigger than 0.5:
  15. send "&eTeleportacja przerwana."
  16. remove nausea from the player
  17. stop
  18. difference between z-location of player and {_posz} is bigger than 0.5:
  19. send "&eTeleportacja przerwana."
  20. remove nausea from the player
  21. stop
  22. add -1 to {_time}
  23. add -1 to {_odliczanie}
  24. send "&2[&4Serwer&2] &6Pozostalo <green>%{_odliczanie}% &6sekund"
  25. wait 1 second
  26. {_time} is 0:
  27. send "&2[&4Serwer&2] &6Witaj na spawnie !"
  28. execute player command "/spawn"
  29. stop
Advertisement
Add Comment
Please, Sign In to add comment