Mhmd.z Posted April 8, 2017 Share Posted April 8, 2017 صنعت بملف سيرفر شخصية, وبعدها رحت ملف كلنت وحطيت يوم تضرر الشخصيه يعطيها سلاح ويخليها تطلق, الحين هو باين عندي انها تطلق لكن مافي طلقات باينه انها تخرج من السلاح, الاكواد --server createPed(23, 91.93903,1920.45117,17.99738, 0) --client addEventHandler("onClientPedDamage", resourceRoot, function () givePedWeapon(resourceRoot, 35, 22222, true) setPedControlState(resourceRoot, "aim_weapon", true) setPedControlState(resourceRoot, "fire", true) end ) Link to comment
' A F . Posted April 8, 2017 Share Posted April 8, 2017 (edited) بالنسبة لـ كودك صحيح جربت اغير الايدي حق السلاح وظبط معأي , والله اعلم Edited April 8, 2017 by Default Add Info . Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 resourceRoot - يعطي لكل الشخصيات الموجوده بالسكربت Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 طبعا رح يضبط معاك ورح تشوف الرصاص لكن الرصاص ما يأثر عليك , روح قدام السلاح وشوف Link to comment
Abdul KariM Posted April 8, 2017 Share Posted April 8, 2017 سوي ترايقر للسيرفر واستخدم giveWeapon Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 2 hours ago, Abdul KariM said: سوي ترايقر للسيرفر واستخدم giveWeapon ما ضبط Link to comment
^iiEcoo'x_) Posted April 8, 2017 Share Posted April 8, 2017 local aPed = CreatePed ( ... ) giveWeapon ( aPed , 31 , 200 , true ) Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 1 minute ago, #_iMr.[E]coo said: local aPed = CreatePed ( ... ) giveWeapon ( aPed , 31 , 200 , true ) بالله ؟ الحين انت جربت قبل ما تقلي Link to comment
#BrosS Posted April 8, 2017 Share Posted April 8, 2017 37 minutes ago, Mhmd.z said: ما ضبط هات محاولتك Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 --server local ped = createPed(23, 793.89502,1687.16296,4.28125) giveWeapon(ped, 35, 9999, true) --client addEventHandler("onClientPedDamage", resourceRoot, function (attacker, weapon, bodyPart, loss) setPedControlState(resourceRoot, "aim_weapon", true) setPedControlState(resourceRoot, "fire", true) end ) Link to comment
#Soking Posted April 8, 2017 Share Posted April 8, 2017 -- Server aPed = createPed ( 23, 793.89502 , 1687.16296 , 4.28125 ) giveWeapon ( aPed , 35 , 9999 , true ) -- Client addEventHandler( 'onClientPedDamage' , resourceRoot, function ( ) if ( getElementType ( source ) ~= 'player' ) then setPedControlState ( source , 'aim_weapon' , true ) setPedControlState ( source , 'fire' , true ) end end ) Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 نفس الشي, هو يباين انه يطلق لكن مافي رصاص يطلع من الصاروخ, ولو غيرت الايدي رح تشوف رصاص لكن مارح يأثر فيك الرصاص لو رحت قدام السلاح Link to comment
#Soking Posted April 8, 2017 Share Posted April 8, 2017 3 minutes ago, Mhmd.z said: نفس الشي, هو يباين انه يطلق لكن مافي رصاص يطلع من الصاروخ, ولو غيرت الايدي رح تشوف رصاص لكن مارح يأثر فيك الرصاص لو رحت قدام السلاح اعتقد لو كأن المود بـ سيرفر لينكس , يمكن ينفع جرب و رد لي خبر Link to comment
Mhmd.z Posted April 8, 2017 Author Share Posted April 8, 2017 شكرا لكم على المساعده, كانت في مشكلتين الاولى هي انه لازم احط اعطاء السلاح بملف سيرفر والثانيه اني استعمل سلاح غير الصاروخ 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