ZH-CN/账户: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Qwe7769611 (talk | contribs) No edit summary  | 
				Qwe7769611 (talk | contribs)  No edit summary  | 
				
Revision as of 06:25, 4 February 2021
账户表示玩家的服务器帐户。您可以使用getPlayerAccount获取与任何客户端关联的账户对象.
帐户对于每个客户机都是唯一的,可以用来存储跨映射更改和用户会话的持久信息。没有帐户就加入的客户将获得一个临时“来宾”帐户。它可以像任何其他帐户一样存储信息,但不会跨会话保存.
当用户登录或注销时,分配给他们的帐户对象将更改。因此,您不能假设附加到客户机的帐户在会话期间保持不变.
从MTA服务器数据库检查密码散列的PHP代码是PHP | here.
相关脚本函数
Server
- addAccount
 - copyAccountData
 - getAccount
 - getAccountData
 - getAccountName
 - getAccountPlayer
 - getAccountSerial
 - getAccounts
 - getAccountsBySerial
 - getAllAccountData
 - getPlayerAccount
 - isGuestAccount
 - logIn
 - logOut
 - removeAccount
 - setAccountData
 - setAccountPassword
 - getAccountByID
 - getAccountID
 - getAccountIP
 - getAccountsByData
 - getAccountsByIP
 - setAccountName