abo_7mod Posted June 28, 2015 Share Posted June 28, 2015 السلام عليكم setElementPosition ينقل الاعب الى مكان ابيه اذا كان بسيارة ينقل الاعب وهو داخل السيارة يعني ينقل الموتر والسلام عليكم Link to comment
nxFairlywell Posted June 28, 2015 Share Posted June 28, 2015 اطرح الكود حقك او وضح وش تبي بالضبط اذا انت مسوي لوحه او شيء حط الاكواد هنا Link to comment
Mr.R Posted June 28, 2015 Share Posted June 28, 2015 setElementPosition -- عشان تنقل السياره : هذا مثال على الفنكشن الي فوق ونفس طلبك : ) local Marker = createMarker ( ... ) addEventHandler ( "onMarkerHit", resourceRoot, function ( Vehicle ) if ( getElementType ( Vehicle ) == "vehicle" ) and ( source == Marker ) then setElementPosition ( Vehicle, x, y, z ) end end ) Link to comment
Professional Posted June 28, 2015 Share Posted June 28, 2015 جرب يمكن المشكله بل تسطير الاكواد addEventHandler ( "onMarkerHit", resourceRoot, function ( Vehicle ) if ( getElementType ( Vehicle ) == "vehicle" ) and ( source == Marker ) then setElementPosition ( Vehicle, x, y, z ) end end ) Link to comment
' A F . Posted June 28, 2015 Share Posted June 28, 2015 ^ جربته و ظبط local Marker = createMarker ( ........... ) addEventHandler ( "onMarkerHit",Marker, function (player) if ( getPedOccupiedVehicle(player) ) then setElementPosition (getPedOccupiedVehicle(player),x,y,z ) end end ) Link to comment
abo_7mod Posted June 28, 2015 Author Share Posted June 28, 2015 ^ جربته و ظبط local Marker = createMarker ( ........... ) addEventHandler ( "onMarkerHit",Marker, function (player) if ( getPedOccupiedVehicle(player) ) then setElementPosition (getPedOccupiedVehicle(player),x,y,z ) end end ) يبب شُُكرا يا المدبع أشتغل شكررررررررررررررررررررررررررررررررررررررررررررررررررررررررررررررا Link to comment
Professional Posted June 28, 2015 Share Posted June 28, 2015 هههههههههههههههههه كل الي كان معلق هو فنكش getPedOccupiedVehicle و (player) بدل السياره هههه كفو Link to comment
Mr.R Posted June 28, 2015 Share Posted June 28, 2015 نفس كودي وما شتغل ^ الكود انا مسويه ومجربه شغال تمام ولا فيه اي خطأ تأكد انك حاطه من جانب سيرفر وتاكد من ملف الميتا , اهم شيء تم الافادهه Link to comment
</Mr.Tn6eL> Posted June 29, 2015 Share Posted June 29, 2015 (edited) local marker = createMarker(x, y, z, "cylinder", 1.5, 0, 0, 0) addEventHandler("onMarkerHit", marker, function(element) if getElementType(element) == "player" then local vehicle = getPedOccupiedVehicle(element) local isDriver = vehicle and getVehicleController(vehicle) == element setElementPosition(isDriver and vehicle or element, x, y, z) end end) Edited June 29, 2015 by Guest Link to comment
TAPL Posted June 29, 2015 Share Posted June 29, 2015 local marker = createMarker(x, y, z, "cylinder", 1.5, 0, 0, 0) addEventHandler("onMarkerHit", marker, function(element) if getElementType(element) == "player" then local vehicle = getPedOccupiedVehicle(localPlayer) local isDriver = vehicle and getVehicleController(vehicle) == element setElementPosition(isDriver and vehicle or element, x, y, z) end end) localPlayer -> element Link to comment
</Mr.Tn6eL> Posted June 29, 2015 Share Posted June 29, 2015 local marker = createMarker(x, y, z, "cylinder", 1.5, 0, 0, 0) addEventHandler("onMarkerHit", marker, function(element) if getElementType(element) == "player" then local vehicle = getPedOccupiedVehicle(localPlayer) local isDriver = vehicle and getVehicleController(vehicle) == element setElementPosition(isDriver and vehicle or element, x, y, z) end end) localPlayer -> element معليش غلط مطبعي Link to comment
</Mr.Tn6eL> Posted June 29, 2015 Share Posted June 29, 2015 ياخذ الكود الاسهل له هو قال اذ الاعب في الموتر ينقله او اذ كان كعابي ينقله يعني اذ في السيارة ينقل السيارة واذ يمشي بدون سيارة ينقله بس هم الله يهديهم مايفهمون زين اللي حاطين الاكواد ونصها مشطوبة 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