fargot.. Posted December 30, 2018 Share Posted December 30, 2018 السلام عليكم و رحمة الله وبركاته انا سويت مود البكجات بس انا ما عرفت وش المشكلة الي ما تخلي لوحة البكجات تفتح ياريت تساعدونا هدا هو المود : local l_0_0 = {} l_0_0.button = {} l_0_0.window = {} l_0_0.edit = {} l_0_0.label = {} GUIEditor = l_0_0 l_0_0 = guiGetScreenSize l_0_0 = l_0_0() do openpack_wind = guiCreateWindow((l_0_0 - 393) / 2, ({} - 131) / 2, 393, 131, "Packages", false) guiWindowSetSizable(openpack_wind, false) pack_LB = guiCreateLabel(10, 21, 373, 48, "ID = 3 `Bronze package` Amount = ()\nID = 2 `Silver package` Amount = ()\nID = 1 `Gold package` Amount = ()", false, openpack_wind) guiSetFont(pack_LB, "default-bold-small") id_edit = guiCreateEdit(10, 90, 102, 31, "", false, openpack_wind) guiEditSetMaxLength(id_edit, 1) open_btn = guiCreateButton(122, 95, 95, 26, "Open", false, openpack_wind) guiSetVisible(openpack_wind, false) addEvent("open_GUI_PACKAGES", true) addEventHandler("open_GUI_PACKAGES", root, function(l_1_0, l_1_1, l_1_2) if guiGetVisible(openpack_wind) == false then guiSetVisible(openpack_wind, true) showCursor(true) guiSetText(pack_LB, "ID = 3 `Bronze Package` Amount = ( " .. l_1_0 .. " )\nID = 2 `Silver Package` Amount = ( " .. l_1_1 .. " )\nID = 1 `Gold Package` Amount = ( " .. l_1_2 .. " )") else guiSetVisible(openpack_wind, false) showCursor(false) end end ) addEvent("ClosePackage_GUI", true) addEventHandler("ClosePackage_GUI", root, function() guiSetVisible(openpack_wind, false) showCursor(false) end ) addEvent("give_Package", true) addEventHandler("give_Package", root, function(l_3_0, l_3_1) local l_3_2 = playSound("sounds/sound.mp3") local l_3_3 = guiCreateStaticImage(l_0_0 - 191 - 10, (l_0_1 - 203) / 2, 191, 203, "img/pack.png", false) setTimer(function() destroyElement(l_3_3) end, 7000, 1) setTimer(function() destroyElement(l_3_2) end, 7000, 1) setTimer(function() playSound("sounds/sound2.mp3") end, 7000, 1) setTimer(function() l_3_3 = guiCreateStaticImage(l_0_0 - 191 - 10, (l_0_1 - 203) / 2, 191, 203, "img/lucky" .. l_3_0 .. ".png", false) end, 7000, 1) setTimer(function() destroyElement(l_3_3) end, 9000, 1) setTimer(function() if l_3_0 == 3 then exports.guimessages:outputClient("#FF9608[Lucky Packaages]:#FFFFFF " .. l_3_1 .. " of `Lucky Bronze` package has been added to your inventory.", 255, 0, 0) elseif l_3_0 == 2 then exports.guimessages:outputClient("#FF9608[Lucky Packaages]:#FFFFFF " .. l_3_1 .. " of `Lucky Silver` package has been added to your inventory.", 255, 0, 0) elseif l_3_0 == 1 then exports.guimessages:outputClient("#FF9608[Lucky Packaages]:#FFFFFF " .. l_3_1 .. " of `Lucky Gold` package has been added to your inventory.", 255, 0, 0) end end, 9000, 1) end ) addEventHandler("onClientGUIClick", root, function() if source == open_btn then local l_4_0 = guiGetText(id_edit) if l_4_0 == "3" then triggerServerEvent("open_Bronze_package", localPlayer) elseif l_4_0 == "2" then triggerServerEvent("open_Silver_package", localPlayer) elseif l_4_0 == "1" then triggerServerEvent("open_Gold_package", localPlayer) else exports.guimessages:outputClient("#FF9608[Lucky Packaages]:#FF0000 Error: Please Enter Right ID IDS[ID = 3 `Bronze package`ID = 2 `Silver package`ID = 1 `Gold package`] .", 255, 0, 0) end end end ) end Link to comment
nxFairlywell Posted December 30, 2018 Share Posted December 30, 2018 اخوي عدناني سبق و قلت لك في الموضوع السابق حط اللوحة حقتك هنا بدون اي تعديلات يعني سويها بالجوي ايديتور و انسخ كود اللوحة و حطه هنا و أبشر راح اسويه لك , الكود اللي انت مسويه كله متلخبط وصعب اعدل عليه , هات اللوحة فقط Link to comment
fargot.. Posted December 30, 2018 Author Share Posted December 30, 2018 2 minutes ago, NX_CI said: اخوي عدناني سبق و قلت لك في الموضوع السابق حط اللوحة حقتك هنا بدون اي تعديلات يعني سويها بالجوي ايديتور و انسخ كود اللوحة و حطه هنا و أبشر راح اسويه لك , الكود اللي انت مسويه كله متلخبط وصعب اعدل عليه , هات اللوحة فقط رسلت لك في الخاص اخوي Link to comment
Professional Posted December 30, 2018 Share Posted December 30, 2018 سوي اول ما يضغط على صوره وحط جوائز عشوائية عبر math.random وسوي تايمر كل فترة جتى ترجع صورة وخلصت القصة , بنسبة للي قال المود صعب . 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