slamdank01 Posted January 30, 2016 Share Posted January 30, 2016 function () local Account = getPlayerAccount (source) if not Account or isGuestAccount ( account ) then return end setAccountData ( Account , "Kill", getAccountData (source) ) end -- end -- ) -- addEventHandler("onPlayerLogin", root, function () local data = getAccountData (acc,"Kill") ig (Data) then setAccountData (surce, Data) end end ) وش الخطأ ي عيال ابغاه يحفظ عدد القتل في السيرفر بس مو راضي Link to comment
#Mr.Rajo~,< Posted January 30, 2016 Share Posted January 30, 2016 function () local Account = getPlayerAccount (source) if not Account or isGuestAccount ( account ) then return end setAccountData ( Account , "Kill", getAccountData (source) ) end -- end -- ) -- addEventHandler("onPlayerLogin", root, function () local data = getAccountData (acc,"Kill") ig (Data) then setAccountData (surce, Data) end end ) وش الخطأ ي عيال ابغاه يحفظ عدد القتل في السيرفر بس مو راضي وش ig ? Link to comment
Ja[B]er[X]Pro Posted January 30, 2016 Share Posted January 30, 2016 function () local Account = getPlayerAccount (source) if not Account or isGuestAccount ( account ) then return end setAccountData ( Account , "Kill", getAccountData (source) ) end -- end -- ) -- addEventHandler("onPlayerLogin", root, function () local data = getAccountData (acc,"Kill") ig (Data) then setAccountData (surce, Data) end end ) وش الخطأ ي عيال ابغاه يحفظ عدد القتل في السيرفر بس مو راضي وش ig ? يقصد if Link to comment
slamdank01 Posted January 30, 2016 Author Share Posted January 30, 2016 function () local Account = getPlayerAccount (source) if not Account or isGuestAccount ( account ) then return end setAccountData ( Account , "Kill", getAccountData (source) ) end -- end -- ) -- addEventHandler("onPlayerLogin", root, function () local data = getAccountData (acc,"Kill") ig (Data) then setAccountData (surce, Data) end end ) وش الخطأ ي عيال ابغاه يحفظ عدد القتل في السيرفر بس مو راضي وش ig ? اقصد if بس جربته وما ضبط حطيت اسم الملف data.lua وحطيت داخل ملف meta كذا Link to comment
Jupi Posted January 30, 2016 Share Posted January 30, 2016 الفنكشنات كلها سيرفر اللي فيه خليهاserver : ) و الفنكشن حقك مو مربوط بأيفينت يعني ما فيه source addEventHandler("onPlayerLogin", root, function () local data = getAccountData (getPlayerAccount(source),"Kill") if (data) then setAccountData (source, data) end end ) صلحت هذا الجزء اللي فوق ما اعرف اي ايفينت مربوط له مدري كيف اصلحه Link to comment
slamdank01 Posted January 30, 2016 Author Share Posted January 30, 2016 طيب ي عيال سويت الاكواد وكل شي بالضبط لاكن ما رضي يحفظ القتلات في التاب Link to comment
xBeSoOo Posted January 31, 2016 Share Posted January 31, 2016 سويتلك الكود اضنك تقصد كذا ؟ addEventHandler ( "onPlayerQuit", getRootElement(), function () local acc = getPlayerAccount (source) if ( acc ) and not isGuestAccount ( acc ) then local KillData = getElementData (source,"اسم داتا القتل الي موجودة في مود التاب") setAccountData (acc,"KillSave",KillData) end end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function (-,acc) local GetKills = getAccountData (acc,"KillSave") if ( acc ) and GetKills then setElementData (source,"اسم داتا القتل الي موجودة في مود التاب",GetKills) end end ) 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