Nickelz Posted October 23, 2012 Share Posted October 23, 2012 السسلآآم عليكم ممكن تشوفون وشش فيه هذآ الكود؟ فيه خطـآآ createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) nick = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) function markerHit (hitPlayer, matchingDimension) x, y, z = getElementPosition(source) nick = createVehicle ( 411, 1402.9000244141 , 730.79998779297 , 10 ) warpPedIntoVehicle(source, nick) end addEventHandler ("onMarkerHit", getRootElement(), markerHit) اذا وقفت عـ المآركر يطلع لي مليون سيارة وآنـآآ مو رآكب ولآآ مححدة مع آني مركب كود warpPedIntoVehicle وشكرآ Link to comment
Sora Posted October 23, 2012 Share Posted October 23, 2012 (edited) createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) nickM = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) function markerHit (hitPlayer, matchingDimension) x, y, z = getElementPosition(hitPlayer) nickC = createVehicle ( 411, x , y , z ) warpPedIntoVehicle(hitPlayer, nickC) end addEventHandler ("onMarkerHit", nickM, markerHit) Edited October 23, 2012 by Guest Link to comment
Nickelz Posted October 23, 2012 Author Share Posted October 23, 2012 createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) nickM = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) function markerHit (hitPlayer, matchingDimension) x, y, z = getElementPosition(hitPlayer) nickC = createVehicle ( 411, x , y , z ) warpPedIntoVehicle(hitPlayer, nickC) end addEventHandler ("onMarkerHit", nickM, markerHit) مششكؤور يَ خويي القديم ض1 بس الكود يطلع آكثر من سيآآرة Link to comment
abu5lf Posted October 23, 2012 Share Posted October 23, 2012 local vehicle = {} createBlip ( 1402, 730, 10 , 63 ) local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 ) addEventHandler ( 'onMarkerHit', marker, function ( hitElement ) if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) ) warpPedIntoVehicle ( hitElement, vehicle[hitElement] ) end end ) ماجربته. Link to comment
Nickelz Posted October 23, 2012 Author Share Posted October 23, 2012 local vehicle = {} createBlip ( 1402, 730, 10 , 63 ) local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 ) addEventHandler ( 'onMarkerHit', marker, function ( hitElement ) if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) ) warpPedIntoVehicle ( hitElement, vehicle[hitElement] ) end end ) ماجربته. هههههههههههههههه كودكك خلآآني آروح آتعلم البرمجة من جدييد آبي وآآحد آسسهل آنـآآ آسآلكم عششآن آتعلم مو طق والحق ض1 Link to comment
abu5lf Posted October 23, 2012 Share Posted October 23, 2012 local vehicle = {} createBlip ( 1402, 730, 10 , 63 ) local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 ) addEventHandler ( 'onMarkerHit', marker, function ( hitElement ) if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) ) warpPedIntoVehicle ( hitElement, vehicle[hitElement] ) end end ) ماجربته. هههههههههههههههه كودكك خلآآني آروح آتعلم البرمجة من جدييد آبي وآآحد آسسهل آنـآآ آسآلكم عششآن آتعلم مو طق والحق ض1 لو أنك متعلم برمجة أصلا فهمته اضفت فيه جدول بيانات ^ الجداول وسيلة سهلة لتخزين البيانات Link to comment
3NAD Posted October 23, 2012 Share Posted October 23, 2012 (edited) createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) nickM = createMarker( 1402, 730, 10, "cylinder", 2, 0, 255, 0, 160 ) addEventHandler ( "onMarkerHit", nickM, function ( hitPlayer ) if ( isPedInVehicle ( hitPlayer ) == false ) then theData = getElementData ( hitPlayer , "theCar" ) if ( theData ) then destroyElement ( theData ) end x, y, z = getElementPosition ( hitPlayer ) nickC = createVehicle ( 411, x, y, z ) warpPedIntoVehicle ( hitPlayer, nickC ) setElementData ( hitPlayer, "theCar", nickC ) end end ) Edited October 23, 2012 by Guest Link to comment
GAME_OVER!! Posted October 23, 2012 Share Posted October 23, 2012 Try -- Server Side -- createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function() if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, Vehz[source]) end) Link to comment
abu5lf Posted October 23, 2012 Share Posted October 23, 2012 Try-- Server Side -- createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function() if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, Vehz[source]) end) source = ?? warpPedIntoVehicle(source, Vehz[source]) هههههههههههههههههههههههه Link to comment
Mr.T9 Posted October 23, 2012 Share Posted October 23, 2012 Try-- Server Side -- createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function() if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, Vehz[source]) end) من وين جايب هاذي ] ؟؟؟؟ Link to comment
GAME_OVER!! Posted October 24, 2012 Share Posted October 24, 2012 createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function(thePlayer) if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(thePlayer, Vehz[source]) end) Link to comment
GAME_OVER!! Posted October 24, 2012 Share Posted October 24, 2012 من وين جايب هاذي ] ؟؟؟؟ Vehz = {} وش رايك تجي تدرسني بعد؟ Link to comment
GAME_OVER!! Posted October 24, 2012 Share Posted October 24, 2012 Try-- Server Side -- createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function() if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, Vehz[source]) end) source = ?? warpPedIntoVehicle(source, Vehz[source]) هههههههههههههههههههههههه دوم الضحكه الله يخليك لأهلـك Link to comment
abu5lf Posted October 24, 2012 Share Posted October 24, 2012 createBlip ( 1402.9 , 730.79 , 10 , 63 ) xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) -- Vehz = {} -- addEventHandler ( "onMarkerHit", xxx, function(thePlayer) if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(thePlayer, Vehz[source]) end) source Link to comment
GAME_OVER!! Posted October 24, 2012 Share Posted October 24, 2012 الكود شغال ياحبيبي ولو تقول خطأ روح جربه + لاتحط علآمت احبآط صلحه Link to comment
abu5lf Posted October 24, 2012 Share Posted October 24, 2012 الكود شغال ياحبيبي ولو تقول خطأ روح جربه ههههههههههههههع شغال أقول مدري من يبى له يجرب المود رح شف كيف تجي السيارات في الماركر وبعد يوم يركبك شف الاخطاء في /debugscript 3 لاتحط علآمت احبآط صلحه حنا جايين نسااعد صاحب الموضوع ولا نصحح اكوادك اخيرا لاتنسى تمر على الويكي https://wiki.multitheftauto.com/wiki/Main_Page 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