#FeldMan Posted December 29, 2018 Share Posted December 29, 2018 أبي فنكشن لما تطلق على عجل السيارة يصير حدث :|| . . . Link to comment
coNolel Posted December 29, 2018 Share Posted December 29, 2018 https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire ? Link to comment
#[K]iLLeR<3 Posted December 29, 2018 Share Posted December 29, 2018 Just now, coNolel said: https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire ? انت معطي حدث اذا اطلق النار بس هو يبي اذا اطلق على عجل السيارة بالنسبة للموضوع مافيه حدث كذا اتوقع لازم تسوي يوزفل Link to comment
nxFairlywell Posted January 1, 2019 Share Posted January 1, 2019 onClientVehicleDamage تقدر عن طريق إستخدام الحدث اللي فوق ^ بهذه الطريقة عند وقوع الحدث ( عند تدميج المركبة ) راح يعطيك 7 بارامترز اللي يهمك البرامتر السابع اللي هو الأخير function test( _,_,_,_,_,_,tireID ) يقول شرح البرامتر من الويكي : tireID: A number representing the tire which took damage, if there is one. البرامتر راح يعطيك رقم التاير اللي تدمج . فأتوقع هذا المقصد من موضوعك .. تقدر تستخدم الشرط عشان اول ما يتدمج التاير تسوي الشي اللي تبيه . مثلا كذا : function test( _,_,_,_,_,_,tireID ) for i = 1, 4 do if tireID == i then destroyElement( source ); end end end 1 Link to comment
coNolel Posted January 5, 2019 Share Posted January 5, 2019 On 29/12/2018 at 21:10, #[K]iLLeR<3 said: انت معطي حدث اذا اطلق النار بس هو يبي اذا اطلق على عجل السيارة بالنسبة للموضوع مافيه حدث كذا اتوقع لازم تسوي يوزفل On 01/01/2019 at 22:08, NX_CI said: onClientVehicleDamage تقدر عن طريق إستخدام الحدث اللي فوق ^ بهذه الطريقة عند وقوع الحدث ( عند تدميج المركبة ) راح يعطيك 7 بارامترز اللي يهمك البرامتر السابع اللي هو الأخير function test( _,_,_,_,_,_,tireID ) يقول شرح البرامتر من الويكي : tireID: A number representing the tire which took damage, if there is one. البرامتر راح يعطيك رقم التاير اللي تدمج . فأتوقع هذا المقصد من موضوعك .. تقدر تستخدم الشرط عشان اول ما يتدمج التاير تسوي الشي اللي تبيه . مثلا كذا : function test( _,_,_,_,_,_,tireID ) for i = 1, 4 do if tireID == i then destroyElement( source ); end end end 1 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