Dr.Ah[M]ed<3 Posted July 29, 2014 Share Posted July 29, 2014 هلا شباب بدي اعرف كيف احط اغنية في قيم مود\ انا لقيت في الوكي بس اصوات لما حد يموت ابية للقيم مود https://wiki.multitheftauto.com/wiki/StopSound https://wiki.multitheftauto.com/wiki/PlaySound https://wiki.multitheftauto.com/wiki/PlaySound3D ذول اصوات لما حد يجي يموت Link to comment
#DRAGON!FIRE Posted July 29, 2014 Share Posted July 29, 2014 playSound - destroyElement Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 (edited) زاحف ادخل الويكي ذول اصواتت لما حد يجي يمووت انا ابية مثل لما تدخل سيرفر و يخلص تحميل ويبدا جيم مود يجي اغنية function wasted (killer, weapon, bodypart) local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) --add the event handler Edited July 29, 2014 by Guest Link to comment
#DRAGON!FIRE Posted July 29, 2014 Share Posted July 29, 2014 طيب ؟ وش دخل يوم يموت هذا فنكشن يشغل لكـ صوت وش دخل يوم يموت . Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 شوف كود function wasted (killer, weapon, bodypart) local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) --add the event handler Link to comment
#DRAGON!FIRE Posted July 29, 2014 Share Posted July 29, 2014 هذا مجرد مثال لا اكثر -___- انت فاهم غلط المثال بس كذا عشان تفهم موب يعني انه خلاص بس يموت !! Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 function wasted (killer, weapon, bodypart) ذا بدي اغير منة wasted اخلية يشغل اغنية Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 local sound = playSound("sound.mp3") سوية بس هيك Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 طيب الستر هذا addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) --add the event handler اخلية addEventHandler("onClientPlayerJoin", getLocalPlayer(), Join) --add the event handler ??? Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 لا تحطة في حدث بيشتغ يا حالة او اذا بدك استخدم "onClientResourceStart" Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 يعني كذا addEventHandler("onClientResourceStart", resourceRoot, Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 تقدر تسوية هيك addEventHandler( "onClientResourceStart", getRootElement( ), function () sound = playSound("sounds.mp3") end ) او تسوية هيك من دون حدث local sound = playSound("sound.mp3") Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end يعني كذا ؟؟ Link to comment
Max+ Posted July 29, 2014 Share Posted July 29, 2014 --- كلينت addEvent ( 'Sound', true ) addEventHandler ( 'Sound', root, function ( ) local sound = playSound("sounds/join.mp3") setSoundVolume(sound, 0.5) end ) addEvent ( 'Stop', true ) addEventHandler ( 'Stop', root, function ( ) destroyElement ( sound ) end ) --- سيرفر addEventHandler ( 'onPlayerJoin', resourceRoot, function ( ) triggerClientEvent ( source, 'Sound', source ) end ) addEventHandler ( 'onPlayerSpawn', resourceRoot, function ( ) triggerClientEvent ( source, 'Stop', source ) end ) Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 --- كلينت addEvent ( 'Sound', true ) addEventHandler ( 'Sound', root, function ( ) local sound = playSound("sounds/join.mp3") setSoundVolume(sound, 0.5) end ) addEvent ( 'Stop', true ) addEventHandler ( 'Stop', root, function ( ) destroyElement ( sound ) end ) --- سيرفر addEventHandler ( 'onPlayerJoin', resourceRoot, function ( ) triggerClientEvent ( source, 'Sound', source ) end ) addEventHandler ( 'onPlayerSpawn', resourceRoot, function ( ) triggerClientEvent ( source, 'Stop', source ) end ) يا ايش كل هاد ثاني اشي كيف بدة يشغل الموسيقى اذا ما كانت نازلة على الجهاز Link to comment
Max+ Posted July 29, 2014 Share Posted July 29, 2014 onClientPlayerJoin : local player joins the server before their client-side resources are started يعني تشتغل السكربت قبل مايخش الاعب السيرفر اذا يبيه على طول بعد مايخش الاعب يغير السكربت سيرفر زي ماعطيته . . Link to comment
Max+ Posted July 29, 2014 Share Posted July 29, 2014 # لازم تعرف الصوت بالميتا ! اكيد , ويتأكد نفس المسار اللي به الصوت يحطه نفسه بالميتا Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 (edited) onClientPlayerJoin : local player joins the server before their client-side resources are startedيعني تشتغل السكربت قبل مايخش الاعب السيرفر اذا يبيه على طول بعد مايخش الاعب يغير السكربت سيرفر زي ماعطيته . . و هاد شو تقدر تسوية هيك addEventHandler( "onClientResourceStart", getRootElement( ), function () sound = playSound("sounds.mp3") end ) او تسوية هيك من دون حدث local sound = playSound("sound.mp3") و يشغل المود بعد ما يحمل + كودك ما راح يطفي الموسيقى Edited July 29, 2014 by Guest Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 يعني اغنية لما يسجل اغنية تروح ؟؟ Link to comment
Max+ Posted July 29, 2014 Share Posted July 29, 2014 onClientPlayerJoin : local player joins the server before their client-side resources are startedيعني تشتغل السكربت قبل مايخش الاعب السيرفر اذا يبيه على طول بعد مايخش الاعب يغير السكربت سيرفر زي ماعطيته . . و هاد شو تقدر تسوية هيك addEventHandler( "onClientResourceStart", getRootElement( ), function () sound = playSound("sounds.mp3") end ) او تسوية هيك من دون حدث local sound = playSound("sound.mp3") و يشغل المود بعد ما يحمل + كودك ما راح يطفي الموسيقى انا ابية مثل لما تدخل سيرفر و يخلص تحميلويبدا جيم مود يجي اغنية + الا يطفي الموسيقي بعد ماالاعب يخش اللعبه يعني يختار شخصية او يبدا اللعب 'onPlayerSpawn' يقدر يسوي تايمر اذا يبي . . . Link to comment
Simba Posted July 29, 2014 Share Posted July 29, 2014 يعني اغنية لما يسجل اغنية تروح ؟؟ ما فهمت وش تقصد ؟؟ Link to comment
Dr.Ah[M]ed<3 Posted July 29, 2014 Author Share Posted July 29, 2014 يعني لما الاعب يدخل سيرفر اوكي واغنية تشتغل لما تحميلة يخلص بيجي لة لوحة تسجيل تمام لما يسوي تسجيل اغنية تروح ؟؟ انا ابية كذا Link to comment
shwaeki Posted July 29, 2014 Share Posted July 29, 2014 (edited) الا يطفي الموسيقي بعد ماالاعب يخش اللعبه يعني يختار شخصية او يبدا اللعب 'onPlayerSpawn' يقدر يسوي تايمر اذا يبي . . . انتا عامل لوكل عشين هيك ما راح يطفي شوف viewtopic.php?f=164&t=51228 Edited July 29, 2014 by Guest 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