View difference between Paste ID: t8P43r6d and D47Yatba
SHOW: | | - or go back to the newest paste.
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."
11+
				send "&2[&4Serwer&2]&6Teleportacja przerwana"
12-
				remove nausea from the player
12+
13
			difference between y-location of player and {_posy} is bigger than 0.5:
14
				send "&2[&4Serwer&2]&6Teleportacja przerwana"
15-
				send "&eTeleportacja przerwana."
15+
16-
				remove nausea from the player
16+
17
				send "&2[&4Serwer&2]&6Teleportacja przerwana"
18
				stop
19-
				send "&eTeleportacja przerwana."
19+
20-
				remove nausea from the player
20+
21
			send "&2[&4Serwer&2] &6Pozostalo <green>%{_odliczanie}% &6sekund"
22
			wait 1 second
23
			{_time} is 0:
24
				send "&2[&4Serwer&2] &6Witaj na spawnie !"
25
				execute player command "/spawn"
26
				stop