xxsamixx Posted July 3, 2013 Share Posted July 3, 2013 (edited) السلام عليكم اخواني انا عندي سكربت يحرك الاوبجكتف بس المشكله انه يتحرك اول مايبدا الماب وانا ابيه يتحرك لما اجي عند علامه محدده function omg_sd() omg6375 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg6375(1) omg4748 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg4748(1) omg7976 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg7976(1) omg3631 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg3631(1) omg2623 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg2623(1) omg3204 = createObject(3437, 5410.2607421875, 809.033203125, 125.82526397705, 0, 0, 0) omgMoveomg3204(1) end function omgMoveomg6375(point) if point == 1 then moveObject(omg6375, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) setTimer(omgMoveomg6375, 2000, 1, 2) elseif point == 2 then moveObject(omg6375, 2000, 5412.2866210938, 809.033203125, 160.92065429688, 0, 21.176483154297, 0) setTimer(omgMoveomg6375, 2000, 1, 3) elseif point == 3 then moveObject(omg6375, 2000, 5418.0903320313, 809.033203125, 170.29428100586, 0, 21.176452636719, 0) setTimer(omgMoveomg6375, 2000, 1, 4) elseif point == 4 then moveObject(omg6375, 2000, 5419.970703125, 809.033203125, 168.42127990723, 0, 5.0704345703125, 0) setTimer(omgMoveomg6375, 2000, 1, 5) elseif point == 5 then -- OBJECT STOP end end function omgMoveomg4748(point) if point == 1 then moveObject(omg4748, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) setTimer(omgMoveomg4748, 2000, 1, 2) elseif point == 2 then moveObject(omg4748, 2000, 5412.2866210938, 809.033203125, 160.92065429688, 0, 21.176483154297, 0) setTimer(omgMoveomg4748, 2000, 1, 3) elseif point == 3 then -- OBJECT STOP end end function omgMoveomg7976(point) if point == 1 then moveObject(omg7976, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) setTimer(omgMoveomg7976, 2000, 1, 2) elseif point == 2 then moveObject(omg7976, 2000, 5408.2348632813, 809.033203125, 160.92065429688, 0, -21.176391601563, 0) setTimer(omgMoveomg7976, 2000, 1, 3) elseif point == 3 then -- OBJECT STOP end end function omgMoveomg3631(point) if point == 1 then moveObject(omg3631, 2000, 5412.2866210938, 809.033203125, 160.92065429688, 0, 21.176483154297, 0) setTimer(omgMoveomg3631, 2000, 1, 2) elseif point == 2 then moveObject(omg3631, 2000, 5410.2607421875, 809.033203125, 125.82526397705, 0, -21.176483154297, 0) setTimer(omgMoveomg3631, 2000, 1, 1) end end function omgMoveomg2623(point) if point == 1 then moveObject(omg2623, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) setTimer(omgMoveomg2623, 2000, 1, 2) elseif point == 2 then moveObject(omg2623, 2000, 5412.2866210938, 809.033203125, 160.92065429688, 0, 21.176483154297, 0) setTimer(omgMoveomg2623, 2000, 1, 3) elseif point == 3 then moveObject(omg2623, 2000, 5418.0903320313, 809.033203125, 170.29428100586, 0, 21.176452636719, 0) setTimer(omgMoveomg2623, 2000, 1, 4) elseif point == 4 then -- OBJECT STOP end end function omgMoveomg3204(point) if point == 1 then moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) setTimer(omgMoveomg3204, 2000, 1, 2) elseif point == 2 then -- OBJECT STOP end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_sd) Edited July 4, 2013 by Guest Link to comment
فاّرس Posted July 3, 2013 Share Posted July 3, 2013 طيب سوي لك ماركر او منطقه او كول شيب على المكان الي تبيه يدخل فيه, Link to comment
iPrestege Posted July 3, 2013 Share Posted July 3, 2013 ياليت تستخدم خاصية Lua من صندوق المشاركة ! عشان نقرا الكود!! Link to comment
#DRAGON!FIRE Posted July 3, 2013 Share Posted July 3, 2013 # يا اخوي استخدم Lua ------------------ # بالنسبة لكود الي تحتاجه createMarker addEventHandler "onMarkerHit" moveObject Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 طيب سوي لك ماركر او منطقه او كول شيب على المكان الي تبيه يدخل فيه, ابيه لما اجي عند ماركر يشتغل local marker = createMarker(5411,138,138, "corona", 3, 255, 0, 0, 255) Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 ياليت تستخدم خاصيةLua من صندوق المشاركة ! عشان نقرا الكود!! اسف اخوي على الخطاء ذا عدلت على المشاركه Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 # يا اخوي استخدمLua ------------------ # بالنسبة لكود الي تحتاجه createMarker addEventHandler "onMarkerHit" moveObject مافهمت عليك انا الكود جهاز بس ابي لما يضرب ماركر معين يشتغل حاولت احطه بفنكشن بس مااشتغل Link to comment
iMr.Dawix~# Posted July 4, 2013 Share Posted July 4, 2013 # يا اخوي استخدمLua ------------------ # بالنسبة لكود الي تحتاجه createMarker addEventHandler "onMarkerHit" moveObject مافهمت عليك انا الكود جهاز بس ابي لما يضرب ماركر معين يشتغل حاولت احطه بفنكشن بس مااشتغل لازم تكون تعرف تبرمج عشان تسويها ع الأقل حاول نصحح لك + ممنوع الردود ورا ببعض Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 (edited) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) end end ) هذا مثال اذا لمست الماركر يتحرك, Edited July 4, 2013 by Guest Link to comment
iPrestege Posted July 4, 2013 Share Posted July 4, 2013 addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) end ) هذا مثال اذا لمست الماركر يتحرك, end < ناقص Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) end ) هذا مثال اذا لمست الماركر يتحرك, end < ناقص انتبهت لها بس انت رديت بسرعه... Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) end ) هذا مثال اذا لمست الماركر يتحرك, end < ناقص انتبهت لها بس انت رديت بسرعه... مافهمت عليك والله Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 مافهمت عليك والله addEventHandler("onMarkerHit",marker, -- حدث اذا لمس الماركر function(player) -- وظيفة if getElementType(player) == 'player' then -- اذا كان الذي دخل الماركر لاعب moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) -- حرك الاوبجيكت end -- اغلاق if end -- اغلاق function ) if لكل تحط end function لكل تحط end Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 مافهمت عليك والله addEventHandler("onMarkerHit",marker, -- حدث اذا لمس الماركر function(player) -- وظيفة if getElementType(player) == 'player' then -- اذا كان الذي دخل الماركر لاعب moveObject(omg3204, 2000, 5410.2607421875, 809.033203125, 150.08340454102, 0, 0, 0) -- حرك الاوبجيكت end -- اغلاق if end -- اغلاق function ) if لكل تحط end مافهمت الحدث والوضيفه واذا كان الذي دخل الماركر لاعب معليش ادري تعبتكم بس اتمنى تساعدوني function لكل تحط end Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 https://wiki.multitheftauto.com/wiki/AR/%D9%85%D9%82%D8%AF%D9%85%D9%87_%D9%81%D9%8A_%D8%A7%D9%84%D8%A8%D8%B1%D9%85%D8%AC%D9%87 ليش مصعبين الشغله كل الي ابيه اني اجي عند ماركر ويتحرك الاوبجكتف بس مابي اي سكربت اخر Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 بعد محاوله سويت كذا هل ذا صح local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end ) end addEventHandler("onClientMarkerHit",getRootElement (),onMarkerFunction) Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 بعد محاوله سويت كذا هل ذا صح local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end ) end addEventHandler("onClientMarkerHit",getRootElement (),onMarkerFunction) local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end ) Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end) هذا الصح كودك كويس بالنسبه لمبتدى Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end) هذا الصح كودك كويس بالنسبه لمبتدى بعد محاوله سويت كذا هل ذا صح local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end ) end addEventHandler("onClientMarkerHit",getRootElement (),onMarkerFunction) local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end ) Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end) هذا الصح كودك كويس بالنسبه لمبتدى بعد محاوله سويت كذا هل ذا صح local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end ) end addEventHandler("onClientMarkerHit",getRootElement (),onMarkerFunction) local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(8838, 5412, 761, 140, 90, 0, 0) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == 'player' then moveObject(move, 2000, 5412, 761, 151.87713623047, 0, 0, 0) end end ) ايش الهرجة !!! Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 بما إني معطيه الكود صح ليه تجي ترد وتقول هذا صح , Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 بما إني معطيه الكود صح ليه تجي ترد وتقول هذا صح , كلها الاثنين صح 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