iMr.TZ[W]ER Posted July 19, 2014 Share Posted July 19, 2014 السلام عليكم ورحمة الله تعالى وبركاته كيف حالكم يا شباب ؟ شباب شوفو ذا الكود addEventHandler("onClientVehicleEnter", getRootElement(), function(thePlayer, seat) if thePlayer == getLocalPlayer() then sound = playsound ("tzwer.mp3") end end ) يعني لما شخص يخش السيارة يطلع له صوت مب راضي يشتغل الصوت وابي الايفنت حق لما السيارة تمشي اذا ما عليكم امر Link to comment
UAEpro Posted July 19, 2014 Share Posted July 19, 2014 sound = playSound("tzwer.mp3") الاس لازم كابتل Link to comment
iMr.TZ[W]ER Posted July 19, 2014 Author Share Posted July 19, 2014 sound = playSound("tzwer.mp3")الاس لازم كابتل م ضبط Link to comment
Max+ Posted July 19, 2014 Share Posted July 19, 2014 --Client addEventHandler ( 'onClientVehicleEnter', root, function ( ) sound = playSound ( 'tzwer.mp3' ) setSoundVolume ( sound , 50 ) end ) Link to comment
iMr.TZ[W]ER Posted July 19, 2014 Author Share Posted July 19, 2014 --Client addEventHandler ( 'onClientVehicleEnter', root, function ( ) sound = playSound ( 'tzwer.mp3' ) setSoundVolume ( sound , 50 ) end ) م ضبط Link to comment
hassan.k.s.a Posted July 19, 2014 Share Posted July 19, 2014 addEventHandler("onClientVehicleEnter",root,function(plr) if ( plr == localPlayer ) then sound = playSound("tzwer.mp3") end end) تأكد من اسم الصوت Link to comment
TAPL Posted July 19, 2014 Share Posted July 19, 2014 تأكد انك حاطه كلينت و تأكد من اسم وصيغة و مسار ملف الصوت و تأكد انك ضايفه بالميتا ولا تنسى السطر ذا عشان ما يشتغل الصوت لكل الي جنبك if thePlayer == getLocalPlayer() then و بالنسبة إلى افنت لما السيارة تمشي ذا مافيه ممكن تستخدم الفنكشن ذا عشان تتحقق السيارة تمشي او لا getElementVelocity Link to comment
nxFairlywell Posted July 19, 2014 Share Posted July 19, 2014 تأكد انك حاط الصوت في الميتا "tzwer.mp3" /> Link to comment
acount deleted Posted July 19, 2014 Share Posted July 19, 2014 --Client addEventHandler ( 'onClientVehicleEnter', root, function ( ) sound = playSound ( 'tzwer.mp3' ) setSoundVolume ( sound , 50 ) end ) volume: A floating point number representing the desired volume level. Range is from 0.0 to 1.0 الفولم لازم يكون بين 0 و 1.0 اي اجزاء ما بين واحد و صفر بالعربي عدد عشري بين او 1 و 0 Link to comment
nxFairlywell Posted July 19, 2014 Share Posted July 19, 2014 اعداد الصووت volume 1 volume 1.1 volume 1.2 volume 1.3 volume 1.4 volume 1.5 volume 1.6 volume 1.7 volume 1.8 volume 1.9 Link to comment
acount deleted Posted July 19, 2014 Share Posted July 19, 2014 اعداد الصووتvolume 1 volume 1.1 volume 1.2 volume 1.3 volume 1.4 volume 1.5 volume 1.6 volume 1.7 volume 1.8 volume 1.9 خطا 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Link to comment
nxFairlywell Posted July 19, 2014 Share Posted July 19, 2014 اوه صح استبدل كل الواحدات ب اصفار Link to comment
iMr.TZ[W]ER Posted July 20, 2014 Author Share Posted July 20, 2014 تمت الافادة من فهواة على السكايب مشكورين كلكم Link to comment
TAPL Posted July 20, 2014 Share Posted July 20, 2014 تمت الافادة من فهواة على السكايب مشكورين كلكم وش كانت المشكلة؟ Link to comment
nxFairlywell Posted July 20, 2014 Share Posted July 20, 2014 ياخي الصوت مايطلع لما يخش الموتر هوه حاط if ( plr == localPlayer ) then بس مو معرف البلر وخرت الاف وضبط الكود , بس 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