Witam, prosze o dodanie odliczania w titlu ze np. teleport nastapi za: 5 4 3 2 1 0 ...
command /tpaccept [<text>]:
trigger:
if {tpa::%player%::sendAsk} is set:
set {_p} to {tpa::%player%::sendAsk}
set {_p} to {_p} parsed as offlineplayer
if {_p} is online:
send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
clear {tpa::%{_p}%::toTeleport}
clear {tpa::%player%::toTeleport}
clear {tpa::%{_p}%::sendAsk}
clear {tpa::%player%::sendAsk}
set {_x} to x-location of {_p}
set {_y} to y-location of {_p}
set {_z} to z-location of {_p}
loop 4 times:
if difference between x-location of {_p} and {_x} is larger than 0.5:
send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
stop
if difference between y-location of {_p} and {_y} is larger than 0.5:
send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
stop
if difference between z-location of {_p} and {_z} is larger than 0.5:
send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
stop
wait 1 second
teleport {_p} to player
send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
stop
clear {tpa::%{_p}%::toTeleport}
clear {tpa::%player%::toTeleport}
clear {tpa::%{_p}%::sendAsk}
clear {tpa::%player%::sendAsk}
send "&4Blad: &cNie masz prosby o teleportacje"
stop
send "&4Blad: &cNie masz prosby o teleportacje"
Pytanie
Wariat25 0
Witam, prosze o dodanie odliczania w titlu ze np. teleport nastapi za: 5 4 3 2 1 0 ...
Edytowane przez Wariat25Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/Udostępnij na innych stronach
20 odpowiedzi na to pytanie
Rekomendowane odpowiedzi