Mr.OppS

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)

 

 

شكراً

Share this post


Link to post

لازم تسوي تراقر من الكلانت للسيرفر وبعدين من السيرفر للكلانت

  • Like 1

Share this post


Link to post
7 hours ago, *RayaN-Alharbi. said:

لازم تسوي تراقر من الكلانت للسيرفر وبعدين من السيرفر للكلانت

! أطرح الأكواد

Share this post


Link to post
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 )  

 

Share this post


Link to post
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

Share this post


Link to post

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.