#MohammeD Posted August 15, 2018 Share Posted August 15, 2018 السلام عليكم سويت ماركر ابيه ينقل الموتر فقط يعني تخش فيه ب موتر فقط ويكون بقروب محدد ومهوب راضي حد يساعدني local Gn = '[Test]' WarpMarker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) addEventHandler('onMarkerHit',WarpMarker,function(entered) if not getElementType(entered) == 'player' and isPedInVehicle(entered) and getElementData(entered,'Group') == Gn then setElementPosition( entered,1680.3492,-2484.6853,14) setElementInterior ( entered, 0 ) setElementDimension ( entered, 0 ) end end ) Link to comment
+Source|> Posted August 15, 2018 Share Posted August 15, 2018 5 minutes ago, #MohammeD said: السلام عليكم سويت ماركر ابيه ينقل الموتر فقط يعني تخش فيه ب موتر فقط ويكون بقروب محدد ومهوب راضي حد يساعدني local Gn = '[Test]' WarpMarker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) addEventHandler('onMarkerHit',WarpMarker,function(entered) if not getElementType(entered) == 'player' and isPedInVehicle(entered) and getElementData(entered,'Group') == Gn then setElementPosition( entered,1680.3492,-2484.6853,14) setElementInterior ( entered, 0 ) setElementDimension ( entered, 0 ) end end ) local Gn = '[Test]' WarpMarker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) addEventHandler('onMarkerHit',WarpMarker,function(entered) if not getElementType(entered) == 'player' and getPedOccupiedVehicle(entered) and getElementData(entered,'Group') == Gn then setElementPosition( entered,1680.3492,-2484.6853,14) setElementInterior ( entered, 0 ) setElementDimension ( entered, 0 ) end end ) Link to comment
#MohammeD Posted August 15, 2018 Author Share Posted August 15, 2018 8 minutes ago, +Source|> said: local Gn = '[Test]' WarpMarker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) addEventHandler('onMarkerHit',WarpMarker,function(entered) if not getElementType(entered) == 'player' and getPedOccupiedVehicle(entered) and getElementData(entered,'Group') == Gn then setElementPosition( entered,1680.3492,-2484.6853,14) setElementInterior ( entered, 0 ) setElementDimension ( entered, 0 ) end end ) م ينقل ابد ب موتر او بدون وش الحل ؟ Link to comment
^iiEcoo'x_) Posted August 15, 2018 Share Posted August 15, 2018 (edited) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root , function ( Player ) if ( getElementType ( Player ) == 'vehicle' ) and ( getElementData ( getVehicleOccupant ( Player ) , 'Group' ) == Group ) then if ( source == Marker ) then -- Code end end end ) Edited August 15, 2018 by #_iMr,[E]coo Error Link to comment
#MohammeD Posted August 15, 2018 Author Share Posted August 15, 2018 5 minutes ago, #_iMr,[E]coo said: local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root , function ( Player ) if ( getElementType ( Player ) == 'vehicle' ) and ( getElementData ( getPedOccupiedVehicle ( Player ) , 'Group' ) == Group ) then if ( source == Marker ) then -- Code end end end ) Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root , function ( Player ) if ( getElementType ( Player ) == 'vehicle' ) and ( getElementData ( getPedOccupiedVehicle ( Player ) , 'Group' ) == Group ) then if ( source == Marker ) then setElementPosition( Player,1680.3492,-2484.6853,14) setElementInterior ( Player, 0 ) setElementDimension ( Player, 0 ) end end end ) جربت زي كذا ومهو راضي .. Link to comment
^iiEcoo'x_) Posted August 15, 2018 Share Posted August 15, 2018 5 minutes ago, #MohammeD said: Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root , function ( Player ) if ( getElementType ( Player ) == 'vehicle' ) and ( getElementData ( getPedOccupiedVehicle ( Player ) , 'Group' ) == Group ) then if ( source == Marker ) then setElementPosition( Player,1680.3492,-2484.6853,14) setElementInterior ( Player, 0 ) setElementDimension ( Player, 0 ) end end end ) جربت زي كذا ومهو راضي .. عدلت الكود فوق Link to comment
Trefeor Posted August 15, 2018 Share Posted August 15, 2018 (edited) جرب هذا Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root ,function ( Player ) if ( source == Marker and getElementType ( Player ) == "player" or getElementType ( Player ) == "vehicle" ) then local element = ( getElementType ( Player ) == "player" and Player or getPedOccupiedVehicle ( Player ) ) if ( getElementData ( ( getElementType ( element ) == "player" and element or getVehicleController (element)) , 'Group' ) == Group ) then setElementPosition( element,1680.3492,-2484.6853,14) setElementInterior ( element, 0 ) setElementDimension ( element, 0 ) end end end ) Edited August 15, 2018 by Trefeor edit Link to comment
#MohammeD Posted August 15, 2018 Author Share Posted August 15, 2018 6 minutes ago, Trefeor said: جرب هذا Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root ,function ( Player ) if ( source == Marker and getElementType ( Player ) == "player" or getElementType ( Player ) == "vehicle" ) then local element = ( getElementType ( Player ) == "player" and Player or getPedOccupiedVehicle ( Player ) ) if ( getElementData ( ( getElementType ( element ) == "player" and element or getVehicleController (element) , 'Group' ) == Group ) then setElementPosition( element,1680.3492,-2484.6853,14) setElementInterior ( element, 0 ) setElementDimension ( element, 0 ) end end end end ) لا م ضبط ابي الماركر يسمح للسياره فقط بالانتقال منه فقط السياره Link to comment
#MohammeD Posted August 15, 2018 Author Share Posted August 15, 2018 3 minutes ago, Trefeor said: جربته بعد التعديل ؟ يب يب ومو راضي Link to comment
SycroX Posted August 15, 2018 Share Posted August 15, 2018 (edited) Marker = createMarker(1623.4199, -2527.4304, 14, "corona", 3.5, 0, 0, 225) local Group = "[Test]" addEventHandler("onMarkerHit", root, function(element) if source == Marker then if getElementType(element) == "player" and isPedInVehicle(element) and getElementData(element, "Group") == Group then local vehicle = getPedOccupiedVehicle(element) if vehicle then setElementPosition(vehicle, 1680.3492, -2484.6853, 14) setElementInterior(vehicle, 0) setElementDimension(vehicle, 0) end end end end ) تريفر local element = ( getElementType ( Player ) == "player" and Player or getPedOccupiedVehicle ( Player ) هنا لو نوع الألمنت مو بلاير يعني هيكون سياره بناء علي التحقق الي فوقه انت هيك تستعمل getPedOccupiedVehicle لسياره مو للاعب Edited August 15, 2018 by #َxLysandeR كتبت اسم الألمنت غلط :- 1 Link to comment
KillerX Posted August 15, 2018 Share Posted August 15, 2018 On ١٥/٨/٢٠١٨ at 14:50, #MohammeD said: يب يب ومو راضي متاكد انك مسوي داتا اصلا ؟ 1 Link to comment
Trefeor Posted August 15, 2018 Share Posted August 15, 2018 (edited) Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' addEventHandler ( 'onMarkerHit' , root ,function ( Player ) if ( source == Marker and getElementType ( Player ) == "vehicle" ) then local controller = ( getVehicleController ( Player ) ) if ( controller and getElementData ( controller , "Group" ) == Group ) then setElementPosition( Player,1680.3492,-2484.6853,14) setElementInterior ( Player, 0 ) setElementDimension ( Player, 0 ) end end end) Edited August 15, 2018 by Trefeor 1 Link to comment
KillerX Posted August 15, 2018 Share Posted August 15, 2018 @#MohammeD ما يصير تستعمل getElementData بدون ما تحط داتا اصلا وسوي مثل ما قالك الاخ تريفور Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225) local Group = '[Test]' setElementData (getRandomPlayer(),'Group',Group) addEventHandler ( 'onMarkerHit' , root ,function ( Player ) if ( source == Marker and getElementType ( Player ) == "vehicle" ) then local controller = ( getVehicleController ( Player ) ) if ( controller and getElementData ( controller , "Group" ) == Group ) then setElementPosition( Player,1680.3492,-2484.6853,14) setElementInterior ( Player, 0 ) setElementDimension ( Player, 0 ) end end end) Link to comment
Trefeor Posted August 15, 2018 Share Posted August 15, 2018 اخوي احذف السطر الثالث لاني كنت اجرب وعطيت نفسي الداتا Link to comment
Popular Post #MohammeD Posted August 15, 2018 Author Popular Post Share Posted August 15, 2018 9 minutes ago, #َxLysandeR said: Marker = createMarker(1623.4199, -2527.4304, 14, "corona", 3.5, 0, 0, 225) local Group = "[Test]" addEventHandler("onMarkerHit", root, function(element) if source == Marker then if getElementType(element) == "player" and isPedInVehicle(element) and getElementData(element, "Group") == Group then local vehicle = getPedOccupiedVehicle(element) if vehicle then setElementPosition(vehicle, 1680.3492, -2484.6853, 14) setElementInterior(vehicle, 0) setElementDimension(vehicle, 0) end end end end ) تريفر local element = ( getElementType ( Player ) == "player" and Player or getPedOccupiedVehicle ( Player ) هنا لو نوع الألمنت مو بلاير يعني هيكون سياره بناء علي التحقق الي فوقه انت هيك تستعمل getPedOccupiedVehicle لسياره مو للاعب مشكور كودك ضبط 9 minutes ago, KillerX said: متاكد انك مسوي داتا اصلا ؟ يب @+Source|> @#_iMr,[E]coo @Trefeor @KillerX @#َxLysandeR مشكورين م قصرتوا معي 4 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