Jump to content

Recommended Posts

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

# made my xp69. please give credit when using! thanks! : ) if you have suggestions to make it better then please reply to my minehut post
command /safe:
    trigger:
        execute console command "/warp [your safezone warp name] %player%"
        execute console command "/afk %player%"
        set {safe.true} to true

command /unsafe:
    trigger:
        if {safe.true} is false:
            stop
        if {safe.true} is true:
            execute console command "/spawn %player%"
            execute console command "/afk %player%"

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

This Skript allows you to use /safe to teleport you to a certain warp (using essentials or a warp skript/plugin but i use essentials because it comes with warp.) You can also use /unsafe to teleport you back to spawn. It also sets you to afk (again use essentials or a afk skript/plugin. AGAIN i use essentials.)

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

example:

Link to comment
Share on other sites

options:
    confirm: &7[&a!&7]
    deny: &7[&c!&7]
command /setspawn:
    permission: op
    trigger:
        set {spawn} to player's location
        send "{@confirm} &aSpawn Set Successfully" to player
command /spawn:
    trigger:
        teleport the player to {spawn}
        send "{@confirm} &6Entering Spawn..."
command /setsafe:
    permission: safe.control
    trigger:
        set {safe.loc} to player's location
command /safe:
    trigger:
        teleport the player to {safe.loc}
        send "{@confirm} &aYou have entered Safe Mode." to player
        set {safe.true} to true
command /unsafe:
    trigger:
        if {safe.true} is false:
            send "{@deny} &6You can't leave something you are not in." to player
            stop
        if {safe.true} is true:
            teleport the player to {spawn}
            send "{@confirm} &6You have left safe mode." to player
            set {safe.true} to false

coming back into skripting after like two years of not doing it but, this is what i came up with if you wanna learn something from it.

Link to comment
Share on other sites

13 hours ago, e8p said:
options:
    confirm: &7[&a!&7]
    deny: &7[&c!&7]
command /setspawn:
    permission: op
    trigger:
        set {spawn} to player's location
        send "{@confirm} &aSpawn Set Successfully" to player
command /spawn:
    trigger:
        teleport the player to {spawn}
        send "{@confirm} &6Entering Spawn..."
command /setsafe:
    permission: safe.control
    trigger:
        set {safe.loc} to player's location
command /safe:
    trigger:
        teleport the player to {safe.loc}
        send "{@confirm} &aYou have entered Safe Mode." to player
        set {safe.true} to true
command /unsafe:
    trigger:
        if {safe.true} is false:
            send "{@deny} &6You can't leave something you are not in." to player
            stop
        if {safe.true} is true:
            teleport the player to {spawn}
            send "{@confirm} &6You have left safe mode." to player
            set {safe.true} to false

coming back into skripting after like two years of not doing it but, this is what i came up with if you wanna learn something from it.

the point of the post i had made was mainly with essentials where you create a warp and then whenever you use /safe is teleports you to that warp. and when you do /unsafe it sends you to spawn (with essentials). i also made it so that you're afk whenever you're teleported to safe.

Link to comment
Share on other sites

  • 7 months later...

noice

 Joined minehut forums - 2022

Joined minehut - 2017

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

Makes TRAILERS

1th best editor in minehut

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

Owns a popular server "tofhmc"

NewWolfs - got taken over by voidyy11

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

Yas Omg GIF by O&O, Inc

About me:

Cool, Funny, Strict, DUMB, annoying

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

About tofhmc:

Tofhmc is the first server to play a remake of a roblox game

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...