Jump to content

bindKey مشكلة


Recommended Posts

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

"O" عندما يضغط لاعب على GUIأريد أن أظهر ال

ولكنه يقول لي دائما (debugscript 3)

Bad argument @bindKey

الرجاء المساعدة وشكرا

  
bindKey("O","down" 
function showWindow() 
if (guiGetVisible(myPanel) == true) then 
guiSetVisible(myPanel, false) 
showCursor(false) 
else 
showCursor(true) 
guiSetVisible(myPanel, true) 
end 
end 
) 

Link to comment
  
bindKey ( "O", "down", 
    function ( ) 
        if guiGetVisible ( myPanel ) then 
            guiSetVisible ( myPanel, false ) 
            showCursor ( false ) 
        else 
            showCursor ( true ) 
            guiSetVisible ( myPanel, true ) 
        end 
    end 
) 
  

Link to comment
.يظهر (cursor) شكرا لكم ولكن فقط المؤشر
bindKey ( "O" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (true ) 
  end 
 end 
 ) 

Link to comment
bindKey ( "O" , "down" , function() 
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 end 
 end 
 ) 

Link to comment
  
theWindow = myPanel -- اسم النافذة 
theKey = "O" -- الزر 
  
bindKey ( theKey, "down", 
    function ( ) 
        if guiGetVisible ( theWindow ) then 
            guiSetVisible ( theWindow, false ) 
            showCursor ( false ) 
        else 
            guiSetVisible ( theWindow, true ) 
            showCursor ( true )          
        end 
    end 
) 
  

Link to comment
في النافذة يؤثر على الرؤية ؟ (tabs/tabpanels..) هل وجود

وش المشكلة تبي كود يفتح النافذة ؟؟

bindKey ( "o" , "down" , function() 
if ( guiGetVisible ( myPanel ) == true ) then 
guiSetVisible ( myPanel ,false ) 
showCursor (false ) 
elseif ( guiGetVisible ( myPanel ) == false ) then 
guiSetVisible ( myPanel ,true ) 
showCursor (false ) 
end 
end) 

