Jump to content

تعال كل هريسة


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

شباب معي هريسة بس ابيكم تزبطوها

  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        tzwer = guiCreateLabel(619, 138, 156, 20, "ادخل النص هنا", false)     
    end 
end 
--------------------------------------- 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        setTimer(function() 
            for _, random in ipairs(getElementsByType('gui-label',getResourceRootElement(getThisResource()))) do 
                guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
            end 
        end, 250, 0) 
    end) 

انا مبتدأ

ف مو عارف وش اسوي ضض2

Link to comment

على فكرة الكود مافيه اخطاء غير قوس ناقص وإند زايد فقط + واضح إنه مب انت الي مسوي الكود .. عشان كذا اخذت لك الزبدة منه وربطتها ببعضها

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
    end 
) 

.. حاول تخلي عندكـ ثقة بنفسكـ +

Link to comment
داخل مطبخ ام سعيد ؟

لا مطبخ منال العالم :lol:

على فكرة الكود مافيه اخطاء غير قوس ناقص وإند زايد فقط + واضح إنه مب انت الي مسوي الكود .. عشان كذا اخذت لك الزبدة منه وربطتها ببعضها
-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
    end 
) 

.. حاول تخلي عندكـ ثقة بنفسكـ +

اخوي الكلام بس لما تسوي ريستارت للمود يتغير لونه انا ابيه متلون

Link to comment
-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 50, 0 ) 
    end 
) 

Link to comment
-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 50, 0 ) 
    end 
) 

.. مايحتاج تحدد اللون ثم تسوي تايمر لتحديد اللون ، تقدر تسوي تايمر لتحديد اللون على طول بحيث يصير كذا

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 250, 0 ) 
    end 
) 

Link to comment

شباب انا سويت كذا وزبط بس الخط يصير عليه تشويش حقكم احسن + تم تجربته

  
addEventHandler ( "onClientResourceStart", resourceRoot, 
   setTimer(function () 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end,300,0) 
) 
  

بس الحين ابي اغير حجم الخط ضضض2

حاولت بس م زبط

Edited by Guest
Link to comment
-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 50, 0 ) 
    end 
) 

.. مايحتاج تحدد اللون ثم تسوي تايمر لتحديد اللون ، تقدر تسوي تايمر لتحديد اللون على طول بحيث يصير كذا

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 250, 0 ) 
    end 
) 

اختصار اكثر وبدون فنكشن للتايمر

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        setTimer (guiLabelSetColor,250,0,tzwer,math.random ( 255 ), math.random ( 255 ), math.random ( 255 )) 
    end 
) 
Link to comment
شباب انا سويت كذا وزبط بس الخط يصير عليه تشويش حقكم احسن + تم تجربته
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
   setTimer(function () 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end,300,0) 
) 
  

بس الحين ابي اغير حجم الخط ضضض2

حاولت بس م زبط

guiCreateFont

guiSetFont

or

guiSetFont

Standard GUI Font Names

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 50, 0 ) 
    end 
) 

.. مايحتاج تحدد اللون ثم تسوي تايمر لتحديد اللون ، تقدر تسوي تايمر لتحديد اللون على طول بحيث يصير كذا

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 250, 0 ) 
    end 
) 

اختصار اكثر وبدون فنكشن للتايمر

-- Client Side # 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 619, 138, 156, 20, "ادخل النص هنا", false ) 
        setTimer (guiLabelSetColor,250,0,tzwer,math.random ( 255 ), math.random ( 255 ), math.random ( 255 )) 
    end 
) 

.مارح يضبط كذا يابطل لازم تسوي فنكشن للتايمر .. عشان تتجدد قيم الماث راندوم بإستمرار

Link to comment
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 395, 131, 399, 77, "ادخل النص هنا", false ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 250, 0 ) 
        myFont = guiCreateFont( "font.ttf", 10 )  
        guiSetFont( tzwer, myFont ) 
    end 
) 

تم وشكرا لك من ساعدني

Link to comment
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        tzwer = guiCreateLabel ( 395, 131, 399, 77, "ادخل النص هنا", false ) 
        setTimer ( function ( ) guiLabelSetColor ( tzwer, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 250, 0 ) 
        myFont = guiCreateFont( "font.ttf", 10 )  
        guiSetFont( tzwer, myFont ) 
    end 
) 

تم وشكرا لك من ساعدني

'-.- حيآكـ

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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