Jump to content

Wleed1998

Members
  • Posts

    320
  • Joined

  • Last visited

Everything posted by Wleed1998

  1. ردو يـآ جمآعه ردو ابي ليبل متحر يمشي من اليسار الى اليمين و يوقف في نصف الشاشه ثمن يرجع يسار الى مكآنه الاول طريقتي الي فوق كيف يـ شبآب
  2. ويت كذا لكن الليبل مايتحرك آبدآ ض1 function set1( ) local x, y = guiGetPosition ( GUIEditor.label[1], false ) if x > 1000 then return end guiSetPosition ( GUIEditor.label[1], x + 2, y, false ) end function set2 ( ) local x, y = guiGetPosition ( GUIEditor.label[1], false ) if x < 150 then return setTimer ( set1, 5000, 1, GUIEditor.label[1],x ) end guiSetPosition ( GUIEditor.label[1], x - 2, y, false ) end
  3. يب ابي الفانكشنات المطلوبه
  4. فكرته 3 شك بوكس نوع الدفع\ سواء او كاش يوم او موبايل ثمن 3 شيك بوكس ساعات او تاجات او املاك ثمن 6 ايدات الاديت انا جايبه من الكلنت و مرسله بي اسمه a1 a2 a3 a4 a5 a6 طبعآ الي ينكتب بي الاديت يروح بي ميمو و الي ينحدد يروحل قائمة الجريد لست معي ميمو انا مسوي كل واحد يرسل تصفتحت بعض فرق بينهم 2 سطر ااما القريد ليست 4 كولمن الاول اسم حساب الاعب الثاني نوع بطآقة الشراء الثالث نوع المشترى الرابع سريال الاعب ان شاء الله فهمتني
  5. نكست تعال لي خاص برسلك الاكواد و شوف لاهنت
  6. يب القريد ليت فيه يجي الي يكتب في الاديت و كذا بس انا مو حاط كل الاكواد السريال له كولمن واحد خاصه
  7. addEvent( 'NewP', true ) addEventHandler( 'NewP', root, function( ID1, getID, ID2) Wleed1 = executeSQLQuery("SELECT * FROM ` Buy1 ` WHERE ` playerSerial ` = ?", getPlayerSerial(source) ) local ID11 = ID1 local getID2 = getID local D2 = ID2 local Account = getAccountName (source) local serial1 = getPlayerSerial (source) if ( type ( Wleed1 ) == 'table' and #Wleed1 == 0 or not Wleed1 ) then executeSQLQuery( ' INSERT INTO ` Buy1 ` (playerSerial,ID1, getID, ID2 ,Name) VALUES(?, ?, ?, ?, ?) ', getPlayerSerial(source), ID11, getID2, D2 ) else executeSQLQuery( ' UPDATE ` Buy1 ` SET ` playerSerial ` = ?, ID11 = ?, getID2 = ?, D2 = ? ', getPlayerSerial(source), ID11, getID2, D2 ) triggerClientEvent(root,'aBo',root, ID11, getID2, D2,Account,serial1) end end )
  8. يب اعرف السكربت مفهي ولا مشكله اعرف انا ناسخ بس حق السريال ض1 المهم ي عسل ان السريال مايجي في الكولمن
  9. انا حاط كولمن ل السريال بس مايجي الكود حق تقرير السيرفر معي و ترى اان بس معطيكم حق السريال لان هو بس الخطا فيه كلنت : addEvent( "aBo", true ) addEventHandler ( "aBo" ,root, function (serial1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,serial1,false,false) سيرفر : addEvent( 'NewP', true ) addEventHandler( 'NewP', root, function() local serial1 = getPlayerSerial (source) triggerClientEvent(root,'aBo',root,serial1) )
  10. addEventHandler("onClientGUIClick",root, function() if source == Position then local selectedRow, selectedCol = guiGridListGetSelectedItem( GridList ) local playerName = guiGridListGetItemText( GridList, selectedRow, selectedCol ) local x,y,z = getElementPosition (localPlayer) guiSetText (editPosition1, x ) guiSetText (editPosition2, y ) guiSetText (editPosition3, z ) end end) جرب
  11. طيب لو الاعب الثاني رسل كيف تجي ابيه تجي تحت بعض ض1 + كيف اخليه توصل الاعب الثاني + كيف اخلي حالتهم مثل ماقلت و كيف لما اضرب ع اسم الاعب تجي الوحه الثاني حقت الدردشه
  12. السلام عليكم ورحمة الله وبركاته شبآب انا ابي اسوي دردشه خاصه اب يالفانكشنات عباره عن جريد ليست فيه اسماء لعيبه لما اضربه يطلع لوحه فيه ميمو حق الدردشه و اديت بوكس و بوتن لما اكتب في الاديت بوكس و اضرب ارسال تترسل للميمو و توصل الاعب الثاني ي ليت تقلولي وش اعمل وفيه كولمن ثاني جن باسماء العيبه حالتهم ابي اسوي حالة 4 حالة بي الخارج او مشغول او متصل او غير متصل زي كذا ابي الفانشكانت المطلوبه ي اخواني
  13. اخي زبط صار يحط الشفافيه 1 لكن ي اخي يحه ويشيله ع طول يعني حتى لو دخلت الصوره بس يجي و يروح وانا لسى حآط الموؤشر ع الصوره
  14. لما احددد ع الصوره مايجي شففيتها 100 تجي 50 و ماتضرب الى لزم 100
  15. GUIEditor = { label = {}, checkbox = {}, edit = {}, staticimage = {}, } GUIEditor.staticimage[1] = guiCreateStaticImage(344, 219, 670, 342, ":guieditor/images/dot_white.png", false) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:483B0000 tr:483B0000 bl:483B0000 br:483B0000") guiSetVisible ( GUIEditor.staticimage[1], false ) GUIEditor.edit[1] = guiCreateEdit(10, 63, 243, 41, "", false, GUIEditor.staticimage[1]) GUIEditor.edit[2] = guiCreateEdit(10, 137, 243, 41, "", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(10, 38, 238, 25, "آسسم الحســآب", false, GUIEditor.staticimage[1]) local font_0 = guiCreateFont(":send-flos/mhmed12.ttf") guiSetFont(GUIEditor.label[1], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(15, 108, 238, 25, "كــلــمة آلســـر", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.checkbox[1] = guiCreateCheckBox(35, 188, 208, 33, "حفظ آلمعلومآت", false, false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.checkbox[1], font_0) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "F5D70101") GUIEditor.edit[3] = guiCreateEdit(400, 63, 243, 41, "", false, GUIEditor.staticimage[1]) GUIEditor.edit[4] = guiCreateEdit(400, 137, 243, 41, "", false, GUIEditor.staticimage[1]) GUIEditor.label[3] = guiCreateLabel(405, 38, 238, 25, "آسسم الحســآب", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(405, 114, 238, 25, "كــلــمة آلســـر", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[4], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.staticimage[4] = guiCreateStaticImage(410, 237, 237, 50, ":guieditor/images/dot_white.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[4], "ImageColours", "tl:9EFF7B7B tr:9EFF7B7B bl:9EFF7B7B br:9EFF7B7B") GUIEditor.label[5] = guiCreateLabel(1, 3, 232, 44, "تـــســـجـــيـــل", false, GUIEditor.staticimage[4]) guiSetAlpha(GUIEditor.label[5], 0.50) guiSetFont(GUIEditor.label[5], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.staticimage[5] = guiCreateStaticImage(10, 238, 237, 50, ":guieditor/images/dot_white.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[5], "ImageColours", "tl:9EFF7B7B tr:9EFF7B7B bl:9EFF7B7B br:9EFF7B7B") GUIEditor.label[6] = guiCreateLabel(3, 2, 232, 45, "تـــســـجـــيــل دخـــول", false, GUIEditor.staticimage[5]) guiSetAlpha(GUIEditor.label[6], 0.50) guiSetFont(GUIEditor.label[6], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[6], "center") GUIEditor.staticimage[6] = guiCreateStaticImage(326, 188, 711, 31, ":guieditor/images/dot_white.png", false) guiSetProperty(GUIEditor.staticimage[6], "ImageColours", "tl:9EFF7B7B tr:9EFF7B7B bl:9EFF7B7B br:9EFF7B7B") guiSetVisible ( GUIEditor.staticimage[6], false ) GUIEditor.label[7] = guiCreateLabel(2, 5, 709, 25, "لــــوحـــــــة تــــســـجـــيـــل دخـــول", false, GUIEditor.staticimage[6]) guiSetFont(GUIEditor.label[7], font_0) guiLabelSetHorizontalAlign(GUIEditor.label[7], "center", true) guiLabelSetVerticalAlign(GUIEditor.label[7], "center") guiSetAlpha ( GUIEditor.staticimage[4], 0.5 ) guiSetAlpha ( GUIEditor.staticimage[5], 0.5 ) addEventHandler( 'onClientMouseEnter', root, function() if source == GUIEditor.staticimage[4] then guiSetAlpha ( GUIEditor.staticimage[4], 1.0 ) elseif source == GUIEditor.staticimage[5] then guiSetAlpha ( GUIEditor.staticimage[5], 1.0 ) end end ) addEventHandler( 'onClientMouseLeave', root, function() if source ~= GUIEditor.staticimage[4] then guiSetAlpha ( GUIEditor.staticimage[4], 0.5 ) elseif source ~= GUIEditor.staticimage[5] then guiSetAlpha ( GUIEditor.staticimage[5], 0.5 ) end end addEventHandler( 'onClientGUIClick', root, function () if ( source == GUIEditor.staticimage[5] ) 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 ( source == GUIEditor.staticimage[4] ) then if ( guiGetText ( GUIEditor.edit[3] ) ~= "" and guiGetText ( GUIEditor.edit[3] ) ~= " " ) then if ( guiGetText ( GUIEditor.edit[4] ) ~= "" and guiGetText ( GUIEditor.edit[4] ) ~= " " ) 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 ) addEvent("onClose",true) addEventHandler("onClose",root, function () guiSetVisible(GUIEditor.staticimage[1],false) guiSetVisible(GUIEditor.staticimage[6],false) showCursor(false) guiSetInputEnabled(false) Show() end ) وش الاخطاء مايجي ع الزر لما اجي ع الصوره بي الماوس مايصير شففيته كامله ض1 تظل 50 زي ما هي + مايسجل ليه
  16. الان انا حطيت شوف ذا اليبل يتحرك يسار لين مكان مآبدي لكن مايرجع local againStartMove = 1183 local endMove = 498 addEventHandler("onClientRender",root,function() local x,y = guiGetPosition(GUIEditor.label[1],false) guiSetPosition(GUIEditor.label[1],x + 1,y,false) if ( x >= endMove ) then guiSetPosition(GUIEditor.label[1],x -1,y,false) end end) وانا حاط في الاو ل +1 ولما ابي ارجع اخلي -1
  17. انا ابيه يتحرك من يمين لـ يسار لمنصف الشاشه ثمن يقف 2 ثانيه ثمن يرجع مكآنه الاول و يختفي ابي بس شرح الاحدثيات لانه صعبه شوي ض1
  18. ممكن مثال او شرح ي ليت لان الاحدثيات guiSetPosition
  19. مممكن الفانكشن و مثال عليه ابي احرك ليبل من مكان لـ مكآن + ابي لما آجيب الماوس على صوره تصير الشافافيه 100 انا حاط الصوره شففيتها 50 ابي لما يجي علي يحدد تصير 100 لين يطلع منه ثمن ترجع 50 ض1
  20. WTF !!!!! اسف ي رجال واضح انه غلط اان قاصده زابط ض1 وانا اكتبه سريع اسفقين ع العموم ردو ع المشكله ممكن حلها
  21. يب ض1 بغيره addEventHandler( "onElementClicked", getRootElement() ) ---- هذا حق السيرفر صح؟
  22. اهنيك ي نكست شرح ولا اروع يعطيك العافيه ي الغالي و تسلم ع المجهود ان شاء الله الناس تدخل تطلع ب فائده بس اقدر احفظ ساعات الاعب به يعني اخليه ملف في الاستضافه ؟ او شيء ض1 غير مثل انا عندي اديت بوكس لما اكتب فيه او اي لاعي يكتب يرسل و كل ما ارسل احد تجي بين كل لاعب و لاعب مسافه ض1
  23. ي الاخ الي فوق حق عبد الكريم زآبط انا بس ابي اضيف الي اخر واحد يفوز و بس
  24. يب اخر لاعب يبقى يفوزز + لو دخل واحد بسالمهمه ما احد دخل بعد 5 دقائق يصكه كيل بيد الي يموت ينحذف من الجدول + الي يطلع بر السيرفر
×
×
  • Create New...