abo_7mod Posted June 28, 2015 Posted June 28, 2015 السلام عليكم setElementPosition ينقل الاعب الى مكان ابيه اذا كان بسيارة ينقل الاعب وهو داخل السيارة يعني ينقل الموتر والسلام عليكم مبرمج مبتدأ
nxFairlywell Posted June 28, 2015 Posted June 28, 2015 اطرح الكود حقك او وضح وش تبي بالضبط اذا انت مسوي لوحه او شيء حط الاكواد هنا Discord ID : nxFairlywell#6895
Mr.R Posted June 28, 2015 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 ) * There is no God but Allah, Mohammed is the Messenger Of Allah
Professional Posted June 28, 2015 Posted June 28, 2015 جرب يمكن المشكله بل تسطير الاكواد addEventHandler ( "onMarkerHit", resourceRoot, function ( Vehicle ) if ( getElementType ( Vehicle ) == "vehicle" ) and ( source == Marker ) then setElementPosition ( Vehicle, x, y, z ) end end ) ~ Soon - ~ قريبا
' A F . Posted June 28, 2015 Posted June 28, 2015 ^ جربته و ظبط local Marker = createMarker ( ........... ) addEventHandler ( "onMarkerHit",Marker, function (player) if ( getPedOccupiedVehicle(player) ) then setElementPosition (getPedOccupiedVehicle(player),x,y,z ) end end ) Dis ; AF.#0941
abo_7mod Posted June 28, 2015 Author Posted June 28, 2015 ^ جربته و ظبط local Marker = createMarker ( ........... ) addEventHandler ( "onMarkerHit",Marker, function (player) if ( getPedOccupiedVehicle(player) ) then setElementPosition (getPedOccupiedVehicle(player),x,y,z ) end end ) يبب شُُكرا يا المدبع أشتغل شكررررررررررررررررررررررررررررررررررررررررررررررررررررررررررررررا مبرمج مبتدأ
Professional Posted June 28, 2015 Posted June 28, 2015 هههههههههههههههههه كل الي كان معلق هو فنكش getPedOccupiedVehicle و (player) بدل السياره هههه كفو ~ Soon - ~ قريبا
Mr.R Posted June 28, 2015 Posted June 28, 2015 نفس كودي وما شتغل ^ الكود انا مسويه ومجربه شغال تمام ولا فيه اي خطأ تأكد انك حاطه من جانب سيرفر وتاكد من ملف الميتا , اهم شيء تم الافادهه * There is no God but Allah, Mohammed is the Messenger Of Allah
</Mr.Tn6eL> Posted June 29, 2015 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 skype : 011101000110111000110110011001010110110000110000001110010011000000111001
TAPL Posted June 29, 2015 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
</Mr.Tn6eL> Posted June 29, 2015 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 معليش غلط مطبعي skype : 011101000110111000110110011001010110110000110000001110010011000000111001
</Mr.Tn6eL> Posted June 29, 2015 Posted June 29, 2015 ياخذ الكود الاسهل له هو قال اذ الاعب في الموتر ينقله او اذ كان كعابي ينقله يعني اذ في السيارة ينقل السيارة واذ يمشي بدون سيارة ينقله بس هم الله يهديهم مايفهمون زين اللي حاطين الاكواد ونصها مشطوبة skype : 011101000110111000110110011001010110110000110000001110010011000000111001
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