Sfa7 Posted January 31, 2013 Share Posted January 31, 2013 (edited) تمت الافاده Edited January 31, 2013 by Guest Link to comment
iPrestege Posted January 31, 2013 Share Posted January 31, 2013 غير ايدي السيارات ؟؟؟ Link to comment
|Mr|-Talal07-| Posted January 31, 2013 Share Posted January 31, 2013 جرب اللحين Vehicles = {} VehicleM = createMarker ( -3545.69921875, -2984, 77.400001525879, "cylinder", 2, 0, 0, 255, 255 ) ColorM = createMarker ( -3538.3994140625, -2990.7998046875, 76.5, "cylinder", 2, 231, 219, 23, 255 ) IdCar = { 424, 461, 568, 502, } addEventHandler( "onMarkerHit", root, function ( hitElement ) if source == VehicleM and getElementType( hitElement ) == "player" then if Vehicles[hitElement] and getElementType( Vehicles[hitElement] ) == "vehicle" then destroyElement( Vehicles[hitElement] ) end local x,y,z = getElementPosition( hitElement ) Vehicles[hitElement] = createVehicle ( IdCar[math.random(#IdCar)], x, y, z ) if Vehicles[hitElement] then warpPedIntoVehicle( hitElement, Vehicles[hitElement] ) outputChatBox( "~]|[ لقد حصلت علي موتر ]|[~", hitElement, 255, 0, 0, true ) end elseif source == ColorM and getElementType( hitElement) == "player" and isPedInVehicle( hitElement ) then local player = getPedOccupiedVehicle( hitElement ) setVehicleColor( player, math.random(255), math.random(255), math.random(255) ) outputChatBox( "~]|[ تم تلوين موترك ]|[~", hitElement, 0, 255, 0, true ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if Vehicles[source] then destroyElement( Vehicles[source] ) end end ) Link to comment
Sfa7 Posted January 31, 2013 Author Share Posted January 31, 2013 Mr.Pres[T]ege on Thu Jan 31, 2013 11:21 amغير ايدي السيارات ؟؟؟ اقرا فوق انا وش كااتب وبتعرف وش ابي كاتب الكود موراضي يشتغل وتقولي غير اي دي السيارات ؟ Link to comment
|Mr|-Talal07-| Posted January 31, 2013 Share Posted January 31, 2013 Mr.Pres[T]ege on Thu Jan 31, 2013 11:21 amغير ايدي السيارات ؟؟؟ اقرا فوق انا وش كااتب وبتعرف وش ابي كاتب الكود موراضي يشتغل وتقولي غير اي دي السيارات ؟ طيب جرب الكود الي انا حطيته Link to comment
iPrestege Posted January 31, 2013 Share Posted January 31, 2013 سلام عليكم ..انا عندي كود يطلعلي مواتر محدده المهم ضبطت الاحداثيات وكل شي بس مادري ليه موراضي يشتغل وي ليت واحد يعدل عليه VehicleM = createMarker ( -3545.69921875, -2984, 77.400001525879, "cylinder", 2, 0, 0, 255, 255 ) ColorM = createMarker ( -3538.3994140625, -2990.7998046875, 76.5, "cylinder", 2, 231, 219, 23, 255 ) IdCar = { {424}, {461}, {568}, {502}, } addEventHandler( "onMarkerHit", root, function ( hitElement ) if source == VehicleM and getElementType( hitElement ) == "player" then if Vehicles[hitElement] and getElementType( Vehicles[hitElement] ) == "vehicle" then destroyElement( Vehicles[hitElement] ) end local x,y,z = getElementPosition( hitElement ) Vehicles[hitElement] = createVehicle ( IdCar[math.random(#IdCar)], x, y, z ) if Vehicles[hitElement] then warpPedIntoVehicle( hitElement, Vehicles[hitElement] ) outputChatBox( "~]|[ لقد حصلت علي موتر ]|[~", hitElement, 255, 0, 0, true ) end elseif source == ColorM and getElementType( hitElement) == "player" and isPedInVehicle( hitElement ) then local player = getPedOccupiedVehicle( hitElement ) setVehicleColor( player, math.random(255), math.random(255), math.random(255) ) outputChatBox( "~]|[ تم تلوين موترك ]|[~", hitElement, 0, 255, 0, true ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if Vehicles[source] then destroyElement( Vehicles[source] ) end end ) او بغيت يعني كود يعطيني موااتر فقط مواتر انا نزلت موضوع قبل ذا عن هل كود بس الكود الي عطونياه الاخوان يعطيني مواتر و طيارات و قوارب ودبابه وكل شي انا لا ابيه فقط يعطيني موااتر فقط كيف Link to comment
Sfa7 Posted January 31, 2013 Author Share Posted January 31, 2013 كفوو اخوي طلال ويعطيك العافيه Link to comment
|Mr|-Talal07-| Posted January 31, 2013 Share Posted January 31, 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