xX|KeMo|Xx Posted July 19, 2012 Share Posted July 19, 2012 سلام عليكم 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
top sniper Posted July 19, 2012 Share Posted July 19, 2012 (edited) 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 July 19, 2012 by Guest Link to comment
TAPL Posted July 19, 2012 Share Posted July 19, 2012 ياليت ترتب الكود و تشيل المسافات الي مالها داعي 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
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