Jump to content

x{مشكلة}x فتح اللوحة


Recommended Posts

السلام عليكم ورحمه الله وبركاتة

عندي مشكلة بالكود معرف شو في اللوحة ما تبي تفتح !! اتمني المساعدة الكود هو ...

x,y,w,h 
  
function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 
  
  
  
    function dx_test (  ) 
        dxDrawRectangle(129, 227, 475, 240, tocolor(0, 0, 0, 255), false) 
        dxDrawRectangle(129, 189, 475, 43, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(318, 442, 90, 25, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(340, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawRectangle(365, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawLine(129, 232, 605, 232, tocolor(183, 15, 178, 255), 1, false) 
        dxDrawText("Music", 314, 189, 414, 232, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) 
        dxDrawText("OMGF - Hello Remix 2015  [Trap] :", 144, 255, 285, 271, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 251, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 251, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 251, 476, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 251, 535, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("BANGARANG [FT.SIRAH] 2015 :", 144, 296, 285, 312, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 292, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 292, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 292, 476, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 292, 535, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("KYOTO - [FT.SIRAH] 2015 :", 144, 337, 285, 353, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 333, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 333, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 333, 476, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 333, 535, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("The Chainsmokers - Don‘t Let Me Down [Trap] :", 144, 377, 285, 393, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 373, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 373, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 373, 476, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 373, 535, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("1", 340, 445, 359, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("2", 365, 445, 384, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
    end 
) 
  
  
  
  
sShowing = false 
bindKey("f4","down", function ( ) 
if ( sShowing == true ) then  
removeEventHandler("onClientRender",root,dx_test) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,dx_test) 
showCursor ( true ) 
end 
sShowing = not sShowing  
end 
end 
end 
) 

Link to comment
function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 
  
  
  
    function dx_test (  ) 
        dxDrawRectangle(129, 227, 475, 240, tocolor(0, 0, 0, 255), false) 
        dxDrawRectangle(129, 189, 475, 43, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(318, 442, 90, 25, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(340, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawRectangle(365, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawLine(129, 232, 605, 232, tocolor(183, 15, 178, 255), 1, false) 
        dxDrawText("Music", 314, 189, 414, 232, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) 
        dxDrawText("OMGF - Hello Remix 2015  [Trap] :", 144, 255, 285, 271, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 251, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 251, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 251, 476, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 251, 535, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("BANGARANG [FT.SIRAH] 2015 :", 144, 296, 285, 312, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 292, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 292, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 292, 476, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 292, 535, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("KYOTO - [FT.SIRAH] 2015 :", 144, 337, 285, 353, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 333, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 333, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 333, 476, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 333, 535, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("The Chainsmokers - Don‘t Let Me Down [Trap] :", 144, 377, 285, 393, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 373, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 373, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 373, 476, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 373, 535, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("1", 340, 445, 359, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("2", 365, 445, 384, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
    end 
  
  
  
  
local sShowing = false 
bindKey("F4","down", function ( ) 
if ( sShowing == true ) then 
removeEventHandler("onClientRender",root,dx_test) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,dx_test) 
showCursor ( true ) 
end 
sShowing = not sShowing 
  
end 
  
) 
  

Edited by Guest
Link to comment
unction isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 
  
  
  
    function dx_test (  ) 
        dxDrawRectangle(129, 227, 475, 240, tocolor(0, 0, 0, 255), false) 
        dxDrawRectangle(129, 189, 475, 43, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(318, 442, 90, 25, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(340, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawRectangle(365, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawLine(129, 232, 605, 232, tocolor(183, 15, 178, 255), 1, false) 
        dxDrawText("Music", 314, 189, 414, 232, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) 
        dxDrawText("OMGF - Hello Remix 2015  [Trap] :", 144, 255, 285, 271, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 251, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 251, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 251, 476, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 251, 535, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("BANGARANG [FT.SIRAH] 2015 :", 144, 296, 285, 312, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 292, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 292, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 292, 476, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 292, 535, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("KYOTO - [FT.SIRAH] 2015 :", 144, 337, 285, 353, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 333, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 333, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 333, 476, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 333, 535, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("The Chainsmokers - Don‘t Let Me Down [Trap] :", 144, 377, 285, 393, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 373, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 373, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 373, 476, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 373, 535, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("1", 340, 445, 359, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("2", 365, 445, 384, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
    end 
  
  
  
  
local sShowing = false 
bindKey("F4","down", function ( ) 
if ( sShowing == true ) then 
removeEventHandler("onClientRender",root,dx_test) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,dx_test) 
showCursor ( true ) 
end 
sShowing = not sShowing 
  
end 
  
) 
  

السطر الاول خطا

unction to function

Link to comment
المشكلة ما اتحلت للاسف :( اتمني المساعدة

لو سمحتم اللي يحلها يجربه ويعطية لي

وشكرا <3

function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 
  
  
    function dx_test (  ) 
        dxDrawRectangle(129, 227, 475, 240, tocolor(0, 0, 0, 255), false) 
        dxDrawRectangle(129, 189, 475, 43, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(318, 442, 90, 25, tocolor(8, 8, 8, 255), false) 
        dxDrawRectangle(340, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawRectangle(365, 444, 19, 18, tocolor(121, 9, 118, 255), false) 
        dxDrawLine(129, 232, 605, 232, tocolor(183, 15, 178, 255), 1, false) 
        dxDrawText("Music", 314, 189, 414, 232, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) 
        dxDrawText("OMGF - Hello Remix 2015  [Trap] :", 144, 255, 285, 271, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 251, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 251, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 251, 476, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 251, 535, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("BANGARANG [FT.SIRAH] 2015 :", 144, 296, 285, 312, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 292, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 292, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 292, 476, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 292, 535, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("KYOTO - [FT.SIRAH] 2015 :", 144, 337, 285, 353, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 333, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 333, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 333, 476, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 333, 535, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("The Chainsmokers - Don‘t Let Me Down [Trap] :", 144, 377, 285, 393, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawRectangle(421, 373, 55, 26, tocolor(27, 160, 9, 255), false) 
        dxDrawRectangle(480, 373, 55, 26, tocolor(169, 0, 0, 255), false) 
        dxDrawText("ON", 421, 373, 476, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("OFF", 480, 373, 535, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("1", 340, 445, 359, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
        dxDrawText("2", 365, 445, 384, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) 
    end 
  
  
  
local sShowing = false 
bindKey("F4","down", function ( ) 
if ( sShowing == true ) then 
removeEventHandler("onClientRender",root,dx_test) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,dx_test) 
showCursor ( true ) 
end 
sShowing = not sShowing 
end ) 
  

مجربة وشغال وش المشكلة ؟؟

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...