Account: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added 1.0 function and added feature templates)
m (Fixed function)
Line 1: Line 1:
The [[account]] class represents a [[client]]'s server account. You can get the [[account]] object associated to any client using:{{Deprecated_feature|3|1.0|[[getClientAccount]]}}
The [[account]] class represents a [[client]]'s server account. You can get the [[account]] object associated to any client using:{{Deprecated_feature|3|1.0|[[getClientAccount]]}}
{{New feature|3|1.0|[[getAccountPlayer]]}}
{{New feature|3|1.0|[[getPlayerAccount]]}}


Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions.
Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions.

Revision as of 00:04, 21 April 2009

The account class represents a client's server account. You can get the account object associated to any client using: getPlayerAccount

Accounts are unique to each client and can be used to store information that is persistent across map changes and user sessions. Clients that join without an account are given a temporary 'guest' account. This can store information like any other account, but isn't saved across sessions.

When a user logs in or out, the account object assigned to them will change. As such, you must not assume that the account attached to a client remains constant during their session.

Related scripting functions

Server