KaZoOzh Posted June 3, 2013 Posted June 3, 2013 سسسلأم عليككم ورحمه الله وبركاته المهم : ابي اذ وحد ضغط علي الزر م يشتغل لين يسجل وبعد اتسجل يشتغل ازر انشالله فهمتوني
AHMAD1234 Posted June 3, 2013 Posted June 3, 2013 ممكن مثال ؟ function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then guiSetEnabled ( GUIEditor_Button[1], false ) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick)
S4MuEL Posted June 3, 2013 Posted June 3, 2013 button = guiCreateButton ( .... ) - نسوي زر , addEventHandler("onClientGUIClick", button, - لمآ يضغط آللآعب ع آلزر .. function() - وظيفةة guiSetEnabled(button,false) - يطفي آلزر end,false) - غلقق آلوظيفةة ! وآلحدث
S4MuEL Posted June 3, 2013 Posted June 3, 2013 guiSetEnabled(button,false) setTimer(guiSetEnabled,9000,1,button,true) 9000 = 9 ثوآني ,
yazan Posted June 3, 2013 Posted June 3, 2013 setTimer ( function() guiSetEnabled(button,true) end, 5000, 1 )
AHMAD1234 Posted June 3, 2013 Posted June 3, 2013 function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then guiSetEnabled ( GUIEditor_Button[1], false ) setTimer ( guiSetEnabled, 3000, 1, GUIEditor_Button[1], true ) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick)
فاّرس Posted June 3, 2013 Posted June 3, 2013 function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then guiSetEnabled ( GUIEditor_Button[1], false ) setTimer ( guiSetEnabled, 3000, 1, GUIEditor_Button[1], true ) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) ممكن تطلع على المنبر وتشرح لنا ليه حاط button, state, absoluteX, absoluteYe ؟ + ليه حاط بالحدث اسم الزر ومسوي شرط للزر؟
Blaawee Posted June 3, 2013 Posted June 3, 2013 (edited) local button = guiCreateButton ( .... ) - نسوي زر , addEventHandler( 'onClientGUIClick', button, - لمآ يضغط آللآعب ع آلزر .. function( ) - وظيفةة guiSetEnabled( source, not guiGetEnabled ( source ) ) - يطفي آلزر end, false ) - غلقق آلوظيفةة ! وآلحدث -- function onClientClick (button, state, absoluteX, absoluteYe) if ( source == GUIEditor_Button[ 1 ] ) then guiSetEnabled ( source, false ) setTimer ( guiSetEnabled, 3000, 1, source, true ) end end addEventHandler ("onClientGUIClick", guiRoot, onClientClick ) Edited June 3, 2013 by Guest
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