local acc = getPlayerAccount(Player)
local AccDataMoney = getAccountData(acc, "Money")
if ( AccDataMoney == false ) then
setAccountData(acc,"Money",0)
end
if ( getElementData(Player,"Money") == false ) then
setElementData(Player,"Money",0)
end
setElementData(Player, "Money", getElementData(Player, "Money") + Money)
setAccountData(acc,"Money",getAccountData(acc,"Money") + Money)
+
للحين ما فهمت المود حقك , مود حفظ فلوس أظن ؟
+ ليش تستخدم الالمنت داتا وانت هنا مسوي
function onQuit()
if not (isGuestAccount (getPlayerAccount (source))) then
account = getPlayerAccount (source)
if (account) then
setAccountData(account,"Money", tostring(getPlayerMoney(source)))
end
end
end
addEventHandler("onPlayerQuit", getRootElement(), onQuit)
كذا كلشي يخرب,