Stranger Posted January 18, 2013 Posted January 18, 2013 السلام عليكم يا شباب ابي مود علامه اذ دخلت فيها تجيك سياره يعني مثلا جا لاعب ودخل فيها تجيه سياره والسياره تجيك في مكان معين انت تختاره بالاحداثيات يليت فهمتوني
TD[M]ER Posted January 18, 2013 Posted January 18, 2013 الوكود قيد حطه تابل في موضوع ناسيه marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) end end) واذا تبيه م يعطيه في محله وتبي تحدد احداثيات اعتقد انها كذا marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end)
hassan.k.s.a Posted January 18, 2013 Posted January 18, 2013 اذا قصدك انت تحدد ألأحداثيات setElementPosition واذا قصدك الاعب هو يكتب ألأحداثيآت guiGetText واذا شيء ثآني تفضل قوله . .انا الي فهمته من كلامك طرحته لك
Stranger Posted January 18, 2013 Author Posted January 18, 2013 الوكود قيد حطه تابل في موضوع ناسيه marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) end end) واذا تبيه م يعطيه في محله وتبي تحدد احداثيات اعتقد انها كذا marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يلبى قلبك تسلم اشتغلت بس فيه مشكله انه كل ما يدخل في الدائره تطلع سياره ثانيه الحل هو ابيه اول مايدخل في الدائره تجيه السياره يعني يكون راكب فيها اول ما يدخل الدائره
AhmadQTR Posted January 18, 2013 Posted January 18, 2013 marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يمكن كذا؟
iPrestege Posted January 18, 2013 Posted January 18, 2013 الوكود قيد حطه تابل في موضوع ناسيه marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) end end) واذا تبيه م يعطيه في محله وتبي تحدد احداثيات اعتقد انها كذا marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يلبى قلبك تسلم اشتغلت بس فيه مشكله انه كل ما يدخل في الدائره تطلع سياره ثانيه الحل هو ابيه اول مايدخل في الدائره تجيه السياره يعني يكون راكب فيها اول ما يدخل الدائره وش قصدك بالهرجة ذي وضح أكثر / =! يعني تبية اذا دخل ماتطلع الا سيارة وحده مايقدر يأخذ ثانية؟
Stranger Posted January 18, 2013 Author Posted January 18, 2013 marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يمكن كذا؟ لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا
iPrestege Posted January 18, 2013 Posted January 18, 2013 marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يمكن كذا؟ لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا يعني تبية اذا دخل الماركر! يركب سيارة بعدين تختار احداثيات يوديك لها
Stranger Posted January 18, 2013 Author Posted January 18, 2013 marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) يمكن كذا؟ لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا يعني تبية اذا دخل الماركر! يركب سيارة بعدين تختار احداثيات يوديك لها لا يلبى ابيه اول ما يدخل الماركر تجيه سياره يعني زي كأنك تبي تعطي واحد سياره من لوحة الادمن صح تجيه هو راكب فيها ؟ بس انا ابيها زي كذا اول ما يدخل الماركر تجيه السياره ويكون راكب فيها
iPrestege Posted January 18, 2013 Posted January 18, 2013 Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) function ( player ) if not isPedInVehicle(player) then x,y,z = getElementPosition( player ) vehicle = createVehicle ( id, x, y, z ) warpPedIntoVehicle(player,vehicle) end end addEventHandler( "onMarkerHit", Marker,
TD[M]ER Posted January 18, 2013 Posted January 18, 2013 انا عطييتكـ الكود فوق طيب =\ وجربه وتابل مسويه < يعني 100% ظابط ^ ماشاء الله marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) end end)
Stranger Posted January 18, 2013 Author Posted January 18, 2013 انا عطييتكـ الكود فوق طيب =\ وجربه وتابل مسويه < يعني 100% ظابط ^ ماشاء الله marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) end end) تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟
===|OSAMA|=== Posted January 18, 2013 Posted January 18, 2013 Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) function ( player ) if not isPedInVehicle(player) then x,y,z = getElementPosition( player ) vehicle = createVehicle ( id, x, y, z ) warpPedIntoVehicle(player,vehicle) end end addEventHandler( "onMarkerHit", Marker, ^ Wrong addEventHandler( "onMarkerHit", Marker, .. ?? التصحيح Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler( "onMarkerHit", Marker, function ( player ) if not isPedInVehicle(player) then x,y,z = getElementPosition( player ) vehicle = createVehicle ( id, x, y, z ) warpPedIntoVehicle(player,vehicle) end end )
TD[M]ER Posted January 18, 2013 Posted January 18, 2013 انا عطييتكـ الكود فوق طيب =\ وجربه وتابل مسويه < يعني 100% ظابط ^ ماشاء الله marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) end end) تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟ marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) حط احداثيات مثلا يوديه لـ الدائري للـ مريخ اي شي .. عشان م يقدر يشطططحح مشوار للـ بدايه مثلا وياخذ موتر ثاني بس غير الـ id = اي دي الموتر x , y , z = الاحداثيات
Stranger Posted January 18, 2013 Author Posted January 18, 2013 انا عطييتكـ الكود فوق طيب =\ وجربه وتابل مسويه < يعني 100% ظابط ^ ماشاء الله marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) end end) تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟ marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car) end end) حط احداثيات مثلا يوديه لـ الدائري للـ مريخ اي شي .. عشان م يقدر يشطططحح مشوار للـ بدايه مثلا وياخذ موتر ثاني بس غير الـ id = اي دي الموتر x , y , z = الاحداثيات تسلم والله يالغلا الكود ذا مو صح بس انا ضفت لكود الي فوق احداثيات وضبطت معي مشكور تسلم
MR.S3D Posted January 18, 2013 Posted January 18, 2013 خذ الكود ذا عشان اللاق وعشان ماتتكرر السيارة الكود سيرفر marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) car = {} addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if isElement(car[player]) then destroyElement(car[player]) car[player] = nil end car[player] = createVehicle ( id, x, y, z ) if car[player] then warpPedIntoVehicle ( player, car[player]) end end end ) addEventHandler("onPlayerQuit", root, function() if isElement(car[source]) then destroyElement(car[source]) car[source] = nil end end ) غير x, y, z الى الأحداثيات اللي تبيها
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