Prova501 Posted July 19, 2013 Share Posted July 19, 2013 السلآم عليكم و رحمة الله و بركآته function guiToggleVisible ( ) if ( guiGetVisible ( ALSHBH.staticimage[1] ) == false ) then guiSetVisible ( ALSHBH.staticimage[1], true ) guiSetVisible ( ALSHBH.staticimage[12], true ) showCursor(true) else guiSetVisible ( ALSHBH.staticimage[1], false ) guiSetVisible ( ALSHBH.staticimage[12], false ) showCursor(false) end end bindKey ( "f1", "down", guiToggleVisible ) أبيها اذا تفتح شوي شوي يعني موب ع طول و اذا تسكر شوي شوي .. Link to comment
King12 Posted July 19, 2013 Share Posted July 19, 2013 (edited) - Edited July 19, 2013 by Guest Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 -- Client Side ! bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else guiSetVisible ( Wnd, true ) guiSetAlpha ( Wnd, 1 ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) الإستبدآل , السطر الثالث + السابع + التاسع + العاشر + الثاني عشر ( 12 ) + الرابع عشر ( 14 ) + الخامس عشر ( 15 ) ذذ , Wnd = اسم النافذة # Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 اخوي ذا بيست هذا الي عطيتني اذا يفتح يفتح عآآدي بدون تغيرات لاكن اذا سكرته يتسكر شوي شوي ... #♡ ZĂ7Ḟ, 3NAD, 3ssol, βľÃćҝ ĐяÊăM أحد منكم يرد Link to comment
!#NssoR_) Posted July 19, 2013 Share Posted July 19, 2013 (edited) جرب bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( true ) guiSetInputEnabled ( true ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 1.00 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, true ) end end ) Edited July 19, 2013 by Guest Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 جرب bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( true ) guiSetInputEnabled ( true ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, true ) end end ) أول ما يفتح يتسكر ... اول ما اضغط ع الزر f3 يفتح و يتسكر .... بالحآلة .. Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 أول ما اضغط عليه يظهر السهم و اذا ظغطت ثآني يظهر و يققل ... Link to comment
!#NssoR_) Posted July 19, 2013 Share Posted July 19, 2013 bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( true ) guiSetInputEnabled ( true ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha + 1.00 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, true ) end end ) اعتقد انها راح تضبط !! Link to comment
jafar Posted July 19, 2013 Share Posted July 19, 2013 (edited) bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else if ( isTimer ( TheFadeTimer2 ) ) then return end TheFadeTimer2 = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha + 0.05 ) end, 50, 20) guiSetVisible( Wnd, true ) guiSetAlpha ( Wnd, 0 ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) Edited July 19, 2013 by Guest Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 لم يتم التجربة local gui = ALSHBH.staticimage[1] guiSetAlpha ( gui, 0 ) startTimer = function ( stats ) local Alpha = guiGetAlpha ( gui ) if stats == "hide" then if Alpha > 0 then guiSetAlpha ( gui, Alpha - 0.05 ) else guiSetVisible ( gui, false ) killTimer ( aTimer ) end else if Alpha < 0.9 then guiSetAlpha ( gui, Alpha + 0.05 ) else showCursor ( true ) guiSetInputEnabled ( true ) killTimer ( aTimer ) end end end bindKey ( "f1", "down", function ( ) if guiGetVisible ( gui ) then if isTimer ( aTimer ) then killTimer ( aTimer ) end showCursor ( false ) guiSetInputEnabled ( false ) aTimer = setTimer ( startTimer, 150, 0, "hide" ) else if isTimer ( aTimer ) then killTimer ( aTimer ) end guiSetVisible ( gui, true ) aTimer = setTimer ( startTimer, 150, 0, "show" ) end end ) Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 اخوي نآصر الكود حقك فيه خطأ جعفر ضآبط ... بس اذا خلص من انه يفتح شوي شوي ابيه يسير ال alpha 100 >> Link to comment
jafar Posted July 19, 2013 Share Posted July 19, 2013 عدلت ردي , اذا ماضبط جرب كود عناد Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 >> كود أخوي عنآد مآ يفتح النآفذة >> جعفر ضآبط 100% شكرا لكل الردود و المسآعدة .. Link to comment
jafar Posted July 19, 2013 Share Posted July 19, 2013 >> كود أخوي عنآد مآ يفتح النآفذة>> جعفر ضآبط 100% شكرا لكل الردود و المسآعدة .. حياك الله Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 وهي توقف الوظيفة ذذ return كنت مستخدم 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