Jump to content

طلب شرح


Mhmd.z

Recommended Posts

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

ابي شرح كيف اربط حدثين مع بعض ...

onClientGUIClick 
onClientPlayerWasted 

ابي لو الاعب ضغط الزر ذا بس يموت ييجيه كلام بالشات , لو ما كان ضاغطه ما ييجيه الكلام ....

Link to comment
addEventHandler("onClientGUIClick", guiRoot, 
function() 
    if source == theButton then 
        clicked = true 
    end 
end) 
  
addEventHandler("onClientPlayerWasted", localPlayer, 
function() 
    if clicked then 
        outputChatBox("You died!", 255, 0, 0) 
        clicked = nil 
    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...