MostafaCraft Posted July 7, 2014 Share Posted July 7, 2014 السلام عليكم عندي طلب فنكشات .. اني مسوي لوحه وحاط ازرار مكتوب فيهم احمر اخضر ازرق ابي ااذا كبس ع اخضر يسير لون اسمه اخضر .. وهكذا وشكرا Link to comment
Max+ Posted July 7, 2014 Share Posted July 7, 2014 (edited) addEventHandler('onClientGUIClick', root, function( ) if ( localPlayer == button1 ) then setPlayerNametagColor(localPlayer, 255, 255, 0 ) end end ) Edited @ Edited July 7, 2014 by Guest Link to comment
acount deleted Posted July 7, 2014 Share Posted July 7, 2014 (edited) addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . انت معرف uplayer هو الزر يعني تغير لون الزر لول addEventHandler('onClientGUIClick', root, function() if ( source == buttonname ) then setPlayerNametagColor(localPlayer, 255, 255, 0 ) end end ) Edited July 7, 2014 by Guest Link to comment
MostafaCraft Posted July 7, 2014 Author Share Posted July 7, 2014 مب زابط شباب وشكرا لكم Link to comment
#DRAGON!FIRE Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت Link to comment
acount deleted Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت addEventHandler('onClientGUIClick', root, function() if ( source = buttonname ) then setPlayerNametagColor(localPlayer, 255, 255, 0 ) end end ) Link to comment
فاّرس Posted July 7, 2014 Share Posted July 7, 2014 (edited) addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت string button, string state, int absoluteX, int absoluteY button: the name of the button which will be clicked , it can be left, right, middle Edited July 7, 2014 by Guest Link to comment
Max+ Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . انت معرف uplayer هو الزر يعني تغير لون الزر لول addEventHandler('onClientGUIClick', root, function() if ( source = buttonname ) then setPlayerNametagColor(localPlayer, 255, 255, 0 ) end end ) وانت مستخدم سورس في الزر وبفنكشن الالوان لوكل بلير ؟ + ناسي = المفروض كذا == وين صارت ذي + صاحب الموضوع تم تعديل الكود جرب مره ثانية Link to comment
acount deleted Posted July 7, 2014 Share Posted July 7, 2014 وانت مستخدم سورس في الزر وبفنكشن الالوان لوكل بلير ؟ + ناسي = المفروض كذا == وين صارت ذي + صاحب الموضوع تم تعديل الكود جرب مره ثانية صاحب الموضوع البزر جيمر + منتبهت عال= الناقصة Link to comment
فاّرس Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( ) if ( localPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) Edited @ string button, string state, int absoluteX, int absoluteY button: the name of the button which will be clicked , it can be left, right, middle صاحب الموضوع , تقدر تسوي الكود بالطريقه هذي , -- Client Side # addEventHandler('onClientGUIClick', root, function ( ) if source == button then setPlayerNametagColor ( localPlayer, r, g, b ) elseif source == button2 then setPlayerNametagColor ( localPlayer, r, g, b ) elseif source == button3 then setPlayerNametagColor ( localPlayer, r, g, b ) end end) * ما عندي خلفيه لو فيه مشكله بإستخدام الفنكشن بالكلينت . Link to comment
acount deleted Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( ) if ( localPlayer == button1 ) then setPlayerNametagColor(localPlayer, 255, 255, 0 ) end end ) Edited @ Link to comment
#DRAGON!FIRE Posted July 7, 2014 Share Posted July 7, 2014 addEventHandler('onClientGUIClick', root, function( uPlayer ) if ( uPlayer == button1 ) then setPlayerNametagColor(uPlayer, 255, 255, 0 ) end end ) اتوقع يمديك تكمل الباقي . . . استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت string button, string state, int absoluteX, int absoluteY button: the name of the button which will be clicked , it can be left, right, middle setPlayerNametagColor اقصد بفشنكن -_____- Link to comment
فاّرس Posted July 7, 2014 Share Posted July 7, 2014 setPlayerNametagColor اقصد بفشنكن -_____- نفس الحكايه , بيكون فيه خطأ , وما راح يشتغل الكود , لو تحلاظ الشرط الي حاطه : if ( uPlayer == button1 ) then مستحيل يشتغل الكود . Link to comment
Max+ Posted July 7, 2014 Share Posted July 7, 2014 Required Arguments thePlayer: The player whose name tag text you wish to change the color of r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of green you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) + تم تصحيح الكود ياليت تقرأ ارقمنت المطلوب لتغيير اللون ايش دخل الزر في اللون ض1 هو يبي يغير لون الاعب , Link to comment
#DRAGON!FIRE Posted July 7, 2014 Share Posted July 7, 2014 setPlayerNametagColor اقصد بفشنكن -_____- نفس الحكايه , بيكون فيه خطأ , وما راح يشتغل الكود , لو تحلاظ الشرط الي حاطه : if ( uPlayer == button1 ) then مستحيل يشتغل الكود . string button فاهم غلط هو معرف اول بارتمنت بالحدث function ( button ) if button == urbtn then Link to comment
Max+ Posted July 7, 2014 Share Posted July 7, 2014 الحين حنا شفرنا كلنا عقب الفطور ههههههههههه خلو الرجال يجرب الكود عقب نتناقش ض1 Link to comment
acount deleted Posted July 7, 2014 Share Posted July 7, 2014 ذا جيمر صاحب الموضوع صكه تيتي باند قبل شوي و خلصنا لول Link to comment
فاّرس Posted July 7, 2014 Share Posted July 7, 2014 Required Arguments thePlayer: The player whose name tag text you wish to change the color of r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of green you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) + تم تصحيح الكود ياليت تقرأ ارقمنت المطلوب لتغيير اللون ايش دخل الزر في اللون ض1 هو يبي يغير لون الاعب , ?? حبيبي هو يقول يبي لو ضغط الزر الاول يغير اللون الى اخضر والزر الثاني الى لون احمر وكذا string button فاهم غلط هو معرف اول بارتمنت بالحدث function ( button ) if button == urbtn then button: the name of the button which will be clicked , it can be left, right, middle Link to comment
#DRAGON!FIRE Posted July 7, 2014 Share Posted July 7, 2014 Required Arguments thePlayer: The player whose name tag text you wish to change the color of r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of green you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) + تم تصحيح الكود ياليت تقرأ ارقمنت المطلوب لتغيير اللون ايش دخل الزر في اللون ض1 هو يبي يغير لون الاعب , ?? حبيبي هو يقول يبي لو ضغط الزر الاول يغير اللون الى اخضر والزر الثاني الى لون احمر وكذا string button فاهم غلط هو معرف اول بارتمنت بالحدث function ( button ) if button == urbtn then button: the name of the button which will be clicked , it can be left, right, middle ذا بيست شكله رمضان ماثر عليكـ button: the name of the button which will be clicked يقلك هنا اسم الزر اللي انضغط it can be left, right, middle ويقلك ممكن يكون يسار او يممين فهمت الحين ؟ Link to comment
فاّرس Posted July 7, 2014 Share Posted July 7, 2014 طيب , الحين urbtn بيكون زر urbtn = guiCreateButton ( ... ) بمعنى , بيكون كذا ! if button == urbtn then !!!! الحين هو ما يبغى لو ضغط كلك يمين او يسار هو يبي لو ضغط الزر , بمعنى بيستخدم السورس Link to comment
Recommended Posts