بويكا Posted January 15, 2016 Share Posted January 15, 2016 (edited) ابي كود البحث اللي في القريد ليست في الوزنيات مثلآ الشيلآت مثلآ الانتقالات للأماكن مثلآ #يرجى_الافادههء Edited January 15, 2016 by Guest Link to comment
[DONE]* Posted January 15, 2016 Share Posted January 15, 2016 https://forum.multitheftauto.com/viewtopic.php?f=160&t=94040 Link to comment
#|_oskar_|# Posted January 15, 2016 Share Posted January 15, 2016 اطرح كودك اللي حاولت تسويه Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 (edited) ما ضبط Edited January 15, 2016 by Guest Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 function searchFromGrid(GridList,name) if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do if not string.find(getPlayerName(v),name) then return end local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) end end end -- addEventHandler("onClientGUIChanged",root, function () if source == B7th then searchFromGrid( grid,guiGetText( B7th)) end end ) مود شيلات موب يبحث عن ناس Link to comment
#|_oskar_|# Posted January 15, 2016 Share Posted January 15, 2016 function searchFromGrid(GridList,name) if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do if not string.find(getPlayerName(v),name) then return end local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) end end end -- addEventHandler("onClientGUIChanged",root, function () if source == B7th then searchFromGrid( grid,guiGetText( B7th)) end end ) مود شيلات موب يبحث عن ناس عشان كذا قلت لك اطرح كودك لانك محتاج تعرف الجدول مع البحث فهمت Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 function searchFromGrid(GridList,name) if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do if not string.find(getPlayerName(v),name) then return end local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) end end end -- addEventHandler("onClientGUIChanged",root, function () if source == B7th then searchFromGrid( grid,guiGetText( B7th )) end end ) Link to comment
#CroSs Posted January 15, 2016 Share Posted January 15, 2016 في وش تبي تبحث حق تخليه يطلع في القريد ليست ؟ Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 wnd = guiCreateWindow(250, 133, 337, 369, "لوحة شيلات ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1) guiSetVisible (wnd ,false ) grid = guiCreateGridList(9, 25, 312, 231, false, wnd) guiGridListAddColumn(grid, "={الشيلات}=", 0.5) guiGridListAddColumn(grid, "", 0.5) for i,v in ipairs(Sound) do local Row_ = guiGridListAddRow(grid) guiGridListSetItemText(grid,Row_,1,v[1],false,false) guiGridListSetItemData(grid,Row_,1,v[2]) guiGridListSetItemColor(grid,Row_,1,0,255,0) end s = guiCreateStaticImage(9, 256, 308, 2, "oskar1.png", false, wnd) guiSetProperty(s, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") volme1 = guiCreateButton(215, 261, 106, 21, "حجم الصوت +", false, wnd) guiSetProperty(volme1, "NormalTextColour", "FF00FE72") guiSetEnabled(volme1, false) volme_2 = guiCreateButton(215, 285, 106, 21, "حجم الصوت -", false, wnd) guiSetProperty(volme_2, "NormalTextColour", "FF00FE72") guiSetEnabled(volme_2, false) ss = guiCreateStaticImage(10, 340, 308, 2, "oskar1.png", false, wnd) guiSetProperty(ss, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") start = guiCreateButton(10, 262, 106, 21, "تشغيل", false, wnd) guiSetProperty(start, "NormalTextColour", "FF00FE72") stop = guiCreateButton(10, 287, 106, 21, "ايقاف", false, wnd) guiSetProperty(stop, "NormalTextColour", "FF00FE72") guiSetEnabled(stop, false) stop_paused = guiCreateButton(10, 313, 106, 21, "ايقاف مؤقت", false, wnd) guiSetProperty(stop_paused, "NormalTextColour", "FF00FE72") guiSetEnabled(stop_paused, false) speed_suond = guiCreateButton(215, 311, 106, 21, "صوت مسرع #", false, wnd) guiSetProperty(speed_suond, "NormalTextColour", "FF00FE72") guiSetEnabled(speed_suond, false) Lb7th = guiCreateLabel(13, 338, 202, 25, "", false, wnd) B7th = guiCreateMemo(-5, -3, 233, 32, "", false, Lb7th) lbl2 = guiCreateLabel(243, 342, 78, 20, "البحث :", false, wnd) guiSetFont(lbl2, "default-bold-small") guiLabelSetColor(lbl2, 162, 118, 91) a = guiCreateLabel(170, 265, 40, 27, "80", false, wnd) guiSetVisible (a, not guiGetVisible ( a) ) --------------------- bindKey("F4","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) Link to comment
#|_oskar_|# Posted January 15, 2016 Share Posted January 15, 2016 addEventHandler("onClientGUIChanged",GUIEditor.edit[1],function () guiGridListClear(GUIEditor.gridlist[1]) for i,v in pairs(shilat) do if not string.find(v[1],guiGetText(GUIEditor.edit[1])) then return end local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, Column1, v[1], false, false ) end end,false) Link to comment
#CroSs Posted January 15, 2016 Share Posted January 15, 2016 wnd = guiCreateWindow(250, 133, 337, 369, "لوحة شيلات ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1) guiSetVisible (wnd ,false ) grid = guiCreateGridList(9, 25, 312, 231, false, wnd) guiGridListAddColumn(grid, "={الشيلات}=", 0.5) guiGridListAddColumn(grid, "", 0.5) for i,v in ipairs(Sound) do local Row_ = guiGridListAddRow(grid) guiGridListSetItemText(grid,Row_,1,v[1],false,false) guiGridListSetItemData(grid,Row_,1,v[2]) guiGridListSetItemColor(grid,Row_,1,0,255,0) end s = guiCreateStaticImage(9, 256, 308, 2, "oskar1.png", false, wnd) guiSetProperty(s, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") volme1 = guiCreateButton(215, 261, 106, 21, "حجم الصوت +", false, wnd) guiSetProperty(volme1, "NormalTextColour", "FF00FE72") guiSetEnabled(volme1, false) volme_2 = guiCreateButton(215, 285, 106, 21, "حجم الصوت -", false, wnd) guiSetProperty(volme_2, "NormalTextColour", "FF00FE72") guiSetEnabled(volme_2, false) ss = guiCreateStaticImage(10, 340, 308, 2, "oskar1.png", false, wnd) guiSetProperty(ss, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") start = guiCreateButton(10, 262, 106, 21, "تشغيل", false, wnd) guiSetProperty(start, "NormalTextColour", "FF00FE72") stop = guiCreateButton(10, 287, 106, 21, "ايقاف", false, wnd) guiSetProperty(stop, "NormalTextColour", "FF00FE72") guiSetEnabled(stop, false) stop_paused = guiCreateButton(10, 313, 106, 21, "ايقاف مؤقت", false, wnd) guiSetProperty(stop_paused, "NormalTextColour", "FF00FE72") guiSetEnabled(stop_paused, false) speed_suond = guiCreateButton(215, 311, 106, 21, "صوت مسرع #", false, wnd) guiSetProperty(speed_suond, "NormalTextColour", "FF00FE72") guiSetEnabled(speed_suond, false) Lb7th = guiCreateLabel(13, 338, 202, 25, "", false, wnd) B7th = guiCreateMemo(-5, -3, 233, 32, "", false, Lb7th) lbl2 = guiCreateLabel(243, 342, 78, 20, "البحث :", false, wnd) guiSetFont(lbl2, "default-bold-small") guiLabelSetColor(lbl2, 162, 118, 91) a = guiCreateLabel(170, 265, 40, 27, "80", false, wnd) guiSetVisible (a, not guiGetVisible ( a) ) --------------------- bindKey("F4","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) . غير معرف Sound المتغير Link to comment
#CroSs Posted January 15, 2016 Share Posted January 15, 2016 ما ضبط الحين ذي كل كودات الكلنت ؟ Link to comment
#|_oskar_|# Posted January 15, 2016 Share Posted January 15, 2016 ما ضبط لانك حاطت ميمو واكيد مراح يبحث المهم جرب كذا wnd = guiCreateWindow(250, 133, 337, 369, "لوحة شيلات ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1) guiSetVisible (wnd ,false ) grid = guiCreateGridList(9, 25, 312, 231, false, wnd) guiGridListAddColumn(grid, "={الشيلات}=", 0.5) guiGridListAddColumn(grid, "", 0.5) for i,v in ipairs(Sound) do local Row_ = guiGridListAddRow(grid) guiGridListSetItemText(grid,Row_,1,v[1],false,false) guiGridListSetItemData(grid,Row_,1,v[2]) guiGridListSetItemColor(grid,Row_,1,0,255,0) end s = guiCreateStaticImage(9, 256, 308, 2, "oskar1.png", false, wnd) guiSetProperty(s, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") volme1 = guiCreateButton(215, 261, 106, 21, "حجم الصوت +", false, wnd) guiSetProperty(volme1, "NormalTextColour", "FF00FE72") guiSetEnabled(volme1, false) volme_2 = guiCreateButton(215, 285, 106, 21, "حجم الصوت -", false, wnd) guiSetProperty(volme_2, "NormalTextColour", "FF00FE72") guiSetEnabled(volme_2, false) ss = guiCreateStaticImage(10, 340, 308, 2, "oskar1.png", false, wnd) guiSetProperty(ss, "ImageColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") start = guiCreateButton(10, 262, 106, 21, "تشغيل", false, wnd) guiSetProperty(start, "NormalTextColour", "FF00FE72") stop = guiCreateButton(10, 287, 106, 21, "ايقاف", false, wnd) guiSetProperty(stop, "NormalTextColour", "FF00FE72") guiSetEnabled(stop, false) stop_paused = guiCreateButton(10, 313, 106, 21, "ايقاف مؤقت", false, wnd) guiSetProperty(stop_paused, "NormalTextColour", "FF00FE72") guiSetEnabled(stop_paused, false) speed_suond = guiCreateButton(215, 311, 106, 21, "صوت مسرع #", false, wnd) guiSetProperty(speed_suond, "NormalTextColour", "FF00FE72") guiSetEnabled(speed_suond, false) Lb7th = guiCreateLabel(13, 338, 202, 25, "", false, wnd) B7th = guiCreateEdit(-5, -3, 233, 32, "", false, Lb7th) lbl2 = guiCreateLabel(243, 342, 78, 20, "البحث :", false, wnd) guiSetFont(lbl2, "default-bold-small") guiLabelSetColor(lbl2, 162, 118, 91) a = guiCreateLabel(170, 265, 40, 27, "80", false, wnd) guiSetVisible (a, not guiGetVisible ( a) ) --------------------- bindKey("F4","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) addEventHandler("onClientGUIChanged",B7th,function () guiGridListClear(grid) for i,v in pairs(Sound) do local Row_ = guiGridListAddRow(grid) if not string.find(v[1],guiGetText(B7th)) then return end guiGridListSetItemText(grid,Row_,1,v[1],false,false) guiGridListSetItemData(grid,Row_,1,v[2]) guiGridListSetItemColor(grid,Row_,1,0,255,0) end end,false) Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 (edited) مشكلةة جت تطلع شيلة الرفيق بس Sound = { {"][ حمامة الورق ][","http://www.alqsed.com/uploads/songs/7mamh_alwrk.mp3"}, } wnd = guiCreateWindow(250, 133, 337, 369, "لوحة شيلات ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1) guiSetVisible (wnd ,false ) grid = guiCreateGridList(9, 25, 312, 231, false, wnd) guiGridListAddColumn(grid, "={الشيلات}=", 0.5) guiGridListAddColumn(grid, "", 0.5) for i,v in ipairs(Sound) do local Row_ = guiGridListAddRow(grid) guiGridListSetItemText(grid,Row_,1,v[1],false,false) guiGridListSetItemData(grid,Row_,1,v[2]) guiGridListSetItemColor(grid,Row_,1,0,255,0) end Edited January 15, 2016 by Guest Link to comment
#CroSs Posted January 15, 2016 Share Posted January 15, 2016 addEventHandler( "onClientGUIChanged", B7th, function() guiGridListClear( grid ) local Text = guiGetText( source ) for _, Table in ipairs( Sound ) do if ( string.find( Table[1], Text, 1, true ) ) then local Row = guiGridListAddRow( grid ) guiGridListSetItemText( grid, Row, 1, Table[1], false, false ) guiGridListSetItemData( grid, Row, 1, Table[2] ) guiGridListSetItemColor( grid, Row, 1, 0, 255, 0 ) end end end ) Link to comment
بويكا Posted January 15, 2016 Author Share Posted January 15, 2016 ي لبيةة بس كروسس مشكور Link to comment
#CroSs Posted January 15, 2016 Share Posted January 15, 2016 ي لبيةة بس كروسس مشكور . العفو 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