Two things about minigames

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ThanasiShadoW

Member
Feb 4, 2017
1
0
0
23
I am making a minigame and i want to make a working lobby (players will wait there untill more players join). The problem is that i don't know how to save/load inventories and prevent them from using other commands. Any ideas?
 
code_language.skript:
on quit:
    set {_s} to 0
    loop 9*4 times:
        set {Inv::%player%::%{_s}%} to "%player's slot loop-number -1%"
        add 1 to {_s}
 
on join:
    wait a ticks
    broadcast "%{Inv::%player%::*}%"
    loop {Inv::%player%::*}:
        set slot ("%loop-index%" parsed as number) of player to ("%loop-value%" parsed as item)
    delete {Inv::%player%::*}

This is mine old code for Bungee server.
 
Status
Not open for further replies.