Link to comment
GUIEditor = { 
    button = {}, 
    edit = {}, 
    tabpanel = {}, 
    label = {}, 
    tab = {}, 
    window = {}, 
    gridlist = {}, 
    checkbox = {}, 
    memo = {}, 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
myAd = guiCreateWindow(34, 5, 722, 576, "Staff Panel", true) 
        guiWindowSetSizable(myAd, false) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 43, 157, 197, false, myAd) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 19, 704, 548, false, myAd) 
        general = guiCreateTab("General", GUIEditor.tabpanel[1]) 
        GUIEditor.tabpanel[2] = guiCreateTabPanel(133, 111, 15, 15, false, general) 
        GUIEditor.tabpanel[3] = guiCreateTabPanel(103, 131, 71, 84, false, general) 
        genGridlist = guiCreateGridList(10, 75, 136, 439, false, general) 
        GUIEditor.edit[1] = guiCreateEdit(46, 40, 100, 30, "", false, general) 
        GUIEditor.label[1] = guiCreateLabel(177, 32, 93, 16, "", false, general) 
        GUIEditor.label[2] = guiCreateLabel(175, 75, 119, 15, "General Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[2], 85, 235, 19) 
        GUIEditor.label[3] = guiCreateLabel(174, 111, 123, 15, "Account:", false, general) 
        GUIEditor.label[4] = guiCreateLabel(174, 142, 123, 15, "Version:", false, general) 
        GUIEditor.label[5] = guiCreateLabel(174, 173, 233, 15, "Serial:", false, general) 
        GUIEditor.label[6] = guiCreateLabel(304, 111, 124, 15, "IP:", false, general) 
        GUIEditor.label[7] = guiCreateLabel(304, 142, 74, 15, "Country:", false, general) 
        GUIEditor.label[8] = guiCreateLabel(175, 198, 119, 15, "IG Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[8], 85, 235, 19) 
        GUIEditor.label[9] = guiCreateLabel(174, 223, 123, 15, "Playtime:", false, general) 
        GUIEditor.label[10] = guiCreateLabel(307, 223, 94, 15, "Fighting Style:", false, general) 
        GUIEditor.label[11] = guiCreateLabel(174, 281, 123, 15, "Money:", false, general) 
        GUIEditor.label[12] = guiCreateLabel(303, 281, 123, 15, "BankMoney:", false, general) 
        GUIEditor.label[13] = guiCreateLabel(174, 313, 70, 15, "X:", false, general) 
        GUIEditor.label[14] = guiCreateLabel(174, 344, 70, 15, "Y:", false, general) 
        GUIEditor.label[15] = guiCreateLabel(174, 375, 70, 15, "Z:", false, general) 
        GUIEditor.label[16] = guiCreateLabel(303, 312, 98, 15, "Dimension:", false, general) 
        GUIEditor.label[17] = guiCreateLabel(303, 344, 98, 15, "Interior:", false, general) 
        GUIEditor.label[18] = guiCreateLabel(303, 375, 98, 15, "Ping:", false, general) 
        GUIEditor.label[19] = guiCreateLabel(174, 407, 70, 15, "Health:", false, general) 
        GUIEditor.label[20] = guiCreateLabel(303, 407, 98, 15, "Group:", false, general) 
        GUIEditor.label[21] = guiCreateLabel(174, 481, 101, 15, "Vehicle Hp:", false, general) 
        GUIEditor.label[22] = guiCreateLabel(303, 481, 134, 15, "Vehicle Type:", false, general) 
        GUIEditor.label[23] = guiCreateLabel(303, 486, 98, 15, "Group:", false, general) 
        GUIEditor.button[1] = guiCreateButton(485, 43, 90, 32, "Jail", false, general) 
        GUIEditor.button[2] = guiCreateButton(593, 43, 90, 32, "Mute", false, general) 
        GUIEditor.button[3] = guiCreateButton(593, 89, 90, 32, "Spectate", false, general) 
        GUIEditor.button[4] = guiCreateButton(485, 89, 90, 32, "Rename", false, general) 
        GUIEditor.button[5] = guiCreateButton(485, 131, 90, 32, "Slap", false, general) 
        GUIEditor.button[6] = guiCreateButton(593, 131, 90, 32, "Freeze", false, general) 
        GUIEditor.button[7] = guiCreateButton(485, 469, 90, 32, "Get Punishlog", false, general) 
        GUIEditor.button[8] = guiCreateButton(593, 173, 90, 32, "Kick", false, general) 
        GUIEditor.button[9] = guiCreateButton(485, 173, 90, 32, "Ban", false, general) 
        GUIEditor.button[10] = guiCreateButton(593, 215, 90, 32, "Warp to:", false, general) 
        GUIEditor.button[11] = guiCreateButton(485, 216, 90, 32, "Warp", false, general) 
        GUIEditor.button[12] = guiCreateButton(593, 258, 90, 32, "Interior", false, general) 
        GUIEditor.button[13] = guiCreateButton(485, 259, 90, 32, "Dimension", false, general) 
        GUIEditor.button[14] = guiCreateButton(593, 301, 90, 32, "Set Armor", false, general) 
        GUIEditor.button[15] = guiCreateButton(485, 302, 90, 32, "Set Hp", false, general) 
        GUIEditor.button[16] = guiCreateButton(593, 344, 90, 32, "Destroy", false, general) 
        GUIEditor.button[17] = guiCreateButton(485, 344, 90, 32, "Fix Vehicle", false, general) 
        GUIEditor.button[18] = guiCreateButton(593, 386, 90, 32, "Give Drugs", false, general) 
        GUIEditor.label[24] = guiCreateLabel(174, 444, 104, 15, "Weapon:", false, general) 
        GUIEditor.label[25] = guiCreateLabel(303, 444, 98, 15, "Ammu:", false, general) 
        GUIEditor.button[19] = guiCreateButton(485, 385, 90, 32, "Give Weapon", false, general) 
        GUIEditor.button[20] = guiCreateButton(593, 427, 90, 32, "Give Vehicle", false, general) 
        GUIEditor.label[26] = guiCreateLabel(174, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[27] = guiCreateLabel(307, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[28] = guiCreateLabel(303, 254, 123, 15, "Occupation:", false, general) 
        GUIEditor.label[29] = guiCreateLabel(171, 503, 184, 15, "Vehicle Type:", false, general) 
        guiLabelSetColor(GUIEditor.label[29], 244, 7, 41) 
        GUIEditor.button[21] = guiCreateButton(485, 427, 90, 32, "Set Team", false, general) 
        GUIEditor.button[22] = guiCreateButton(595, 469, 90, 32, "Give Vehicle", false, general) 
  
        resources = guiCreateTab("Resources", GUIEditor.tabpanel[1]) 
  
        resGridlist = guiCreateGridList(10, 101, 172, 413, false, resources) 
        guiGridListAddColumn(resGridlist, "Resource", 0.4) 
        guiGridListAddColumn(resGridlist, "State", 0.4) 
        GUIEditor.edit[2] = guiCreateEdit(59, 66, 123, 29, "", false, resources) 
        GUIEditor.button[23] = guiCreateButton(210, 104, 119, 33, "Start", false, resources) 
        GUIEditor.button[24] = guiCreateButton(210, 151, 119, 33, "Restart", false, resources) 
        GUIEditor.button[25] = guiCreateButton(210, 194, 119, 33, "Stop", false, resources) 
        GUIEditor.button[26] = guiCreateButton(210, 237, 119, 33, "Remove", false, resources) 
        GUIEditor.button[27] = guiCreateButton(210, 280, 119, 33, "Settings", false, resources) 
        GUIEditor.button[28] = guiCreateButton(210, 323, 119, 33, "Refresh List", false, resources) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(210, 370, 108, 18, "Include Maps", false, false, resources) 
        GUIEditor.label[30] = guiCreateLabel(380, 104, 76, 18, "Informations:", false, resources) 
        guiLabelSetColor(GUIEditor.label[30], 7, 35, 246) 
        GUIEditor.label[31] = guiCreateLabel(352, 151, 117, 18, "Author:", false, resources) 
        guiLabelSetColor(GUIEditor.label[31], 7, 35, 246) 
        GUIEditor.label[32] = guiCreateLabel(352, 194, 116, 18, "Name:", false, resources) 
        guiLabelSetColor(GUIEditor.label[32], 7, 35, 246) 
        GUIEditor.label[33] = guiCreateLabel(352, 237, 117, 18, "Version:", false, resources) 
        guiLabelSetColor(GUIEditor.label[33], 7, 35, 246) 
        GUIEditor.label[34] = guiCreateLabel(352, 280, 117, 18, "Type:", false, resources) 
        guiLabelSetColor(GUIEditor.label[34], 7, 35, 246) 
        GUIEditor.label[35] = guiCreateLabel(352, 323, 117, 18, "Logs:", false, resources) 
        guiLabelSetColor(GUIEditor.label[35], 7, 35, 246) 
        GUIEditor.memo[1] = guiCreateMemo(339, 346, 159, 155, "\n#1 Started\n#2 Stoped\n....\n", false, resources) 
        GUIEditor.edit[3] = guiCreateEdit(474, 147, 194, 27, "", false, resources) 
        GUIEditor.label[36] = guiCreateLabel(479, 122, 109, 18, "Execute Command:", false, resources) 
        guiLabelSetColor(GUIEditor.label[36], 240, 12, 12) 
        GUIEditor.button[29] = guiCreateButton(549, 184, 119, 33, "Client", false, resources) 
        GUIEditor.button[30] = guiCreateButton(549, 227, 119, 33, "Server", false, resources) 
  
        bans = guiCreateTab("Bans", GUIEditor.tabpanel[1]) 
  
        GUIEditor.gridlist[4] = guiCreateGridList(5, 11, 582, 450, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "IP", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Date", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Durition", 0.3) 
        GUIEditor.gridlist[5] = guiCreateGridList(5, 8, 560, 506, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "IP", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Serial", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Time", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "By", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Reason", 0.2) 
        GUIEditor.button[31] = guiCreateButton(573, 30, 122, 34, "Unban Serial", false, bans) 
        GUIEditor.button[32] = guiCreateButton(572, 70, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[33] = guiCreateButton(572, 114, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[34] = guiCreateButton(572, 157, 122, 34, "Refresh List", false, bans) 
        GUIEditor.label[37] = guiCreateLabel(589, 210, 82, 15, "Bans: 5/10", false, bans) 
  
        svManag = guiCreateTab("Server Managment", GUIEditor.tabpanel[1]) 
  
        svGridlist = guiCreateGridList(7, 78, 152, 435, false, svManag) 
        GUIEditor.edit[4] = guiCreateEdit(10, 39, 147, 32, "", false, svManag) 
        GUIEditor.button[35] = guiCreateButton(177, 85, 256, 117, "", false, svManag) 
        GUIEditor.button[37] = guiCreateButton(169, 81, 115, 37, "Add as Staff", false, svManag) 
        GUIEditor.edit[5] = guiCreateEdit(212, 128, 106, 29, "", false, svManag) 
        GUIEditor.label[38] = guiCreateLabel(172, 132, 35, 15, "Level:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[38], 240, 12, 12) 
        GUIEditor.button[38] = guiCreateButton(419, 81, 115, 37, "Promote", false, svManag) 
        GUIEditor.button[39] = guiCreateButton(294, 81, 115, 37, "Remove Staff", false, svManag) 
        GUIEditor.button[40] = guiCreateButton(544, 81, 115, 37, "Demote", false, svManag) 
        GUIEditor.button[41] = guiCreateButton(169, 167, 115, 37, "Give VIP", false, svManag) 
        GUIEditor.edit[6] = guiCreateEdit(212, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[39] = guiCreateLabel(169, 218, 35, 15, "Hours:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[39], 240, 12, 12) 
        GUIEditor.button[42] = guiCreateButton(298, 167, 115, 37, "Remove VIP", false, svManag) 
        GUIEditor.button[43] = guiCreateButton(419, 167, 115, 37, "Set Password", false, svManag) 
        GUIEditor.button[44] = guiCreateButton(544, 167, 115, 37, "Remove Password", false, svManag) 
        GUIEditor.edit[7] = guiCreateEdit(544, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[40] = guiCreateLabel(465, 224, 73, 15, "Password:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[40], 240, 12, 12) 
        GUIEditor.button[45] = guiCreateButton(169, 253, 115, 37, "Set Weather", false, svManag) 
        GUIEditor.button[46] = guiCreateButton(298, 253, 115, 37, "Set FPS Limits", false, svManag) 
        GUIEditor.button[47] = guiCreateButton(419, 253, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.button[48] = guiCreateButton(543, 256, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.label[41] = guiCreateLabel(169, 307, 160, 15, "Server Name:", false, svManag) 
        GUIEditor.label[42] = guiCreateLabel(169, 332, 104, 15, "Players:", false, svManag) 
        GUIEditor.label[43] = guiCreateLabel(170, 357, 104, 15, "Map Name:", false, svManag) 
        GUIEditor.label[44] = guiCreateLabel(170, 382, 195, 15, "Gamemode Name:", false, svManag) 
        GUIEditor.label[45] = guiCreateLabel(169, 407, 109, 15, "Password:", false, svManag) 
        GUIEditor.label[46] = guiCreateLabel(169, 432, 143, 15, "Time(GMT0):", false, svManag) 
        GUIEditor.label[47] = guiCreateLabel(169, 457, 114, 15, "FPS Limits:", false, svManag) 
guiSetVisible(myAd,false) 
end 
)  
  

Edited by Guest
Link to comment
GUIEditor = { 
    button = {}, 
    edit = {}, 
    tabpanel = {}, 
    label = {}, 
    tab = {}, 
    window = {}, 
    gridlist = {}, 
    checkbox = {}, 
    memo = {}, 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
myAd = guiCreateWindow(34, 5, 722, 576, "Staff Panel", true) 
        guiWindowSetSizable(myAd, false) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 43, 157, 197, false, myAd) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 19, 704, 548, false, myAd) 
        general = guiCreateTab("General", GUIEditor.tabpanel[1]) 
        GUIEditor.tabpanel[2] = guiCreateTabPanel(133, 111, 15, 15, false, general) 
        GUIEditor.tabpanel[3] = guiCreateTabPanel(103, 131, 71, 84, false, general) 
        genGridlist = guiCreateGridList(10, 75, 136, 439, false, general) 
        GUIEditor.edit[1] = guiCreateEdit(46, 40, 100, 30, "", false, general) 
        GUIEditor.label[1] = guiCreateLabel(177, 32, 93, 16, "", false, general) 
        GUIEditor.label[2] = guiCreateLabel(175, 75, 119, 15, "General Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[2], 85, 235, 19) 
        GUIEditor.label[3] = guiCreateLabel(174, 111, 123, 15, "Account:", false, general) 
        GUIEditor.label[4] = guiCreateLabel(174, 142, 123, 15, "Version:", false, general) 
        GUIEditor.label[5] = guiCreateLabel(174, 173, 233, 15, "Serial:", false, general) 
        GUIEditor.label[6] = guiCreateLabel(304, 111, 124, 15, "IP:", false, general) 
        GUIEditor.label[7] = guiCreateLabel(304, 142, 74, 15, "Country:", false, general) 
        GUIEditor.label[8] = guiCreateLabel(175, 198, 119, 15, "IG Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[8], 85, 235, 19) 
        GUIEditor.label[9] = guiCreateLabel(174, 223, 123, 15, "Playtime:", false, general) 
        GUIEditor.label[10] = guiCreateLabel(307, 223, 94, 15, "Fighting Style:", false, general) 
        GUIEditor.label[11] = guiCreateLabel(174, 281, 123, 15, "Money:", false, general) 
        GUIEditor.label[12] = guiCreateLabel(303, 281, 123, 15, "BankMoney:", false, general) 
        GUIEditor.label[13] = guiCreateLabel(174, 313, 70, 15, "X:", false, general) 
        GUIEditor.label[14] = guiCreateLabel(174, 344, 70, 15, "Y:", false, general) 
        GUIEditor.label[15] = guiCreateLabel(174, 375, 70, 15, "Z:", false, general) 
        GUIEditor.label[16] = guiCreateLabel(303, 312, 98, 15, "Dimension:", false, general) 
        GUIEditor.label[17] = guiCreateLabel(303, 344, 98, 15, "Interior:", false, general) 
        GUIEditor.label[18] = guiCreateLabel(303, 375, 98, 15, "Ping:", false, general) 
        GUIEditor.label[19] = guiCreateLabel(174, 407, 70, 15, "Health:", false, general) 
        GUIEditor.label[20] = guiCreateLabel(303, 407, 98, 15, "Group:", false, general) 
        GUIEditor.label[21] = guiCreateLabel(174, 481, 101, 15, "Vehicle Hp:", false, general) 
        GUIEditor.label[22] = guiCreateLabel(303, 481, 134, 15, "Vehicle Type:", false, general) 
        GUIEditor.label[23] = guiCreateLabel(303, 486, 98, 15, "Group:", false, general) 
        GUIEditor.button[1] = guiCreateButton(485, 43, 90, 32, "Jail", false, general) 
        GUIEditor.button[2] = guiCreateButton(593, 43, 90, 32, "Mute", false, general) 
        GUIEditor.button[3] = guiCreateButton(593, 89, 90, 32, "Spectate", false, general) 
        GUIEditor.button[4] = guiCreateButton(485, 89, 90, 32, "Rename", false, general) 
        GUIEditor.button[5] = guiCreateButton(485, 131, 90, 32, "Slap", false, general) 
        GUIEditor.button[6] = guiCreateButton(593, 131, 90, 32, "Freeze", false, general) 
        GUIEditor.button[7] = guiCreateButton(485, 469, 90, 32, "Get Punishlog", false, general) 
        GUIEditor.button[8] = guiCreateButton(593, 173, 90, 32, "Kick", false, general) 
        GUIEditor.button[9] = guiCreateButton(485, 173, 90, 32, "Ban", false, general) 
        GUIEditor.button[10] = guiCreateButton(593, 215, 90, 32, "Warp to:", false, general) 
        GUIEditor.button[11] = guiCreateButton(485, 216, 90, 32, "Warp", false, general) 
        GUIEditor.button[12] = guiCreateButton(593, 258, 90, 32, "Interior", false, general) 
        GUIEditor.button[13] = guiCreateButton(485, 259, 90, 32, "Dimension", false, general) 
        GUIEditor.button[14] = guiCreateButton(593, 301, 90, 32, "Set Armor", false, general) 
        GUIEditor.button[15] = guiCreateButton(485, 302, 90, 32, "Set Hp", false, general) 
        GUIEditor.button[16] = guiCreateButton(593, 344, 90, 32, "Destroy", false, general) 
        GUIEditor.button[17] = guiCreateButton(485, 344, 90, 32, "Fix Vehicle", false, general) 
        GUIEditor.button[18] = guiCreateButton(593, 386, 90, 32, "Give Drugs", false, general) 
        GUIEditor.label[24] = guiCreateLabel(174, 444, 104, 15, "Weapon:", false, general) 
        GUIEditor.label[25] = guiCreateLabel(303, 444, 98, 15, "Ammu:", false, general) 
        GUIEditor.button[19] = guiCreateButton(485, 385, 90, 32, "Give Weapon", false, general) 
        GUIEditor.button[20] = guiCreateButton(593, 427, 90, 32, "Give Vehicle", false, general) 
        GUIEditor.label[26] = guiCreateLabel(174, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[27] = guiCreateLabel(307, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[28] = guiCreateLabel(303, 254, 123, 15, "Occupation:", false, general) 
        GUIEditor.label[29] = guiCreateLabel(171, 503, 184, 15, "Vehicle Type:", false, general) 
        guiLabelSetColor(GUIEditor.label[29], 244, 7, 41) 
        GUIEditor.button[21] = guiCreateButton(485, 427, 90, 32, "Set Team", false, general) 
        GUIEditor.button[22] = guiCreateButton(595, 469, 90, 32, "Give Vehicle", false, general) 
  
        resources = guiCreateTab("Resources", GUIEditor.tabpanel[1]) 
  
        resGridlist = guiCreateGridList(10, 101, 172, 413, false, resources) 
        guiGridListAddColumn(resGridlist, "Resource", 0.4) 
        guiGridListAddColumn(resGridlist, "State", 0.4) 
        GUIEditor.edit[2] = guiCreateEdit(59, 66, 123, 29, "", false, resources) 
        GUIEditor.button[23] = guiCreateButton(210, 104, 119, 33, "Start", false, resources) 
        GUIEditor.button[24] = guiCreateButton(210, 151, 119, 33, "Restart", false, resources) 
        GUIEditor.button[25] = guiCreateButton(210, 194, 119, 33, "Stop", false, resources) 
        GUIEditor.button[26] = guiCreateButton(210, 237, 119, 33, "Remove", false, resources) 
        GUIEditor.button[27] = guiCreateButton(210, 280, 119, 33, "Settings", false, resources) 
        GUIEditor.button[28] = guiCreateButton(210, 323, 119, 33, "Refresh List", false, resources) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(210, 370, 108, 18, "Include Maps", false, false, resources) 
        GUIEditor.label[30] = guiCreateLabel(380, 104, 76, 18, "Informations:", false, resources) 
        guiLabelSetColor(GUIEditor.label[30], 7, 35, 246) 
        GUIEditor.label[31] = guiCreateLabel(352, 151, 117, 18, "Author:", false, resources) 
        guiLabelSetColor(GUIEditor.label[31], 7, 35, 246) 
        GUIEditor.label[32] = guiCreateLabel(352, 194, 116, 18, "Name:", false, resources) 
        guiLabelSetColor(GUIEditor.label[32], 7, 35, 246) 
        GUIEditor.label[33] = guiCreateLabel(352, 237, 117, 18, "Version:", false, resources) 
        guiLabelSetColor(GUIEditor.label[33], 7, 35, 246) 
        GUIEditor.label[34] = guiCreateLabel(352, 280, 117, 18, "Type:", false, resources) 
        guiLabelSetColor(GUIEditor.label[34], 7, 35, 246) 
        GUIEditor.label[35] = guiCreateLabel(352, 323, 117, 18, "Logs:", false, resources) 
        guiLabelSetColor(GUIEditor.label[35], 7, 35, 246) 
        GUIEditor.memo[1] = guiCreateMemo(339, 346, 159, 155, "\n#1 Started\n#2 Stoped\n....\n", false, resources) 
        GUIEditor.edit[3] = guiCreateEdit(474, 147, 194, 27, "", false, resources) 
        GUIEditor.label[36] = guiCreateLabel(479, 122, 109, 18, "Execute Command:", false, resources) 
        guiLabelSetColor(GUIEditor.label[36], 240, 12, 12) 
        GUIEditor.button[29] = guiCreateButton(549, 184, 119, 33, "Client", false, resources) 
        GUIEditor.button[30] = guiCreateButton(549, 227, 119, 33, "Server", false, resources) 
  
        bans = guiCreateTab("Bans", GUIEditor.tabpanel[1]) 
  
        GUIEditor.gridlist[4] = guiCreateGridList(5, 11, 582, 450, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "IP", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Date", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Durition", 0.3) 
        GUIEditor.gridlist[5] = guiCreateGridList(5, 8, 560, 506, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "IP", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Serial", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Time", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "By", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Reason", 0.2) 
        GUIEditor.button[31] = guiCreateButton(573, 30, 122, 34, "Unban Serial", false, bans) 
        GUIEditor.button[32] = guiCreateButton(572, 70, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[33] = guiCreateButton(572, 114, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[34] = guiCreateButton(572, 157, 122, 34, "Refresh List", false, bans) 
        GUIEditor.label[37] = guiCreateLabel(589, 210, 82, 15, "Bans: 5/10", false, bans) 
  
        svManag = guiCreateTab("Server Managment", GUIEditor.tabpanel[1]) 
  
        svGridlist = guiCreateGridList(7, 78, 152, 435, false, svManag) 
        GUIEditor.edit[4] = guiCreateEdit(10, 39, 147, 32, "", false, svManag) 
        GUIEditor.button[35] = guiCreateButton(177, 85, 256, 117, "", false, svManag) 
        GUIEditor.button[37] = guiCreateButton(169, 81, 115, 37, "Add as Staff", false, svManag) 
        GUIEditor.edit[5] = guiCreateEdit(212, 128, 106, 29, "", false, svManag) 
        GUIEditor.label[38] = guiCreateLabel(172, 132, 35, 15, "Level:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[38], 240, 12, 12) 
        GUIEditor.button[38] = guiCreateButton(419, 81, 115, 37, "Promote", false, svManag) 
        GUIEditor.button[39] = guiCreateButton(294, 81, 115, 37, "Remove Staff", false, svManag) 
        GUIEditor.button[40] = guiCreateButton(544, 81, 115, 37, "Demote", false, svManag) 
        GUIEditor.button[41] = guiCreateButton(169, 167, 115, 37, "Give VIP", false, svManag) 
        GUIEditor.edit[6] = guiCreateEdit(212, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[39] = guiCreateLabel(169, 218, 35, 15, "Hours:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[39], 240, 12, 12) 
        GUIEditor.button[42] = guiCreateButton(298, 167, 115, 37, "Remove VIP", false, svManag) 
        GUIEditor.button[43] = guiCreateButton(419, 167, 115, 37, "Set Password", false, svManag) 
        GUIEditor.button[44] = guiCreateButton(544, 167, 115, 37, "Remove Password", false, svManag) 
        GUIEditor.edit[7] = guiCreateEdit(544, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[40] = guiCreateLabel(465, 224, 73, 15, "Password:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[40], 240, 12, 12) 
        GUIEditor.button[45] = guiCreateButton(169, 253, 115, 37, "Set Weather", false, svManag) 
        GUIEditor.button[46] = guiCreateButton(298, 253, 115, 37, "Set FPS Limits", false, svManag) 
        GUIEditor.button[47] = guiCreateButton(419, 253, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.button[48] = guiCreateButton(543, 256, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.label[41] = guiCreateLabel(169, 307, 160, 15, "Server Name:", false, svManag) 
        GUIEditor.label[42] = guiCreateLabel(169, 332, 104, 15, "Players:", false, svManag) 
        GUIEditor.label[43] = guiCreateLabel(170, 357, 104, 15, "Map Name:", false, svManag) 
        GUIEditor.label[44] = guiCreateLabel(170, 382, 195, 15, "Gamemode Name:", false, svManag) 
        GUIEditor.label[45] = guiCreateLabel(169, 407, 109, 15, "Password:", false, svManag) 
        GUIEditor.label[46] = guiCreateLabel(169, 432, 143, 15, "Time(GMT0):", false, svManag) 
        GUIEditor.label[47] = guiCreateLabel(169, 457, 114, 15, "FPS Limits:", false, svManag) 
  
        eventMana = guiCreateTab("Event Managment", GUIEditor.tabpanel[1]) 
  
        evenGridlist = guiCreateGridList(7, 53, 156, 460, false, eventMana) 
        GUIEditor.edit[8] = guiCreateEdit(50, 22, 110, 27, "", false, eventMana) 
        GUIEditor.edit[9] = guiCreateEdit(179, 43, 271, 34, "", false, eventMana) 
        GUIEditor.button[49] = guiCreateButton(456, 43, 106, 35, "Create Event", false, eventMana) 
        GUIEditor.button[50] = guiCreateButton(572, 43, 106, 35, "Cancel Event", false, eventMana) 
        GUIEditor.edit[10] = guiCreateEdit(179, 88, 182, 35, "", false, eventMana) 
        GUIEditor.edit[11] = guiCreateEdit(274, 87, 126, 34, "", false, eventMana) 
        GUIEditor.label[48] = guiCreateLabel(189, 97, 81, 15, "Players Limits:", false, eventMana) 
        GUIEditor.edit[12] = guiCreateEdit(274, 131, 126, 34, "", false, eventMana) 
        GUIEditor.label[49] = guiCreateLabel(189, 141, 81, 15, "Vehicle Name:", false, eventMana) 
        GUIEditor.button[51] = guiCreateButton(405, 131, 107, 33, "Create Marker", false, eventMana) 
        GUIEditor.button[52] = guiCreateButton(522, 131, 107, 33, "Destroy Marker", false, eventMana) 
        GUIEditor.button[53] = guiCreateButton(179, 187, 177, 32, "Create/Destroy Health Pickup", false, eventMana) 
        GUIEditor.button[54] = guiCreateButton(179, 223, 177, 32, "Create/Destroy Armor Pickup", false, eventMana) 
        GUIEditor.button[55] = guiCreateButton(179, 259, 177, 32, "Create/Destroy Para Pickup", false, eventMana) 
        GUIEditor.button[56] = guiCreateButton(179, 296, 177, 32, "Give Money", false, eventMana) 
        GUIEditor.button[57] = guiCreateButton(179, 334, 177, 32, "Give Drugs", false, eventMana) 
        GUIEditor.edit[13] = guiCreateEdit(366, 296, 134, 34, "", false, eventMana) 
        GUIEditor.edit[14] = guiCreateEdit(366, 334, 134, 34, "", false, eventMana) 
        GUIEditor.button[58] = guiCreateButton(366, 187, 177, 32, "Kick From Event", false, eventMana) 
        GUIEditor.button[59] = guiCreateButton(366, 223, 177, 32, "Block From Event", false, eventMana) 
        GUIEditor.button[60] = guiCreateButton(366, 259, 177, 32, "Slap", false, eventMana) 
        GUIEditor.button[61] = guiCreateButton(179, 372, 177, 32, "Give Ammo", false, eventMana) 
        GUIEditor.edit[15] = guiCreateEdit(366, 372, 134, 34, "", false, eventMana) 
  
        notes = guiCreateTab("Notes", GUIEditor.tabpanel[1]) 
  
        GUIEditor.memo[2] = guiCreateMemo(3, 6, 691, 480, "", false, notes) 
        GUIEditor.button[62] = guiCreateButton(8, 488, 678, 31, "Save ", false, notes) 
        end 
) 
  

Link to comment

هو حط الكود

بس عشانه طويل ماظهر

سوي اقتباس يبان معاكـ

والخطا زي ماتوقعت

  
myAd = guiCreateWindow(34, 5, 722, 576, "Staff Panel", true)  
        general = guiCreateTab("General", GUIEditor.tabpanel[1])--- المفروض يكون هنا اسم النافذهـ مو التاب 
  

Link to comment

^ لآ آسم التاب :

GUIEditor = { 
    button = {}, 
    edit = {}, 
    tabpanel = {}, 
    label = {}, 
    tab = {}, 
    window = {}, 
    gridlist = {}, 
    checkbox = {}, 
    memo = {}, 
} 
  
  
         myAd = guiCreateWindow(34, 5, 722, 576, "Staff Panel", true) 
        guiSetVisible(myAd,false) 
        guiWindowSetSizable(myAd, false) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 43, 157, 197, false, myAd) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 19, 704, 548, false, myAd) 
        general = guiCreateTab("General", GUIEditor.tabpanel[1]) 
        GUIEditor.tabpanel[2] = guiCreateTabPanel(133, 111, 15, 15, false, general) 
        GUIEditor.tabpanel[3] = guiCreateTabPanel(103, 131, 71, 84, false, general) 
        genGridlist = guiCreateGridList(10, 75, 136, 439, false, general) 
        GUIEditor.edit[1] = guiCreateEdit(46, 40, 100, 30, "", false, general) 
        GUIEditor.label[1] = guiCreateLabel(177, 32, 93, 16, "", false, general) 
        GUIEditor.label[2] = guiCreateLabel(175, 75, 119, 15, "General Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[2], 85, 235, 19) 
        GUIEditor.label[3] = guiCreateLabel(174, 111, 123, 15, "Account:", false, general) 
        GUIEditor.label[4] = guiCreateLabel(174, 142, 123, 15, "Version:", false, general) 
        GUIEditor.label[5] = guiCreateLabel(174, 173, 233, 15, "Serial:", false, general) 
        GUIEditor.label[6] = guiCreateLabel(304, 111, 124, 15, "IP:", false, general) 
        GUIEditor.label[7] = guiCreateLabel(304, 142, 74, 15, "Country:", false, general) 
        GUIEditor.label[8] = guiCreateLabel(175, 198, 119, 15, "IG Informations:", false, general) 
        guiLabelSetColor(GUIEditor.label[8], 85, 235, 19) 
        GUIEditor.label[9] = guiCreateLabel(174, 223, 123, 15, "Playtime:", false, general) 
        GUIEditor.label[10] = guiCreateLabel(307, 223, 94, 15, "Fighting Style:", false, general) 
        GUIEditor.label[11] = guiCreateLabel(174, 281, 123, 15, "Money:", false, general) 
        GUIEditor.label[12] = guiCreateLabel(303, 281, 123, 15, "BankMoney:", false, general) 
        GUIEditor.label[13] = guiCreateLabel(174, 313, 70, 15, "X:", false, general) 
        GUIEditor.label[14] = guiCreateLabel(174, 344, 70, 15, "Y:", false, general) 
        GUIEditor.label[15] = guiCreateLabel(174, 375, 70, 15, "Z:", false, general) 
        GUIEditor.label[16] = guiCreateLabel(303, 312, 98, 15, "Dimension:", false, general) 
        GUIEditor.label[17] = guiCreateLabel(303, 344, 98, 15, "Interior:", false, general) 
        GUIEditor.label[18] = guiCreateLabel(303, 375, 98, 15, "Ping:", false, general) 
        GUIEditor.label[19] = guiCreateLabel(174, 407, 70, 15, "Health:", false, general) 
        GUIEditor.label[20] = guiCreateLabel(303, 407, 98, 15, "Group:", false, general) 
        GUIEditor.label[21] = guiCreateLabel(174, 481, 101, 15, "Vehicle Hp:", false, general) 
        GUIEditor.label[22] = guiCreateLabel(303, 481, 134, 15, "Vehicle Type:", false, general) 
        GUIEditor.label[23] = guiCreateLabel(303, 486, 98, 15, "Group:", false, general) 
        GUIEditor.button[1] = guiCreateButton(485, 43, 90, 32, "Jail", false, general) 
        GUIEditor.button[2] = guiCreateButton(593, 43, 90, 32, "Mute", false, general) 
        GUIEditor.button[3] = guiCreateButton(593, 89, 90, 32, "Spectate", false, general) 
        GUIEditor.button[4] = guiCreateButton(485, 89, 90, 32, "Rename", false, general) 
        GUIEditor.button[5] = guiCreateButton(485, 131, 90, 32, "Slap", false, general) 
        GUIEditor.button[6] = guiCreateButton(593, 131, 90, 32, "Freeze", false, general) 
        GUIEditor.button[7] = guiCreateButton(485, 469, 90, 32, "Get Punishlog", false, general) 
        GUIEditor.button[8] = guiCreateButton(593, 173, 90, 32, "Kick", false, general) 
        GUIEditor.button[9] = guiCreateButton(485, 173, 90, 32, "Ban", false, general) 
        GUIEditor.button[10] = guiCreateButton(593, 215, 90, 32, "Warp to:", false, general) 
        GUIEditor.button[11] = guiCreateButton(485, 216, 90, 32, "Warp", false, general) 
        GUIEditor.button[12] = guiCreateButton(593, 258, 90, 32, "Interior", false, general) 
        GUIEditor.button[13] = guiCreateButton(485, 259, 90, 32, "Dimension", false, general) 
        GUIEditor.button[14] = guiCreateButton(593, 301, 90, 32, "Set Armor", false, general) 
        GUIEditor.button[15] = guiCreateButton(485, 302, 90, 32, "Set Hp", false, general) 
        GUIEditor.button[16] = guiCreateButton(593, 344, 90, 32, "Destroy", false, general) 
        GUIEditor.button[17] = guiCreateButton(485, 344, 90, 32, "Fix Vehicle", false, general) 
        GUIEditor.button[18] = guiCreateButton(593, 386, 90, 32, "Give Drugs", false, general) 
        GUIEditor.label[24] = guiCreateLabel(174, 444, 104, 15, "Weapon:", false, general) 
        GUIEditor.label[25] = guiCreateLabel(303, 444, 98, 15, "Ammu:", false, general) 
        GUIEditor.button[19] = guiCreateButton(485, 385, 90, 32, "Give Weapon", false, general) 
        GUIEditor.button[20] = guiCreateButton(593, 427, 90, 32, "Give Vehicle", false, general) 
        GUIEditor.label[26] = guiCreateLabel(174, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[27] = guiCreateLabel(307, 252, 70, 15, "Skin:", false, general) 
        GUIEditor.label[28] = guiCreateLabel(303, 254, 123, 15, "Occupation:", false, general) 
        GUIEditor.label[29] = guiCreateLabel(171, 503, 184, 15, "Vehicle Type:", false, general) 
        guiLabelSetColor(GUIEditor.label[29], 244, 7, 41) 
        GUIEditor.button[21] = guiCreateButton(485, 427, 90, 32, "Set Team", false, general) 
        GUIEditor.button[22] = guiCreateButton(595, 469, 90, 32, "Give Vehicle", false, general) 
  
        resources = guiCreateTab("Resources", GUIEditor.tabpanel[1]) 
  
        resGridlist = guiCreateGridList(10, 101, 172, 413, false, resources) 
        guiGridListAddColumn(resGridlist, "Resource", 0.4) 
        guiGridListAddColumn(resGridlist, "State", 0.4) 
        GUIEditor.edit[2] = guiCreateEdit(59, 66, 123, 29, "", false, resources) 
        GUIEditor.button[23] = guiCreateButton(210, 104, 119, 33, "Start", false, resources) 
        GUIEditor.button[24] = guiCreateButton(210, 151, 119, 33, "Restart", false, resources) 
        GUIEditor.button[25] = guiCreateButton(210, 194, 119, 33, "Stop", false, resources) 
        GUIEditor.button[26] = guiCreateButton(210, 237, 119, 33, "Remove", false, resources) 
        GUIEditor.button[27] = guiCreateButton(210, 280, 119, 33, "Settings", false, resources) 
        GUIEditor.button[28] = guiCreateButton(210, 323, 119, 33, "Refresh List", false, resources) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(210, 370, 108, 18, "Include Maps", false, false, resources) 
        GUIEditor.label[30] = guiCreateLabel(380, 104, 76, 18, "Informations:", false, resources) 
        guiLabelSetColor(GUIEditor.label[30], 7, 35, 246) 
        GUIEditor.label[31] = guiCreateLabel(352, 151, 117, 18, "Author:", false, resources) 
        guiLabelSetColor(GUIEditor.label[31], 7, 35, 246) 
        GUIEditor.label[32] = guiCreateLabel(352, 194, 116, 18, "Name:", false, resources) 
        guiLabelSetColor(GUIEditor.label[32], 7, 35, 246) 
        GUIEditor.label[33] = guiCreateLabel(352, 237, 117, 18, "Version:", false, resources) 
        guiLabelSetColor(GUIEditor.label[33], 7, 35, 246) 
        GUIEditor.label[34] = guiCreateLabel(352, 280, 117, 18, "Type:", false, resources) 
        guiLabelSetColor(GUIEditor.label[34], 7, 35, 246) 
        GUIEditor.label[35] = guiCreateLabel(352, 323, 117, 18, "Logs:", false, resources) 
        guiLabelSetColor(GUIEditor.label[35], 7, 35, 246) 
        GUIEditor.memo[1] = guiCreateMemo(339, 346, 159, 155, "\n#1 Started\n#2 Stoped\n....\n", false, resources) 
        GUIEditor.edit[3] = guiCreateEdit(474, 147, 194, 27, "", false, resources) 
        GUIEditor.label[36] = guiCreateLabel(479, 122, 109, 18, "Execute Command:", false, resources) 
        guiLabelSetColor(GUIEditor.label[36], 240, 12, 12) 
        GUIEditor.button[29] = guiCreateButton(549, 184, 119, 33, "Client", false, resources) 
        GUIEditor.button[30] = guiCreateButton(549, 227, 119, 33, "Server", false, resources) 
  
        bans = guiCreateTab("Bans", GUIEditor.tabpanel[1]) 
  
        GUIEditor.gridlist[4] = guiCreateGridList(5, 11, 582, 450, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "IP", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Date", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[4], "Durition", 0.3) 
        GUIEditor.gridlist[5] = guiCreateGridList(5, 8, 560, 506, false, bans) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "IP", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Serial", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Time", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "By", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[5], "Reason", 0.2) 
        GUIEditor.button[31] = guiCreateButton(573, 30, 122, 34, "Unban Serial", false, bans) 
        GUIEditor.button[32] = guiCreateButton(572, 70, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[33] = guiCreateButton(572, 114, 122, 34, "Unban IP", false, bans) 
        GUIEditor.button[34] = guiCreateButton(572, 157, 122, 34, "Refresh List", false, bans) 
        GUIEditor.label[37] = guiCreateLabel(589, 210, 82, 15, "Bans: 5/10", false, bans) 
  
        svManag = guiCreateTab("Server Managment", GUIEditor.tabpanel[1]) 
  
        svGridlist = guiCreateGridList(7, 78, 152, 435, false, svManag) 
        GUIEditor.edit[4] = guiCreateEdit(10, 39, 147, 32, "", false, svManag) 
        GUIEditor.button[35] = guiCreateButton(177, 85, 256, 117, "", false, svManag) 
        GUIEditor.button[37] = guiCreateButton(169, 81, 115, 37, "Add as Staff", false, svManag) 
        GUIEditor.edit[5] = guiCreateEdit(212, 128, 106, 29, "", false, svManag) 
        GUIEditor.label[38] = guiCreateLabel(172, 132, 35, 15, "Level:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[38], 240, 12, 12) 
        GUIEditor.button[38] = guiCreateButton(419, 81, 115, 37, "Promote", false, svManag) 
        GUIEditor.button[39] = guiCreateButton(294, 81, 115, 37, "Remove Staff", false, svManag) 
        GUIEditor.button[40] = guiCreateButton(544, 81, 115, 37, "Demote", false, svManag) 
        GUIEditor.button[41] = guiCreateButton(169, 167, 115, 37, "Give VIP", false, svManag) 
        GUIEditor.edit[6] = guiCreateEdit(212, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[39] = guiCreateLabel(169, 218, 35, 15, "Hours:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[39], 240, 12, 12) 
        GUIEditor.button[42] = guiCreateButton(298, 167, 115, 37, "Remove VIP", false, svManag) 
        GUIEditor.button[43] = guiCreateButton(419, 167, 115, 37, "Set Password", false, svManag) 
        GUIEditor.button[44] = guiCreateButton(544, 167, 115, 37, "Remove Password", false, svManag) 
        GUIEditor.edit[7] = guiCreateEdit(544, 214, 106, 29, "", false, svManag) 
        GUIEditor.label[40] = guiCreateLabel(465, 224, 73, 15, "Password:", false, svManag) 
        guiLabelSetColor(GUIEditor.label[40], 240, 12, 12) 
        GUIEditor.button[45] = guiCreateButton(169, 253, 115, 37, "Set Weather", false, svManag) 
        GUIEditor.button[46] = guiCreateButton(298, 253, 115, 37, "Set FPS Limits", false, svManag) 
        GUIEditor.button[47] = guiCreateButton(419, 253, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.button[48] = guiCreateButton(543, 256, 115, 37, "Set Server Name", false, svManag) 
        GUIEditor.label[41] = guiCreateLabel(169, 307, 160, 15, "Server Name:", false, svManag) 
        GUIEditor.label[42] = guiCreateLabel(169, 332, 104, 15, "Players:", false, svManag) 
        GUIEditor.label[43] = guiCreateLabel(170, 357, 104, 15, "Map Name:", false, svManag) 
        GUIEditor.label[44] = guiCreateLabel(170, 382, 195, 15, "Gamemode Name:", false, svManag) 
        GUIEditor.label[45] = guiCreateLabel(169, 407, 109, 15, "Password:", false, svManag) 
        GUIEditor.label[46] = guiCreateLabel(169, 432, 143, 15, "Time(GMT0):", false, svManag) 
        GUIEditor.label[47] = guiCreateLabel(169, 457, 114, 15, "FPS Limits:", false, svManag) 
        
          bindKey ( "o" , "down" , function() 
            if ( guiGetVisible ( myAd ) == true ) then 
      guiSetVisible ( myAd ,false ) 
   showCursor (false ) 
  elseif ( guiGetVisible ( myAd ) == false ) then 
   guiSetVisible ( myAd ,true ) 
  showCursor (false ) 
    end 
  end) 
  
  

Link to comment
function openwinxd() 
    if guiGetVisible ( myAd ) then  
       guiSetVisible ( myAd, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( myAd, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
bindKey("F1", "down", openwinxd) 

:D >> فضآآوه

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