GrimoN

Untitled

Apr 19th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. on command "/spawn":
  2. cancel event
  3. if {teleport::%player%} is not set:
  4. set {_pos::%Player%} to position of player
  5. loop 3 times:
  6. wait 1 second
  7. if position of player is not {_pos::%player%}:
  8. clear {teleport::%player%}
  9. send "{@Tag}: Poruszyles sie, teleportacja anulowana."
  10. stop
  11. if position of player is {_pos::%player%}:
  12. if {teleport::%player%} is true:
  13. set {_pozostalo::%player%} to "%{@teleportCooldown}-loop-number%"
  14. send "{@Tag}: Pozostalo: &6%{_pozostalo::%player%}% &fsekund/a."
  15. add 1 to {_teleport::%player%}
  16. else:
  17. stop
  18. if {_teleport::%player%} is {@teleportCooldown}:
  19. if {teleport::%player%} is true:
  20. clear {teleport::%player%}
  21. send "{@Tag}: Teleportuje..."
  22. wait 2 tick
  23. teleport player to spawn
  24. top
  25. else:
  26. stop
  27. else:
  28. send "{@Tag}: Juz sie teleportujesz."
  29. stop
Advertisement
Add Comment
Please, Sign In to add comment