Czesc! Ktos umie naprawić ten skrypt? chodzi o to że jak pisze /tpa (nick) to ten gracz tepa do mnie a nie ja do niego :/..
Spoiler
command /tpa [<text>]:
trigger:
if arg 1 is not set:
send "&8» &7Podaj nick &6Gracza "
stop
set {_arg1} to arg 1
set {_arg1} to {_arg1} parsed as offlineplayer
if {_arg1} is online:
send "&2BlazeNetwork &8» &7Gracz &6%player% &7prosi o teleportacje do ciebie" to {_arg1}
send "&2BlazeNetwork &8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to {_arg1}
send "&2BlazeNetwork &8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to {_arg1}
send "&2BlazeNetwork &8» &7Wyslales prosbe o teleportacje do gracza&6 %{_arg1}%"
set {tpa::%{_arg1}%::sendAsk} to name of player
set {tpa::%player%::toTeleport} to {_arg1}
on quit:
if {tpa::%player%::toTeleport} is set:
clear {tpa::%{tpa::%player%::toTeleport}%::toTeleport}
clear {tpa::%player%::toTeleport}
if {tpa::%player%::sendAsk} is set:
clear {tpa::%{tpa::%player%::sendAsk}%::sendAsk}
clear {tpa::%player%::sendAsk}
command /tpaccept:
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 "&2BlazeNetwork &8» &7Gracz &6%player% &7zaakceptowal twoja teleportacje" to {_p}
send "&2BlazeNetwork &8» &7Teleportacja za 10 sekund nie, ruszaj sie" to {_p}
send "&2BlazeNetwork &8» &7Przyjales prosbe o teleportacja od gracza &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 10 times:
if difference between x-location of {_p} and {_x} is larger than 0.5:
send "&2BlazeNetwork &8» &7Poruszyles sie, teleportacja zostala anulowana!" to {_p}
stop
if difference between y-location of {_p} and {_y} is larger than 0.5:
send "&2BlazeNetwork &8» &7Poruszyles sie, teleportacja zostala anulowana!" to {_p}
stop
if difference between z-location of {_p} and {_z} is larger than 0.5:
send "&2BlazeNetwork &8» &7Poruszyles sie, teleportacja zostala anulowana!" to {_p}
stop
wait 1 second
teleport player to {_p}
stop
clear {tpa::%{_p}%::toTeleport}
clear {tpa::%player%::toTeleport}
clear {tpa::%{_p}%::sendAsk}
clear {tpa::%player%::sendAsk}
send "&2BlazeNetwork &8» &7Nie masz od kogo zaakceptowac teleportacji"
stop
send "&2BlazeNetwork &8» &7Nie dostales prosby o teleportacje"
command /tpdeny:
trigger:
if {tpa::%player%::sendAsk} is set:
set {_p} to {tpa::%player%::sendAsk}
set {_p} to {_p} parsed as offlineplayer
if {_p} is online:
clear {tpa::%{_p}%::toTeleport}
clear {tpa::%player%::toTeleport}
clear {tpa::%{_p}%::sendAsk}
clear {tpa::%player%::sendAsk}
send "&2BlazeNetwork &8» &7Teleportacja nie zostala zaakceptowana" to {_p}
send "&2BlazeNetwork &8» &7Odrzuciles prosbe teleportacji od &6%{_p}%"
stop
clear {tpa::%{_p}%::toTeleport}
clear {tpa::%player%::toTeleport}
clear {tpa::%{_p}%::sendAsk}
clear {tpa::%player%::sendAsk}
send "&2BlazeNetwork &8» &7Nie ma od kogo odrzucic teleportacji"
stop
send "&2BlazeNetwork &8» &7Nie masz prosby o teleportacje"
Pytanie
WoW_Team 0
Czesc! Ktos umie naprawić ten skrypt? chodzi o to że jak pisze /tpa (nick) to ten gracz tepa do mnie a nie ja do niego :/..
//Spoiler ~
Edytowane przez Derpy HoovesOdnośnik do komentarza
https://skript.pl/temat/15935-epicki-skrypt-na-tpa/Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi