Jump to content

x[ إستفسار ]x كيفية عمل صورة على اللوحه بـ الكامل ؟


Abu.M9L7

Recommended Posts

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

انا عندي  إستفسار لو سمحتم الي وهو كيف اخلي صورة للوحه كاملياً 

مثل الفري روم والمودات هاذي 

اعطونا الحل جزاكم الله خير?

Link to comment

وعليكم السلام 

function guiCreateWindow (x, y, width, height,Text, relative)
local mainBackground = guiCreateStaticImage ( x, y, width, height, "test.png", relative )
local mainBackgroundLabel = guiCreateLabel ( 0, 0, width,30%height,Text, false, mainBackground )
guiLabelSetHorizontalAlign(mainBackgroundLabel, "center", false)   
return mainBackground
end

-- test بدلها ب اسم الصوره

  • Thanks 1
Link to comment
18 hours ago, #\_oskar_/# said:

وعليكم السلام 


function guiCreateWindow (x, y, width, height,Text, relative)
local mainBackground = guiCreateStaticImage ( x, y, width, height, "test.png", relative )
local mainBackgroundLabel = guiCreateLabel ( 0, 0, width,30%height,Text, false, mainBackground )
guiLabelSetHorizontalAlign(mainBackgroundLabel, "center", false)   
return mainBackground
end

-- test بدلها ب اسم الصوره

الله يعطيك الف عافيه  زبط الكود وماقصرت اخوي

Link to comment
14 hours ago, #\_oskar_/# said:

الله يعافيك بالخدمه ف اي وقت

لو سمحت انا سويت في الفري روم اول مايدخل الاعب يحذف الشات  يوم جربته خويي دخل وحذف الشات لي وله كيف اخليه بس للاعب الي دخل وحده ؟

Link to comment
28 minutes ago, #\_oskar_/# said:

اطرح كودك 

end
    local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255)
    setPlayerNametagColor(player, r, g, b)
    g_PlayerData[player] = { vehicles = {} }
    g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b)
    if g_FrozenTime then
        clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather)
    end
    if getOption('welcometextonstart') then
        outputChatBox('✦ » - سيرفر طرب الرسمي يرحب بكم - « ✦', player, 10, 137, 244)
        outputChatBox('✦ » - Welcome To Server T.5 - « ✦', player, 247, 6, 131)
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
    end
end
addEventHandler('onPlayerJoin', g_Root, joinHandler)

Link to comment
1 hour ago, #\_oskar_/# said:

اطرح كودك 

	
Report post 
Posted 52 minutes ago
  1 hour ago, #\_oskar_/# said:
اطرح كودك 

end
    local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255)
    setPlayerNametagColor(player, r, g, b)
    g_PlayerData[player] = { vehicles = {} }
    g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b)
    if g_FrozenTime then
        clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather)
    end
    if getOption('welcometextonstart') then
        outputChatBox('✦ » - سيرفر طرب الرسمي يرحب بكم - « ✦', player, 10, 137, 244)
        outputChatBox('✦ » - Welcome To Server T.5 - « ✦', player, 247, 6, 131)
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
outputChatBox ("                      ")
    end
end
addEventHandler('onPlayerJoin', g_Root, joinHandler)

 Quote

 

Link to comment

Abu.M9L7

عندك طريقتين واختار اللي يعجبك 

اول طريقه 

end
    local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255)
    setPlayerNametagColor(player, r, g, b)
    g_PlayerData[player] = { vehicles = {} }
    g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b)
    if g_FrozenTime then
        clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather)
    end
    if getOption('welcometextonstart') then
clearChatBox(player)
outputChatBox('✦ » - سيرفر طرب الرسمي يرحب بكم - « ✦', player, 10, 137, 244)
outputChatBox('✦ » - Welcome To Server T.5 - « ✦', player, 247, 6, 131)
    end
end
addEventHandler('onPlayerJoin', g_Root, joinHandler)

ثاني طريقه

end
    local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255)
    setPlayerNametagColor(player, r, g, b)
    g_PlayerData[player] = { vehicles = {} }
    g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b)
    if g_FrozenTime then
        clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather)
    end
    if getOption('welcometextonstart') then
for i=1,20 do -- عدد الاسطر 20
outputChatBox( " " , player)
end
outputChatBox('✦ » - سيرفر طرب الرسمي يرحب بكم - « ✦', player, 10, 137, 244)
outputChatBox('✦ » - Welcome To Server T.5 - « ✦', player, 247, 6, 131)
    end
end
addEventHandler('onPlayerJoin', g_Root, joinHandler)

اول كود هو يمسح كل الشات مسح شامل

الكود الثاني تحدد عدد الاسطر اللي تمسحها بالشات وهو يمسح 20 سطر

 

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