Jump to content

مساعده


Recommended Posts

سلام عليكم

  
 addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  GUIEditor_Button[10] ) then  
  
 playSound("all/alfat7a.wav",getLocalPlayer") 
  
end  
  
end  
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==   GUIEditor_Button[11] ) then  
  
 هنا ابيه يسكر الصوت 
  
end  
  
end  
  
  
 ) 
 

ابي اذا ظعط عللا زر اكس يسكر الصوت

Link to comment
  
 addEventHandler ("onClientGUIClick", getRootElement(), 
  
function() 
  
if ( source ==  GUIEditor_Button[10] ) then  
  
kemo = playSound("all/alfat7a.wav") 
  
end  
  
end  
) 
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function() 
  
if ( source ==   GUIEditor_Button[11] ) then  
stopSound ( kemo ) 
  
end  
  
end  
  
  
 ) 
  

Edited by Guest
Link to comment

ياليت ترتب الكود و تشيل المسافات الي مالها داعي

addEventHandler("onClientGUIClick", root, 
function() 
     if (source == GUIEditor_Button[10]) then 
          kemo = playSound("all/alfat7a.wav") 
     elseif (source == GUIEditor_Button[11]) then 
          stopSound(kemo) 
     end 
end) 

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