View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-22-2016 , 11:19   Re: How to save in nvault?
Reply With Quote #7

Quote:
Originally Posted by Craxor View Post
It probably didn't cause you only explain there how to save/load data. You're not explaining him how to set the model back after he joined.

What you gotta do:

1) Create a boolean which holds true or false according to if the player has the model saved or not. You should set to true if the player has the model saved.
2) On player disconnect, you should save the data of the boolean. (Variable which holds 0/1 would work too)
3) On player connect, load that same boolean (Craxor explained pretty well on how to do it)
4) On player spawn POST, you should set this model. (Remember that this should only be done once, you can do this by creating another boolean which holds true or false according to if the player already spawned his first time or not.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be