Jump to content

كـود ؟


Recommended Posts

كدا رح يكرر الصوت لو ضغط ع الزر اكثر من مره

addEventHander('onClientGUIClick',root, 
function() 
if source == ButtonName then 
local sound = playSound("Music.mp3") 
setSoundVolume(sound, 0.5) 
guiSetEnabled(ButtonName,true) 
setTimer(function() 
guiSetEnabled(ButtonName,false) 
end,10000,1) 
end 
end) 
  
Link to comment

احسن من التايمر

addEventHandler ("onClientGUIClick",ButtonName,function () 
local Sound = playSound("sound.mp3") 
guiSetEnabled(ButtonName,false) 
end,false) 
addEventHandler ( "onClientSoundStopped", resourceRoot,function (oskar) 
if ( oskar == "finished" ) then 
guiSetEnabled(ButtonName,true) 
end 
end) 
Link to comment
احسن من التايمر

addEventHandler ("onClientGUIClick",ButtonName,function () 
local Sound = playSound("sound.mp3") 
guiSetEnabled(ButtonName,false) 
end,false) 
addEventHandler ( "onClientSoundStopped", resourceRoot,function (oskar) 
if ( oskar == "finished" ) then 
guiSetEnabled(ButtonName,true) 
end 
end) 

أبيه كل مايظغط F2

يظهر صوت مو كل مايضغط علا بوتون

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