Jump to content

x[ طلب شرح كود ]x


Recommended Posts

  On 23/04/2018 at 08:40, MR.GNA7_# said:

انا الحين جربت الكود وصلحان 

اطرح اكواد كلنت

Expand  

GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

        GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")    
    end
)


   addEventHandler('onClientGUIClick', root,
   function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    triggerServerEvent('M4', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

guiSetEnabled(source, false)
setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true)

@MR.GNA7_#

Link to comment
  On 23/04/2018 at 09:02, Mr.Mostafa said:
GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

        GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")    
    end
)


   addEventHandler('onClientGUIClick', root,
   function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    triggerServerEvent('M4', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

guiSetEnabled(source, false)
setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true)

@MR.GNA7_#

Expand  

جرب

 

 

 GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") 
end
)


addEventHandler('onClientGUIClick', root,
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('M4', localPlayer) 
guiSetEnabled(GUIEditor.button[1], false)
setTimer(function
guiSetEnabled(GUIEditor.button[1],true)
end, 3000, 1 )
end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

 

Edited by Source|>
Link to comment
  On 23/04/2018 at 09:34, Source|> said:

جرب

 

 


 GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") 
end
)


addEventHandler('onClientGUIClick', root,
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('M4', localPlayer) 
guiSetEnabled(GUIEditor.button[1], false)
setTimer(function
guiSetEnabled(GUIEditor.button[1],true)
end, 3000, 1 )
end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

 

Expand  

مآ آشتغل

Link to comment
 GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") 
end
)


addEventHandler('onClientGUIClick', root,
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('M4', localPlayer) 
guiSetEnabled(GUIEditor.button[1], false)
setTimer(function()
guiSetEnabled(GUIEditor.button[1],true)
end, 3000, 1 )
end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

 

Link to comment
  On 23/04/2018 at 10:44, #DesTroeyR said:

 GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") 
end
)


addEventHandler('onClientGUIClick', root,
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('M4', localPlayer) 
guiSetEnabled(GUIEditor.button[1], false)
setTimer(function()
guiSetEnabled(GUIEditor.button[1],true)
end, 3000, 1 )
end -- اغلاق 
end -- اغلاق 
) -- اغلاق 

 

Expand  

تمآم آشتغل

بس لو آبي مثلا آخلي آلزر مغلق 10 ثوآني - آو دقيقة آو دقيقتين مثلا

آعدل رقم وش ب ست تآيمر؟

Link to comment
sec = 5 -- عدل هنا الوقت بالثواني
 GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(600, 305, 169, 86, "لوحة سيآرآت", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FEE4")

GUIEditor.button[1] = guiCreateButton(24, 30, 128, 37, "آخد سيآرة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") 
end
)


addEventHandler('onClientGUIClick', root,
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('M4', localPlayer) 
guiSetEnabled(GUIEditor.button[1], false)
setTimer(function()
guiSetEnabled(GUIEditor.button[1],true)
end, 1000*sec, 1 )
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...