xb0 Posted May 25, 2015 Share Posted May 25, 2015 السلام عليكم ورحمه الله وبركاته ابي الكود ذا الي معروف من عنوانه ان اول ظغطه يقفل الزر وبعد 5 ثواني يفتح بنتضار الردود Link to comment
' A F . Posted May 25, 2015 Share Posted May 25, 2015 setTimer guiSetEnabled edit : اذا تبيني آسويله لك كلمني Link to comment
xb0 Posted May 25, 2015 Author Share Posted May 25, 2015 (edited) مثال setTimer(guiSetEnabled ( MyButton,4000,1, true ) ؟؟؟؟؟ واخلي الزر مقفل من نفس البرمجه يعني false Edited May 25, 2015 by Guest Link to comment
' A F . Posted May 25, 2015 Share Posted May 25, 2015 (edited) مأني متآكد addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == dd ) then guiSetEnabled(dd,false) setTimer(guiSetEnabled, 5000, 1, dd,true ) end end) Edited May 25, 2015 by Guest Link to comment
shwaeki Posted May 25, 2015 Share Posted May 25, 2015 ^ مو معرف الزر يلي بنفتح في التايمر Link to comment
xb0 Posted May 25, 2015 Author Share Posted May 25, 2015 ماشتغل الكود ظغطت على الزر المحده قام انقفل ومافتح Link to comment
' A F . Posted May 25, 2015 Share Posted May 25, 2015 (edited) عدلت فوق Edited May 25, 2015 by Guest Link to comment
shwaeki Posted May 25, 2015 Share Posted May 25, 2015 addEventHandler("onClientGUIClick",Button, function ( ) guiSetEnabled(Button,false) setTimer(guiSetEnabled, 5000, 1, Button, true ) end, false) Link to comment
xb0 Posted May 25, 2015 Author Share Posted May 25, 2015 addEventHandler("onClientGUIClick",Button, function ( ) guiSetEnabled(Button,false) setTimer(guiSetEnabled, 5000, 1, Button, true ) end, false) ماسوى شي Link to comment
xb0 Posted May 25, 2015 Author Share Posted May 25, 2015 خلاص هذا ضبط addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetEnabled(GUIEditor.button[2],false) setTimer(guiSetEnabled, 5000, 1, GUIEditor.button[2],true ) end end) Link to comment
xb0 Posted May 25, 2015 Author Share Posted May 25, 2015 جرب كودي الي فوق عدلته ايوه خلاص شكرا على المساعده Link to comment
Mr.R Posted May 25, 2015 Share Posted May 25, 2015 يقدر يقول كذا بعد addEventHandler( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then if ( isTimer ( Timer ) ) then return end Timer = setTimer ( function ( ) end, 5000, 1 ) end end ) Link to comment
</Mr.Tn6eL> Posted May 25, 2015 Share Posted May 25, 2015 سهلة ماتحتاج سحر انا مسويلك الكود على أنه تضيف اكثر من زر Table = { } local time = 3000 -- غير الوقت button = guiCreateButton(...) -- حط الزر هنا Table[button] = true -- button2 = guiCreateButton(...) -- ازرار اكثر -- Table[button2] = true addEventHandler("onClientGUIClick", resourceRoot, function( ) if Table[source] then guiSetEnabled(source, false) setTimer(guiSetEnabled, time, 1, source, true) 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