Mhmd.z Posted August 22, 2015 Share Posted August 22, 2015 السلام عليكم ورحمة الله وبركاته ابي شرح كيف اربط حدثين مع بعض ... onClientGUIClick onClientPlayerWasted ابي لو الاعب ضغط الزر ذا بس يموت ييجيه كلام بالشات , لو ما كان ضاغطه ما ييجيه الكلام .... Link to comment
TAPL Posted August 22, 2015 Share Posted August 22, 2015 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
Simba Posted August 22, 2015 Share Posted August 22, 2015 addEventHandler("onClientGUIClick", guiRoot, هذي ايش يا تابل guiRoot ? Link to comment
Mhmd.z Posted August 22, 2015 Author Share Posted August 22, 2015 شكرا ي تابل guiRoot = اي زر بالمود بعدها تحدد الزر الي تبيه عن طريق if source == button then Link to comment
TAPL Posted August 22, 2015 Share Posted August 22, 2015 addEventHandler("onClientGUIClick", guiRoot, هذي ايش يا تابل guiRoot ? https://wiki.multitheftauto.com/wiki/Predefined_variables_list guiRoot -- returns the root element all GUI elements. Link to comment
Professional Posted August 22, 2015 Share Posted August 22, 2015 addEventHandler("onClientGUIClick", guiRoot, هذي ايش يا تابل guiRoot ? https://wiki.multitheftauto.com/wiki/Predefined_variables_list guiRoot -- returns the root element all GUI elements. بس اشوف مرات يعمل 5 احداث مع بعض كيف زول ولا هم مبرمجين يعرفون كيف يعملوها قصدي ( مبرمجين محترفين ) ؟؟ Link to comment
#DRAGON!FIRE Posted August 22, 2015 Share Posted August 22, 2015 تقصد يضيف 5 احداث ع الفنكشن نفسه ؟ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now