Jump to content

طلب كود |<


Recommended Posts

ممكن مثال ؟
     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

button = guiCreateButton ( .... ) - نسوي زر , 
addEventHandler("onClientGUIClick", button, - لمآ يضغط آللآعب ع آلزر .. 
   function() - وظيفةة 
  guiSetEnabled(button,false) - يطفي آلزر 
 end,false) - غلقق آلوظيفةة ! وآلحدث  
Link to comment
         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
         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 ؟

+ ليه حاط بالحدث اسم الزر ومسوي شرط للزر؟

:lol:

Link to comment
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 by Guest
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...