Jump to content

x[ Veh ] x مشكلة في


Recommended Posts

	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
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
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 by Sha67
Link to comment
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 by abulghar
ناسي شئ
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...