
Mr.R
Members-
Posts
775 -
Joined
-
Last visited
Everything posted by Mr.R
-
انا مادري وش خلاني اقول يدوي قصدي اذا انتقلت لـ مكان صح يقول تم الانتقال الى المكان الفلاني ويجيب اسمه من التيبل انا مابي كذا , ابي انا اكتبها بنفسي تم الانتقال الى النخيل مثلا زي كذا , ومشكور ماقصرت معي صراحه عطيتني معلومات ماكنت اعرفها
-
طيب يآلزاحف ابي خدمتين بسيطه لاهنت 1- وش الاضافات حقت اكواد الالوان غير هذي if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end timerColor = setTimer ( function ( ) local RandomColor = string.format( "%.2X%.2X%.2X%.2X", 255, math.random( 255 ), math.random( 255 ), math.random( 255 ) ) guiSetProperty ( Button1, "NormalTextColour", RandomColor ) guiSetProperty ( Button2, "NormalTextColour", RandomColor ) guiSetProperty ( wnd, "CaptionColour", RandomColor ) end, 300, 0 ) 2- ابي لما انتقل الى مكان يكتب لي في الشات تم الانتقال الى المكان الفلاني بدون مايجيب اسمه من التيبل تلقائي يعني يدوي ومشكور لبى
-
انا ابي اسم النافذه والازرار تتلون ورى بعض مثلآ , احمر اخضر ازرق في 3 ثواني يعني يتلون الزر عدة الوان والاشياء الي ابغيها , الي انا سويتها وماظبطت واهم شيء اني حاولت ان اخلي الازرار تتلون عدة الوان ورى بعض واذا اخترت مكان وانتقلت له يقول : تم الانتقال الى المكان الفلاني بدون مايجيب الاسم من التيبل يعني انا اكتب بنفسي تم الانتقال الى المكان الفلاني بدون مايجيب اسمه المود تلقائي ومشكور يالذيب ذي الناقصه
-
مثل المشكله !! الكلام الي على الازرار مختفي مايطلع الا اذا حطيت مؤشر الماوس عليه ! صلحها لي لاهنت وابي خدمه بسيطه جدأ وهي مخرج نص اذا ركب سياره وسوى انتقال مثلا الغروب يقول له ماتقدر لانك داخل سياره انا اعرف اسوي كودها بس مادري وين احطه بالضبط انتظرك <3
-
كل شيء تمام مشكور والله وسويت كود الاوان ذا بس جربته بتايمر وبدون تايمر اذا حطيت التايمر , يختفي الكلام الي ع الزر واذا اشرت عليه بمؤشر الماوس يطلع واذا شلت التايمر اللون ابيض مثل ماهو , مادري وش المشكله وهذا الكود الي طلع معي شوف مشكلة الالوان لاهنت --[[------------------------------------------------- Created By Mr.R Skype : Httttt7_Ksa --]]------------------------------------------------- GUIEditor = { label = {}, staticimage = {} } WarpTaple = { -- تيبل للانتقالات { "الدائــــــــــري -1", "d.png", 1815.40515, 870.14069, 10.53743 }, { "النــــخــــيــــل -2", "n.png", 2077.17993, 868.93744, 6.86413 }, { "الــــــغــــــروب -3", "g.png", 674.92969, 1931.07874, 5.53906 }, } addEventHandler("onClientResourceStart", resourceRoot, function ( ) outputChatBox ( "=[ Panel Places By Mr.R ]=", 255, 0, 0, true ) -- اخراج نص في الشات outputChatBox ( "=[ Press 'F3' To Open It ]=", 255, 0, 0, true ) -- اخراج نص في الشات wnd = guiCreateWindow(181, 109, 426, 360, "=[ Panel Places v1.0 By Mr.R ]=", false) guiSetVisible (wnd, false ) guiWindowSetSizable(wnd, false) GridList = guiCreateGridList(9, 22, 202, 328, false, wnd) guiGridListAddColumn(GridList, "Places ...", 0.9) for _,v in ipairs ( WarpTaple ) do local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, v[1], false, false ) guiGridListSetItemData ( GridList, row, 1, { v[3], v[4], v[5] } ) end Button1 = guiCreateButton(250, 247, 134, 39, "=[ Warp ]=", false, wnd) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") Button2 = guiCreateButton(250, 296, 134, 39, "=[ X ]=", false, wnd) setElementData(Button1, "tooltip-text", "انتقال", false) setElementData(Button2, "tooltip-text", "اغلاق", false) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(221, 28, 178, 155, "MTA.png", false, wnd) GUIEditor.label[1] = guiCreateLabel(264, 188, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 245, 7, 46) GUIEditor.label[2] = guiCreateLabel(343, 209, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 191, 25, 226) end ) bindKey ( "F3", "down", function ( )-- وظيفة قفل+فتح النافذه guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == GridList ) then if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local fName = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) for _,v in ipairs ( WarpTaple ) do if ( v[1] == fName ) then if ( v[2] ~= "" or v[2] ~= " " ) then guiStaticImageLoadImage ( GUIEditor.staticimage[1], tostring ( v[2] ) ) end end end else guiStaticImageLoadImage ( GUIEditor.staticimage[1], "MTA.png" ) end elseif ( source == Button1 ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then if ( isTimer ( Timer ) ) then return end Timer = setTimer ( function ( ) end, 4000, 1 ) setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) ) ) outputChatBox ( " تــم الإنــتقــال إلــى".. guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) .."", 255, 255, 0, true ) else outputChatBox ( "الرجــاء اخـتـيـار مـكـاناً للإنـتقـال إلـيه !", 255, 0, 0, true ) end elseif ( source == Button2 ) then guiSetVisible ( wnd, false ) showCursor ( false ) end end ) function lon() guiSetProperty(wnd, "CaptionColour", math.random(255), math.random(255), math.random(255)) guiSetProperty(Button1, "NormalTextColour", math.random(255), math.random(255), math.random(255)) guiSetProperty(Button2, "NormalTextColour", math.random(255), math.random(255), math.random(255)) end وودي اذا ضغطت انتقال , يطلع تم الانتقال الى المكان الفلاني بدون مايجيب اسمه من التيبل ومشكور لبى قلبك
-
آلشكر لله ولبى قلبك آنت بعد انشآء الله نشوفك من كبآر آلمبرمجين عن قريب بأذن الله
-
ابو شنب فيه خطا لما اضغط زر انتقال يقول تم الانتقال وماينقلني الخطا في setElementPosition في سطر 69 >< صلحلي الكود لاهنت <3 وحطلي اضافه حلوه من عندك الازرار واسم النافذه تتلون عدة الوان ورى بعض واذا ضغط زر انتقال بدون مايحدد على الرو يطلع له في الشات Please Select Place انتظرك <3
-
مشكورين كل من علق لبى قلوبكم افدتوني وتعلمت من اخطأي , شكر خاص ابو شنب وكنق و shweaki ظبط كل شيء اشكركم + تمت الافاده
-
مشكورين على اكوادكم استفدت منها كلها هذا الكود عاجبني مثل طبلاتي بالضبط , بس فيه مشكله يابو شنب اذا ضغط زر ماينقلني ناقص شيء واحد وهو الانتقال اذا ضغطت الزر ماينقل , لو نحلها خلاص بكون مبسوط لان كل شيء بغيته موجود وعرفت له اذا ضغطت زر ونتقال يطلع لي في الشات تم الانتقال بس ماينقلني وهذا الكود --[[------------------------------------------------- Created By Mr.R Skype : Httttt7_Ksa --]]------------------------------------------------- GUIEditor = { label = {}, staticimage = {} } WarpTaple = { -- تيبل للانتقالات { "الدائــــــــــري", "d.png", 1815.40515, 870.14069, 10.53743 }, { "النــــخــــيــــل", "n.png", 2077.17993, 868.93744, 6.86413 }, { "الــــــغــــــروب", "g.png", 674.92969, 1931.07874, 5.53906 }, } addEventHandler("onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(181, 109, 426, 360, "=[ Panel Places v1.0 By Mr.R ]=", false) guiSetVisible (wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFFA0000") guiWindowSetSizable(wnd, false) GridList = guiCreateGridList(9, 22, 202, 328, false, wnd) guiGridListAddColumn(GridList, "Places ...", 0.9) for _,v in ipairs ( WarpTaple ) do local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, v[1], false, false ) guiGridListSetItemData ( GridList, row, 1, { v[3], v[4], v[6] } ) end Button1 = guiCreateButton(250, 247, 134, 39, "=[ Warp ]=", false, wnd) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") Button2 = guiCreateButton(250, 296, 134, 39, "=[ X ]=", false, wnd) setElementData(Button1, "tooltip-text", "انتقل", false) setElementData(Button2, "tooltip-text", "اغلاق", false) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(221, 28, 178, 155, "MTA.png", false, wnd) GUIEditor.label[1] = guiCreateLabel(264, 188, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 245, 7, 46) GUIEditor.label[2] = guiCreateLabel(343, 209, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 191, 25, 226) end ) bindKey ( "F3", "down", function ( )-- وظيفة قفل+فتح النافذه guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == GridList ) then if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local fName = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) for _,v in ipairs ( WarpTaple ) do if ( v[1] == fName ) then if ( v[2] ~= "" or v[2] ~= " " ) then guiStaticImageLoadImage ( GUIEditor.staticimage[1], tostring ( v[2] ) ) end end end else guiStaticImageLoadImage ( GUIEditor.staticimage[1], "MTA.png" ) end elseif ( source == Button1 ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then if ( isTimer ( Timer ) ) then return end Timer = setTimer ( function ( ) end, 4000, 1 ) setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) ) ) outputChatBox ( "* تم الإنتقال الى ".. guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) .."", 255, 255, 0, true ) end elseif ( source == Button2 ) then guiSetVisible ( wnd, false ) showCursor ( false ) end end ) الديوبق يقول المشكله في سطر 69 ^^
-
ياعيوني مشكور على الفزعه لبى قلبك بس عندك خطأ الحمد الله اني قفطته هو : if fName =='' الدائــــــــــري" then -- المفروض يكون كذا بس صلحته الحمد الله خخ if fName == "الدائــــــــــري" then -- مشكور انت والشباب على المساعده <3 -- واستفدت وتعلمت من اخطائي بالتوفيق -- اعتذر بس فيه خطأ ثاني اسفين هههاي , اول مااشغل المود تطلع النافذه بوجهي
-
إذ كآن آلتيبل صعب عليك آو مآتفهم له كثير إستخدم كودي لآنه مرهـ سهل --[[------------------------------------------------- Created By Mr.R Skype : Httttt7_Ksa --]]------------------------------------------------- GUIEditor = { label = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(181, 109, 426, 360, "=[ Panel Places v1.0 By Mr.R ]=", false) guiSetProperty(wnd, "CaptionColour", "FFFA0000") guiWindowSetSizable(wnd, false) GridList = guiCreateGridList(9, 22, 202, 328, false, wnd) guiGridListAddColumn(GridList, "Places ...", 0.9) for _,v in ipairs ( WarpTaple ) do local rowD = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, rowD, 1, "الدائــــــــــري", false, false ) local rowN = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, rowN, 1, "النــــخــــيــــل", false, false ) local rowQ = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, rowQ, 1, "الــــــغــــــروب", false, false ) end Button1 = guiCreateButton(250, 247, 134, 39, "=[ Warp ]=", false, wnd) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") Button2 = guiCreateButton(250, 296, 134, 39, "=[ X ]=", false, wnd) setElementData(Button1, "tooltip-text", "انتقل", false) setElementData(Button2, "tooltip-text", "اغلاق", false) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(221, 28, 178, 155, "MTA.png", false, wnd) GUIEditor.label[1] = guiCreateLabel(264, 188, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 245, 7, 46) GUIEditor.label[2] = guiCreateLabel(343, 209, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 191, 25, 226) end ) bindKey ( "F3", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == Button1 ) then local HoHo = guiGridListGetItemText (GridList, guiGridListGetSelectedItem (GridList), 1) if HoHo == "" then return outputChatBox ( "آختر مكآن للإنتقآل إليه", 255, 255, 0, true ) elseif HoHo == "الدائــــــــــري" then setElementPosition ( localPlayer, , yd, zd) outputChatBox ( "تم نقلك إلى آلدآئري", 255, 255, 0, true ) elseif HoHo == "النــــخــــيــــل" then setElementPosition ( localPlayer, xn, yn, zn) outputChatBox ( "تم نقلك إلى آلنخيل", 255, 255, 0, true ) elseif HoHo == "الــــــغــــــروب" then setElementPosition ( localPlayer, xq, yq, zq) outputChatBox ( "تم نقلك إلى آلغروب", 255, 255, 0, true ) end end end ) مشكور حبيبي ماقصرت على كودك نستفيد منه يوم من الايام , التيبل بالنسبه لي افضل واختصار , بدل محط ملف سيرفر وشكرا ^^
-
كودك ضبط مشكور يالحب Button2 بس انا اضفت عليه اغلاق وباقي شيء واحد ويضبط كل شيء هو : لما اضغط على رو الدائري مثلا تجي صورة الدائري والغروب والنخيل مثل , واذا شلت التحديد من الدائري ترجع الصوره الاصليه الي انا حاطها رجل MTA وبعطيك اكوادي عشان تشوف وش الخطأ يعني باقي مكشلة الصور , والديبوق يقول مشكلتها في سطر 70 انتظرك ^^ Client ... --[[------------------------------------------------- Created By Mr.R Skype : Httttt7_Ksa --]]------------------------------------------------- GUIEditor = { label = {}, staticimage = {} } WarpTaple = { -- تيبل للانتقالات { "الدائــــــــــري", 1815.40515, 870.14069, 10.53743 }, { "النــــخــــيــــل", 2077.17993, 868.93744, 6.86413 }, { "الــــــغــــــروب", 674.92969, 1931.07874, 5.53906 }, } addEventHandler("onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(181, 109, 426, 360, "=[ Panel Places v1.0 By Mr.R ]=", false) guiSetProperty(wnd, "CaptionColour", "FFFA0000") guiWindowSetSizable(wnd, false) GridList = guiCreateGridList(9, 22, 202, 328, false, wnd) guiGridListAddColumn(GridList, "Places ...", 0.9) for _,v in ipairs ( WarpTaple ) do local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, v[1], false, false ) guiGridListSetItemData ( GridList, row, 1, { v[2], v[3], v[4] } ) end Button1 = guiCreateButton(250, 247, 134, 39, "=[ Warp ]=", false, wnd) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") Button2 = guiCreateButton(250, 296, 134, 39, "=[ X ]=", false, wnd) setElementData(Button1, "tooltip-text", "انتقل", false) setElementData(Button2, "tooltip-text", "اغلاق", false) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(221, 28, 178, 155, "MTA.png", false, wnd) GUIEditor.label[1] = guiCreateLabel(264, 188, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 245, 7, 46) GUIEditor.label[2] = guiCreateLabel(343, 209, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 191, 25, 226) end ) bindKey ( "F3", "down", function ( )-- وظيفة قفل+فتح النافذه guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == Button1 ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then if ( isTimer ( Timer ) ) then return end Timer = setTimer ( function ( ) end, 4000, 1 ) setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) ) ) outputChatBox ( "* تم الإنتقال الى ".. guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) .."", 255, 255, 0, true ) end end end ) addEventHandler("onClientGUIClick",root,function( ) if ( source == Button2 ) then -- تحقق من زر2 اغلاق النافذه guiSetVisible ( wnd, false ) -- اخفاء النافذه او اظهارها باستخدام true-or-false showCursor ( guiGetVisible ( wnd ) ) -- اظهار مؤشر الماوس elseif ( source == GridList ) then -- تحقق من القريد ليست if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then -- نتحقق انه اختار شيء من اللسته local fName = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 )-- if ( fName ~= '' ) then guiStaticImageLoadImage ( MTA, ""..fName..".png" ) -- عند الضغط على الرو تتغير الصوره else guiStaticImageLoadImage ( MTA, "MTA.png" ) -- نرجع الصوره الاصليه اذا ماضغط على الرو end end end end ) -- meta.xml "Mr.R" version="1.0" type="script" name="PanelWarp"/>
-
مشكور على تعليقك , افدتني <3
-
ياشيخ لبى قلبك تعلمت من اخطائي , كنت متوقع اني بختصر كل شيء في كلينت بس تفلسفت زياده وحيطت سيرفر اختصار x,y,z في التيبل العموم النافذه ماتطلع والديبوق يقول ERROR:Loading script failled: x1Warp\Client.lua:41:')' expected (to cllose '(' at line 18) near 'for'
-
اكيد اتعلم , واذا ماتعلمت من الاخطاء ماراح استفيد شيء وانا ماعمري خليت احد يسوي لي كود , الا وانا متعلم من الاخطاء وعاجز عن شكره انتظرك <3
-
السلام عليكم اليوم سويت نافذه+قريد ليست+زرين+صوره كل شيء تمام وهذا الكود --[[------------------------------------------------- Created By Mr.R Skype : Httttt7_Ksa --]]------------------------------------------------- WarpTaple = { -- تيبل للانتقالات { "الدائــــــــــري" }, { "النــــخــــيــــل" }, { "الــــــغــــــروب" }, } GUIEditor = { label = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(181, 109, 426, 360, "=[ Panel Places v1.0 By Mr.R ]=", false)-- تصميم النافذه guiSetProperty(wnd, "CaptionColour", "FFFA0000") guiWindowSetSizable(wnd, false) GridList = guiCreateGridList(9, 22, 202, 328, false, wnd) guiGridListAddColumn(GridList, "Places ...", 0.9) for i = 1, 3 do guiGridListAddRow(GridList) end guiGridListSetItemText(GridList, 0, 1, "الدائــــــــــري -1", false, false) guiGridListSetItemText(GridList, 1, 1, "النــــخــــيــــل -3", false, false) guiGridListSetItemText(GridList, 2, 1, "الــــــغــــــروب -3", false, false) Button1 = guiCreateButton(250, 247, 134, 39, "=[ Warp ]=", false, wnd) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") Button2 = guiCreateButton(250, 296, 134, 39, "=[ X ]=", false, wnd) setElementData(Button1, "tooltip-text", "انتقل", false) setElementData(Button2, "tooltip-text", "اغلاق", false) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(221, 28, 178, 155, "MTA.png", false, wnd) GUIEditor.label[1] = guiCreateLabel(264, 188, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 245, 7, 46) GUIEditor.label[2] = guiCreateLabel(343, 209, 24, 28, "*", false, wnd) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 191, 25, 226) end ) bindKey ( "F3", "down", function ( )-- وظيفة قفل+فتح النافذه guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) for i,v in ipairs( WarpTable ) do -- اسم تيبل الانتقالات local row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, row, 1, v[1], false, false ) end local row, col = guiGridListGetSelectedItem( GridList ) if row and col and row ~= -1 and col ~= -1 then local get = guiGridListGetItemText( GridList, row, col ) if get == "الدائــــــــــري" then -- نتحقق من رو الدائري triggerServerEvent( "d", localPlayer )-- نرسل ترايقر elseif get == "النــــخــــيــــل" then -- نتحقق من رو النخيل triggerServerEvent( "n", localPlayer )-- نرسل ترايقر elseif get == "الــــــغــــــروب" then -- نتحقق من رو الغروب triggerServerEvent( "g", localPlayer ) -- نرسل ترايقر end end end end ) addEventHandler( "onClientGUIClick", resourceRoot, function( ) -- وظيفة الضغط على الزر + الحدث if ( source == Button1 ) then -- التحقق من زر1 if ( isTimer ( Timer ) ) then return end -- وقت بين كل ضغطه وضغطه Timer = setTimer ( function ( ) end, 4000, 1 ) -- وقت بين كل ضغطه وضغطه if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then -- نتحقق انه اختار شيء من اللسته end -- اند فنكشن end -- اند تحقق الزر end -- اند تحقق انه اختار شيء من اللسته else outputChatBox ( "* Please Select Place", 255, 255, 255, true ) -- يخرج نص في الشات اذا ماختار شيء واضغط زر انتقال end -- اند الـ else elseif ( source == Button2 ) then -- تحقق من زر2 اغلاق النافذه guiSetVisible ( wnd, false ) -- اخفاء النافذه او اظهارها باستخدام true-or-false showCursor ( guiGetVisible ( wnd ) ) -- اظهار مؤشر الماوس elseif ( source == GridList ) then -- تحقق من القريد ليست if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then -- نتحقق انه اختار شيء من اللسته local fName = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 )-- if ( fName ~= '' ) then guiStaticImageLoadImage ( MTA, ""..fName..".png" ) -- عند الضغط على الرو تتغير الصوره end else guiStaticImageLoadImage ( MTA, "MTA.png" ) -- نرجع الصوره الاصليه اذا ماضغط على الرو end end end ) اتوقع كل شيء تمام + شرحت الكود من فهمي عشان محد يقول وش جاب ذا وذا بس فيه خطأ ماتطلع النافذه + الديبوق يقول ERROR: Loading script failed: x1Warp \Client.lua:69: '' expected near 'end' مافهمت عليه , الي فهمته ان فيه خطأ في ملف كلينت سطر 69 رحت حاولت فيه كل شيء ماظبط خخخ واذا فيه اخطائ ثانيه صححوها ماحد معصوم من الخطأ وكلن بدأ من الصفر إلى الاحتراف ^^ انتظركم <3
-
والله انك كفو يآدون , ماقصرت كل شيء ظبط + فهمت كل شيء اشكر كل من علق وكل من فادني لبى قلوبكم كلكم <3 وخاصتاً الزاحف <3 ===[ تمت الافاده ]===
-
لبى قلبكك ي شيخخ , كل شيء ظبط بس ابي اخر مساعده ولا عليك امر اضافه بسيطه ابي اذا حط مؤشر الماوس على الزر يجي كلام مثلا , حط مؤشر الماوس على زر buy يجي بلابيض مكتوب شراء , واذا وخر مؤشر الماوس تروح ومشكور
-
اااااااااههههههنننننننييييييككككك على الفري روم الخططططير مبدعع مشاء الله <3 حاول تغير بعض الصور تخليها واضحه اكثر وش فايدتها اذا ضغط عليها ^^ وشكرا ، واصل <3
-
مشكور اخيار ضبط اسف الخطا مني كان عندي اكثر من ملف كلينت وضيعت ممكن خدمه اخيره ؟ انا عرفت كيف اضيف تايمر بـ مثال الجت باك باقي مثلا سياره + درع عشان اعرف اضيف دم ودرع لاني صراحه ماعرف ايديتها وسياره ومشكور
-
اسف على السحبه بسبب المدرسه ^^ + جربت كودك الديبوق مايقول شيء وماقدر اشتري انتظرك <3
-
اخيرا اشتغل يالذيب ض1
-
كل شيء تمام مشكور لاهنت لاكن خاطري بـ علامة $ ض1 حاولت احطها ماشتغل الكود + ماقدر اتحكم في عدد الرصاص وبدل الجيت باك بـ درع لاهنت عشان اعرف كيف احط درع ودم , فيه فرق بين قريد ليست و وندو عاديه بـ زر <3 i'am waiting you ...
-
مقدر اشتري ، مثل المشكله القديمه كودك مشاء الله تمام بس الزاحف ماقصر معي وفادني <3
-
كودك خربان حق كيلر اشتغل ^^ لاكن انت كفو ماقصرت معي ، مادري كيف اشكرك