Jump to content

Help with /tp skript


jrJNRjnRRW

Recommended Posts

Hey! I have been having some trouble with permissions and the easiest solution is to make a custom /teleport to (PLAYER) skript executed by console. If anyone has some spare time to make this I would be very happy, it would look something like this.

command /tp (PLAYER)
permission tp.mod
make console execute command /tp player who used command to (PLAYER)


Link to comment
Share on other sites

That is not how you make commands with skript. Here is a tutorial on how to do that - https://skripthub.net/tutorials/10

And you can use the teleport affect to teleport the player to the argument - https://skripthub.net/docs/?id=1103

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 4 weeks later...

Try this it's a tp ask command   

Command are: /tpask <player> ( /tpa )   /tpaccept ( /tpac )   /tpdeny ( /tpd )

command /tpask [<player>]:
    aliases: /tpa
    trigger:
        if arg-1 is set:
            if arg-1 is online:
                if {tpalist::*} contains arg-1:
                    send "&a%arg-1% &falready have a tpa request pending."
                else:
                    if arg-1 is player:
                        send "&fThis is &ayou!"
                    else:
                        add arg-1 to {tpalist::*}
                        add player to {tpalist.%arg-1%::*}
                        send "&bYou have a tpa request.%newline%&aType /tpaccept to accept it.%newline%&cType /tpdeny to deny it." to arg-1
                        send "&fYou have sent a tpa request to &a%arg-1%." to player
            else:
                send "&a%arg-1% &fis &coffline."
        else:
            send "&fPlease define a &aplayer."

command /tpaccept:
    aliases: /tpac
    trigger:
        if {tpalist::*} contains player:
            send "&aAccepting &ftpa request..."
            remove player from {tpalist::*}
            send "&fYou have accepted &a%player%&f's tpa request." to player
            wait 1 second
            teleport {tpalist.%player%::*} to player
        else:
            send "&fYou have &cno &ftpa requests."
command /tpdeny:
    aliases: /tpd
    trigger:
        if {tpalist::*} contains player:
            send "&cDenying &ftpa request..."
            remove player from {tpalist::*}
            send "&fYou have &cdenied &a%player%&f's tpa request." to player
        else:
            send "&fYou have &cno &ftpa requests."


 

Edited by Ruben8762
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...