Ahmed Abo-elezz Posted November 10, 2014 Share Posted November 10, 2014 السلام عليكم ياشباب اريد فنكشن عند انشاء اللاعب سيارة جديده يتم حذف السيارة القديمه ويكون ملكة سيارة واحده فقط Link to comment
shwaeki Posted November 10, 2014 Share Posted November 10, 2014 isElement destroyElement Link to comment
Ahmed Abo-elezz Posted November 10, 2014 Author Share Posted November 10, 2014 isElement destroyElement متشرك جدا Link to comment
Ahmed Abo-elezz Posted November 10, 2014 Author Share Posted November 10, 2014 اخى ممكن تساعدنى وتضعه فى هذا الكود لان مش فهمه function () carr3 = createVehicle ( 515, -1745.93262, -148.87248, 4 ) warpPedIntoVehicle ( source, carr3 ) end Link to comment
Professional Posted November 10, 2014 Share Posted November 10, 2014 function () carr3 = createVehicle ( 515, -1745.93262, -148.87248, 4 ) warpPedIntoVehicle ( source, carr3 ) end Link to comment
EH10 Posted November 10, 2014 Share Posted November 10, 2014 function () if ( isElement ( source ) ) then destroyElement ( source ) end vehicle = createVehicle(iD, x, y, z) warpPedIntoVehicle ( source, vehicle ) end Your Event # -- Link to comment
Ahmed Abo-elezz Posted November 11, 2014 Author Share Posted November 11, 2014 function () if ( isElement ( source ) ) then destroyElement ( source ) end vehicle = createVehicle(iD, x, y, z) warpPedIntoVehicle ( source, vehicle ) end Your Event # -- متشكرا جدا اشتغلت معى لكن تعديل بسيط function () if ( isElement ( vehicle ) ) then destroyElement ( vehicle ) end vehicle = createVehicle(iD, x, y, z) warpPedIntoVehicle ( source, vehicle ) end Your Event # -- 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