KillerX Posted January 25, 2019 Posted January 25, 2019 السلام عليكم ورحمه الله وبركاتة وانا قاعد استخدم الكود setPedControlState واجهتني مشكلة وهي ان لما استخدم الكود دا مع الضرب يضرب مرة واحدة فقط ويقف ما يكمل الضرب المطلوب : ابيه يضرب وما يوقف اي يكرر الضرب addCommandHandler('1', function() local _myPed = createPed(getElementModel(localPlayer),getElementPosition(localPlayer)) setPedControlState( _myPed , 'fire' , true ) end ) ( شكرا علي وقتك )
KillerX Posted January 25, 2019 Author Posted January 25, 2019 Just now, NX_CI said: جربت التايمر ؟ يب جربت توضيح بس المشكلة بتحصل مع الاسلحة مثل اليد و المضرب و بس مع باقي الاسلحة يكرر الضرب تمام
Ram, Posted January 26, 2019 Posted January 26, 2019 setPedControlState( _myPed , 'action' , true ) 1
KillerX Posted January 26, 2019 Author Posted January 26, 2019 3 minutes ago, #Ram said: setPedControlState( _myPed , 'action' , true ) شكرا علي ردك + الحين ما بيتحرك ولا بيضرب بيظل ساكن
Ram, Posted January 26, 2019 Posted January 26, 2019 Just now, KillerX said: شكرا علي ردك + الحين ما بيتحرك ولا بيضرب بيظل ساكن setTimer(function() setPedControlState( _myPed , 'fire' , true ) end,600,0) Try 1
KillerX Posted January 26, 2019 Author Posted January 26, 2019 2 minutes ago, #Ram said: setTimer(function() setPedControlState( _myPed , 'fire' , true ) end,600,0) Try الحين زي الاول يضرب مرة واحدة فقط وما يكرر
Ram, Posted January 26, 2019 Posted January 26, 2019 Just now, KillerX said: الحين زي الاول يضرب مرة واحدة فقط وما يكرر وريني الكود بعد ماضفت التايمر ؟؟ 1
KillerX Posted January 26, 2019 Author Posted January 26, 2019 Just now, #Ram said: وريني الكود بعد ماضفت التايمر ؟؟ addCommandHandler('1', function() local _myPed = createPed(getElementModel(localPlayer),getElementPosition(localPlayer)) setTimer(function() setPedControlState( _myPed , 'fire' , true ) end,600,0) end )
KillerX Posted January 26, 2019 Author Posted January 26, 2019 3 minutes ago, #Ram said: دقيقة شكرا يا اخ رام خطر ببالي فكرة ونجحت addCommandHandler('1', function() local _myPed = createPed(getElementModel(localPlayer),getElementPosition(localPlayer)) setTimer(function() setPedControlState( _myPed , 'fire' , not getPedControlState( _myPed , 'fire' ) ) end,50,0 ) end ) وكدا صار يضرب ويكرر الضرب 1
Ram, Posted January 26, 2019 Posted January 26, 2019 تمام , كنت بشغل جهازي واجربها وأرسلك بس دامك سويتها خلاص 1
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