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 Arguments

Discussion in 'Skript' started by IViddyy, Jun 27, 2022.

Thread Status:
Not open for further replies.
  1. IViddyy

    IViddyy Member

    Joined:
    Apr 17, 2022
    Messages:
    14
    Likes Received:
    1
    Hi im new to skript and im trying to make a skript that kills the player by the amount u entered (like if u entered 5 it insta kills the player 5 times).

    Edit: its for insta respawn.
     
    #1 IViddyy, Jun 27, 2022
    Last edited: Jun 27, 2022
  2. Best Answer:
    Post #2 by Drakem, Jun 27, 2022
  3. Drakem

    Drakem Member

    Joined:
    Apr 29, 2022
    Messages:
    10
    Likes Received:
    0
    something like this?
    Code (Text):
    1.  
    2. command /kill <text> <integer>:
    3.    trigger:
    4.        loop all players:
    5.            if name of loop-entity is equal to arg-1:
    6.                while {_times} is not arg-2:
    7.                    kill loop-entity
    8.                    add 1 to {_times}
    9.                    wait 1 second
    10.                    
    11. on death of player:
    12.    force victim to respawn
    13.  
     
  4. IViddyy

    IViddyy Member

    Joined:
    Apr 17, 2022
    Messages:
    14
    Likes Received:
    1
    it did nothing but u dont have to force the player to respawn i set the gamerule to true so they just respawn instantly but it says there is a empty configuration section on the 3rd line
     
  5. Drakem

    Drakem Member

    Joined:
    Apr 29, 2022
    Messages:
    10
    Likes Received:
    0
    ok, use just this:
    Code (Text):
    1. command /kill <text> <integer>: #usage: /kill <name> <times>. example: /kill Drakem 5
    2.    trigger:
    3.        loop all players:
    4.            if name of loop-entity is equal to arg-1:
    5.                while {_times} is not arg-2:
    6.                    kill loop-entity
    7.                    add 1 to {_times}
    8.                    wait 1 second
    and don't use the spaces from this code, when you go to paste it in your file rewrite the tabs manually
     
  6. IViddyy

    IViddyy Member

    Joined:
    Apr 17, 2022
    Messages:
    14
    Likes Received:
    1
    thanks it worked
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...