Jump to content

Recommended Posts

Posted

شباب

دو الاكواد

GUIEditor = {
    button = {},
    window = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
        guiSetVisible( GUIEditor.window[1], false )

        GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
        local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
        guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")


        c = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)   
        guiSetVisible( GUIEditor.label[1], false)        
    end
)

function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin)

addEventHandler( "onClientGUIClick", root, 
function(  )
if source == GUIEditor.button[1] then

 

بدي عند الضغط على زر يخرج GUIEditor.label[1]

يبقى 5 ثواني ويروح 

Posted (edited)

قبل ما تحط اخوي المرة الجاية سوي <> 

مشان نفهم اكوادك

علي العموم تفضل

GUIEditor = {
    button = {},
    window = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
        guiSetVisible( GUIEditor.window[1], false )

        GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
        local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
        guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")


        GUIEditor.label[1] = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)   
        guiSetVisible( GUIEditor.label[1], false)        
    end
)

function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin)

addEventHandler( "onClientGUIClick", root, 
function(  )
if source == GUIEditor.button[1] then
guiSetVisible(GUIEditor.label[1], true)
 setTimer(function( localPlayer )
guiSetVisible(GUIEditor.label[1], false)
end,5000,1,localPlayer)
end
end
)

 

Edited by #DesTroeyR
Posted
1 hour ago, |M.r|LooFe| said:

يعني تبيه لما يضغط على الزر الي موجود فاللوحة يظهر الليبل؟

يب

 

49 minutes ago, #DesTroeyR said:

قبل ما تحط اخوي المرة الجاية سوي <> 

مشان نفهم اكوادك

علي العموم تفضل


GUIEditor = {
    button = {},
    window = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
        guiSetVisible( GUIEditor.window[1], false )

        GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
        local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
        guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")


        GUIEditor.label[1] = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)   
        guiSetVisible( GUIEditor.label[1], false)        
    end
)

function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin)

addEventHandler( "onClientGUIClick", root, 
function(  )
if source == GUIEditor.button[1] then
guiSetVisible(GUIEditor.label[1], true)
 setTimer(function( localPlayer )
guiSetVisible(GUIEditor.label[1], false)
end,5000,1,localPlayer)
end
end
)

 

شكراااااا حبيبي انت , ربي يحفضك

 

54 minutes ago, #DesTroeyR said:

قبل ما تحط اخوي المرة الجاية سوي <> 

مشان نفهم اكوادك

علي العموم تفضل


GUIEditor = {
    button = {},
    window = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
        guiSetVisible( GUIEditor.window[1], false )

        GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
        local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
        guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")


        GUIEditor.label[1] = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)   
        guiSetVisible( GUIEditor.label[1], false)        
    end
)

function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin)

addEventHandler( "onClientGUIClick", root, 
function(  )
if source == GUIEditor.button[1] then
guiSetVisible(GUIEditor.label[1], true)
 setTimer(function( localPlayer )
guiSetVisible(GUIEditor.label[1], false)
end,5000,1,localPlayer)
end
end
)

 

اسممع طيب ممكن كود اذا انفتحت اللوحة الليبل يروح ويجي

يعني اليبل يروح ويرجع في اللوحة

اذا ما اتعبتكــــ

Posted
40 minutes ago, Mr-MohameD said:

يب

 

شكراااااا حبيبي انت , ربي يحفضك

 

اسممع طيب ممكن كود اذا انفتحت اللوحة الليبل يروح ويجي

يعني اليبل يروح ويرجع في اللوحة

اذا ما اتعبتكــــ

تبغا الليبل يروح يمين ويسار ولا يختفي ويظهر كل شوى

Posted
20 minutes ago, Gladiator said:

تبغا الليبل يروح يمين ويسار ولا يختفي ويظهر كل شوى

20 minutes ago, Gladiator said:

تبغا الليبل يروح يمين ويسار ولا يختفي ويظهر كل شوى

20 minutes ago, Gladiator said:

تبغا الليبل يروح يمين ويسار ولا يختفي ويظهر كل شوى

20 minutes ago, Gladiator said:

تبغا الليبل يروح يمين ويسار ولا يختفي ويظهر كل شوى

ابي اليبل يجي من بعيد بعدين يقترب بعدين يروح زي سيرفر وناسة تايم

 

2 hours ago, #DesTroeyR said:

قبل ما تحط اخوي المرة الجاية سوي <> 

مشان نفهم اكوادك

علي العموم تفضل


GUIEditor = {
    button = {},
    window = {},
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
        guiSetVisible( GUIEditor.window[1], false )

        GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
        local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
        guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")


        GUIEditor.label[1] = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)   
        guiSetVisible( GUIEditor.label[1], false)        
    end
)

function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin)

addEventHandler( "onClientGUIClick", root, 
function(  )
if source == GUIEditor.button[1] then
guiSetVisible(GUIEditor.label[1], true)
 setTimer(function( localPlayer )
guiSetVisible(GUIEditor.label[1], false)
end,5000,1,localPlayer)
end
end
)

 

