Jump to content

thx to Mr.Pres[T]ege|ربط Scrollbar بالصوت


Recommended Posts

addEventHandler("onClientGUIScroll",ScrollBar, 
function( )  
  local Scroll = guiScrollBarGetScrollPosition(ScrollBar) 
  Volume = Scroll / 100 
if not isElement( sound ) then 
    return  
  end 
  setSoundVolume(sound,Volume) 
end,false 
) 
  

ScrollBar = السكرول حقكـ #

sound = المتغير حق الصوت

Link to comment
addEventHandler("onClientGUIScroll",ScrollBar, 
function( )  
  local Scroll = guiScrollBarGetScrollPosition(ScrollBar) 
  Volume = Scroll / 100 
if not isElement( sound ) then 
    return  
  end 
  setSoundVolume(sound,Volume) 
end,false 
) 
  

ScrollBar = السكرول حقكـ #

sound = المتغير حق الصوت

:mrgreen: لو انقز ما كنت سويتهه

تسسسلم يعطيك العافيةة

Edited by Guest
Link to comment
addEventHandler("onClientGUIScroll",ScrollBar, 
function( )  
  local Scroll = guiScrollBarGetScrollPosition(ScrollBar) 
  Volume = Scroll / 100 
if not isElement( sound ) then 
    return  
  end 
  setSoundVolume(sound,Volume) 
end,false 
) 
  

ScrollBar = السكرول حقكـ #

sound = المتغير حق الصوت

ضبطت ScrollBar

لكن ما عرفت وش يعني متغير الصوت ؟

Link to comment
addEventHandler("onClientGUIScroll",GUIEditor_Scrollbar[1], 
function( ) 
  local Scroll = guiScrollBarGetScrollPosition(GUIEditor_Scrollbar[1]) 
  Volume = Scroll / 100 
if not isElement( "1.mp3" ) then 
    return 
  end 
  setSoundVolume("1.mp3",Volume) 
end,false 
) 

Link to comment

كذآ خطأ !!

مثآل :

MySound = playSound("1.mp3",true) 
addEventHandler("onClientGUIScroll",GUIEditor_Scrollbar[1], 
function( ) 
  local Scroll = guiScrollBarGetScrollPosition(GUIEditor_Scrollbar[1]) 
  Volume = Scroll / 100 
if not isElement( MySound ) then 
    return 
  end 
  setSoundVolume(MySound,Volume) 
end,false 
) 

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