Abu.M9L7 Posted February 13, 2020 Share Posted February 13, 2020 السلام عليكم ورحمة الله وبركاته - انا عندي إستفسار لو سمحتم الي وهو كيف اخلي صورة للوحه كاملياً مثل الفري روم والمودات هاذي اعطونا الحل جزاكم الله خير Link to comment
#\_oskar_/# Posted February 13, 2020 Share Posted February 13, 2020 وعليكم السلام 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 بدلها ب اسم الصوره 1 Link to comment
Abu.M9L7 Posted February 14, 2020 Author Share Posted February 14, 2020 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
#\_oskar_/# Posted February 14, 2020 Share Posted February 14, 2020 1 hour ago, Abu.M9L7 said: الله يعطيك الف عافيه زبط الكود وماقصرت اخوي الله يعافيك بالخدمه ف اي وقت Link to comment
Abu.M9L7 Posted February 15, 2020 Author Share Posted February 15, 2020 14 hours ago, #\_oskar_/# said: الله يعافيك بالخدمه ف اي وقت لو سمحت انا سويت في الفري روم اول مايدخل الاعب يحذف الشات يوم جربته خويي دخل وحذف الشات لي وله كيف اخليه بس للاعب الي دخل وحده ؟ Link to comment
#\_oskar_/# Posted February 15, 2020 Share Posted February 15, 2020 1 minute ago, Abu.M9L7 said: لو سمحت انا سويت في الفري روم اول مايدخل الاعب يحذف الشات يوم جربته خويي دخل وحذف الشات لي وله كيف اخليه بس للاعب الي دخل وحده ؟ اطرح كودك Link to comment
Abu.M9L7 Posted February 15, 2020 Author Share Posted February 15, 2020 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
Abu.M9L7 Posted February 15, 2020 Author Share Posted February 15, 2020 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
#\_oskar_/# Posted February 15, 2020 Share Posted February 15, 2020 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now