اسممع طيب ممكن كود اذا انفتحت اللوحة الليبل يروح ويجي

يعني اليبل يروح ويرجع في اللوحة

اذا ما اتعبتكــــ

Posted
9 minutes ago, Mr-MohameD said:

ابي اليبل يجي من بعيد بعدين يقترب بعدين يروح زي سيرفر وناسة تايم

اخوي الفهمته منك اهو تفضل

addEventHandler("onClientRender",getRootElement(),function()
    x,y = guiGetPosition(LabelName,false) -- LabelName = حط اسم الليبل حقك
    xN,xY = x + 1 , y
    if xN >= 300 then
        xN = 5
    end
    guiSetPosition(LabelName,xN,xY,false) -- LabelName = حط اسم الليبل حقك
end)

 

Posted
15 minutes ago, Mr-MohameD said:

طيب طيب اعطيني لي يروح  ويجي  دا ما فهمتو

 

اخوي قلتلك اليروح يمين ويسار اهو

addEventHandler("onClientRender",getRootElement(),function()
    x,y = guiGetPosition(LabelName,false) -- LabelName = حط اسم الليبل حقك
    xN,xY = x + 1 , y
    if xN >= 300 then
        xN = 5
    end
    guiSetPosition(LabelName,xN,xY,false) -- LabelName = حط اسم الليبل حقك
end)

 

Posted

اخي انا اقصد يختفي ويرجه 

 

ضيفو لدو الكودات يعني لما تفتح اللوحة يختفي ويرجع

 

ولما اغلق اللوحة يروح ما يرجع

  1. GUIEditor = {
  2. button = {},
  3. window = {},
  4. label = {}
  5. }
  6. addEventHandler("onClientResourceStart", resourceRoot,
  7. function()
  8. GUIEditor.window[1] = guiCreateWindow(452, 321, 437, 352, "النافذةة || By Pro", false)
  9. guiWindowSetSizable(GUIEditor.window[1], false)
  10. guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF1EBEE0")
  11. guiSetVisible( GUIEditor.window[1], false )
  12.  
  13. GUIEditor.button[1] = guiCreateButton(129, 167, 141, 51, "الزر", false, GUIEditor.window[1])
  14. local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 0)
  15. guiSetFont(GUIEditor.button[1], font0_PetitFormalScript)
  16. guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1EBEE0")
  17.  
  18.  
  19. GUIEditor.label[1] = guiCreateLabel(532, 569, 260, 27, "TessT system | By Pro & Ping | Beta versions", false)
  20. guiSetFont(GUIEditor.label[1], "default-bold-small")
  21. guiLabelSetColor(GUIEditor.label[1], 30, 190, 224)
  22. guiSetVisible( GUIEditor.label[1], false)
  23. end
  24. )
  25.  
  26. function OpenWin()
  27. if guiGetVisible ( GUIEditor.window[1] ) then
  28. guiSetVisible ( GUIEditor.window[1], false )
  29. showCursor(false)
  30. guiSetInputEnabled(false)
  31. else
  32. guiSetVisible ( GUIEditor.window[1], true )
  33. showCursor(true)
  34. guiSetInputEnabled(true)
  35.  
  36. end
  37. end
  38. bindKey("F6", "down", OpenWin)
  39.  
  40. addEventHandler( "onClientGUIClick", root,
  41. function( )
  42. if source == GUIEditor.button[1] then
  43. givePlayerMoney( 156789 )
  44. end
  45. end
  46. )
Posted

: لو تبي يختفي ويرجع يكون كدة 

setTimer(function ()
guiSetVisible(LabelName,not guiGetVisible(LabelName)) -- اسم اللابيل حقك LabelName حط مكان
end,500, 0)	-- تقدر تزود عن 500 بس لا تبالغ عن 1500 لان بيصير كثير

 

Posted
8 hours ago, MrKAREEM said:

: لو تبي يختفي ويرجع يكون كدة 


setTimer(function ()
guiSetVisible(LabelName,not guiGetVisible(LabelName)) -- اسم اللابيل حقك LabelName حط مكان
end,500, 0)	-- تقدر تزود عن 500 بس لا تبالغ عن 1500 لان بيصير كثير

 

هولي شيت هه
غير زيرو لـ 2

Posted
1 hour ago, #Soking said:

هولي شيت هه
غير زيرو لـ 2

ليه انا مستعملها كدة وشغالة لو فيها خطا قولي ممكن استفاد :) 

Posted
On ٢٧‏/٥‏/٢٠١٨ at 02:14, MrKAREEM said:

ليه انا مستعملها كدة وشغالة لو فيها خطا قولي ممكن استفاد :) 

صحيحه.
الارقمنت الثالث لو تبيه يظل شغال , لازم تحط صفر .
 

Posted
16 hours ago, AbU - W6N said:

صحيحه.
الارقمنت الثالث لو تبيه يظل شغال , لازم تحط صفر .

 

تمام شكرا :) 

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