Jump to content

طلب فنكشات


Recommended Posts

addEventHandler('onClientGUIClick', root, 
function( ) 
        if ( localPlayer == button1 ) then 
        setPlayerNametagColor(localPlayer, 255, 255, 0 ) 
           end 
      end 
  ) 

Edited @

Edited by Guest
Link to comment
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 by Guest
Link to comment
addEventHandler('onClientGUIClick', root, 
function( uPlayer ) 
        if ( uPlayer == button1 ) then 
        setPlayerNametagColor(uPlayer, 255, 255, 0 ) 
           end 
      end 
  ) 

اتوقع يمديك تكمل الباقي . . .

استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت

Link to comment
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
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 by Guest
Link to comment
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

وانت مستخدم سورس في الزر

وبفنكشن الالوان لوكل بلير ؟

+ ناسي

=

المفروض كذا

==

وين صارت ذي

+ صاحب الموضوع تم تعديل الكود جرب مره ثانية

صاحب الموضوع البزر جيمر

+

منتبهت عال= الناقصة :mrgreen:

Link to comment
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
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

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
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
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

طيب , الحين

urbtn بيكون زر

urbtn = guiCreateButton ( ... ) 

بمعنى , بيكون كذا !

if button == urbtn then 

!!!! الحين هو ما يبغى لو ضغط كلك يمين او يسار هو يبي لو ضغط الزر , بمعنى بيستخدم السورس

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...