Yzen Posted July 27, 2016 Share Posted July 27, 2016 سلام عليكم انا مبتدا بالبرمجه ابي كود لما يضعط علي زر يعطي الاعب فلوس ودم Link to comment
Adham Posted July 27, 2016 Share Posted July 27, 2016 وعليكم السلام تفضل "onClientGUIClick" givePlayerMoney setElementHealth Link to comment
Yzen Posted July 27, 2016 Author Share Posted July 27, 2016 مشكور ولله ممكن الكود جاهز بعد اذنك Link to comment
Adham Posted July 27, 2016 Share Posted July 27, 2016 بعد كدا حاول تطلع الكود من الويكي الجهاز م يفيد بـ شي addEventHandler ( "onClientGUIClick",button, function ( ) givePlayerMoney ( localPlayer, 1000 ) setElementHealth ( localPlayer,100 ) end ) Link to comment
xBeSoOo Posted July 27, 2016 Share Posted July 27, 2016 بعد كدا حاول تطلع الكود من الويكيالجهاز م يفيد بـ شي addEventHandler ( "onClientGUIClick",button, function ( ) givePlayerMoney ( localPlayer, 1000 ) setElementHealth ( localPlayer,100 ) end ) لما تحط button هنا بيصير لما يضغط علي اي مكان باللوحة بتتنفذ الفنكشن ملاحظة من الويكي: Note:If you attach a GUI element to this event, when you click it's parent it will trigger too! الافضل كذا addEventHandler ( "onClientGUIClick",root, function ( ) if source == yourbutton then givePlayerMoney ( localPlayer, 1000 ) setElementHealth ( localPlayer,100 ) end end) Link to comment
Dr.Marco Posted July 27, 2016 Share Posted July 27, 2016 (edited) addEventHandler ( "onClientGUIClick",root, function ( ) if source == yourbutton then givePlayerMoney ( localPlayer, 99999 ) setElementHealth ( localPlayer,100 ) end end) استخدم ايضا triggerServerEvent Edited July 27, 2016 by Guest Link to comment
xBeSoOo Posted July 27, 2016 Share Posted July 27, 2016 مو شايف كلمهbutton ? بعد كدا حاول تطلع الكود من الويكيالجهاز م يفيد بـ شي addEventHandler ( "onClientGUIClick",==>(button)<==, نسيت اقول شي الفلوس جهة الكلينت وهمية الاحسن يسوي ترايقر Link to comment
a7zan Posted July 27, 2016 Share Posted July 27, 2016 addEventHandler ( "onClientGUIClick",root, function ( ) if source == اسم بوتون حقك then givePla ( locayerMoneylPlayer, 99999 ) setElementHealth ( localPlayer,100 ) end end) استخدم ايضا triggerServerEvent givePla = ? locayerMoneylPlayer = ? Link to comment
!#NssoR_) Posted July 27, 2016 Share Posted July 27, 2016 addEventHandler ( "onClientGUIClick",root, function ( ) if source == اسم بوتون حقك then givePla ( locayerMoneylPlayer, 99999 ) setElementHealth ( localPlayer,100 ) end end) استخدم ايضا triggerServerEvent givePla = ? locayerMoneylPlayer = ? شكرا لك خله يحط اي كود يبيه مدام تمت الافادة 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