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!

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

Skript help

Discussion in 'General' started by ItsDy1an, Jun 23, 2017.

  1. ItsDy1an

    ItsDy1an New Member

    Joined:
    Jun 23, 2017
    Messages:
    8
    Likes Received:
    0
    Hey guys, i'm new to using / making skripts i'm currently in the middle of making an ffa skript and i'm wondering if its possible if a player is up in spawn and they re arrange their hotbar and then type /save it saves their layout?
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Wrong section, and yes it's possible.

    Code (Skript):
    1. command /save:
    2.     trigger:
    3.         loop items in player's inventory:
    4.             add loop-item to {ffa:%player%::*}
    5.             execute console command "clear %player%" # The skript won't remove the armor slot so we have to remove it manually with a built-in cmd.
    6.            
    7.    
    8. command /giveme:
    9.     trigger:
    10.         loop {ffa:%player%::*}:
    11.             give loop-value to player
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Awesome thanks, I was wondering though in my skript i have right now once a player dies their drops clear so basically they do not drop, but i'm now wanting to drop just their golden apples that hey may have left and if none, well thing drops
     

Share This Page

Loading...