Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on command "/spawn":
- cancel event
- if {teleport::%player%} is not set:
- set {_pos::%Player%} to position of player
- loop 3 times:
- wait 1 second
- if position of player is not {_pos::%player%}:
- clear {teleport::%player%}
- send "{@Tag}: Poruszyles sie, teleportacja anulowana."
- stop
- if position of player is {_pos::%player%}:
- if {teleport::%player%} is true:
- set {_pozostalo::%player%} to "%{@teleportCooldown}-loop-number%"
- send "{@Tag}: Pozostalo: &6%{_pozostalo::%player%}% &fsekund/a."
- add 1 to {_teleport::%player%}
- else:
- stop
- if {_teleport::%player%} is {@teleportCooldown}:
- if {teleport::%player%} is true:
- clear {teleport::%player%}
- send "{@Tag}: Teleportuje..."
- wait 2 tick
- teleport player to spawn
- top
- else:
- stop
- else:
- send "{@Tag}: Juz sie teleportujesz."
- stop
Advertisement
Add Comment
Please, Sign In to add comment