Jump to content

Updating player accounts


Vander

Recommended Posts

Posted

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?

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...