AR/removeAccount

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

هذه الوظيفة لـ حذف حساب مسجل مسبقاً

Syntax

bool removeAccount ( account theAccount )

العناصر المطلوبة

  • theAccount: الحساب الذي تريد حذفه

Returns

إذا كان الحساب غير موجود false ,إذا تم حذف الحساب بنجاح true يرجع

مثال

/deregister هذا المثال يقوم بحذف حسابك عند أستخدام

function onCmdDeregister(player)
	-- ناخد حساب لاعب
	local playerAccount = getPlayerAccount(player)
	if playerAccount then 
		removeAccount(playerAccount) -- نحذف الحساب
		outputChatBox("Account deregistered for "..getPlayerName(player))
	else 
		outputChatBox("Unable to get your account, make sure you are logged in", player)
	end
end
addCommandHandler("deregister",onCmdDeregister)

انظر ايضاً