Jump to content

طلب كود عند ضغط على زر يتقفل


Recommended Posts

مشكوووور ياخوي مستر صفاء

7 = ح

2 = ء

:lol::lol::lol::lol::lol::lol::lol::lol::lol:

معليش :lol::lol:

والله خربطة :?

تحطون اسمائكم فيها ارقام؟؟

اول مرة اشوفها في تاريخ اللغة الانجليزية :redhotevil:

هذي انقليزيمعرب

2 = ء

3 = ع

'3 = غ

4 = ا

5 = خ

6 = ط

7 = ح

8 = ق

9 = ص

'9 = ض

Link to comment
local button = ButtonName -- اسم الزر 
  
addEventHandler ("onClientGUIClick", resourceRoot, 
function () 
    if source == button then 
        guiSetEnabled ( button, false ) 
        setTimer ( guiSetEnabled ( button, true ), 50000, 1 ) 
    end 
end) 

Link to comment
local button = ButtonName -- اسم الزر 
  
addEventHandler ("onClientGUIClick", resourceRoot, 
function () 
    if source == button then 
        guiSetEnabled ( button, false ) 
        setTimer ( guiSetEnabled ( button, true ), 50000, 1 ) 
    end 
end) 

عندك خطأ في setTimer

  
addEventHandler ("onClientGUIClick", root, 
function () 
    if (source == button) then 
             guiSetEnabled(source, false) 
             setTimer(guiSetEnabled, 5*60*1000, 1, source, true ) 
    end 
end) 

Link to comment
Husain-[25]~

ليش مسحت Local Button

؟؟؟؟؟؟

لانه زيادة اكواد فقط

حط اسم الزر في التحقق مباشرة

الكود مااشتغل :roll::cry:

تأكد انك غيرت button

لاسم الزر

Link to comment
guiSetEnabled( اسم الزر, false ) -- الزر 
setTimer ( guiSetEnabled, 5000, 1, الزر, true ) 

بس كذا تراه بسيط ~

طبعاً ضيفه للافنت

onClientGUIClick 

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
    if ( source == slap ) then -- نحدد الزر 
guiSetEnabled( اسم الزر, false ) -- الزر 
setTimer ( guiSetEnabled, 5000, 1, الزر, true ) 
end  
     end 
           ) 

Link to comment

بسيطة :

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
    if ( source == اسم الزر) then -- نحدد الزر 
setElementHealth ( localPlayer,100) 
guiSetEnabled( اسم الزر, false ) -- الزر 
setTimer ( guiSetEnabled, 5000, 1, الزر, true ) 
end 
     end 
           ) 

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