-
Posts
2,382 -
Joined
-
Last visited
-
Days Won
57
Everything posted by iMr.WiFi..!
-
اليوم اقدم لكم وظيفة changeGridListItemToVehiclesName فايدة الوظيفة : تحول قيم الجريد ليست الى اسماء سيارة مرسبنة Syntax : bool changeGridListItemToVehiclesName ( element gridlist, int column ) الوظيفة الاصلية كانت اسماء لاعبين من قبل عناد بس انا معدلها وخليتها اسماء سيارات بسم الله نبدأ Code : changeGridListItemToVehiclesName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "vehicle" ) do -- Get Everything by Type ' vehicle ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getVehicleName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function ' Ex : wnd = guiCreateWindow(313, 199, 291, 451, "Test", false) grid = guiCreateGridList(25, 71, 255, 318, false, wnd) col = guiGridListAddColumn( grid, "Vehicles :", 0.85 ) changeGridListItemToVehiclesName( grid, col) اعذروني لو كان في اخطاء لانها المرة الاولى اطرح فنكشن Author : 3NAD Edit : iMr.WiFi Why I returned the function ? ترجمة : ليش انا رجعت الفنكشن ؟ عشان في بعض المبرمجين طلبو وقالو افضل فنكشنك للاختصار والافادةة وسلام عليكم ورحمة الله وبركاتة
-
ضبط الاحداثيات على الايديت والزر اما الدي اكس ثبته على صوره ثابته بيزبط معك يعني استعمل فنكشن guiSetPos في الزر والايديت اما الدي اكس خله مكانه لانه مكانه في الوسسط
-
وانشاءالله تستفيد ترا بالقسم كثير مطروح ذذ الموضوع
-
بعطيك فنكشنات وانت شوف المثال في الويكي 'onClientMarkerHit' setElementPosition لما حد يسجن سوي الالمينيت داتا وتحقق انه الالمينت موجودة واذا موجوده سوي unbindKey بنسبه للفنكشنات setElementData getElementData unbindKey بس شغل جاهز انا ماطيقه ببس ماعرف اسوي مثال . bindKey هذا لو خلص وقت السجن
-
تفضل الكود سيرفر طيب هو ما طلب جاهز يقدر يسويه بنفسه + عطيته انا الفنكشنات
-
getPlayerPing -- سوي تحقق انه بنقه يساوي 1500 او فوق setElementHealth -- 0 outputChatBox
-
طيب اذا انت خايف على اكوادك لاتطلب المساعدة واذا تبينا نساعدك اطرح اكوادك ونساعدك
-
طيب انا ما ابي addCommandHandler -- or removeCommandHandler الحين انا ابي لو كتب شيء في الايديت مطابق لشيء مكتوب في اللوب ينحذف الي داخل اللوب يجيب الي كتب الكلمه الي داخل اللوب وبعدين افتح لوحة على سرياله شلون ؟؟
-
طيب انا ما ابي addCommandHandler -- or removeCommandHandler الحين انا ابي لو كتب شيء في الايديت مطابق لشيء مكتوب في اللوب ينحذف الي داخل اللوب يجيب الي كتب الكلمه الي داخل اللوب وبعدين افتح لوحة على سرياله شلون ؟؟
-
'onPlayerChat' cancelEvent outputChatBox
-
'onPlayerChat' cancelEvent outputChatBox
-
ليش بنحتاج removeCommandHandler وكيف بنستعمله ؟
-
ليش بنحتاج removeCommandHandler وكيف بنستعمله ؟
-
طيب لو ابي الحين كتب الكلام الي موجود في التيبل وزبط الحين انا ابي احذف الكلمه الي كتبها في تيبل واجيب سيرياله وافتح لوحة خاصه به ؟ كيف ؟
-
طيب لو ابي الحين كتب الكلام الي موجود في التيبل وزبط الحين انا ابي احذف الكلمه الي كتبها في تيبل واجيب سيرياله وافتح لوحة خاصه به ؟ كيف ؟
-
function dd() dxDrawLine(406 - 1, 244 - 1, 406 - 1, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 244 - 1, 406 - 1, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(406 - 1, 716, 875, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 716, 875, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 469) / 2, (screenH - 472) / 2, 469, 472, tocolor(0, 0, 0, 170), false) dxDrawRectangle(406, 244, 469, 48, tocolor(211, 89, 15, 255), false) dxDrawText("Login", 599, 248, 809, 292, tocolor(255, 255, 255, 255), 1.00, dxfont0_Zombified, "left", "top", false, false, false, false, false) dxDrawLine(652, 352, 652, 677, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(432, 635, 199, 52, tocolor(211, 89, 15, 255), false) dxDrawRectangle(666, 489, 199, 52, tocolor(211, 89, 15, 255), false) end addEventHandler("onClientRender", root,dd) function ddd() dxDrawLine(406 - 1, 244 - 1, 406 - 1, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 244 - 1, 406 - 1, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(406 - 1, 716, 875, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 716, 875, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 469) / 2, (screenH - 472) / 2, 469, 472, tocolor(0, 0, 0, 170), false) dxDrawRectangle(406, 244, 469, 48, tocolor(211, 89, 15, 255), false) dxDrawText("Login", 599, 248, 809, 292, tocolor(255, 255, 255, 255), 1.00, dxfont0_Zombified, "left", "top", false, false, false, false, false) dxDrawLine(652, 352, 652, 677, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(432, 635, 199, 52, tocolor(211, 89, 15, 255), false) dxDrawRectangle(666, 489, 199, 52, tocolor(211, 89, 15, 255), false) end addEventHandler("onClientRender", root,ddd) جرب
-
function dd() dxDrawLine(406 - 1, 244 - 1, 406 - 1, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 244 - 1, 406 - 1, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(406 - 1, 716, 875, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 716, 875, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 469) / 2, (screenH - 472) / 2, 469, 472, tocolor(0, 0, 0, 170), false) dxDrawRectangle(406, 244, 469, 48, tocolor(211, 89, 15, 255), false) dxDrawText("Login", 599, 248, 809, 292, tocolor(255, 255, 255, 255), 1.00, dxfont0_Zombified, "left", "top", false, false, false, false, false) dxDrawLine(652, 352, 652, 677, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(432, 635, 199, 52, tocolor(211, 89, 15, 255), false) dxDrawRectangle(666, 489, 199, 52, tocolor(211, 89, 15, 255), false) end addEventHandler("onClientRender", root,dd) function ddd() dxDrawLine(406 - 1, 244 - 1, 406 - 1, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 244 - 1, 406 - 1, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(406 - 1, 716, 875, 716, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(875, 716, 875, 244 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 469) / 2, (screenH - 472) / 2, 469, 472, tocolor(0, 0, 0, 170), false) dxDrawRectangle(406, 244, 469, 48, tocolor(211, 89, 15, 255), false) dxDrawText("Login", 599, 248, 809, 292, tocolor(255, 255, 255, 255), 1.00, dxfont0_Zombified, "left", "top", false, false, false, false, false) dxDrawLine(652, 352, 652, 677, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(432, 635, 199, 52, tocolor(211, 89, 15, 255), false) dxDrawRectangle(666, 489, 199, 52, tocolor(211, 89, 15, 255), false) end addEventHandler("onClientRender", root,ddd) جرب
-
الحين انت نسيت توضح كيف نعطيه سياره + ننتقل لها + سحب سيارة
-
الحين انت نسيت توضح كيف نعطيه سياره + ننتقل لها + سحب سيارة
-
عفواً , حياك الله
-
عفواً , حياك الله
-
@ExTra اول شيء خليها متغير يعني كذا function DX() -- نسوي متغير واسمه DX dxDrawLine(314 - 1, 99 - 1, 314 - 1, 618, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(1001, 99 - 1, 314 - 1, 99 - 1, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(314 - 1, 618, 1001, 618, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(1001, 618, 1001, 99 - 1, tocolor(254, 0, 0, 224), 1, false) dxDrawRectangle(314, 99, 687, 519, tocolor(0, 0, 0, 224), false) dxDrawLine(481 - 1, 117 - 1, 481 - 1, 206, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(836, 117 - 1, 481 - 1, 117 - 1, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(481 - 1, 206, 836, 206, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(836, 206, 836, 117 - 1, tocolor(229, 0, 0, 218), 1, false) dxDrawRectangle(481, 117, 355, 89, tocolor(0, 0, 0, 218), false) dxDrawText("Test Panel dx ", 481, 116, 836, 206, tocolor(255, 255, 255, 255), 3.00, "default", "center", "center", false, false, false, false, false) dxDrawLine(314 - 1, 265 - 1, 314 - 1, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 265 - 1, 314 - 1, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(314 - 1, 320, 510, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 320, 510, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(314, 265, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(805 - 1, 265 - 1, 805 - 1, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 265 - 1, 805 - 1, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(805 - 1, 320, 1001, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 320, 1001, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(805, 265, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(805 - 1, 397 - 1, 805 - 1, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 397 - 1, 805 - 1, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(805 - 1, 452, 1001, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 452, 1001, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(805, 397, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(314 - 1, 397 - 1, 314 - 1, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 397 - 1, 314 - 1, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(314 - 1, 452, 510, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 452, 510, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(314, 397, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(1000, 480, 313, 481, tocolor(141, 99, 71, 218), 1, false) end addEventHandler("onClientRender", root,DX) -- نضيف المتغير في نهاية الحدث -- اما بنسبة لكود الفتح bindKey("F6","down" -- نحط وضيفه بيند كي عشان يفتح بزر function () -- نسوي وظيفه if addEventHandler("onClientRender", root, DX) then -- نتحقق انه موجود removeEventHandler("onClientRender", root, DX) -- نحذفه showCursor(false) else addEventHandler("onClientRender", root, DX) showCursor(true) end end )
-
@ExTra اول شيء خليها متغير يعني كذا function DX() -- نسوي متغير واسمه DX dxDrawLine(314 - 1, 99 - 1, 314 - 1, 618, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(1001, 99 - 1, 314 - 1, 99 - 1, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(314 - 1, 618, 1001, 618, tocolor(254, 0, 0, 224), 1, false) dxDrawLine(1001, 618, 1001, 99 - 1, tocolor(254, 0, 0, 224), 1, false) dxDrawRectangle(314, 99, 687, 519, tocolor(0, 0, 0, 224), false) dxDrawLine(481 - 1, 117 - 1, 481 - 1, 206, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(836, 117 - 1, 481 - 1, 117 - 1, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(481 - 1, 206, 836, 206, tocolor(229, 0, 0, 218), 1, false) dxDrawLine(836, 206, 836, 117 - 1, tocolor(229, 0, 0, 218), 1, false) dxDrawRectangle(481, 117, 355, 89, tocolor(0, 0, 0, 218), false) dxDrawText("Test Panel dx ", 481, 116, 836, 206, tocolor(255, 255, 255, 255), 3.00, "default", "center", "center", false, false, false, false, false) dxDrawLine(314 - 1, 265 - 1, 314 - 1, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 265 - 1, 314 - 1, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(314 - 1, 320, 510, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 320, 510, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(314, 265, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(805 - 1, 265 - 1, 805 - 1, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 265 - 1, 805 - 1, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(805 - 1, 320, 1001, 320, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 320, 1001, 265 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(805, 265, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(805 - 1, 397 - 1, 805 - 1, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 397 - 1, 805 - 1, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(805 - 1, 452, 1001, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(1001, 452, 1001, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(805, 397, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(314 - 1, 397 - 1, 314 - 1, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 397 - 1, 314 - 1, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(314 - 1, 452, 510, 452, tocolor(213, 0, 0, 218), 1, false) dxDrawLine(510, 452, 510, 397 - 1, tocolor(213, 0, 0, 218), 1, false) dxDrawRectangle(314, 397, 196, 55, tocolor(0, 0, 0, 218), false) dxDrawLine(1000, 480, 313, 481, tocolor(141, 99, 71, 218), 1, false) end addEventHandler("onClientRender", root,DX) -- نضيف المتغير في نهاية الحدث -- اما بنسبة لكود الفتح bindKey("F6","down" -- نحط وضيفه بيند كي عشان يفتح بزر function () -- نسوي وظيفه if addEventHandler("onClientRender", root, DX) then -- نتحقق انه موجود removeEventHandler("onClientRender", root, DX) -- نحذفه showCursor(false) else addEventHandler("onClientRender", root, DX) showCursor(true) end end )