Jump to content

I_Mr.[T]he[P]rInCe

Members
  • Posts

    204
  • Joined

  • Last visited

Everything posted by I_Mr.[T]he[P]rInCe

  1. سلام عليكم انا سويت كود يوزع فلوس من اي لاعب في لوحة يكتب الفلوس في ايديت ويوزع بس المشكلة مثلا انا كتبت 10000 يعطي كل واحد10000 ما يقسهم علي اللاعبين والسلام خير ختام
  2. السلام عليكم لما افتح اللعبة تظهرلي ذي النافذة والسلام خير ختام
  3. لسه مو شغال مشكووووور جدا علي مساعدتك
  4. خويي ذي شغالة car = createVehicle( 411, 1368, -953, 35, 0, 0 ,0)ذي مو في اي فنكشن
  5. local car = createVehicle( 411, 1368, -953, 35, 0, 0 ,0) اول سطر في المود
  6. ايش كودك كامل خطأ الكود كله شغال مجربة وتمام الا بس الاكونت داتا اللي ما ظبطط معي
  7. السلام عليكم ابي اصحح الكود function onMarkerHit5(playerEnd) local account1 = getPlayerAccount(root) if getElementHealth(car) <= 700 then destroyElement(car) outputChatBox("Your vehicle health is 70 you are deposited", root, 255, 0, 0) return end if getElementData(root, "driverTestMarker4") == false then return end if (getElementType (playerEnd) == "vehicle") then if (source == markerEnd) then destroyElement(markerEnd) outputChatBox("Welcome", root, 255, 0, 0) if account1 then if getElementData(root, "driverTestMarker4") == true then setAccountData(account1, "Name", true) end end end end end addEventHandler("onMarkerHit", getResourceRootElement(), onMarkerHit5) انا مسوي ماركر لما تكون الداتا Name موجودة يظهر في الشات Yes لو مو موجوده no علي طول تظهر no وانا اكون لامس الماركر markerEnd اللي يعطي الداتا والسلام خير ختام
  8. انا ابي اسوي ماركر لما احد يلمسه يسويله الداتا ذي غلط؟
  9. يب بس لازم تكون معرف plr وبعدين ليه تجيب الحساب وتحط له داتا فيها اسم حسابه؟ plr حاتطها في الفنكشن function (plr) وبعدين ليه تجيب الحساب وتحط له داتا فيها اسم حسابه؟ مو فاهم ايش تقصد
  10. كذا صح setAccountData(getPlayerAccount(plr), "name", getPlayerAccount(plr))
  11. في المثال السابق قمنا بحف مكان اللاعب local x,y,z = getElementPosition(plr) local account = getPlayerAccount(plr) if account then setAccountData(account, key , toJSON({x,y,z}) end -- التحقق من وجودها local x , y,z = unpack( getAccountData(account ,key)) اخي اقولك شرط تكون موجودة مو شرح
  12. value تعني الحاجة إلي إنت عايز تحفظها مثال local x,y,z = getElementPosition(plr) local account = getPlayerAccount(plr) if account then setAccountData(account, key , toJSON({x,y,z}) end شرط تكون موجودة ؟
×
×
  • Create New...