Dr.Xen Posted June 15, 2014 Share Posted June 15, 2014 (edited) السلام عليكم ورحمة الله وبركاته وبركاته .. كيف الحال ي عوال كلكم بخير وكل عام وانتم الى الله اقرب .. عيد سعيد الزيدهـ انا دورت بالقسم وضع لمبات بالموتر وشفت رد تابل setVehicleLightState بس ماني فاهم ابي طريقة كيف اجيب احداثياتها+ مثال لاهنتوا .. وشكرآ لكم Edited June 19, 2014 by Guest Link to comment
' ρяofзśŝoя 亗 Posted June 15, 2014 Share Posted June 15, 2014 هذي فنكشن ل انوار السيارهه الافتراضيه وهو معطيك مثآل اصلا م تقدر تغير اماكنها : ) الا اذ تبي تضيف ماركر النقطه الصغغير newcar = createVehicle ( 520, 1024, 1024, 1024 ) -- انشاء سيارهه جديده state = setVehicleLightState ( newcar, 0, 1 ) -- النور اليسار شغال واليمين خربان ^ تعني 0 بالنور العادي مافيه شيء ^ و 1 بالنور المكسور او المطفي theVehicle: A handle to the vehicle that you wish to change the light state of. light: A whole number determining the individual light. (0 - 3) state: A whole number determining the new state of the light. 0 represents normal lights, and 1 represents broken lights. Link to comment
Max+ Posted June 15, 2014 Share Posted June 15, 2014 setVehicleLightState --- حالة الاضواء الاضواء getVehicleOccupant --- هل الاعب راكب السيارة Link to comment
Dr.Xen Posted June 15, 2014 Author Share Posted June 15, 2014 طيب الماركر الصغير هي كالماركر العادية اما غير؟ مثلا كذا cylinder؟ او غيره Link to comment
#DRAGON!FIRE Posted June 15, 2014 Share Posted June 15, 2014 ممكن شرح كيف اغير شكل الماركر .. تستبدله بـ النوع اللي تبيه theType شكل الماركر .. بفنكشن خلق الماركر في ارقمنت اسمه هذي جميع الأنوأع : .. "checkpoint": A race checkpoint. These are very tall, but not infinite, light pillars. Checkpoints snap to ground and become invisible after going over a certain Z height. "ring": Doughnut shaped ring, normally used for aircraft. "cylinder": Small glowing ground ring. These are the glow markers you walk into to activate missions or events in single player. "arrow": Arrow pointing down. These are the arrows on the doors you can enter in single player, except MTA's are not animated by default. "corona": A glowing ball of light. Link to comment
Dr.Xen Posted June 15, 2014 Author Share Posted June 15, 2014 طيب ابي اسوي بالماركر كيف يكون الكود ؟!@ Link to comment
xFace[B]ook Posted June 15, 2014 Share Posted June 15, 2014 'onMarkerHit' getPedOccupiedVehicle setVehicleLightState Link to comment
Dr.Xen Posted June 15, 2014 Author Share Posted June 15, 2014 فيسبوك مكن تسويهم لي انا ما اعرفها لاهنت Link to comment
' ρяofзśŝoя 亗 Posted June 15, 2014 Share Posted June 15, 2014 طيب ابي اسوي بالماركر كيف يكون الكود ؟!@ اشرح الوظيفهه الي تبي كاملة يعني وش يسوي عشانن يجي مآركر ع السيارهه !! Link to comment
Max+ Posted June 15, 2014 Share Posted June 15, 2014 ذا مثال , local Marker = createMarker(X, Y, Z, "cylinder", 2, 255, 0, 0,170 ) addEventHandler( "onMarkerHit", Marker, function ( uPlayer ) if getElementType ( uPlayer ) == "player" then local car = getPedOccupiedVehicle ( uPlayer ) local state = getVehicleLightState (car,0) if (state == 0) then setVehicleLightState(car, 0, 1) else outputChatBox('you Must be in Vehicle', uPlayer, getRootElement(), 255, 0, 0 ) end end end ) Link to comment
#DRAGON!FIRE Posted June 15, 2014 Share Posted June 15, 2014 (edited) ذا مثال , local Marker = createMarker(X, Y, Z, "cylinder", 2, 255, 0, 0,170 ) addEventHandler( "onMarkerHit", Marker, function ( uPlayer ) if getElementType ( uPlayer ) == "player" then local car = getPedOccupiedVehicle ( uPlayer ) local state = getVehicleLightState (car,0) if (state == 0) then setVehicleLightState(car, 0, 1) else outputChatBox('you Must be in Vehicle', uPlayer, getRootElement(), 255, 0, 0 ) end end end ) مثالك خطا يـ الحبيب اولأ مو متحقق الا من الضوء واحد وكاتب بـ مخرج الشات انه لازم تكون بالسيارة else ثانيا مسوي .. ترجع لـ التحقق حقكـ حق الضوء else والـ .. 1 مسوي setVehicleLightState ثالثا بالارقمنت الثالث بفنكشن و 1 تعني كسر الضوء لاحظ الويكي وش يقول and 1 represents broken lights. رابعا حاط روت بـ مخرج الشات وحاط البلير .. ليه ؟ .. حط البلير وخلاص ع العموم كودكـ يصير كذا .. : local marker = createMarker( ..... ) addEventHandler( "onMarkerHit", marker, function ( element ) if ( getElementType ( element ) == "player" ) then local vehicle = getPedOccupiedVehicle ( element ) if ( vehicle ) then for i = 1, 3 do state = getVehicleLightState ( vehicle, i ) if ( state == 0 ) then setVehicleLightState( vehicle, i, 0 ) end end end end end ) Edited September 11, 2014 by Guest Link to comment
Dr.Xen Posted June 16, 2014 Author Share Posted June 16, 2014 local marker = createMarker(1424.1999511719,-693.5,87.400001525879, "cylinder", 0.23999999, 255, 0, 255), addEventHandler( "onMarkerHit", marker, function ( element ) if ( getElementType ( element ) == "player" ) then local vehicle = getPedOccupiedVehicle ( element ) if ( vehicle ) then for i = 1, 3 do state = getVehicleLightState ( vehicle, i ) if ( state == 0 ) then setVehicleLightState( vehicle, i, 0 ) end end end end end ) تجي ماركر .. ابيك يكون اذا ضغط حرف H زي السيارات السفتي Link to comment
Max+ Posted June 16, 2014 Share Posted June 16, 2014 يعطيك العافية زاحف , بس بعد اذنك ابيك تشرح لي ايش ذا ؟ if ( getElementType ( element ) == "player" ) then طيب لو اغيرها الى hitElement نفس الشي ؟ + وش قصة for i = 1, 3 do ? Link to comment
#DRAGON!FIRE Posted June 16, 2014 Share Posted June 16, 2014 يعطيك العافية زاحف , بس بعد اذنك ابيك تشرح لي ايش ذا ؟ if ( getElementType ( element ) == "player" ) then طيب لو اغيرها الى hitElement نفس الشي ؟ + وش قصة for i = 1, 3 do ? عادي لو غيرته بس لزوم يكون زي اللي معرف بالفنكشن مثلأ addEventHandler( "onMarkerHit", resourceRoot, function( Max ) if ( getElementType ( Max ) == "player" ) then for بالنسبة لـ اللوب حق فـ اللمبات حق السيارة 3 .. انا سويت لوب من 1 الى 3 عشان يشيك على جميع اللمبات ويشغل جميع اللمبات Link to comment
Dr.Xen Posted June 16, 2014 Author Share Posted June 16, 2014 طيب ابيه لسيارة معينة وبحرف H Link to comment
#DRAGON!FIRE Posted June 16, 2014 Share Posted June 16, 2014 وش تقصد ؟ .. يوم يضغط 0 يشغل او يطفي النور ؟ Link to comment
Dr.Xen Posted June 16, 2014 Author Share Posted June 16, 2014 يعني لمن تضغط حرف H تشغل اللمبات وتطفي وتشغل Link to comment
#DRAGON!FIRE Posted June 16, 2014 Share Posted June 16, 2014 السكربت موجود ومنشور ~ .. https://community.multitheftauto.com/in ... ls&id=9246 او https://community.multitheftauto.com/in ... ails&id=19 . Link to comment
EH10 Posted June 16, 2014 Share Posted June 16, 2014 السكربت موجود ومنشور ~ ..https://community.multitheftauto.com/in ... ls&id=9246 او https://community.multitheftauto.com/in ... ails&id=19 . الـثاني أيام طـيبين مـن 2008 , Link to comment
abu5lf Posted June 17, 2014 Share Posted June 17, 2014 ابي اغير مكان الانوار انا مافهمت صراحة ممكن صورة للتوضيح 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