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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved I need a skript (pretty long)

Discussion in 'Skript' started by FrostPVP™️, Feb 27, 2021.

Thread Status:
Not open for further replies.
  1. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    I need a /spawn skript
    - /setspawn
    - /spawn
    - sk.spawn (For /setspawn, and /delspawn)
    - /delspawn sk.spawn
    - no /spawn permission
    - instant spawn
    - if your in combat wait 3 seconds then /spawn (instant teleport)
    - make it say "&eWait &63 &eSeconds" type of thing when there in combat
    - (teleport message) "&aYou have been teleported to spawn"
    - (no permission message) "&4Insufficient Permission"
    Thank You <3
    If you have any questions about the skript please message me on discord or skunity

     
    #1 FrostPVP™️, Feb 27, 2021
    Last edited: Feb 27, 2021
  2. Best Answer:
    Post #14 by Binkie, Feb 27, 2021
  3. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    Hey, Can i get more info?
     
  4. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    like?
     
  5. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    Code (Text):
    1. variables:
    2.     {%player%.cooldown} = false
    3.  
    4. on disconnect:
    5.     set {%player%.cooldown} to false
    6.  
    7. on join:
    8.     set {%player%.cooldown} to false
    9.  
    10. on damage:
    11.     attacker is a player
    12.     if {%attacker%.cooldown} is false:
    13.         set {%attacker%.cooldown} to true
    14.         wait 3 seconds
    15.         set {%attacker%.cooldown} to false
    16.     else:
    17.         stop
    18.  
    19.  
    20. command /setspawn:
    21.     trigger:
    22.         if player has permission "sk.spawn":
    23.             set {Spawn.t} to player's location
    24.             send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
    25.         else:
    26.             send "&5&lNo Perms!"
    27.  
    28. command /delspawn:
    29.     trigger:
    30.         if player has permission "sk.spawn":
    31.             delete {Spawn.t}
    32.             send "&a&lDone, &6&lDeleted the main spawn!"
    33.         else:
    34.             send "&5&lNo Perms!"
    35.  
    36. command /spawn:
    37.     trigger:
    38.         if {%player%.cooldown} is false:
    39.             teleport player to {Spawn.t}
    40.             send "&a&lTeleported to spawn!"
    41.         else:
    42.             send "&4&lYou are currently in combat!"
    --- Double Post Merged, Feb 27, 2021, Original Post Date: Feb 27, 2021 ---
    wait i will edit the messages because i forgot to edit them xD
     
  6. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    so this is the finished product?
     
  7. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    wait editing last thing
     
    • Ducky Ducky x 1
  8. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    okay :emoji_slight_smile: ty
    --- Double Post Merged, Feb 27, 2021, Original Post Date: Feb 27, 2021 ---
    I can edit it if you want
     
  9. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    Here is the code

    Code (Text):
    1. variables:
    2.     {%player%.cooldown} = false
    3.     {%player%.waittime} = 0
    4.  
    5. on disconnect:
    6.     set {%player%.cooldown} to false
    7.     set {%player%.waittime} to 0
    8.  
    9. on join:
    10.     set {%player%.cooldown} to false
    11.     set {%player%.waittime} to 0
    12.  
    13. on damage:
    14.     attacker is a player
    15.     if {%attacker%.cooldown} is false:
    16.         set {%attacker%.cooldown} to true
    17.         set {%attacker%.waittime} to 3
    18.         wait 1 second
    19.         set {%attacker%.waittime} to 2
    20.         wait 1 second
    21.         set {%attacker%.waittime} to 1
    22.         wait 1 second
    23.         set {%attacker%.waittime} to 0
    24.         set {%attacker%.cooldown} to false
    25.     else:
    26.         stop
    27.  
    28. command /setspawn:
    29.     trigger:
    30.         if player has permission "sk.spawn":
    31.             set {Spawn.t} to player's location
    32.             send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
    33.         else:
    34.             send "&4Insufficient Permission"
    35.  
    36. command /delspawn:
    37.     trigger:
    38.         if player has permission "sk.spawn":
    39.             delete {Spawn.t}
    40.             send "&a&lDone, &6&lDeleted the main spawn!"
    41.         else:
    42.             send "&5&lNo Perms!"
    43.  
    44. command /spawn:
    45.     trigger:
    46.         if {%player%.cooldown} is false:
    47.             teleport player to {Spawn.t}
    48.             send "&aYou have been teleported to spawn"
    49.         else:
    50.             send "&eWait &6%{%player%.waittime}% &eSeconds"
    --- Double Post Merged, Feb 27, 2021, Original Post Date: Feb 27, 2021 ---
    done :emoji_grinning:
     
    • Like Like x 1
  10. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    :emoji_grinning: ty
     
  11. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    enjoy
    your welcome :emoji_wink:
     
  12. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    can you also add a spawn.bypass to please? Thank You.
     
  13. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    whats does this do?
     
  14. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    you instant spawn to spawn instead of waitin 3 seconds
     
  15. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    ok wait lemme do it
    --- Double Post Merged, Feb 27, 2021, Original Post Date: Feb 27, 2021 ---
    Here

    Code (Text):
    1. variables:
    2.     {%player%.cooldown} = false
    3.     {%player%.waittime} = 0
    4.  
    5. on disconnect:
    6.     set {%player%.cooldown} to false
    7.     set {%player%.waittime} to 0
    8.  
    9. on join:
    10.     set {%player%.cooldown} to false
    11.     set {%player%.waittime} to 0
    12.  
    13. on damage:
    14.     attacker is a player
    15.     if {%attacker%.cooldown} is false:
    16.         set {%attacker%.cooldown} to true
    17.         set {%attacker%.waittime} to 3
    18.         wait 1 second
    19.         set {%attacker%.waittime} to 2
    20.         wait 1 second
    21.         set {%attacker%.waittime} to 1
    22.         wait 1 second
    23.         set {%attacker%.waittime} to 0
    24.         set {%attacker%.cooldown} to false
    25.     else:
    26.         stop
    27.  
    28. command /setspawn:
    29.     trigger:
    30.         if player has permission "sk.spawn":
    31.             set {Spawn.t} to player's location
    32.             send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
    33.         else:
    34.             send "&4Insufficient Permission"
    35.  
    36. command /delspawn:
    37.     trigger:
    38.         if player has permission "sk.spawn":
    39.             delete {Spawn.t}
    40.             send "&a&lDone, &6&lDeleted the main spawn!"
    41.         else:
    42.             send "&5&lNo Perms!"
    43.  
    44. command /spawn:
    45.     trigger:
    46.         if player doesn't have permission "spawn.bypass":
    47.             if {%player%.cooldown} is false:
    48.                 teleport player to {Spawn.t}
    49.                 send "&aYou have been teleported to spawn"
    50.             else:
    51.                 send "&eWait &6%{%player%.waittime}% &eSeconds"
    52.         else:
    53.             teleport player to {Spawn.t}
    54.             send "&aYou have been teleported to spawn"
     
    • Like Like x 1
  16. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    ok thank you <3
    --- Double Post Merged, Feb 28, 2021, Original Post Date: Feb 27, 2021 ---
    for some reason it doesn't work... i just tested it "The combat log part not the /setspawn and /delspawn those are good) people can just do /spawn in combat
     
Thread Status:
Not open for further replies.

Share This Page

Loading...