Mr.OppS Posted July 21, 2018 Share Posted July 21, 2018 السلام عليكم, كيف الحال ؟ Button شباب سويت لوحة وسويت بيها اذا تضغط عليه يطلع صوت !! ولكن هناك مشكلة الصوت فقط أنا اسمـعه !! كيف أسوي جميع السيرفر يسمع؟ --كـليـنـت start = guiCreateButton(17, 67, 52, 22, "music", false, Tab4) addEventHandler("onClientGUIClick",root,function() if ( source == start ) then playSound("sh.mp3") end end end) شكراً Link to comment
#Major . Posted July 21, 2018 Share Posted July 21, 2018 لازم تسوي تراقر من الكلانت للسيرفر وبعدين من السيرفر للكلانت 1 Link to comment
Mr.OppS Posted July 21, 2018 Author Share Posted July 21, 2018 7 hours ago, *RayaN-Alharbi. said: لازم تسوي تراقر من الكلانت للسيرفر وبعدين من السيرفر للكلانت ! أطرح الأكواد Link to comment
Trefeor Posted July 21, 2018 Share Posted July 21, 2018 addEventHandler ( "onClientGUIClick", resourceRoot , function ( ) if ( source == start ) then triggerServerEvent ( "StartSound" , localPlayer ) end end ) addEvent ( "playSound_" , true ) addEventHandler ( "playSound_" , root , function ( ) if ( isElement ( sound ) ) then destroyElement ( sound ) end sound = playSound ( "sh.mp3" ) end ) --- Server addEvent ( "StartSound" , true ) addEventHandler ( "StartSound" , root , function ( ) triggerClientEvent (root,"playSound_",root) end ) Link to comment
Mr.OppS Posted July 21, 2018 Author Share Posted July 21, 2018 39 minutes ago, Trefeor said: addEventHandler ( "onClientGUIClick", resourceRoot , function ( ) if ( source == start ) then triggerServerEvent ( "StartSound" , localPlayer ) end end ) addEvent ( "playSound_" , true ) addEventHandler ( "playSound_" , root , function ( ) if ( isElement ( sound ) ) then destroyElement ( sound ) end sound = playSound ( "sh.mp3" ) end ) --- Server addEvent ( "StartSound" , true ) addEventHandler ( "StartSound" , root , function ( ) triggerClientEvent (root,"playSound_",root) 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