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.

I need a skript

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 combat log skript you have to wait 5 seconds and if you log before 5 seconds you instantly die
    ty <3
     
  2. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    ok
    --- Double Post Merged, Feb 27, 2021, Original Post Date: Feb 27, 2021 ---
    wait so you want a skript that when a player damages a player, if the attacker left and joins again before 5 seconds they die?
     
  3. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    yeah just a basic combat log skript also i want a combatlog.bypass please so they don't die then they combat log
     
  4. Binkie

    Binkie Member

    Joined:
    Nov 20, 2020
    Messages:
    21
    Likes Received:
    2
    Check this one:

    Code (Text):
    1. variables:
    2.     {%player%.dontleave} = false
    3.  
    4. on damage:
    5.     attacker is a player
    6.     attacker doesn't have permission "combatlog.bypass"
    7.     if {%attacker%.dontleave} is false:
    8.         send "&5&lYou are under cooldown, Don't leave before 5 seconds! or you will be instantly die" to attacker
    9.         set {%attacker%.dontleave} to true
    10.         wait 1 second
    11.         set {%attacker%.leavetime} to 5
    12.         wait 1 second
    13.         set {%attacker%.leavetime} to 4
    14.         wait 1 second
    15.         set {%attacker%.leavetime} to 3
    16.         wait 1 second
    17.         set {%attacker%.leavetime} to 2
    18.         wait 1 second
    19.         set {%attacker%.leavetime} to 1
    20.         wait 1 second
    21.         set {%attacker%.leavetime} to 0
    22.         set {%attacker%.dontleave} to false
    23.         send "&a&lCoolDown ended now you can leave!"
    24.     else:
    25.         stop
    26.  
    27. on join:
    28.     if {%player%.dontleave} is true:
    29.         kill player
     
  5. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
  6. TehCheetah

    TehCheetah Member

    Joined:
    Feb 7, 2021
    Messages:
    49
    Likes Received:
    1
    Please mark this thread as solved.
    Also when asking for a Skript, please go to here
    [/I][/B]
     
  7. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    sry and

    its not finished
     
Thread Status:
Not open for further replies.

Share This Page

Loading...