Account: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
The [[account]] class represents a client's account and should be used to call any scripting functions that involve accounts. You can get an account object from any client using [[getClientAccount]].
The [[account]] class represents a client's account and should be used to call any scripting functions that involve accounts. You can get an account object from any client using [[getClientAccount]].
Accounts are unique to each client and can be used to store information that is persistent across maps and user's sessions. Clients that join without an account are given a 'guest' account. This can store information like any other account, but isn't saved across sessions. When a user logs in, 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.

Revision as of 10:58, 8 September 2006

The account class represents a client's account and should be used to call any scripting functions that involve accounts. You can get an account object from any client using getClientAccount.

Accounts are unique to each client and can be used to store information that is persistent across maps and user's sessions. Clients that join without an account are given a 'guest' account. This can store information like any other account, but isn't saved across sessions. When a user logs in, 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.