Jump to content

طلب تصحيح كود


Recommended Posts

function drawPlay ( ) 
        dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) 
        dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) 
        dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€‍ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€  , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) 
        dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
        dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
        dxDrawText("ط·آ³ط·آ¨ ط¸ث† ط·آ´ط·ع¾ط¸… = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط¸â€ ط·آ´ط·آ± = ط·آ¨ط·آ§ط¸â€ ط·آ¯ ط¸…ط·آ¤ط·آ¨ط·آ¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
        dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ¹ط·آ¯ط¸… ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€‍ط·آ²ط¸ث†ط·آ§ط·آ± = ط·آ³ط·آ­ط·آ¨ ط·آ§ط¸â€‍ط·آ±ط·ع¾ط·آ¨ط¸â€،", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·آ¹ط¸â€ ط·آµط·آ±ط¸ظ¹ط·آ© ط·آ§ط¸ث† ط·آ§ط¸â€‍ط·ع¾ط¸ئ’ط·آ¨ط·آ± = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 30 ط·آ¯ط¸â€ڑط¸ظ¹ط¸â€ڑط¸â€،", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ·ط¸â€‍ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€، = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·ع¾ط¸â€،ط·آ¯ط¸ظ¹ط·آ¯ = ط·آ§ط¸â€‍ط¸â€ڑط·آ±ط·آ§ط·آ± ط·آ¨ط¸ظ¹ط·آ¯ ط·آ§ط¸â€‍ط¸ئ’ط¸ث†ط¸â€ ط·آ³ط¸â€‍", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·ع¾ط¸â€،ط·آ§ط¸ث†ط·آ´ ط·آ¨ط¸ظ¹ط¸â€  ط·آ§ط·آ¯ط¸…ط¸â€ ط¸ظ¹ط¸â€  = ط·آ³ط·آ­ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€،ط¸… ط·آ§ط¸â€‍ط·آ§ط·آ«ط¸â€ ط¸ظ¹ط¸â€ ط¸â€،ط¸…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
        dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) 
end 
  
function draw1 ( ) 
    dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) 
    dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) 
    dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€‍ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€  , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) 
    dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    dxDrawText("ط¸â€‍ط¸â€‍ط·آ­ط·آµط¸ث†ط¸â€‍ ط·آ¹ط¸â€‍ط¸‰ ط·آ§ط¸â€‍ط·آ±ط·ع¾ط·آ¨ط¸â€، ط·آ·ط·آ¨ط¸â€ڑ ط¸…ط·آ§ ط¸ظ¹ط¸â€‍ط¸ظ¹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸â€ ط·آ´ط·آ± ط·آ§ط¸â€‍ط·آ³ط¸ظ¹ط·آ±ط¸ظ¾ط·آ±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
    dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€‍ط·آ²ط¸ث†ط·آ§ط·آ± ط¸ث†ط·آ§ط¸â€‍ط¸…ط·آ­ط·ع¾ط·آ§ط·آ¬ط¸ظ¹ط¸â€ ", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸…ط·آ±ط·آ§ط¸â€ڑط·آ¨ط¸â€، ط·آ§ط¸â€‍ط·آ´ط·آ§ط·ع¾", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) 
    dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
    dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
end 
  
local opened = false 
function Open ( ) 
    if opened then 
        removeEventHandler ( "onClientRander", root,drawPlay) 
        showCursor ( false ) 
        opened = false 
    else 
        addEventHandler ("onClientRander", root , draw1) 
        showCursor ( true ) 
        opened = true 
    end 
end 
bindKey ("F10", "down", Open ) 
  
  
GUIEditor = { 
    button = {}, 
} 
GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€‍ط·ع¾ط·آ§ط¸â€‍ط¸ظ¹", false) 
GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€‍ط·آ³ط·آ§ط·آ¨ط¸â€ڑ", false) 
  
function Buttons () 
    if source == GUIEditor.button[1] then 
    addEventHandler ( "onClientRender",root,drawPlay ) 
    removeEventHandler ( "onClientRender",root,draw1 ) 
    guiSetVisible(GUIEditor.button[1] , false) 
    guiSetVisible ( GUIEditor.button[2],true ) 
    elseif source == GUIEditor.button[2] then 
    removeEventHandler ( "onClientRender",root,drawPlay ) 
    addEventHandler ( "onClientRender",root,draw1 ) 
    guiSetVisible(GUIEditor.button[1] , true) 
    guiSetVisible ( GUIEditor.button[2], false) 
    end 
end 
addEventHandler ( "onClientGUIClick",root,Buttons ) 

Link to comment

جرب

