• Hey! Register here to create your account, engage with the community, and talk about what is new!

[SOLVED] How do I check if a player has a saved inventory?

HackerDragon9999

Notorious member
Joined
Jan 18, 2023
Messages
105
Reaction score
19
I want players to get starter gear only if they don't have an inventory saved already.
 
Solution
Actually, neekster12345 gave me the solution in-game. Here it is:

Player Join >
If Variable ==(%default joined, 0){
-- insert first join code here --
Set Variable =(%default joined, 1)
} else {
Load Inv()
}

Spykidagent

Forum adept
Emperor
Joined
Jan 26, 2023
Messages
123
Reaction score
13
Load the inventory, then check fOr if the player has at least 1 item, then invert that if so its if not, then you can give the player the starter items in that if
 

HackerDragon9999

Notorious member
Joined
Jan 18, 2023
Messages
105
Reaction score
19
Actually, neekster12345 gave me the solution in-game. Here it is:

Player Join >
If Variable ==(%default joined, 0){
-- insert first join code here --
Set Variable =(%default joined, 1)
} else {
Load Inv()
}
 
Solution
Top Bottom