MR:SADIQ Posted April 27, 2013 Share Posted April 27, 2013 اول شي : السلام عليكم ثاني شي: باك واخيراً ابي فكشن اذا لمس الماركر يشغل صوت للاعب فقط Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 createMarker() "onClientMarkerHit" getLocalPlayer() playSound() Link to comment
MR:SADIQ Posted April 27, 2013 Author Share Posted April 27, 2013 marker = createMarker ( 249,-1884,1,"cylinder",2,0,0,255,100 ) addEventHandler("onMarkerHit",root, playSound("/1.mp3") addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) ؟؟ Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 لم يتم التجربة .. كلنت local marker = createMarker ( 249,-1884,1,"cylinder",2,0,0,255,100 ) addEventHandler("onClientMarkerHit",marker, function ( player ) if ( player == getLocalPlayer() ) then if ( ( sound ) and isElement ( sound ) ) then destroyElement ( sound ) end local sound = playSound("FilePath",true) end end ) ... Link to comment
MR:SADIQ Posted April 27, 2013 Author Share Posted April 27, 2013 ذا ادش الماركر مايشتغل الصوت Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 كلنت؟ ومتأكد من نوع الملف؟ Link to comment
MR:SADIQ Posted April 27, 2013 Author Share Posted April 27, 2013 بس مشكور شتغل كان عندي خطاً بلميتا Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 بـ التوفيق حيـاكـ الله .. : ) Link to comment
فاّرس Posted April 27, 2013 Share Posted April 27, 2013 برستيجج, هو ما قال يلغي الصوت, انت مسوي destroyElement = ؟ Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 تحقق عشان مايكرر كل مايلمسة .. if ( ( sound ) and ( isElement ( sound ) ) then Link to comment
MR:SADIQ Posted April 27, 2013 Author Share Posted April 27, 2013 بس سوال اذا ممكن شلون اخلي اكثر من ماركر Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 قصدك مثلا 5 ماركرات وكلهم يشغلون نفس الصوت؟ 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