function drawPlay ( ) 
        dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) 
        dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) 
        dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€‍ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€  , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) 
        dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) 
        dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
        dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
        dxDrawText("ط·آ³ط·آ¨ ط¸ث† ط·آ´ط·ع¾ط¸… = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط¸â€ ط·آ´ط·آ± = ط·آ¨ط·آ§ط¸â€ ط·آ¯ ط¸…ط·آ¤ط·آ¨ط·آ¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
        dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ¹ط·آ¯ط¸… ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€‍ط·آ²ط¸ث†ط·آ§ط·آ± = ط·آ³ط·آ­ط·آ¨ ط·آ§ط¸â€‍ط·آ±ط·ع¾ط·آ¨ط¸â€،", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·آ¹ط¸â€ ط·آµط·آ±ط¸ظ¹ط·آ© ط·آ§ط¸ث† ط·آ§ط¸â€‍ط·ع¾ط¸ئ’ط·آ¨ط·آ± = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 30 ط·آ¯ط¸â€ڑط¸ظ¹ط¸â€ڑط¸â€،", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ·ط¸â€‍ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€، = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·ع¾ط¸â€،ط·آ¯ط¸ظ¹ط·آ¯ = ط·آ§ط¸â€‍ط¸â€ڑط·آ±ط·آ§ط·آ± ط·آ¨ط¸ظ¹ط·آ¯ ط·آ§ط¸â€‍ط¸ئ’ط¸ث†ط¸â€ ط·آ³ط¸â€‍", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("ط·آ§ط¸â€‍ط·ع¾ط¸â€،ط·آ§ط¸ث†ط·آ´ ط·آ¨ط¸ظ¹ط¸â€  ط·آ§ط·آ¯ط¸…ط¸â€ ط¸ظ¹ط¸â€  = ط·آ³ط·آ­ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€،ط¸… ط·آ§ط¸â€‍ط·آ§ط·آ«ط¸â€ ط¸ظ¹ط¸â€ ط¸â€،ط¸…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
        dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
        dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) 
        dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) 
end 
  
function draw1 ( ) 
    dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) 
    dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) 
    dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€‍ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€  , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) 
    dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) 
    dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    dxDrawText("ط¸â€‍ط¸â€‍ط·آ­ط·آµط¸ث†ط¸â€‍ ط·آ¹ط¸â€‍ط¸‰ ط·آ§ط¸â€‍ط·آ±ط·ع¾ط·آ¨ط¸â€، ط·آ·ط·آ¨ط¸â€ڑ ط¸…ط·آ§ ط¸ظ¹ط¸â€‍ط¸ظ¹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸â€ ط·آ´ط·آ± ط·آ§ط¸â€‍ط·آ³ط¸ظ¹ط·آ±ط¸ظ¾ط·آ±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
    dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€‍ط·آ²ط¸ث†ط·آ§ط·آ± ط¸ث†ط·آ§ط¸â€‍ط¸…ط·آ­ط·ع¾ط·آ§ط·آ¬ط¸ظ¹ط¸â€ ", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("ط¸…ط·آ±ط·آ§ط¸â€ڑط·آ¨ط¸â€، ط·آ§ط¸â€‍ط·آ´ط·آ§ط·ع¾", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) 
    dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) 
    dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) 
    dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
    dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
end 
  
local opened = false 
function Open ( ) 
    if opened then 
        removeEventHandler ( "onClientRander", root,drawPlay) 
        showCursor ( false ) 
        opened = false 
        guiSetVisible ( GUIEditor.button[1],false ) 
        guiSetVisible ( GUIEditor.button[2],false ) 
    else 
        addEventHandler ("onClientRander", root , draw1) 
        showCursor ( true ) 
        opened = true 
        guiSetVisible ( GUIEditor.button[1],true ) 
        guiSetVisible ( GUIEditor.button[2],true ) 
    end 
end 
bindKey ("F10", "down", Open ) 
  
guiSetVisible ( GUIEditor.button[1],false ) 
guiSetVisible ( GUIEditor.button[2],false ) 
  
GUIEditor = { 
    button = {}, 
} 
GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€‍ط·ع¾ط·آ§ط¸â€‍ط¸ظ¹", false) 
GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€‍ط·آ³ط·آ§ط·آ¨ط¸â€ڑ", false) 
  
function Buttons () 
    if source == GUIEditor.button[1] then 
    addEventHandler ( "onClientRender",root,drawPlay ) 
    removeEventHandler ( "onClientRender",root,draw1 ) 
    guiSetVisible(GUIEditor.button[1] , false) 
    guiSetVisible ( GUIEditor.button[2],true ) 
    elseif source == GUIEditor.button[2] then 
    removeEventHandler ( "onClientRender",root,drawPlay ) 
    addEventHandler ( "onClientRender",root,draw1 ) 
    guiSetVisible(GUIEditor.button[1] , true) 
    guiSetVisible ( GUIEditor.button[2], false) 
    end 
end 
addEventHandler ( "onClientGUIClick",root,Buttons ) 

Link to comment

مشكور الوحش انتهت المشكلة ~

يا الوحش لو بطلب منك طلب ثاني

ممكن

طلب هو

شو هي متطلبات مود شراء الاسلحة

انا بخليها بالقريد ليست

كيف اخليه لو ضغط على رو محدد يعطيه سلاح

ويسحب فلوسه

ويوريه صوره السلاح

ابي ذي الفنكشنات

وسلام عليكم

مدام مافي رد + يقفل الموضوع ~

Link to comment
  • 1 month later...

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...