KaZoOzh Posted June 3, 2013 Share Posted June 3, 2013 سسسلأم عليككم ورحمه الله وبركاته المهم : ابي اذ وحد ضغط علي الزر م يشتغل لين يسجل وبعد اتسجل يشتغل ازر انشالله فهمتوني Link to comment
AHMAD1234 Posted June 3, 2013 Share 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) Link to comment
S4MuEL Posted June 3, 2013 Share Posted June 3, 2013 button = guiCreateButton ( .... ) - نسوي زر , addEventHandler("onClientGUIClick", button, - لمآ يضغط آللآعب ع آلزر .. function() - وظيفةة guiSetEnabled(button,false) - يطفي آلزر end,false) - غلقق آلوظيفةة ! وآلحدث Link to comment
KaZoOzh Posted June 3, 2013 Author Share Posted June 3, 2013 مشكور وما قصرت يعطاك عافيه Link to comment
KaZoOzh Posted June 3, 2013 Author Share Posted June 3, 2013 طيب أبي وقت ورجع ينفتح الزار Link to comment
S4MuEL Posted June 3, 2013 Share Posted June 3, 2013 guiSetEnabled(button,false) setTimer(guiSetEnabled,9000,1,button,true) 9000 = 9 ثوآني , Link to comment
yazan Posted June 3, 2013 Share Posted June 3, 2013 setTimer ( function() guiSetEnabled(button,true) end, 5000, 1 ) Link to comment
AHMAD1234 Posted June 3, 2013 Share 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) Link to comment
فاّرس Posted June 3, 2013 Share 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 ؟ + ليه حاط بالحدث اسم الزر ومسوي شرط للزر؟ Link to comment
فاّرس Posted June 3, 2013 Share Posted June 3, 2013 Parameters ! .. تشوف ان لها فايده بالكود ؟ Link to comment
Blaawee Posted June 3, 2013 Share 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 Link to comment
S4MuEL Posted June 3, 2013 Share Posted June 3, 2013 لآ , + زي مآ ققلت , بآلثآنيةة .. 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