[DONE]* Posted January 9, 2016 Share Posted January 9, 2016 (edited) السلام عليكم عندي مشكله بسيطه وهي: سويت بيد و حطيت له انيميشن انه يمشي ,, ولاكن لو ضربته بالسلاح او بايدي يوقف الانيميشن انا ابيه ما يوقف انحلت المشكة واجهتني مشكله ثانيه انزل تتحت وساعدني وشكرا Edited January 11, 2016 by Guest Link to comment
Mr.R Posted January 9, 2016 Share Posted January 9, 2016 local Ped = createPed ( ... ) setPedAnimation ( ... ) addEventHandler ( "onClientPedDamage", resourceRoot, function ( ) if ( Ped ) then cancelEvent ( ) end end ) Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 local Ped = createPed ( ... ) setPedAnimation ( ... ) addEventHandler ( "onClientPedDamage", resourceRoot, function ( ) if ( Ped ) then cancelEvent ( ) end end ) انا ابي البيد يموت Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 اجل غير سطر 6 بس إلى setPedAnimation ( ... ) جرب . Link to comment
#CroSs Posted January 10, 2016 Share Posted January 10, 2016 . false حطه setPedAnimation الأرقمنت السابع في وظيفة Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 . false حطه setPedAnimation الأرقمنت السابع في وظيفة صح عليك مشكلتنا مانشوف الارقمنتات في الويكي -_-" Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 شكراا المشكله انحلت بس في مشكلة ثاتيه التايمر يصنع بيد بعد وقت طبعا مع الحدث ت المشكلة ان البيد ما يجي بعد التايمر addEventHandler ('onClientPedWasted',root, function () setTimer(function () if source == ped1 then ped1 = createPed (15,-1454.93726,-2169.44409,5.92978,60) setElementDimension (ped1,1001) setPedAnimation (ped1,'ped','WALK_old') elseif source == ped2 then ped2 = createPed (18,-1423.58093 ,-2132.60742, 15.54415,120) setElementDimension (ped2,1001) setPedAnimation (ped2,'ped','WALK_old') end end,2000,0) end ped1 = createPed (15,-1454.93726,-2169.44409,5.92978,60) setElementDimension (ped1,1001) setPedAnimation (ped1,'ped','WALK_old') ped2 = createPed (18,-1423.58093 ,-2132.60742, 15.54415,120) setElementDimension (ped2,1001) setPedAnimation (ped2,'ped','WALK_old') Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 جرب كذا , انشاء الله يضبط addEventHandler ( "onClientPedWasted", root, setTimer ( function ( ) if ( ped1 ) then ped1 = createPed ( 15,-1454.93726,-2169.44409,5.92978,60 ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) elseif ( ped2 ) then ped2 = createPed ( 18,-1423.58093 ,-2132.60742, 15.54415,120 ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end, 2000, 0 ) end Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 جرب كذا , انشاء الله يضبط addEventHandler ( "onClientPedWasted", root, setTimer ( function ( ) if ( ped1 ) then ped1 = createPed ( 15,-1454.93726,-2169.44409,5.92978,60 ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) elseif ( ped2 ) then ped2 = createPed ( 18,-1423.58093 ,-2132.60742, 15.54415,120 ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end, 2000, 0 ) end ما ضبط ديبوق: سطر 12 = سطر 2 Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 جرب خلها كذا end end, 2000, 0 ) Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 (edited) نفس المشكله ... الكود شغال جربته , تسلم عالتصليح عبد الكريم addEventHandler ( "onClientPedWasted", resourceRoot, function ( ) setTimer ( function ( ) if ( source == ped1 ) then ped1 = createPed ( 15,-1454.93726,-2169.44409,5.92978,60 ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) end, 2000, 0 ) end if ( source == ped2 ) then setTimer ( function ( ) ped2 = createPed ( 18,-1423.58093 ,-2132.60742, 15.54415,120 ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end, 2000, 0 ) end end ) Edited January 10, 2016 by Guest Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 نفس المشكله جرب كذا addEventHandler ( "onClientPedWasted", resourceRoot, function ( ) setTimer ( function ( ) if ( ped1 ) then ped1 = createPed ( 15,-1454.93726,-2169.44409,5.92978,60 ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) elseif ( ped2 ) then ped2 = createPed ( 18,-1423.58093 ,-2132.60742, 15.54415,120 ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end end, 2000, 0 ) end انت دائما تنسى تقفل الافنت + نفس المشكلة ولاكن بالسطر الاول Link to comment
Abdul KariM Posted January 10, 2016 Share Posted January 10, 2016 ^ addEventHandler ( "onClientPedWasted", root, function () if ( source == ped1 ) then setTimer ( function ( ) ped1 = createPed ( ... ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) end , 2000 , 1 ) end if ( source == ped2 ) then setTimer ( function ( ) ped2 = createPed ( ... ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end , 2000, 1 ) end end ); Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 ^ addEventHandler ( "onClientPedWasted", root, function () if ( source == ped1 ) then setTimer ( function ( ) ped1 = createPed ( ... ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) end , 2000 , 1 ) end if ( source == ped2 ) then setTimer ( function ( ) ped2 = createPed ( ... ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end , 2000, 1 ) end end ); ضبط مشكوور Link to comment
Mr.R Posted January 10, 2016 Share Posted January 10, 2016 وشكرا لك mr.r حياك الله , معليش كنت مفهي ومانتبهت لـ بعض الاشياء Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 وشكرا لك mr.r حياك الله , معليش كنت مفهي ومانتبهت لـ بعض الاشياء ههههههه لا ولا يهمكــ Link to comment
Abdul KariM Posted January 10, 2016 Share Posted January 10, 2016 ^ addEventHandler ( "onClientPedWasted", root, function () if ( source == ped1 ) then setTimer ( function ( ) ped1 = createPed ( ... ) setElementDimension ( ped1, 1001 ) setPedAnimation ( ped1, "ped", "WALK_old" ) end , 2000 , 1 ) end if ( source == ped2 ) then setTimer ( function ( ) ped2 = createPed ( ... ) setElementDimension ( ped2, 1001 ) setPedAnimation ( ped2, "ped", "WALK_old" ) end , 2000, 1 ) end end ); ضبط مشكوور حياك الله _ Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 طيب ضبط كل شي كيف اخلي البيد لو وصل لمكان معين يتغير الدوران حقه ؟ Link to comment
Abdul KariM Posted January 10, 2016 Share Posted January 10, 2016 طيب ضبط كل شيكيف اخلي البيد لو وصل لمكان معين يتغير الدوران حقه ؟ تقدر تسوي ماركر وتخفيه createMarker onMarkerHit -- Event getElementType setElementRotation setElementAlpha -- 0 تخفي الماركر Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 طيب ضبط كل شيكيف اخلي البيد لو وصل لمكان معين يتغير الدوران حقه ؟ تقدر تسوي ماركر وتخفيه createMarker onMarkerHit -- Event getElementType setElementRotation setElementAlpha -- 0 تخفي الماركر الماركر ما يضبط الا للاعب + مجربه Link to comment
Abdul KariM Posted January 10, 2016 Share Posted January 10, 2016 (edited) ^ معلوماتك غلط ليه حاط لك فنكشن getElementType Marker = createMarker ( ... ) setElementAlpha( Marker , 0 ) -- 0 مخفي -- 255 ظاهر addEventHandler("onMarkerHit",root, function ( Hit ) if ( source == Marker ) and ( getElementType ( Hit ) == "Ped" ) then if NameThePed and isElement ( NameThePed ) then setElementRotation ( ... ) end end end ); Edited January 10, 2016 by Guest Link to comment
[DONE]* Posted January 10, 2016 Author Share Posted January 10, 2016 ^معلوماتك غلط ليه حاط لك فنكشن getElementType Marker = createMarker ( ... ) setElementAlpha( Marker , 0 ) -- مخفي # -- 255 ظاهر addEventHandler("onMarkerHit",Marker, function (Hit) if ( getElementType ( Hit ) == "Ped" ) then if NameThePed and isElement ( NameThePed ) then setElementRotation ( ... ) end end end ); طيب لازم الايفنت يكون سيرفر ؟ لاني جربته على الكلينت و ما ضببط Link to comment
Abdul KariM Posted January 10, 2016 Share Posted January 10, 2016 ^معلوماتك غلط ليه حاط لك فنكشن getElementType Marker = createMarker ( ... ) setElementAlpha( Marker , 0 ) -- مخفي # -- 255 ظاهر addEventHandler("onMarkerHit",Marker, function (Hit) if ( getElementType ( Hit ) == "Ped" ) then if NameThePed and isElement ( NameThePed ) then setElementRotation ( ... ) end end end ); طيب لازم الايفنت يكون سيرفر ؟ لاني جربته على الكلينت و ما ضببط لا موب لازم Marker = createMarker ( ... ) setElementAlpha( Marker , 0 ) -- 0 مخفي -- 255 ظاهر addEventHandler("onClientMarkerHit",root, function ( Hit ) if ( Hit == NameThePed ) and ( getElementType ( Hit ) == "Ped" ) then if NameThePed and isElement ( NameThePed ) then setElementRotation ( ... ) end end end ); لو تبي تستخدم كودي حق السيرفر انسخه من جديد عدلت فيه شي بسيط 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