MA[S]RIY Posted September 30, 2016 Share Posted September 30, 2016 السلام عليكم انا معي اكواد مود حفظ الفلوس علي الحساب ابي اغير فيه شيئان اولا : اخليه يحفظ الفلوس علي السريال مب علي الحساب وبس ياريت احد يعدلو او احد يكتب الاكواد المطلوبه ------------------------ كود مود حفظ الفلوس = addEventHandler("onPlayerLogin", getRootElement(), function (prevAcc, currAcc, autoLogin) setPlayerMoney(source, ( getAccountData( currAcc, "money" ) or 0 ) ) end ) addEventHandler("onPlayerLogout", getRootElement(), function (prevAcc, currAcc) setAccountData(prevAcc, "money", getPlayerMoney(source)) -- Clear money after logout to avoid bugs setPlayerMoney(source, 0) end ) addEventHandler("onPlayerQuit", getRootElement(), function () local pAcc = getPlayerAccount(source) if (pAcc and not isGuestAccount(pAcc)) then setAccountData(pAcc, "money", getPlayerMoney(source)) end end ) function rewardOnPlayerkill ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, 500 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnPlayerkill ) Link to comment
Abdul KariM Posted September 30, 2016 Share Posted September 30, 2016 Sql اذا تبي تخليه على السريال ماتقدر الا عن طريق وظائف https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#SQL_functions Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now