MR.GRAND Posted August 8, 2015 Share Posted August 8, 2015 السلام عليكم ورحمة الله وبركاته , كيف الحل ي شباب عساكم طيبين المهم سويت مود مراقبة أماكن بس بقا ففنكشن واحد صغير حرت فيه وهو لما يجي يضغط على زر ايقاف المراقبة بتنشال كاميرا الماتركس الكود : local screenW, screenH = guiGetScreenSize() GUIEditor = { button = {}, window = {}, gridlist = {}, label = {} } GUIEditor.button[1] = guiCreateButton(820, 541, 126, 32, "", false) guiSetAlpha(GUIEditor.button[1], 0.00) function GUI() dxDrawLine((screenW * 0.3001) - 1, (screenH * 0.2435) - 1, (screenW * 0.3001) - 1, screenH * 0.7578, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.6999, (screenH * 0.2435) - 1, (screenW * 0.3001) - 1, (screenH * 0.2435) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.3001) - 1, screenH * 0.7578, screenW * 0.6999, screenH * 0.7578, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.6999, screenH * 0.7578, screenW * 0.6999, (screenH * 0.2435) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.3001, screenH * 0.2435, screenW * 0.3997, screenH * 0.5143, tocolor(9, 163, 186, 254), false) dxDrawLine(410, 223, 956, 223, tocolor(179, 0, 0, 255), 3, true) dxDrawText("=[ Spectate System ]=", 508, 187, 865, 218, tocolor(169, 0, 0, 253), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawLine(820 - 1, 540 - 1, 820 - 1, 572, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 540 - 1, 820 - 1, 540 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(820 - 1, 572, 946, 572, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 572, 946, 540 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(820, 540, 126, 32, tocolor(187, 0, 0, 159), true) dxDrawLine(422 - 1, 237 - 1, 422 - 1, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 237 - 1, 422 - 1, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(422 - 1, 268, 571, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 268, 571, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(422, 237, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawText("مراقبة النخيل", 422 + 1, 237 + 1, 571 + 1, 268 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة النخيل", 422, 237, 571, 268, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawLine(609 - 1, 237 - 1, 609 - 1, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 237 - 1, 609 - 1, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(609 - 1, 268, 758, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 268, 758, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(609, 237, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(797 - 1, 237 - 1, 797 - 1, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 237 - 1, 797 - 1, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(797 - 1, 268, 946, 268, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 268, 946, 237 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(797, 237, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawText("مراقبة الدائري", 609 + 1, 237 + 1, 758 + 1, 268 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة الدائري", 609, 237, 758, 268, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) CLOSE = dxDrawText("اغلاق اللوحة", 820 + 1, 540 + 1, 946 + 1, 572 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) CLOSE = dxDrawText("اغلاق اللوحة", 820, 540, 946, 572, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawLine(422 - 1, 302 - 1, 422 - 1, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 302 - 1, 422 - 1, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(422 - 1, 333, 571, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 333, 571, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(422, 302, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(609 - 1, 302 - 1, 609 - 1, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 302 - 1, 609 - 1, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(609 - 1, 333, 758, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 333, 758, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(609, 302, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(797 - 1, 302 - 1, 797 - 1, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 302 - 1, 797 - 1, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(797 - 1, 333, 946, 333, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 333, 946, 302 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(797, 302, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawText("مراقبة ساحة الحرب", 797 + 1, 237 + 1, 946 + 1, 268 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة ساحة الحرب", 797, 237, 946, 268, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة البداية", 422 + 1, 302 + 1, 571 + 1, 333 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة البداية", 422, 302, 571, 333, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة الشارع الطويل", 609 + 1, 302 + 1, 758 + 1, 333 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة الشارع الطويل", 609, 302, 758, 333, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawLine(422 - 1, 366 - 1, 422 - 1, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 366 - 1, 422 - 1, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(422 - 1, 397, 571, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 397, 571, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(422, 366, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(609 - 1, 366 - 1, 609 - 1, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 366 - 1, 609 - 1, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(609 - 1, 397, 758, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 397, 758, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(609, 366, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(797 - 1, 366 - 1, 797 - 1, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 366 - 1, 797 - 1, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(797 - 1, 397, 946, 397, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 397, 946, 366 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(797, 366, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawText("مراقبة المرقص", 797 + 1, 302 + 1, 946 + 1, 333 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("مراقبة المرقص", 797, 302, 946, 333, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 422 + 1, 366 + 1, 571 + 1, 397 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 422, 366, 571, 397, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 609 + 1, 366 + 1, 758 + 1, 397 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 609, 366, 758, 397, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawLine(422 - 1, 429 - 1, 422 - 1, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 429 - 1, 422 - 1, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(422 - 1, 460, 571, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(571, 460, 571, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(422, 429, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(609 - 1, 429 - 1, 609 - 1, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 429 - 1, 609 - 1, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(609 - 1, 460, 758, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(758, 460, 758, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(609, 429, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawLine(797 - 1, 429 - 1, 797 - 1, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 429 - 1, 797 - 1, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(797 - 1, 460, 946, 460, tocolor(255, 255, 255, 254), 1, true) dxDrawLine(946, 460, 946, 429 - 1, tocolor(255, 255, 255, 254), 1, true) dxDrawRectangle(797, 429, 149, 31, tocolor(194, 192, 0, 254), true) dxDrawText("Soon | قريــبا", 797 + 1, 366 + 1, 946 + 1, 397 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 797, 366, 946, 397, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 422 + 1, 429 + 1, 571 + 1, 460 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 422, 429, 571, 460, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 609 + 1, 429 + 1, 758 + 1, 460 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 609, 429, 758, 460, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 797 + 1, 429 + 1, 946 + 1, 460 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Soon | قريــبا", 797, 429, 946, 460, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("*.. This panel created by MR.GRAND!", 412, 563, 647, 578, tocolor(0, 226, 247, 254), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawLine(597 - 1, 497 - 1, 597 - 1, 528, tocolor(254, 255, 254, 255), 1, true) dxDrawLine(768, 497 - 1, 597 - 1, 497 - 1, tocolor(254, 255, 254, 255), 1, true) dxDrawLine(597 - 1, 528, 768, 528, tocolor(254, 255, 254, 255), 1, true) dxDrawLine(768, 528, 768, 497 - 1, tocolor(254, 255, 254, 255), 1, true) dxDrawRectangle(597, 497, 171, 31, tocolor(0, 255, 18, 255), true) dxDrawText("إيقاف المراقبة", 597 + 1, 497 + 1, 768 + 1, 528 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("إيقاف المراقبة", 597, 497, 768, 528, tocolor(255, 254, 254, 255), 1.50, "default-bold", "center", "center", false, false, true, false, false) end STOP = guiCreateButton(597, 497, 171, 31, "", false) guiSetAlpha(STOP, 0.00) BTN1 = guiCreateButton(421, 236, 150, 32, "", false) guiSetAlpha(BTN1, 0.00) BTN2 = guiCreateButton(609, 236, 150, 32, "", false) guiSetAlpha(BTN2, 0.00) BTN3 = guiCreateButton(796, 236, 150, 32, "", false) guiSetAlpha(BTN3, 0.00) BTN4 = guiCreateButton(421, 301, 150, 32, "", false) guiSetAlpha(BTN4, 0.00) BTN5 = guiCreateButton(609, 301, 150, 32, "", false) guiSetAlpha(BTN5, 0.00) BTN6 = guiCreateButton(796, 301, 150, 32, "", false) guiSetAlpha(BTN6, 0.00) BTN7 = guiCreateButton(421, 365, 150, 32, "", false) guiSetAlpha(BTN7, 0.00) BTN9 = guiCreateButton(609, 365, 150, 32, "", false) guiSetAlpha(BTN9, 0.00) BTN10 = guiCreateButton(796, 365, 150, 32, "", false) guiSetAlpha(BTN10, 0.00) BTN11 = guiCreateButton(421, 429, 150, 32, "", false) guiSetAlpha(BTN11, 0.00) BTN12 = guiCreateButton(609, 429, 150, 32, "", false) guiSetAlpha(BTN12, 0.00) BTN13 = guiCreateButton(796, 429, 150, 32, "", false) guiSetAlpha(BTN13, 0.00) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then if removeEventHandler("onClientRender",root,GUI)then removeEventHandler("onClientRender",root,GUI) playSoundFrontEnd(40) showCursor(false) end end end ) addEventHandler("onClientGUIClick",root, function () if source == STOP then playSoundFrontEnd(40) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function () if source == BTN1 then CAM1 = setCameraMatrix(1507.71631,-1657.00586,20.79688,1540.93384,-1681.96313,13.55156) showCursor(true) end end ) function OpenWin() if removeEventHandler("onClientRender",root,GUI)then removeEventHandler("onClientRender",root,GUI) showCursor(false) else addEventHandler("onClientRender",root,GUI) showCursor(true) end end bindKey ( "F5", "down", OpenWin ) بس فنكشن بسيط . Link to comment
Jupi Posted August 8, 2015 Share Posted August 8, 2015 طيب انت تبي توقف المراقبة طبيعي تنشال الكاميرا Link to comment
MR.GRAND Posted August 8, 2015 Author Share Posted August 8, 2015 طيب ممكن الفنكشن ؟ مع مثال :] Link to comment
Jupi Posted August 8, 2015 Share Posted August 8, 2015 اها اسف ما فهمتك : ) استعمل setCameraTarget هذا تحط الكاميرا علي هدف معين اللي هو ا لاعب لو تبي توقف الكاميرا مثال setCameraTarget(localPlayer) الحين نحن هدف الكاميرا علي الاعب المحلي و السلام عليكم Link to comment
MR.GRAND Posted August 8, 2015 Author Share Posted August 8, 2015 تمت الافادة # , شكرا لك ,, يغلق :] 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