Jump to content

x[ مشكلة ]x في مود لوحة الصوت


Recommended Posts

السلام عليكم,
كيف الحال ؟

 

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
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
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 )  

 

كفووو,عاشت أيدك
تسلم حبى:x

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...