Help with Spawn

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Brok3nmind

Active Member
Feb 3, 2017
66
1
8
22
Germany
darkvoid.eu
How can i do that if the player walk or become damage that the command /spawn will be canceled

code_language.skript:
command /setspawn:
    trigger:
        if player has permission "setspawn.spawn":
            set {epicspawn::spawn} to location of player
            send "&7Der Spawn wurde &bgesetzt"
        else:
            send "&4Du hast nicht die Rechte dazu !"
command /spawn:
    trigger:
        if {epicspawn::spawn} is set:
            teleport player to {epicspawn::spawn}
            stop
        else:
            send "&cDer Spawn wurde noch nicht gesetzt !"
 
Last edited:
you could set it up with a timer until teleport like a lot of spawn commands use. then in the events you want to have it cancel you can stop the countdown.
 
Listen for player damage events, store the time they were damaged in a variable (like {lastDamageTime::%player%}), then you can check the difference between that time and now when they run the command to see if they've been damaged too recently.
 
  • Like
Reactions: Wynnevir
Listen for player damage events, store the time they were damaged in a variable (like {lastDamageTime::%player%}), then you can check the difference between that time and now when they run the command to see if they've been damaged too recently.
Ok and what is the skript-hack addon what can do it ?
 
Status
Not open for further replies.