ZH-CN/Account: Difference between revisions
Jump to navigation
Jump to search
Qwe7769611 (talk | contribs) (Created page with "account类表示玩家player的服务器帐户。您可以使用getPlayerAccount获取与任何客户端关联的账户account对象. Accounts are unique to each...") |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
===Server=== | ===Server=== | ||
{{Account functions}} | {{Account functions}} | ||
[[Category:Scripting Concepts]] | [[Category:Translated/Scripting Concepts]] | ||
[[hu:account]] | [[hu:account]] | ||
Line 17: | Line 17: | ||
[[it:Account]] | [[it:Account]] | ||
[[de:Account]] | [[de:Account]] | ||
[[zh-cn: | [[zh-cn:账户]] |
Latest revision as of 20:33, 21 February 2021
account类表示玩家player的服务器帐户。您可以使用getPlayerAccount获取与任何客户端关联的账户account对象.
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.
PHP code to check password hashes from the MTA server database is here.
Related scripting functions
Server
- addAccount
- copyAccountData
- getAccount
- getAccountData
- getAccountName
- getAccountPlayer
- getAccountSerial
- getAccounts
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountPassword
- getAccountByID
- getAccountID
- getAccountIP
- getAccountsByData
- getAccountsByIP
- setAccountName