EH10 Posted April 21, 2014 Share Posted April 21, 2014 جـرب * local vehicle = {} marker = createMarker(x,y,z,"cylinder",1.5,255,0,0,160) addEventHandler( "onMarkerHit", marker, function () if ( isElement ( vehicle[source] ) ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle(id, x, y, z) warpPedIntoVehicle( source, vehicle[source] ) end end ) Link to comment
K1NG Posted April 21, 2014 Share Posted April 21, 2014 جـرب * local vehicle = {} marker = createMarker(x,y,z,"cylinder",1.5,255,0,0,160) addEventHandler( "onMarkerHit", marker, function () if ( isElement ( vehicle[source] ) ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle(id, x, y, z) warpPedIntoVehicle( source, vehicle[source] ) end end ) . كودكـ ناقص --- ضبط معي لاكن شغلت المود طلع الماركر والسياره مع بعض انا ابي لما ادخل الماركر تطلع السياره : هذا الكود الأصلي عدلته لكـ حسب طلبكـ / مايحتاج تعدل فيه شي -- Server Side ! local Vehicles = { } local VehicleM = createMarker( -487.29998779297, 2590.8000488281, 52.099998474121, "cylinder", 3, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", VehicleM, function( hitElement ) if ( getElementType( hitElement ) == "player" ) then if ( Vehicles[ hitElement ] ) and ( isElement( Vehicles[ hitElement ] ) ) then destroyElement( Vehicles[ hitElement ] ) end local x, y, z = getElementPosition( hitElement ) Vehicles[ hitElement ] = createVehicle( 521, x, y, z ) if ( Vehicles[ hitElement ] ) then warpPedIntoVehicle( hitElement, Vehicles[ hitElement ] ) outputChatBox( "M", hitElement, 255, 0, 0, true ) end end end ) addEventHandler( "onVehicleExplode", resourceRoot, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if ( isElement( Vehicles[ source ] ) ) then destroyElement( Vehicles[ source ] ) end Vehicles[ source ] = nil end ) Link to comment
ΞĪŚŚÀ Posted April 22, 2014 Share Posted April 22, 2014 كم موضوع https://forum.multitheftauto.com/viewtopic.php?f=163&t=74538 Link to comment
aBo.F[ra]G<3 Posted April 23, 2014 Author Share Posted April 23, 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