#ExTrA..! Posted April 8, 2016 Share Posted April 8, 2016 (edited) آلسسلآم عليكم أبي كود يفتح لوحة الدي اكس بزر اتمنى تحط لي شرح او تكمل كودي يعني مو تجي وتعطيني كود اضغط علية واشوف شروحات لا ابية جاهز ^.^ addEventHandler("onClientRender", root, function() 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 ) -- سويت لوحة عشان تسون عليها .. وشكرا شكرا مقدما لكل من يساعدني والله لايوفق الي يستهزؤون تم تعديل الموضوع : آلسبب : طلب كود آخر Edited April 8, 2016 by Guest Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) آلسسلآم عليكم أبي كود يفتح لوحة الدي اكس بزر اتمنى تحط لي شرح او تكمل كودي يعني مو تجي وتعطيني كود اضغط علية واشوف شروحات لا ابية جاهز ^.^ addEventHandler("onClientRender", root, function() 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 ) -- سويت لوحة عشان تسون عليها .. وشكرا شكرا مقدما لكل من يساعدني والله لايوفق الي يستهزؤون تم تعديل الموضوع : آلسبب : طلب كود آخر Edited April 8, 2016 by Guest Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 آلسسلآم عليكم عندي كود سويتة الان بس مادري وش فية مايضبط ولا يشتغل هذه الاكواد function Open() wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") end addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() guiSetVisible( wnd, false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible( wnd, true) showCursor(true) guiSetInputEnabled(true) end bindKey("o", "down", Open) يطلع لي بالديبق اول شئ يقول حط اسم بحنب كلمة فنكشن بثآلث سطر بعدين لما حطيت اسم طلعت لي مشاكل اكثر طلع لي بالدي بق زي كذا ERROR: Loading script failed: KILL\client.lua:26: 'end' expected (to close 'function' at line 22) near 'else' اتمنى التعديل او اعطائي الاخطاء بالردود شكرا مقدما لكل من يساعدني والله لايوفق الي يستهزؤون الخطأ عندك كلمة else وهي توضع مع التحقق ب if ... then Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 آلسسلآم عليكم عندي كود سويتة الان بس مادري وش فية مايضبط ولا يشتغل هذه الاكواد function Open() wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") end addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() guiSetVisible( wnd, false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible( wnd, true) showCursor(true) guiSetInputEnabled(true) end bindKey("o", "down", Open) يطلع لي بالديبق اول شئ يقول حط اسم بحنب كلمة فنكشن بثآلث سطر بعدين لما حطيت اسم طلعت لي مشاكل اكثر طلع لي بالدي بق زي كذا ERROR: Loading script failed: KILL\client.lua:26: 'end' expected (to close 'function' at line 22) near 'else' اتمنى التعديل او اعطائي الاخطاء بالردود شكرا مقدما لكل من يساعدني والله لايوفق الي يستهزؤون الخطأ عندك كلمة else وهي توضع مع التحقق ب if ... then Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) شكرا احمد ليبيا والله انك كفو وشكرا ثاني ^.^ Edited April 8, 2016 by Guest Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) شكرا احمد ليبيا والله انك كفو وشكرا ثاني ^.^ Edited April 8, 2016 by Guest Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 لما سويتة يقول بالدي بق WARNING: KILL\client.lya:11: Bad argument @ 'setElementHealth' [Expected element at argument 1, got nil] ممكن تصححة لي وآسف اذا ازعجتك Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 لما سويتة يقول بالدي بق WARNING: KILL\client.lya:11: Bad argument @ 'setElementHealth' [Expected element at argument 1, got nil] ممكن تصححة لي وآسف اذا ازعجتك Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 لما سويتة يقول بالدي بق WARNING: KILL\client.lya:11: Bad argument @ 'setElementHealth' [Expected element at argument 1, got nil] ممكن تصححة لي وآسف اذا ازعجتك ضع مكان player localPlayer Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 لما سويتة يقول بالدي بق WARNING: KILL\client.lya:11: Bad argument @ 'setElementHealth' [Expected element at argument 1, got nil] ممكن تصححة لي وآسف اذا ازعجتك ضع مكان player localPlayer Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) دائماً تسبقني ضض Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) دائماً تسبقني ضض Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) دائماً تسبقني ضض ض1 Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open) دائماً تسبقني ضض ض1 Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 شالفرق بين لوكل بلآير + بلآير ؟ Link to comment
#ExTrA..! Posted April 8, 2016 Author Share Posted April 8, 2016 شالفرق بين لوكل بلآير + بلآير ؟ Link to comment
Ja[B]er[X]Pro Posted April 8, 2016 Share Posted April 8, 2016 شالفرق بين لوكل بلآير + بلآير ؟ بلاير غير معرفة localPlayer = الاعب الذي قام بالحدث فقط ب client source = المصدر = مصدر الحدث فقط ب server 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