Pickup items after death problem

Discussion in 'Skript' started by thmihnea, May 7, 2017.

  1. Hello.
    I have a little problem.
    I have the following piece of code:
    Code (Text):
    on death:
        wait 1 second
        set slot 3 of player's inventory to 1 paper named "&e&lRocketLeague &8⏐ &f&oInfo"
        set slot 4 of player's inventory to 1 emerald named "&e&lRocketLeague &8⏐ &f&oShop"
        set slot 5 of player's inventory to 1 book named "&e&lRocketLeague &8⏐ &f&oArena List"
    The problem here is that when the player dies, his items are being dropped, thing that shouldn't happen. How I can make the player to not drop the items?
     
  2. What addons to Skript are you using?