Jump to content

Spawn [SKRIPT]


SmileyScripts

Recommended Posts

command /setspawn [<text>]:
    permission:  op
    trigger:
        if arg-1 isn't set:
            set {spawn} to location of player
            send "&7Set spawn to: &c%{spawn}%&7!" to player
        else:
            send "&fSm&6Skripts &8&6Too many arguments!" to player
 
command /spawn [<player>]:
    trigger:
        if arg-1 isn't set:
            teleport player to {spawn}
        else:
            if player has permission "spawn":
                if arg-1 isn't "%player%":
                    if arg-1 is online:
                        teleport arg-1 to {spawn}
                        send "&7You summoned &c%arg-1% &7to spawn!" to player
                        send "&7You were summoned &c%player% &7to spawn!" to arg-1
                    else:
                        send "&fSm&6Skripts &8&6Player not online!" to player
                else:
                    teleport player to {spawn}
                    send "&7Teleporting to: &cSpawn" to player
            else:
                send "&fSm&6Skripts &8&6Insufficient Permissions!" to player
 
on respawn:
    teleport player to {spawn}
 
on first join:
    teleport player to {spawn}
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...