-
Posts
320 -
Joined
-
Last visited
Everything posted by Wleed1998
-
طيب وش الناقص ممكن تقولي مثل ايش ي نكست
-
والله لو اعرف لاني ماعمري رفعت عليه لو اعرف له والله تبشر
-
شكل عندك اغلاط بي الميتا او يمكن من نفس الموقع جرب غير اسماء الملفات و ارجع ارفع
-
آلسلام عليكم ورحمة الله و بركاته طبعآ المود مود ششراء تاج املاك ساعات الخ... المهم سويت كل شيء و زبط كل شيء لكن لما احدد مثال ع ع التاج و انزل تحت و اختار ب سواء احط الارقام الارقام ماتروح ل لوحة آلآدآره يروح بس اسم الاعب الي ارسل الى هو انا لكن الباقيه ماتجي والدي بوق يقول الغلط بي هذا الاسطر addEvent( "aBo", true ) addEventHandler ( "aBo" ,root, function ( ID1, getID, cardType, b1, b2, b3, b4, b5, b6, Name, a1, a2,a3 ,a4 ,a5 ,a6 ) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,Name(source),false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,ID1(source),false,false)--------------------هنا guiGridListSetItemText (GUIEditor.gridlist[1],row,3,ID2(source),false,false) ------------------------هنا guiGridListSetItemText (GUIEditor.gridlist[1],row,4,getID(source),false,false)------------------هنا طبع بوريكم التقريت الاول حق الارسال الى السيرفر كلنت addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end Name = getPlayerName a1 = guiGetText(GUIEditor.edit[1]) a2 = guiGetText(GUIEditor.edit[1]) a3 = guiGetText(GUIEditor.edit[1]) a4 = guiGetText(GUIEditor.edit[1]) a5 = guiGetText(GUIEditor.edit[1]) a6 = guiGetText(GUIEditor.edit[1]) getID = a1 + a2 + a3 + a4 + a5 + a6 if (not tonumber(a1) and not tonumber(a2) and not tonumber(a3) and not tonumber(a4) and not tonumber(a5) and not tonumber(a6)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if ((a1 ~= "") and not tonumber(a1) or (a2 ~= "") and not tonumber(a2) or (a3 ~= "") and not tonumber(a3) or (a4 ~= "") and not tonumber(a4) or (a5 ~= "") and not tonumber(a5) or (a6 ~= "") and not tonumber(a6)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if (guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == true) then local cardType = "سوا | STC" triggerServerEvent( 'NewP', localPlayer, getID,cardType, a1, a2, a3, a4, a5, a6) elseif (guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true) then local cardType = "كاش يو | cashU" triggerServerEvent( 'NewP', localPlayer, getID, cardType, a1, a2, a3, a4, a5, a6) elseif (guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == true) then local cardType = "موبايلي | Mobily" triggerServerEvent( 'NewP', localPlayer, getID,cardType, Name, a1, a2,a3 ,a4 ,a5 ,a6) end end end ) addEventHandler ( "onClientGUIClick", root, function () if (source == GUIEditor.checkbox[4]) then guiCheckBoxSetSelected(GUIEditor.checkbox[5], false) guiCheckBoxSetSelected(GUIEditor.checkbox[6], false) elseif (source == GUIEditor.checkbox[5]) then guiCheckBoxSetSelected(GUIEditor.checkbox[4], false) guiCheckBoxSetSelected(GUIEditor.checkbox[6], false) elseif (source == GUIEditor.checkbox[6]) then guiCheckBoxSetSelected(GUIEditor.checkbox[4], false) guiCheckBoxSetSelected(GUIEditor.checkbox[5], false) elseif (source == GUIEditor.checkbox[1]) then guiCheckBoxSetSelected(GUIEditor.checkbox[2], false) guiCheckBoxSetSelected(GUIEditor.checkbox[3], false) elseif (source == GUIEditor.checkbox[2]) then guiCheckBoxSetSelected(GUIEditor.checkbox[1], false) guiCheckBoxSetSelected(GUIEditor.checkbox[3], false) elseif (source == GUIEditor.checkbox[3]) then guiCheckBoxSetSelected(GUIEditor.checkbox[1], false) guiCheckBoxSetSelected(GUIEditor.checkbox[2], false) b1 = guiGetText(GUIEditor.checkbox[1]) b2 = guiGetText(GUIEditor.checkbox[2]) b3 = guiGetText(GUIEditor.checkbox[3]) b4 = guiGetText(GUIEditor.checkbox[4]) b5 = guiGetText(GUIEditor.checkbox[5]) b6 = guiGetText(GUIEditor.checkbox[6]) ID1 = b1 + b2 + b3 ID2 = B4 + B5 + B6 triggerServerEvent( 'NewP', localPlayer, ID1, getID, ID2, cardType, b1, b2, b3, b4, b5, b6, Name, a1, a2,a3 ,a4 ,a5 ,a6) end end ) addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) GUIEditor.button[2] = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) addEvent( "aBo", true ) addEventHandler ( "aBo" ,root, function ( ID1, getID, cardType, b1, b2, b3, b4, b5, b6, Name, a1, a2,a3 ,a4 ,a5 ,a6 ) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,Name(source),false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,ID1(source),false,false)--------------------هنا guiGridListSetItemText (GUIEditor.gridlist[1],row,3,ID2(source),false,false) ------------------------هنا guiGridListSetItemText (GUIEditor.gridlist[1],row,4,getID(source),false,false)------------------هنا addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[2] then local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) guiGridListRemoveRow ( GUIEditor.gridlist[1], row ) outputChatBox ( "Removing row B" ) end end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) سيرفر addEvent( 'NewP', true ) addEventHandler( 'NewP', root, function(getID, cardType, a1, a2, a3, a4, a5, a6) triggerClientEvent( 'aBo', source) end ) addCommandHandler ( "ادآرة المشتريآات", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end )
-
يآقميل هذا هو شوفه بي نفسك ي الحبيب ورجاء لاتقول كلام وانت مانت مدور شيء
-
قصدك علي ولا على مين ي الاخ هذا موو حق وناسه اصل و ثاني شيء شوف اليوتيوب روح
-
انا عدلت ع الوحه وهذا في اليوتيوب منشور و اصله من سيرفر كنق الطآره انا عدلت عليه ع الوحات ض1 بس
-
كل شيء موجود انا حاط بوتن مخفي يقولي لي : سسطر 135 Bad argument @ "guisetVisible "[expected gui-element at argument
-
GUIEditor = { button = {}, staticimage = {}, checkbox = {}, label = {}, edit = {}, } local Interpolate = {} local sX, sY = guiGetScreenSize () local sizeY = sY * 0.03 local positionX = sX * 0.01 local r, g, b, a1, a2 = 131, 195, 254, 79, 79 local restangleX, restangleY = sX * 0.04, sY * 0.04 local showItemsLog_ = false local showItemsLod_ = true local Skins = { { "Saudi dress | الثوب السعودي ", 46 }, { "Black dress | الثوب الاسود ", 124 }, { "CJ | سي جي", 0 }, } local mainTable = { { -3363.34082, -3146.86963, 5.75354 }, { -3361.39941, -3129.69287, 5.75354 }, { -3349.14819, -3117.84546, 5.75354 }, { -3355.51538, -3101.37817, 5.75354 }, { -3361.49097, -3183.07007, 5.75354 }, { -3349.14380, -3175.81006, 5.75354 }, --{ X, Z, Y },- } local aldayariTable = { { 1820.47192, 872.12341, 10.62148 }, { 1771.59448, 880.22327, 10.45102 }, { 1772.50061, 820.93781, 10.65572 }, { 1832.46057, 807.70935, 10.82031 }, --{ X, Z, Y },- } local alnakheelTable = { { 274.96768, 1990.04614, 17.64063 }, { 274.96768, 1990.04614, 17.64063 }, { 274.96768, 1990.04614, 17.64063 }, --{ X, Z, Y },- } local longTable = { { -3709.8203125, -2999.9025878906, 53.955368041992 }, { -3709.8203125, -2999.9025878906, 53.955368041992 }, { -3709.8203125, -2999.9025878906, 53.955368041992 }, { -3709.8203125, -2999.9025878906, 53.955368041992 }, --{ X, Z, Y },- } local Places = { { "Main Place | البداية", longTable }, { "AlDayari | الدائري", aldayariTable }, { "AlTas| الطعس", alnakheelTable }, { "SA7H| ساحة القتال", alnakheelTable }, } function onEnter ( _, _, x, y ) if ( x >= sX * 0.16 and y >= sY * 0.65 and x <= ( sX * 0.16 + sX * 0.18 ) and y <= ( sY * 0.65 + sY * 0.06 ) ) then a1 = 255 elseif ( x >= sX * 0.16 and y >= sY * 0.75 and x <= ( sX * 0.16 + sX * 0.18 ) and y <= ( sY * 0.75 + sY * 0.06 ) ) then a2 = 255 else a1 = 79 a2 = 79 end end addEventHandler( 'onClientGUIClick', root, function() if GUIEditor.button[1] == source then if ( guiGetText ( GUIEditor.edit[1] ) ~= "" and guiGetText ( GUIEditor.edit[1] ) ~= " " ) then if ( guiGetText ( GUIEditor.edit[2] ) ~= "" and guiGetText ( GUIEditor.edit[2] ) ~= " " ) then if ( string.len ( guiGetText ( GUIEditor.edit[1] ) ) >= 3 ) then if ( string.len ( guiGetText ( GUIEditor.edit[2] ) ) >= 4 ) then if ( guiCheckBoxGetSelected ( GUIEditor.checkbox[1] ) ) then remeber = true else remeber = false end if ( guiCheckBoxGetSelected ( GUIEditor.checkbox[2] ) ) then destroyElement ( sound ) end triggerServerEvent("onRegister", localPlayer, guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), remeber) else outputChatBox("* Password should be at least 4 characters long !", 255, 0, 0, true, 5) end else outputChatBox("* Username should be at least 3 characters long !", 255, 0, 0, true) end else outputChatBox("* Please Write Password !", 255, 0, 0, true) end else outputChatBox("* Please Write Username !", 255, 0, 0, true) end elseif GUIEditor.button[2] == source then if ( guiGetText ( GUIEditor.edit[1] ) ~= "" and guiGetText ( GUIEditor.edit[1] ) ~= " " ) then if ( guiGetText ( GUIEditor.edit[2] ) ~= "" and guiGetText ( GUIEditor.edit[2] ) ~= " " ) then if ( guiCheckBoxGetSelected ( GUIEditor.checkbox[1] ) ) then remeber = true else remeber = false end if ( guiCheckBoxGetSelected ( GUIEditor.checkbox[2] ) ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end end triggerServerEvent("onLogin", localPlayer, guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), remeber) else outputChatBox("* Please Write Password !", 255, 0, 0, true) end else outputChatBox("* Please Write Username !", 255, 0, 0, true) end end end ) --------------------------- function loadingSystem () dxDrawRectangle ( sX * 0.41, sY * 0.97, positionX, sY * 0.02, tocolor(255, 255, 0, 255), true ) dxDrawText ( "loading...", sX * 0.69, sY * 1, sX * 0.42, sY * 0.10, tocolor(255, 0, 255, 255), 1.30, "default-bold", "center", "center", false, false, true, false, false ) end function loginSystem() GUIEditor.staticimage[1] = guiCreateStaticImage(131, 56, 613, 503, ":guieditor/images/SSSS.png", false) guiSetVisible (GUIEditor.staticimage[1], false) GUIEditor.edit[1] = guiCreateEdit(135, 211, 124, 30, "", false, GUIEditor.staticimage[1]) guiSetAlpha(GUIEditor.edit[1], 0.58) guiSetVisible ( GUIEditor.edit[1], false ) GUIEditor.edit[2] = guiCreateEdit(131, 285, 123, 27, "", false, GUIEditor.staticimage[1]) guiSetAlpha(GUIEditor.edit[2], 0.58) guiSetVisible ( GUIEditor.edit[2], false ) GUIEditor.button[1] = guiCreateButton(80, 414, 91, 64, "", false, GUIEditor.staticimage[1]) guiSetAlpha(GUIEditor.button[1], 0.00) GUIEditor.button[2] = guiCreateButton(214, 414, 91, 64, "", false, GUIEditor.staticimage[1]) guiSetAlpha(GUIEditor.button[2], 0.00) GUIEditor.label[1] = guiCreateLabel(456, 210, 112, 44, "", false, GUIEditor.staticimage[1]) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.checkbox[1] = guiCreateCheckBox(150, 318, 118, 32, "ذكرني !", true, false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFF87806") guiSetVisible ( GUIEditor.checkbox[1], false ) end function startLoginSystem () local now = getTickCount() local elapsedTime = now - Interpolate.startTime local duration = Interpolate.endTime - Interpolate.startTime local progress = elapsedTime / duration local _, height, _ = interpolateBetween ( 0, Interpolate.startSize[1], 0, 0, Interpolate.endSize[1], 0, progress, "Linear") sizeY = height if now >= Interpolate.endTime then removeEventHandler ( "onClientRender", root, startLoginSystem ) addEventHandler ( "onClientCursorMove", root, onEnter ) addEventHandler ( "onClientClick", root, onClick ) showItemsLog_ = true guiSetVisible ( GUIEditor.staticimage[1], true ) guiSetVisible ( GUIEditor.edit[1], true ) guiSetVisible ( GUIEditor.edit[2], true ) guiSetVisible ( GUIEditor.checkbox[1], true ) triggerServerEvent ( "onGetData", localPlayer ) showCursor ( true ) guiSetInputEnabled ( true ) end end function stopLoginSystem () local now = getTickCount() local elapsedTime = now - Interpolate.startTime local duration = Interpolate.endTime - Interpolate.startTime local progress = elapsedTime / duration local _, height, _ = interpolateBetween ( 0, Interpolate.startSize[1], 0, 0, Interpolate.endSize[1], 0, progress, "Linear") setTimer ( function () Interpolate.startTime = getTickCount () Interpolate.startSize = { restangleX, restangleY } Interpolate.endSize = { sX * 0.26, sY * 0.70 } Interpolate.endTime = Interpolate.startTime + 4000 addEventHandler("onClientRender", root, SpawnSystem) addEventHandler("onClientRender", root, startSpawnSystem) ped = createPed ( 46, 2021.6166992188,1007.6680908203 ,10.1 ,370 ) end, 11000, 1 ) end addEventHandler( 'onClientGUIClick', root, function() if GUIEditor.button[1] == source then outputChatBox("Welcome To The Server", 255, 0, 0) end end ) function startLoadingSystem () local now = getTickCount() local elapsedTime = now - Interpolate.startTime local duration = Interpolate.endTime - Interpolate.startTime local progress = elapsedTime / duration local width, _, _ = interpolateBetween ( Interpolate.startPosition[1], 0, 0, Interpolate.endPosition[1], 0, 0, progress, "Linear") positionX = width if now >= Interpolate.endTime then removeEventHandler ( "onClientRender", root, startLoadingSystem ) removeEventHandler ( "onClientRender", root, loadingSystem ) sound = playSound ( "ss.mp3" ) setCameraMatrix ( 2041.28455, -1458.69348, 29.88905 ) fadeCamera ( true, 5 ) setTimer ( function () Interpolate.startTime = getTickCount () Interpolate.startSize = { sY * 0.03 } Interpolate.endSize = { sY * 0.80 } Interpolate.endTime = Interpolate.startTime + 3000 addEventHandler("onClientRender", root, loginSystem) addEventHandler("onClientRender", root, startLoginSystem) end, 6000, 1 ) end end --------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() window = guiCreateWindow(0, 164, 203, 350, "لـــوحـــة آلسسبآونء", false) guiWindowSetSizable( window, false) guiSetVisible ( window, false ) GUIEditor.button[3] = guiCreateButton(37, 313, 122, 27, "- * Spawn * -", false, window) guiSetVisible ( GUIEditor.button[3], false ) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.gridlist[1] = guiCreateGridList(10, 40, 184, 120, false, window) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin", 0.5)
-
يا محششين هذا مو من اللعبة هذا مود يوفر لك الفنكشن ذا https://wiki.multitheftauto.com/wiki/DxGUI هههههههههه طيب لو حطيت بوتن مخفي زبط لكن لما اجي عليه مايطلع تآثير احسن شيء اسسوي فانكشن واحد شفافية الصوره 50 واذا حدد عليه او جاء عليه تسير 100 هذا احسن شي صح
-
ردو ي مبرمجين
-
هذا وش اول مره اشوفه ض1
-
ياشباب مممكن اسهل طريقه لعمل زر دي اكس
-
هل يوجد احد يقوم بتوضيح اخطائي او التحققات او الاشياء الباقيه وشكرا
-
تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه اخوي عدلت كل شيء وظهررت الوحه و لوحة الادآره كمان تظهر لكن لم اكتب في الاديت رقم + احدد من شيك بوكس و اضرب البوتن حق الارسال مايجي شيء المحآوله كلنت GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root,function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = GUIEditor.checkbox[1] or GUIEditor.checkbox[2] or GUIEditor.checkbox[3] if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = GUIEditor.checkbox[4] or GUIEditor.checkbox[5] or GUIEditor.checkbox[6] item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (GUIEditor.edit[1] and GUIEditor.edit[2] and GUIEditor.edit[3] and GUIEditor.edit[4] and GUIEditor.edit[5] and GUIEditor.edit[6] ~= "" )then if (not tonumber(GUIEditor.edit[1]) and not tonumber(GUIEditor.edit[2]) and not tonumber(GUIEditor.edit[3]) and not tonumber(GUIEditor.edit[4]) and not tonumber(GUIEditor.edit[5]) and not tonumber(GUIEditor.edit[6])) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(GUIEditor.edit[1]) local b11 = guiGetText(GUIEditor.edit[2]) local c11 = guiGetText(GUIEditor.edit[3]) local a22 = guiGetText(GUIEditor.edit[4]) local b22 = guiGetText(GUIEditor.edit[5]) local c22 = guiGetText(GUIEditor.edit[6]) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end ) ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) سيرفر executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "ss", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end ) ياجمآعه مافيا اخطاء الى بي كود فتح الوحه الدي بوق مابين اخطاء كله صلحته الى حق فتح الوحه bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end )
-
اهم شي الاخلاق ثاني شي اشرح الفكره ترا يمكن بعض الناس ماهي فاضيه تضيفك واذا بفلوسك تذل الناس يعني ؟ اهم شي الاخلاق يحبيبي ما عندكم لي شي اعملولي المود لابيه واعطيك الفلوس وبعدها لا تعرفني ولا اعرفك لا توجعولي راسي والله ماظنتي ان احد بيسويلك و اخلاقك سيئه كذا الاخلاق اهم شيء مو كل شيء تشتريه بي فلوسك يمكن لو اخلاقك كويسه يسونه لك + وضح فكرت المود هنا لان اشكلهم مامعهم سكايبي تءرى مو كل شيء ينشرىى بي الفلوس بعض الاشيا
-
تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه اخوي عدلت كل شيء وظهررت الوحه و لوحة الادآره كمان تظهر لكن لم اكتب في الاديت رقم + احدد من شيك بوكس و اضرب البوتن حق الارسال مايجي شيء المحآوله كلنت GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root,function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = GUIEditor.checkbox[1] or GUIEditor.checkbox[2] or GUIEditor.checkbox[3] if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = GUIEditor.checkbox[4] or GUIEditor.checkbox[5] or GUIEditor.checkbox[6] item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (GUIEditor.edit[1] and GUIEditor.edit[2] and GUIEditor.edit[3] and GUIEditor.edit[4] and GUIEditor.edit[5] and GUIEditor.edit[6] ~= "" )then if (not tonumber(GUIEditor.edit[1]) and not tonumber(GUIEditor.edit[2]) and not tonumber(GUIEditor.edit[3]) and not tonumber(GUIEditor.edit[4]) and not tonumber(GUIEditor.edit[5]) and not tonumber(GUIEditor.edit[6])) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(GUIEditor.edit[1]) local b11 = guiGetText(GUIEditor.edit[2]) local c11 = guiGetText(GUIEditor.edit[3]) local a22 = guiGetText(GUIEditor.edit[4]) local b22 = guiGetText(GUIEditor.edit[5]) local c22 = guiGetText(GUIEditor.edit[6]) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end ) ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) سيرفر executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "ss", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end )
-
تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه
-
اوك ي الغالي بحل ان شاء الله كل شيء بي الدي بوق ممكن سكايبي اخي
-
اوك ي الغالي بحل ان شاء الله كل شيء بي الدي بوق
-
سطر 28 , 30, 32, 51, 56, 58, 92, 93, 94, عد واغلط ذا بس الكلينت السيرفر ماشيكت عليه, والكلينت باقي فيه اخطاء .. ---- صلحت الاغلاط الي قلت لي شوف المحآوله GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) a1 = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(a1, "NormalTextColour", "FFC30000") b2 = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFB4A20A") c1 = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(c1, "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) a2 = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(a2, "NormalTextColour", "FF873671") b2 = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFA81456") c2 = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(c2, "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) a11 = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) b11 = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) c11 = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) a22 = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) b22 = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) c22 = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(a1) == false and guiCheckBoxGetSelected(b1) == false and guiCheckBoxGetSelected(c1) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = a1 or b1 or c1 if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(a2) == false and guiCheckBoxGetSelected(b2) == false and guiCheckBoxGetSelected(c2) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = a2 or b2 or c2 item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (a11 and b11 and c11 and a22 and b22 and c22 ~= "" )then if (not tonumber(a11) and not tonumber(b11) and not tonumber(c11) and not tonumber(a22) and not tonumber(b22) and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if ((a11 ~= "") and not tonumber(a11) or (b11 ~= "") and not tonumber(b11) or (c11 ~= "") and not tonumber(c11) or (a22 ~= "") and not tonumber(a22) or (b22 ~= "") and not tonumber(b22) or (c22 ~= "") and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(a11) local b11 = guiGetText(b11) local c11 = guiGetText(c11) local a22 = guiGetText(a22) local b22 = guiGetText(b22) local c22 = guiGetText(c22) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end end ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens )
-
لا ي الغالي قول لي وين الاغلآط وانا بسويه مثل وش ناقصني ووش زي كذا ^
-
---------------------------- 1- فكرت المود المود عباره عن لوحتين لوحه فيه 6 شك بوكس 3 منه لحال و 3 لحال ال3 الاول نوع الشيء مثل يبي يشتري تاج -ساعات -املاك ال3 الثاني طريقة الشراء كاش يو - سواء -موبايل بعدين فيه 6 ايدت يحط فيه ارقام البطآيق و لما يمليه ويظغط زر ارسال المعلومات تروح ل لوحة الادآره لوحة آلآدره فيه جريد لست و 4 كولمن الكولمن الاول اسم الاعب الثاني نوع المشترى الثالث بنوع الباقه الرابع ارقام الي ارسله وفيه 1 بوتن واحد يحذف من الكولمن المحددد عليه -------------------------------------- GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) a1 = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(a1, "NormalTextColour", "FFC30000") b2 = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFB4A20A") c1 = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(c1, "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) a2 = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") b2 = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[5], "NormalTextColour", "FFA81456") c2 = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) a11 = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) b11 = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) c11 = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) a22 = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) b22 = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) c22 = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root) function (item,text) if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(a1) == false and guiCheckBoxGetSelected(b1) == false and guiCheckBoxGetSelected(c1) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end if (not getItemSelected or getItemSelected == "")then local aa = a1 or b1 or c1 if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- local bb = a2 or b2 or c2 if (guiCheckBoxGetSelected(a2) == false and guiCheckBoxGetSelected(b2) == false and guiCheckBoxGetSelected(c2) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (a11 and b11 and c11 and a22 and b22 and c22 ~= "" )then if (not tonumber(a11) and not tonumber(b11) and not tonumber(c11) and not tonumber(a22) and not tonumber(b22) and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if ((a11 ~= "") and not tonumber(a11) or (b11 ~= "") and not tonumber(b11) or (c11 ~= "") and not tonumber(c11) or (a22 ~= "") and not tonumber(a22) or (b22 ~= "") and not tonumber(b22) or (c22 ~= "") and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(a11) local b11 = guiGetText(b11) local c11 = guiGetText(c11) local a22 = guiGetText(a22) local b22 = guiGetText(b22) local c22 = guiGetText(c22) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end end end end end ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "الكلمه اف 8", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end )
