Solved Command Request System [TP]

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Selvati

Active Member
Jun 26, 2017
190
10
18
22
I would like someone to roughly recreate the essentials tpa system including /tpa [player] and requiring the target to accept to complete the teleportation, not very detailed but this should do, thank you so much in advance! ♥ Happy holidays.
 
I know I'm very late replying, but what I really wanted this for was the tpa cooldown/timer, also the request system.
just add

code_language.skript:
send "don't move!"
set {_Timer::%player%} to 5 #5 seconds
set {_loc::%player%} to location of player
while {_Time::%player%} is not 0:
  subtract 1 from {_timer::%player%}
  if {_loc::%player%} is not location of player:
    send "you moved. Canceld."
    stop
  wait a seconds
teleport player to arg-1
 
Could you please use tabs the right way? I can't figure out how to arrange the tabs..
 
this is right tab
you can use 1 space, 2 space, or 4 space (tab). so i used 2 space...
code_language.skript:
command /xSpawn89:
    trigger:
        send "don't move!"
        set {_Timer::%player%} to 5 #5 seconds
        set {_loc::%player%} to location of player
        while {_Time::%player%} is not 0:
            subtract 1 from {_timer::%player%}
            if {_loc::%player%} is not location of player:
                send "you moved. Canceld."
                stop
            wait a seconds
        teleport player to spawn
When I use this there is no 5 second delay, it instantly teleports
 
Sorry, a mistake
code_language.skript:
 set {_Timer::%player%} to 5 #5 seconds
while {_Time::%player%} is not 0:
see the reason? Forgett the "r"
 
Alright, thank you so much man! Merry Christmas! ♥
[doublepost=1514179783,1514163015][/doublepost]
Sorry, a mistake
code_language.skript:
 set {_Timer::%player%} to 5 #5 seconds
while {_Time::%player%} is not 0:
see the reason? Forgett the "r"
How can I add timed message like when the timer is 4 send “stuff”
 
Alright, thank you so much man! Merry Christmas! ♥
[doublepost=1514179783,1514163015][/doublepost]
How can I add timed message like when the timer is 4 send “stuff”
code_language.skript:
while {_timer::%player%} is not 0:
    send "You have to wait %{_Timer::%player%}% seconds"
 
code_language.skript:
while {_timer::%player%} is not 0:
    send "You have to wait %{_Timer::%player%}% seconds"
I want to be able to send specific messages at certain times like when its 4 seconds "msg1" and 3 seconds "msg2" ?
 
I want to be able to send specific messages at certain times like when its 4 seconds "msg1" and 3 seconds "msg2" ?
code_language.skript:
while...
if {_timer::%player%} is 4:

else if {_timer::%player%} is 3:

Its very simple (Skript basis...)