С ō π α πღ Posted December 25, 2013 Share Posted December 25, 2013 السلام عليكم ورحة الله وبركاتهة اخباركمَ ؟؟ أن شاءالله ماتشككون من بآس المههمَ انا سويت لوحة فيها كم زر وكل شي كامل فيهآ بس يوم اضغط على الزر تفتح النافذه طلبي يوم اضغط على الزر مره ثانيه تختفي ويوم اضغط مره ثالثه تضهر يعني تضهر وتختفي بنفس الزر .. شكرآً لمن اراد مسآعدتي Link to comment
The Killer Posted December 25, 2013 Share Posted December 25, 2013 addEventHandler("onClientGUIClick", root, function () if (source == button) and guiGetText(button) == "فتح" then guiSetVisible(اسم النافذة, true) guiSetText(button, "اغلاق") elseif guiGetText(button) == "اغلاق" then guiSetVisible(اسم النافذة, false) guiSetText(button, "فتح") end end ) Link to comment
С ō π α πღ Posted December 25, 2013 Author Share Posted December 25, 2013 addEventHandler("onClientGUIClick", root, function () if (source == Conan1) and guiGetText(Conan1) == "فتح" then guiSetVisible(wnd, true) guiSetText(Conan1, "اغلاق") elseif guiGetText(Conan1) == "اغلاق" then guiSetVisible(wnd, false) guiSetText(Conan1, "فتح") end end ) سويت كذآ ..وما شتغلت اللوحة ... Link to comment
Booo Posted December 25, 2013 Share Posted December 25, 2013 وعليكم السلام ورحمة الله وبركاته btn_o = false addEventHandler("onClientGUIClick", root, function () if (source == Conan1) and btn_o == false then btn_o = true guiSetVisible(wnd, true) guiSetText(Conan1, "اغلاق") elseif (source == Conan1) and btn_o ==true then btn_o = false guiSetVisible(wnd, false) guiSetText(Conan1, "فتح") end end ) Link to comment
Bssol Posted December 25, 2013 Share Posted December 25, 2013 function onShowButtonClick() if ( source == Conan1 ) then local state = not guiGetVisible(wnd) guiSetVisible(wnd, state) if ( state ) then guiSetText(Conan1, "اغلاق" ) else guiSetText(Conan1, "فتح") end end end addEventHandler("onClientGUIClick", root, onShowButtonClick ) Link to comment
С ō π α πღ Posted December 25, 2013 Author Share Posted December 25, 2013 وعليكم السلام ورحمة الله وبركاته btn_o = false addEventHandler("onClientGUIClick", root, function () if (source == Conan1) and btn_o == false then btn_o = true guiSetVisible(wnd, true) guiSetText(Conan1, "اغلاق") elseif (source == Conan1) and btn_o ==true then btn_o = false guiSetVisible(wnd, false) guiSetText(Conan1, "فتح") end end ) شغآل يعطيكَ الف ععافيهة ماقصرت لبى قلبكَك function onShowButtonClick() if ( source == Conan1 ) then local state = not guiGetVisible(wnd) guiSetVisible(wnd, state) if ( state ) then guiSetText(Conan1, "اغلاق" ) else guiSetText(Conan1, "فتح") end end end addEventHandler("onClientGUIClick", root, onShowButtonClick ) لأههنت بسول عالمساعدهـ addEventHandler("onClientGUIClick", root, function () if (source == button) and guiGetText(button) == "فتح" then guiSetVisible(اسم النافذة, true) guiSetText(button, "اغلاق") elseif guiGetText(button) == "اغلاق" then guiSetVisible(اسم النافذة, false) guiSetText(button, "فتح") end end ) يعطيكَك العافيه ع مساعدتكَ شكراً لـكم .. Booo لأهنت 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