Jump to content

طلب كود اغلاق الزر


Recommended Posts

السلام عليكم ورحة الله وبركاتهة

اخباركمَ ؟؟ أن شاءالله ماتشككون من بآس

المههمَ

انا سويت لوحة فيها كم زر وكل شي كامل فيهآ بس يوم اضغط على الزر تفتح النافذه

طلبي يوم اضغط على الزر مره ثانيه تختفي ويوم اضغط مره ثالثه تضهر يعني تضهر وتختفي بنفس الزر

.. شكرآً لمن اراد مسآعدتي

:oops:

Link to comment

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
  
  
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 
) 
  
  

سويت كذآ ..وما شتغلت اللوحة ... :oops:

Link to comment

وعليكم السلام ورحمة الله وبركاته

  
  
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
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
وعليكم السلام ورحمة الله وبركاته
  
  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...