#,Dr.To[sh]iBa Posted May 10, 2018 Share Posted May 10, 2018 function ( ) x,y,z = getElementPosition ( source ) destroyElement(getPedOccupiedVehicle(source)) Vehicle[source] = createVehicle ( 502, x, y, z ) if ( getElementDimension ( source ) == 30 ) then setElementDimension ( Vehicle[source], 30 ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox( "* Done you give Car.",source,0,255,0,true) end end ) السلام عليكم عندي مشكلة في الكود ذا ان لو كانت سيارتي في اتجاه الشمال تيجي السياره الثانيه في اتجاه الغرب مدري كيفاتمني تكون فهمتوني, # Link to comment
#\_oskar_/# Posted May 10, 2018 Share Posted May 10, 2018 setElementRotation -- وضع اتجاه السياره 1 Link to comment
#,Dr.To[sh]iBa Posted May 10, 2018 Author Share Posted May 10, 2018 1 minute ago, #\_oskar_/# said: setElementRotation -- وضع اتجاه السياره اتجاه عقارب الساعه يكون x,y,z اي فيهم اضيف لهم ؟ 12 minutes ago, #\_oskar_/# said: setElementRotation -- وضع اتجاه السياره setElementRotation(Vehicle[source],rotX+180,rotY,rotZ) Link to comment
#,Dr.To[sh]iBa Posted May 10, 2018 Author Share Posted May 10, 2018 33 minutes ago, #\_oskar_/# said: setElementRotation -- وضع اتجاه السياره setElementRotation(Vehicle[source],rotX+180,rotY,rotZ) لم تظبط Link to comment
فاّرس Posted May 10, 2018 Share Posted May 10, 2018 (edited) 2 hours ago, #\_oskar_/# said: setElementRotation -- وضع اتجاه السياره مايحتاج دام أنها موجوده في السينتاكس أساساً vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, float rz, string ... ) صاحب الموضوع، بعد إحداثيات السياره حط إحداثيات الإتجاه زي كذا : Vehicle [ source ] = createVehicle ( 502, x, y, z, rx, ry, rz ) عدلها للإتجاه اللي تبغاه وتقدر تستفيد من وظيفة getElementRotation عشان تجيب الإتجاه حق اللاعب أو السياره عشان تعدل عليه Edited May 10, 2018 by Sha67 Link to comment
#,Dr.To[sh]iBa Posted May 11, 2018 Author Share Posted May 11, 2018 (edited) 11 hours ago, Sha67 said: مايحتاج دام أنها موجوده في السينتاكس أساساً vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, float rz, string ... ) صاحب الموضوع، بعد إحداثيات السياره حط إحداثيات الإتجاه زي كذا : Vehicle [ source ] = createVehicle ( 502, x, y, z, rx, ry, rz ) عدلها للإتجاه اللي تبغاه وتقدر تستفيد من وظيفة getElementRotation عشان تجيب الإتجاه حق اللاعب أو السياره عشان تعدل عليه 13 hours ago, #\_oskar_/# said: setElementRotation -- وضع اتجاه السياره مشكور xx,yy,zz = getElementPosition ( source ) rx,ry,rz = getElementRotation ( source ) Vehicle[source] = createVehicle ( 495, xx, yy, zz ,rx,ry,rz ) الرجاء مراجعة موضوعي الاخر Edited May 11, 2018 by abulghar ناسي شئ 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