Jump to content

فاّرس

Members
  • Posts

    4,805
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by فاّرس

  1. فنكشن بدون اسم بيجي خطأ بالديبوق , ما يحتاج تحط فنكشن الاصل, abos3od02 @ الي بالسطر الخامس والسادس end شيل
  2. وش مشكله اللوكل هنا؟
  3. على كيفك مو لازم تريقر ؟ Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only. -- Client Side # addEventHandler('onClientGUIClick',carGridList,function() if guiGridListGetSelectedItem ( source ) ~= -1 then local car = guiGridListGetItemData( source ,guiGridListGetSelectedItem ( source ), 1) triggerServerEvent('_createVehicle',localPlayer,car) end end,false ) طبعا لازم تسوي داتا للرو , شوف كودي فوق وسوي مثله, وكمل السيرفر سوي جدول وتحققات ,, برضو شوف كودي الي فوق
  4. كذا كأنك تقول انا الي مسويه , يعني قول الكود موب لي من اول, او اطرح رابط الموضوع -__-"
  5. onClientGUIClick -- GridList addEventHandler guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent addEvent addEventHandler table isElement destroyElement createVehicle
  6. احنا كيف نصحح كوكتيل ؟ , ما اظن احد بيصحح لك الا واحد فاضي ذذ وحاول ترتب اكوادك عشان الواحد يقدر يصحح ,,
  7. -- Client Side # addEventHandler ('onClientGUIClick', root,function() if source == start then local x, y, z = getElementPosition ( localPlayer ) local url = guiGetText ( edit ) if url:len() > 0 and not url:find(' ') then if isElement(uSound) then destroyElement(uSound) end local uSound = playSound3D( url , x, y, z ) setSoundMaxDistance( uSound, 100 ) end elseif source == stop then if isElement(uSound) then destroyElement(uSound) end end end )
  8. جرب, -- Client Side # local Vehicles = { {'Ford',10000,602}, -- {carName,money,ID} } for k,v in ipairs(Vehicles) do local row = guiGridListAddRow(carGridList) guiGridListSetItemText(carGridList,row,1,v[1],false,false) guiGridListSetItemText(carGridList,row,2,v[2],false,false) guiGridListSetItemData(carGridList,row,2,v[2]) guiGridListSetItemData(carGridList,row,1,v[3]) end addEventHandler('onClientGUIClick',root,function() if source == buyButton then if guiGridListGetSelectedItem(carGridList) ~= -1 then local car = guiGridListGetItemData ( carGridList,guiGridListGetSelectedItem ( carGridList ), 1) local money = guiGridListGetItemData ( carGridList,guiGridListGetSelectedItem ( carGridList ), 2) triggerServerEvent('CreateCarForPlayer',localPlayer,car,money) elseif source == closeButton then guiSetVisible (carshopWindow, false) showCursor (false) end end end) -- Server Side # local vehicle = {} addEvent('CreateCarForPlayer',true) addEventHandler('CreateCarForPlayer',root,function(model,money) if getPlayerMoney(source) >= tonumber(money) then if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end local x,y,z = getElementPosition(source) vehicle[source] = createVehicle(tonumber(model),x,y,z) warpPedIntoVehicle(source,vehicle[source]) takePlayerMoney(source,tonumber(money)) end end ) addEventHandler('onPlayerQuit',root,function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end )
  9. ما يحتاج فوتوشوب ,, روح عند الشيء الي تبيه كلك يمين , فحص العنصر , وغير الي تبي ذذ
  10. هو من الاساس يقول اذا دخل اللاعب , ولكن للمعلوميه ما تقدر لأن الكلينت يشتغل بعد ما يخلص تحميل اللاعب فـ عشان كذا , استخدم مثل ما قالك مجنون فيك, استخدم, interpolateBetween او اذا ما تعرف لـ [GIE]GUI Interpolate Effects | By : PaiN^ مود بين يسهل عليك guiCreateStaticImage call لأنها تفيدك جدا interpolateBetweenمع اني افضل انك تتعلم لـ -- Client Side # onStart = function() local image = guiCreateStaticImage( 20, 200, 100, 100, 'imagename.png', false ) setTimer(guiSetVisible,3000,1,image,false) end addEventHandler('onClientResourceStart',resourceRoot,onStart)
  11. outputChatBox + getPlayerNametagColor فاهم الكود انا بس حسبته حاط لون التاج بالشات على لون تاج اللاعب بإستخدام
  12. -- Client Side # addEventHandler ('onClientGUIClick', start,function() local x, y, z = getElementPosition ( localPlayer ) local url = guiGetText ( edit ) if url:len() > 0 and not url:find(' ') then if isElement(uSound) then destroyElement(uSound) end local uSound = playSound3D( url , x, y, z ) setSoundMaxDistance( uSound, 100 ) end end,false ) UPDATED.
  13. اذا دخل لاعب تجي له صور, onClientResourceStart guiCreateStaticImage
  14. اظن بتكون فيه مشاكل لو كنت حاط اكواد هيكس, كيف ما ضبطت معك؟ getPlayerNametagColor تأكد من الي اعرفه ان الوظيفه تجيب لون النك حق اللاعب , وهذا يعني انها بتضبط ذذ
  15. الموضوع كله عن انك تسوي وظيفه مفيده وتطرحها هنا,
  16. مالها دخل , لأن الي فهمته انك تبي مثل لون التاج , يعني مثل لون التاج بالشات getPlayerNametagColor الوظيفه الافضل انك تسوي داتا مع التاج.
  17. ما يبي لها ذكاء, سوي الاوبجكت حق البوابه الي تبي تحركها ,, local object = createObject(model,x,y,z) object = المتغير حق البوابه الاولى , لو عندك اكثر من بوابه لازم تغير المتغير عشان ما تكون متشابهه model = اي دي البوابه x,y,z = احداثيات البوابه
  18. مافهمت وش تبي؟
  19. هذي انت تسويها بالاوبجكت createObject
  20. object 1 - 29 مو معرفه !
  21. تايمر عشان تتحقق انه داخل الماركر وانه يمشي getElementSpeed تتحقق انه يمشي بإستخدام + getPedOccupiedVehicle في وظيفه نسيتها وهي
  22. تقصد لو كنت ماشي يجي الصوت , ولو كنت واقف يروح؟ setTimer isElementWithinMarker isPedInVehicle getLocalPlayer getElementSpeed -- [url=https://wiki.multitheftauto.com/wiki/getElementSpeed]https://wiki.multitheftauto.com/wiki/getElementSpeed[/url] getPedOccupiedVehicle isElement destroyElement playSound
  23. اظن ما يحتاج تشفير لأنه سهل ذذ حملته حبيت اشوف شيء لكن المود مشفر , الحين لو سرقت من اللاعب هل المسروق منه راح تروح منه الفلوس؟ + مو ليه الفلوس بالتحديد؟ اقصد انه لو خليته يسرق مثل الاسلحة , الفلوس , اللفل
  24. ^ الافضل انك تتحقق من ان اللاعب عنده تيم بالاصل, لأن لو كان ما معه تيم بيجي خطأ ذذ
  25. ^ فكرت احطه بس قلت يمكن ان الصوت قصير ذذ
×
×
  • Create New...