Vander Posted March 29, 2011 Share Posted March 29, 2011 How do I go about updating player accounts? Example of what I wanna do: When a player on my server quits and then joins again they go back to the pre-set spawn point, how do I make them spawn where they last were? Same thing for things like money and weapons? Link to comment
proracer Posted March 29, 2011 Share Posted March 29, 2011 https://wiki.multitheftauto.com/wiki/SetAccountData Link to comment
XFawkes Posted March 29, 2011 Share Posted March 29, 2011 You should use Database which will be kept in server (with all players data like: money,weapons, last positions) And onPlayerQuit - save data to database onPlayerJoin - load this data Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now