Jump to content

[ Code ] طلب كود ~ عيآل


Recommended Posts

local againStartMove = 100 -- المكان اللي يبدا الكلام يمشي فيه 
local endMove = 400 -- المكان اللي ينتهي الكلام فيه  ويرجع من البدايه 
addEventHandler("onClientRender",root,function() 
    if ( guiGetVisible(YouWindowName) == true ) then --- YouWindowName هنا تحط اسسم النافذه 
        local x,y = guiGetPosition(YouLabelName,false) --- YouLabelName هنا اسم اليبل 
        guiSetPosition(YouLabelName,x + 3,y,false) --- YouLabelName هنا اسم اليبل  ---- رقم x + 3 سرعة الكلام وكذا تبيه تخليه سريع خليه زي ما هو تبيه بطيئ حط رقم واحد او اثنين 
        if ( x >= endMove ) then 
            guiSetPosition(YouLabelName,againStartMove,y,false) --- YouLabelName هنا اسم اليبل 
        end 
    end 
end) 

Link to comment
local againStartMove = 100 -- المكان اللي يبدا الكلام يمشي فيه 
local endMove = 400 -- المكان اللي ينتهي الكلام فيه  ويرجع من البدايه 
addEventHandler("onClientRender",root,function() 
    if ( guiGetVisible(YouWindowName) == true ) then --- YouWindowName هنا تحط اسسم النافذه 
        local x,y = guiGetPosition(YouLabelName,false) --- YouLabelName هنا اسم اليبل 
        guiSetPosition(YouLabelName,x + 3,y,false) --- YouLabelName هنا اسم اليبل  ---- رقم x + 3 سرعة الكلام وكذا تبيه تخليه سريع خليه زي ما هو تبيه بطيئ حط رقم واحد او اثنين 
        if ( x >= endMove ) then 
            guiSetPosition(YouLabelName,againStartMove,y,false) --- YouLabelName هنا اسم اليبل 
        end 
    end 
end) 

عادي نحط غير شي..._* غير الليبل

Link to comment

شوف اخر فنيشن لزم يكون بالمود حقك

من عند

TimeGuiSetRightC = { }

و انزل لتحت

حطه اخر سطر او اول سطر من اجل الترتيب

اما بنسبه لهذي

guiMoveRightToCenter(Window)

لزم تكون مع امر الفتح

  
Window = guiCreateWindow(383, 213, 681, 393, "", false) 
        guiSetVisible (Window,false) 
    
  
        function open() 
if guiGetVisible(Window) == false then 
        guiSetVisible (Window, true) 
 [size=150]         guiMoveRightToCenter(Window)  [/size] 
        showCursor(true) 
else   
        showCursor(false) 
        guiSetVisible (Window,false) 
end 
        end 
        bindKey ("F2", "down", open) 
  
    TimeGuiSetRightC = { } 
  
    function guiMoveRightToCenter(gui) 
    if getElementData(gui,"HelhGui") == false then 
        setElementData(gui,"HelhGui",true) 
        local s1,s2=guiGetScreenSize() 
        local w1,w2=guiGetSize(gui,false) 
        local x,y = (s1-w1)/2,(s2-w2)/2 
        guiSetPosition(gui,-x,y,false) 
    TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) 
    end 
        local a,b=guiGetScreenSize() 
        local w1,w2=guiGetSize(gui,false) 
        local x,y = (a-w1)/2,(b-w2)/2 
        local x1,y1 = guiGetPosition ( gui, false) 
    if (x1 >= x) then 
        killTimer(TimeGuiSetRightC[gui]) 
        setElementData(gui,"HelhGui",false) 
        else 
        guiSetPosition(gui,x1+10,y,false) 
    end 
    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...