Jump to content

Help !!


Recommended Posts

Posted

السلام عليكم

ممكن احد يعطيني فنكشن/كود

اذا الاعب ظغط على البوتون

لزم ينتظر 10 ثواني علشان يظغط مرة ثانية ^^

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted
setTimer 
guiSetEnabled 

شكرآ

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted

ممكن تصحيح

function ChangeMyButtonEnabled ( )         
        if ( guiGetEnabled ( GUIEditor.button[1] ) == true ) then            
                guiSetEnabled ( GUIEditor.button[1], false )  
                setTimer(ChangeMyButtonEnabled ,200,1) 
        else               
                guiSetEnabled ( GUIEditor.button[1], true )  
        end 
end 
  

:lol:

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted
buttono = اسم الزر 
isPlayerClicked = false 
function click( Elbutton ) 
     if Elbutton == buttono then 
         if not ( isPlayerClicked == true ) then 
             timero = setTimer( Elfun, 10000, 1 ) 
             isPlayerClicked = true 
             guiSetEnabled( buttono, false ) 
          else return guiSetEnabled ( buttono, true ) end 
        end 
end 
addEventHandler("onClientGUIClick", root, click) 
  
function Elfun(     ) 
      if isPlayerClicked == true then 
          isPlayerClicked = false 
          guiSetEnabled( buttono, true ) 
      else return guiSetEnabled( buttono, false ) end 
end 

Discord ID : nxFairlywell#6895

 

Posted
buttono = اسم الزر 
isPlayerClicked = false 
function click( Elbutton ) 
     if Elbutton == buttono then 
         if not ( isPlayerClicked == true ) then 
             timero = setTimer( Elfun, 10000, 1 ) 
             isPlayerClicked = true 
             guiSetEnabled( buttono, false ) 
          else return guiSetEnabled ( buttono, true ) end 
        end 
end 
addEventHandler("onClientGUIClick", root, click) 
  
function Elfun(     ) 
      if isPlayerClicked == true then 
          isPlayerClicked = false 
          guiSetEnabled( buttono, true ) 
      else return guiSetEnabled( buttono, false ) end 
end 

ما زبظ الكود !

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted
buttono = اسم الزر 
isPlayerClicked = false 
function click( Elbutton ) 
     if Elbutton == buttono then 
         if not ( isPlayerClicked == true ) then 
             timero = setTimer( Elfun, 10000, 1 ) 
             isPlayerClicked = true 
             guiSetEnabled( buttono, false ) 
          else return guiSetEnabled ( buttono, true ) end 
        end 
end 
addEventHandler("onClientGUIClick", root, click) 
  
function Elfun(     ) 
      if isPlayerClicked == true then 
          isPlayerClicked = false 
          guiSetEnabled( buttono, true ) 
      else return guiSetEnabled( buttono, false ) end 
end 

ما زبظ الكود !

كتبت اسم الزر ؟ ..

Discord ID : nxFairlywell#6895

 

Posted
buttono = GUIEditor.button[1] 
isPlayerClicked = false 
function click( Elbutton ) 
     if Elbutton == buttono then 
         if not ( isPlayerClicked == true ) then 
             timero = setTimer( Elfun, 10000, 1 ) 
             isPlayerClicked = true 
             guiSetEnabled( buttono, false ) 
          else return guiSetEnabled ( buttono, true ) end 
        end 
end 
addEventHandler("onClientGUIClick", root, click) 
  
function Elfun(     ) 
      if isPlayerClicked == true then 
          isPlayerClicked = false 
          guiSetEnabled( buttono, true ) 
      else return guiSetEnabled( buttono, false ) end 
end 

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted

addEventHandler ("onClientGUIClick", root, function () 
 if (source == button) then 
   outputChatBox ("Worked, Please wait 10 secs to press the button again.", 0, 255, 0) 
   guiSetEnabled (button, false) 
   setTimer (function () guiSetEnabled (button, true) end, 10000,1) 
  end 
end 
) 
Posted
addEventHandler ("onClientGUIClick", root, function () 
 if (source == button) then 
   outputChatBox ("Worked, Please wait 10 secs to press the button again.", 0, 255, 0) 
   guiSetEnabled (button, false) 
   setTimer (function () guiSetEnabled (button, true) end, 10000,1) 
  end 
end 
) 

شكرآ :):mrgreen::mrgreen::mrgreen:

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

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