mr.ekoo Posted June 15, 2013 Share Posted June 15, 2013 بغيت فنكنشن مثلا انا ضغطت على زر يقوم يسوي هالامر comm يعني كاني كاتب الكود باف 8 لاكن انا اضغط الزر وهو ينكتب ؟ Link to comment
mr.ekoo Posted June 15, 2013 Author Share Posted June 15, 2013 انا شفت الكود قبل بموضوع بس ماحصلته المهم عندي نافذة وفيها زر ابغي لما اضغط الزر ينفذ هالامر comm باف 8 Link to comment
iPrestege Posted June 15, 2013 Share Posted June 15, 2013 طيب سوية كذا سوي اللي تبية كلنت ؟ : addEventHandler('onClientGUIClick',MyGuiElement, function ( ) -- Any Thing end,false ) Ex : addEventHandler('onClientGUIClick',MyGuiElement, function ( ) setElementHealth ( localPlayer,100 ) end,false ) Link to comment
mr.ekoo Posted June 15, 2013 Author Share Posted June 15, 2013 طيب وين الكود الى ينفذ الامر باف 8 ماذكر الكود تمام بس كان يبداء ب execute Link to comment
iPrestege Posted June 15, 2013 Share Posted June 15, 2013 قصدك يعني كذا : addCommandHandler('aChat', function ( ) outputChatBox('Hi') end ) addEventHandler('onClientGUIClick',MyGuiElement, function ( ) executeCommandHandler( 'aChat' ) end,false ) 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