Hello,
How can ı get targeted player's location
I wrote this but it's not working
How can ı get targeted player's location
I wrote this but it's not working
Code:
on load:
command /konum [<player>]:
trigger:
if arg 1 is set:
set {_targetPlayer} to arg 1 parsed as player
if {_targetPlayer} is online:
set {_loc} to location of {_targetPlayer}
set {_x} to x-coordinate of {_loc}
set {_y} to y-coordinate of {_loc}
set {_z} to z-coordinate of {_loc}
send "&a%{_targetPlayer}%'s coords: X: %{_x}%, Y: %{_y}%, Z: %{_z}%" to player
else:
send "&cPlayer is not Online!" to player
else:
set {_loc} to location of player
set {_x} to x-coordinate of {_loc}
set {_y} to y-coordinate of {_loc}
set {_z} to z-coordinate of {_loc}
send "&aYour coords: X: %{_x}%, Y: %{_y}%, Z: %{_z}%" to player