Jump to content

مشكلة في نافذة ما تفتح


Recommended Posts

addEvent("showEMW", true) 
addEventHandler( "showEMW", localPlayer, 
function(vipAmount, config, isEventStarted, total) 
    if (not EMwindow) then 
        EMwindow = guiCreateWindow((resX/2) - 370, (resY/2) - 135, 771, 271, "Events Manager Panel", false) 
        guiWindowSetSizable(EMwindow, false) 
        guiSetAlpha(EMwindow, 1.00) 
  
        EMlabels[1] = guiCreateLabel(206, 47, 61, 16, "Warp limit:", false, EMwindow) 
        EMlabels[2] = guiCreateLabel(206, 23, 71, 15, "VIP IG: 1", false, EMwindow) 
        EMlabels[3] = guiCreateLabel(284, 23, 118, 15, "Warps used: 0/0", false, EMwindow) 
        guiLabelSetColor(EMlabels[2], 0, 255, 0) 
        guiLabelSetColor(EMlabels[3], 0, 255, 0) 
  
        EMedits[1] = guiCreateEdit(271, 44, 76, 20, "30", false, EMwindow) 
        EMedits[2] = guiCreateEdit(207, 145, 198, 18, "", false, EMwindow) 
        EMedits[3] = guiCreateEdit(434, 28, 157, 23, "", false, EMwindow) 
        EMedits[4] = guiCreateEdit(597, 212, 81, 18, "input 1", false, EMwindow) 
        EMedits[5] = guiCreateEdit(680, 212, 81, 18, "input 2", false, EMwindow) 
        EMedits[6] = guiCreateEdit(9, 212, 95, 18, "input 1", false, EMwindow) 
        EMedits[7] = guiCreateEdit(106, 212, 95, 18, "input 2", false, EMwindow) 
  
        EMcheckboxes[1] = guiCreateCheckBox(208, 68, 159, 15, "VIP-Only", false, false, EMwindow) 
        EMcheckboxes[2] = guiCreateCheckBox(208, 87, 159, 15, "Freeze upon warping", false, false, EMwindow) 
        EMcheckboxes[3] = guiCreateCheckBox(208, 106, 159, 15, "Allow multiple warps", false, false, EMwindow) 
        EMcheckboxes[4] = guiCreateCheckBox(208, 125, 193, 15, "Allow/Disallow specific team/job", false, false, EMwindow) 
  
        EMgrid = guiCreateGridList(9, 24, 193, 207, false, EMwindow) 
        playerSearchGrid = guiCreateGridList(434, 54, 157, 207, false, EMwindow)  
        playerActionsGrid = guiCreateGridList(597, 29, 165, 181, false, EMwindow) 
        guiGridListSetSelectionMode(playerSearchGrid, 1) 
        guiGridListAddColumn(playerActionsGrid, "Player Controls", 2) 
        guiGridListAddColumn(playerSearchGrid, "Players in event dimension", 0.9) 
        guiGridListAddColumn(EMgrid, "Event Controls", 1) 
        guiGridListSetSortingEnabled(playerSearchGrid, false) 
        guiGridListSetSortingEnabled(playerActionsGrid, false) 
  
        EMbuttons[1] = guiCreateButton(204, 173, 102, 42, "Start Event", false, EMwindow) 
        EMbuttons[2] = guiCreateButton(308, 173, 102, 42, "Stop Event", false, EMwindow) 
        EMbuttons[3] = guiCreateButton(308, 222, 101, 40, "Close Window", false, EMwindow) 
        EMbuttons[4] = guiCreateButton(204, 222, 102, 40, "Dimension Warp", false, EMwindow) 
        EMbuttons[5] = guiCreateButton(9, 234, 193, 28, "No action selected", false, EMwindow) 
        EMbuttons[6] = guiCreateButton(412, 26, 18, 236, ">>", false, EMwindow) 
        EMbuttons[7] = guiCreateButton(596, 212, 166, 49, "No action selected", false, EMwindow) 
        guiSetEnabled(EMbuttons[5], false) 
        guiSetEnabled(EMbuttons[7], false) 
        guiSetEnabled(EMedits[2], false) 
         
        addEventHandler ("onClientGUIClick", EMbuttons[1], startEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[2], stopEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[3], hideEMwindow, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[4], function() triggerServerEvent("eventDim", localPlayer) end, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[5], onActionClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[6], resizeWindow, false) 
        addEventHandler ("onClientGUIClick", EMedits[4], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[5], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[6], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[7], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMcheckboxes[4], onTeamCheckBoxClick, false) 
        addEventHandler ("onClientGUIClick", EMgrid, onGridClick, false) 
        addEventHandler ("onClientGUIClick", playerSearchGrid, onPlayersGridListClick, false) 
        addEventHandler ("onClientGUIClick", playerActionsGrid, onPlayerControlsGridListClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[7], onPlayerAction, false) 
        addEventHandler ("onClientGUIDoubleClick", EMgrid, onActionClick, false) 
        addEventHandler ("onClientGUIChanged", EMedits[1], onClientGUIChanged, false) 
        addEventHandler ("onClientGUIChanged", EMedits[4], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[3], onPlayerSearch, false) 
        addEventHandler ("onClientGUIChanged", EMedits[5], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[6], onEditChange2, false) 
        addEventHandler ("onClientGUIChanged", EMedits[7], onEditChange2, false) 
        guiSetSize(EMwindow, 439, 271, false) 
        guiSetPosition(EMwindow, (resX/2) - 220, (resY/2) - 135, false) 
        guiSetVisible(EMedits[4], false) 
        guiSetVisible(EMedits[5], false) 
        guiSetVisible(EMedits[6], false) 
        guiSetVisible(EMedits[7], false) 
        processPlayerControls() 
    else 
        guiSetVisible(EMwindow, true) 
    end 
    processList(config) 
    guiSetText(EMlabels[2], "VIP IG: "..vipAmount) 
    guiSetText(EMlabels[3], "Warps used: "..total[1].."/"..total[2]) 
    showCursor(true) 
    if (isEventStarted) then 
        guiSetEnabled(EMbuttons[2], true) 
        guiSetText(EMbuttons[1], "Add "..guiGetText(EMedits[1]).." more warps") 
    else 
        guiSetEnabled(EMbuttons[2], false) 
        guiSetText(EMbuttons[1], "Start Event") 
    end 
end) 
  
function bind() 
  guiSetVisible(EMwindow, not guiGetVisible(EMwindow)) 
  showCursor(guiGetVisible(EMwindow)) 
end 
bindKey("n", "down", bind) 

اضغط N يقولي في الدي بوق

bad argument guiSetVisible got nil

Link to comment
addEvent("showEMW", true) 
addEventHandler( "showEMW", localPlayer, 
function(vipAmount, config, isEventStarted, total) 
    if (not EMwindow) then 
        EMwindow = guiCreateWindow((resX/2) - 370, (resY/2) - 135, 771, 271, "Events Manager Panel", false) 
        guiWindowSetSizable(EMwindow, false) 
        guiSetAlpha(EMwindow, 1.00) 
  
        EMlabels[1] = guiCreateLabel(206, 47, 61, 16, "Warp limit:", false, EMwindow) 
        EMlabels[2] = guiCreateLabel(206, 23, 71, 15, "VIP IG: 1", false, EMwindow) 
        EMlabels[3] = guiCreateLabel(284, 23, 118, 15, "Warps used: 0/0", false, EMwindow) 
        guiLabelSetColor(EMlabels[2], 0, 255, 0) 
        guiLabelSetColor(EMlabels[3], 0, 255, 0) 
  
        EMedits[1] = guiCreateEdit(271, 44, 76, 20, "30", false, EMwindow) 
        EMedits[2] = guiCreateEdit(207, 145, 198, 18, "", false, EMwindow) 
        EMedits[3] = guiCreateEdit(434, 28, 157, 23, "", false, EMwindow) 
        EMedits[4] = guiCreateEdit(597, 212, 81, 18, "input 1", false, EMwindow) 
        EMedits[5] = guiCreateEdit(680, 212, 81, 18, "input 2", false, EMwindow) 
        EMedits[6] = guiCreateEdit(9, 212, 95, 18, "input 1", false, EMwindow) 
        EMedits[7] = guiCreateEdit(106, 212, 95, 18, "input 2", false, EMwindow) 
  
        EMcheckboxes[1] = guiCreateCheckBox(208, 68, 159, 15, "VIP-Only", false, false, EMwindow) 
        EMcheckboxes[2] = guiCreateCheckBox(208, 87, 159, 15, "Freeze upon warping", false, false, EMwindow) 
        EMcheckboxes[3] = guiCreateCheckBox(208, 106, 159, 15, "Allow multiple warps", false, false, EMwindow) 
        EMcheckboxes[4] = guiCreateCheckBox(208, 125, 193, 15, "Allow/Disallow specific team/job", false, false, EMwindow) 
  
        EMgrid = guiCreateGridList(9, 24, 193, 207, false, EMwindow) 
        playerSearchGrid = guiCreateGridList(434, 54, 157, 207, false, EMwindow) 
        playerActionsGrid = guiCreateGridList(597, 29, 165, 181, false, EMwindow) 
        guiGridListSetSelectionMode(playerSearchGrid, 1) 
        guiGridListAddColumn(playerActionsGrid, "Player Controls", 2) 
        guiGridListAddColumn(playerSearchGrid, "Players in event dimension", 0.9) 
        guiGridListAddColumn(EMgrid, "Event Controls", 1) 
        guiGridListSetSortingEnabled(playerSearchGrid, false) 
        guiGridListSetSortingEnabled(playerActionsGrid, false) 
  
        EMbuttons[1] = guiCreateButton(204, 173, 102, 42, "Start Event", false, EMwindow) 
        EMbuttons[2] = guiCreateButton(308, 173, 102, 42, "Stop Event", false, EMwindow) 
        EMbuttons[3] = guiCreateButton(308, 222, 101, 40, "Close Window", false, EMwindow) 
        EMbuttons[4] = guiCreateButton(204, 222, 102, 40, "Dimension Warp", false, EMwindow) 
        EMbuttons[5] = guiCreateButton(9, 234, 193, 28, "No action selected", false, EMwindow) 
        EMbuttons[6] = guiCreateButton(412, 26, 18, 236, ">>", false, EMwindow) 
        EMbuttons[7] = guiCreateButton(596, 212, 166, 49, "No action selected", false, EMwindow) 
        guiSetEnabled(EMbuttons[5], false) 
        guiSetEnabled(EMbuttons[7], false) 
        guiSetEnabled(EMedits[2], false) 
        
        addEventHandler ("onClientGUIClick", EMbuttons[1], startEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[2], stopEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[3], hideEMwindow, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[4], function() triggerServerEvent("eventDim", localPlayer) end, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[5], onActionClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[6], resizeWindow, false) 
        addEventHandler ("onClientGUIClick", EMedits[4], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[5], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[6], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[7], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMcheckboxes[4], onTeamCheckBoxClick, false) 
        addEventHandler ("onClientGUIClick", EMgrid, onGridClick, false) 
        addEventHandler ("onClientGUIClick", playerSearchGrid, onPlayersGridListClick, false) 
        addEventHandler ("onClientGUIClick", playerActionsGrid, onPlayerControlsGridListClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[7], onPlayerAction, false) 
        addEventHandler ("onClientGUIDoubleClick", EMgrid, onActionClick, false) 
        addEventHandler ("onClientGUIChanged", EMedits[1], onClientGUIChanged, false) 
        addEventHandler ("onClientGUIChanged", EMedits[4], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[3], onPlayerSearch, false) 
        addEventHandler ("onClientGUIChanged", EMedits[5], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[6], onEditChange2, false) 
        addEventHandler ("onClientGUIChanged", EMedits[7], onEditChange2, false) 
        guiSetSize(EMwindow, 439, 271, false) 
        guiSetPosition(EMwindow, (resX/2) - 220, (resY/2) - 135, false) 
        guiSetVisible(EMedits[4], false) 
        guiSetVisible(EMedits[5], false) 
        guiSetVisible(EMedits[6], false) 
        guiSetVisible(EMedits[7], false) 
        processPlayerControls() 
    else 
        guiSetVisible(EMwindow, true) 
    end 
    processList(config) 
    guiSetText(EMlabels[2], "VIP IG: "..vipAmount) 
    guiSetText(EMlabels[3], "Warps used: "..total[1].."/"..total[2]) 
    showCursor(true) 
    if (isEventStarted) then 
        guiSetEnabled(EMbuttons[2], true) 
        guiSetText(EMbuttons[1], "Add "..guiGetText(EMedits[1]).." more warps") 
    else 
        guiSetEnabled(EMbuttons[2], false) 
        guiSetText(EMbuttons[1], "Start Event") 
    end 
end) 
  
function bind() 
        if guiGetVisible ( EMwindow ) then   
           guiSetVisible ( EMwindow, false )     
           guiSetVisible ( EMwindow, false ) 
           showCursor(false) 
        else 
            guiSetVisible ( EMwindow, true ) 
            showCursor(true)   
        end   
    end   
bindKey("n", "down", bind) 

Link to comment
addEvent("showEMW", true) 
addEventHandler( "showEMW", localPlayer, 
function(vipAmount, config, isEventStarted, total) 
    if (not EMwindow) then 
        EMwindow = guiCreateWindow((resX/2) - 370, (resY/2) - 135, 771, 271, "Events Manager Panel", false) 
        guiWindowSetSizable(EMwindow, false) 
        guiSetAlpha(EMwindow, 1.00) 
  
        EMlabels[1] = guiCreateLabel(206, 47, 61, 16, "Warp limit:", false, EMwindow) 
        EMlabels[2] = guiCreateLabel(206, 23, 71, 15, "VIP IG: 1", false, EMwindow) 
        EMlabels[3] = guiCreateLabel(284, 23, 118, 15, "Warps used: 0/0", false, EMwindow) 
        guiLabelSetColor(EMlabels[2], 0, 255, 0) 
        guiLabelSetColor(EMlabels[3], 0, 255, 0) 
  
        EMedits[1] = guiCreateEdit(271, 44, 76, 20, "30", false, EMwindow) 
        EMedits[2] = guiCreateEdit(207, 145, 198, 18, "", false, EMwindow) 
        EMedits[3] = guiCreateEdit(434, 28, 157, 23, "", false, EMwindow) 
        EMedits[4] = guiCreateEdit(597, 212, 81, 18, "input 1", false, EMwindow) 
        EMedits[5] = guiCreateEdit(680, 212, 81, 18, "input 2", false, EMwindow) 
        EMedits[6] = guiCreateEdit(9, 212, 95, 18, "input 1", false, EMwindow) 
        EMedits[7] = guiCreateEdit(106, 212, 95, 18, "input 2", false, EMwindow) 
  
        EMcheckboxes[1] = guiCreateCheckBox(208, 68, 159, 15, "VIP-Only", false, false, EMwindow) 
        EMcheckboxes[2] = guiCreateCheckBox(208, 87, 159, 15, "Freeze upon warping", false, false, EMwindow) 
        EMcheckboxes[3] = guiCreateCheckBox(208, 106, 159, 15, "Allow multiple warps", false, false, EMwindow) 
        EMcheckboxes[4] = guiCreateCheckBox(208, 125, 193, 15, "Allow/Disallow specific team/job", false, false, EMwindow) 
  
        EMgrid = guiCreateGridList(9, 24, 193, 207, false, EMwindow) 
        playerSearchGrid = guiCreateGridList(434, 54, 157, 207, false, EMwindow) 
        playerActionsGrid = guiCreateGridList(597, 29, 165, 181, false, EMwindow) 
        guiGridListSetSelectionMode(playerSearchGrid, 1) 
        guiGridListAddColumn(playerActionsGrid, "Player Controls", 2) 
        guiGridListAddColumn(playerSearchGrid, "Players in event dimension", 0.9) 
        guiGridListAddColumn(EMgrid, "Event Controls", 1) 
        guiGridListSetSortingEnabled(playerSearchGrid, false) 
        guiGridListSetSortingEnabled(playerActionsGrid, false) 
  
        EMbuttons[1] = guiCreateButton(204, 173, 102, 42, "Start Event", false, EMwindow) 
        EMbuttons[2] = guiCreateButton(308, 173, 102, 42, "Stop Event", false, EMwindow) 
        EMbuttons[3] = guiCreateButton(308, 222, 101, 40, "Close Window", false, EMwindow) 
        EMbuttons[4] = guiCreateButton(204, 222, 102, 40, "Dimension Warp", false, EMwindow) 
        EMbuttons[5] = guiCreateButton(9, 234, 193, 28, "No action selected", false, EMwindow) 
        EMbuttons[6] = guiCreateButton(412, 26, 18, 236, ">>", false, EMwindow) 
        EMbuttons[7] = guiCreateButton(596, 212, 166, 49, "No action selected", false, EMwindow) 
        guiSetEnabled(EMbuttons[5], false) 
        guiSetEnabled(EMbuttons[7], false) 
        guiSetEnabled(EMedits[2], false) 
        
        addEventHandler ("onClientGUIClick", EMbuttons[1], startEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[2], stopEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[3], hideEMwindow, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[4], function() triggerServerEvent("eventDim", localPlayer) end, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[5], onActionClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[6], resizeWindow, false) 
        addEventHandler ("onClientGUIClick", EMedits[4], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[5], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[6], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[7], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMcheckboxes[4], onTeamCheckBoxClick, false) 
        addEventHandler ("onClientGUIClick", EMgrid, onGridClick, false) 
        addEventHandler ("onClientGUIClick", playerSearchGrid, onPlayersGridListClick, false) 
        addEventHandler ("onClientGUIClick", playerActionsGrid, onPlayerControlsGridListClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[7], onPlayerAction, false) 
        addEventHandler ("onClientGUIDoubleClick", EMgrid, onActionClick, false) 
        addEventHandler ("onClientGUIChanged", EMedits[1], onClientGUIChanged, false) 
        addEventHandler ("onClientGUIChanged", EMedits[4], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[3], onPlayerSearch, false) 
        addEventHandler ("onClientGUIChanged", EMedits[5], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[6], onEditChange2, false) 
        addEventHandler ("onClientGUIChanged", EMedits[7], onEditChange2, false) 
        guiSetSize(EMwindow, 439, 271, false) 
        guiSetPosition(EMwindow, (resX/2) - 220, (resY/2) - 135, false) 
        guiSetVisible(EMedits[4], false) 
        guiSetVisible(EMedits[5], false) 
        guiSetVisible(EMedits[6], false) 
        guiSetVisible(EMedits[7], false) 
        processPlayerControls() 
    else 
        guiSetVisible(EMwindow, true) 
    end 
    processList(config) 
    guiSetText(EMlabels[2], "VIP IG: "..vipAmount) 
    guiSetText(EMlabels[3], "Warps used: "..total[1].."/"..total[2]) 
    showCursor(true) 
    if (isEventStarted) then 
        guiSetEnabled(EMbuttons[2], true) 
        guiSetText(EMbuttons[1], "Add "..guiGetText(EMedits[1]).." more warps") 
    else 
        guiSetEnabled(EMbuttons[2], false) 
        guiSetText(EMbuttons[1], "Start Event") 
    end 
end) 
  
function bind() 
        if guiGetVisible ( EMwindow ) then   
           guiSetVisible ( EMwindow, false )     
           guiSetVisible ( EMwindow, false ) 
           showCursor(false) 
        else 
            guiSetVisible ( EMwindow, true ) 
            showCursor(true)   
        end   
    end   
bindKey("n", "down", bind) 

الكود حقك نفس الي يسويه الكود حقه

السكربت مابيشتغل صح مو لانه الكود حقك خطأ

بس لانه اساس الخطأ انه النافذه مو موجوده

Link to comment
  
addEvent("EMcheck", true) 
addEventHandler("EMcheck", root, 
function() 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    local adminlevel = isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) 
    if (isElement(client) and getElementType(client) == "player") then 
        if (adminlevel) then 
            triggerClientEvent(client, "showEMW", client, getVIPamount(), booleanList, warp_event, {warp_warps, warp_warpLimit}) 
        else 
            exports["topbarchat"]:sendClientMessage("[ERROR] You are not an EM.", client, 255, 0, 0) 
        end 
    end 
end) 

Link to comment
  
addEventHandler("onClientResourceStart", resourceRoot, 
function(vipAmount, config, isEventStarted, total) 
  
        EMwindow = guiCreateWindow( 370, 135, 771, 271, "Events MANAGER Panel", false) 
        guiWindowSetSizable(EMwindow, false) 
        guiSetAlpha(EMwindow, 1.00) 
        guiSetVisible(EMwindow, false) 
        EMlabels[1] = guiCreateLabel(206, 47, 61, 16, "Warp limit:", false, EMwindow) 
        EMlabels[2] = guiCreateLabel(206, 23, 71, 15, "VIP IG: 1", false, EMwindow) 
        EMlabels[3] = guiCreateLabel(284, 23, 118, 15, "Warps used: 0/0", false, EMwindow) 
        guiLabelSetColor(EMlabels[2], 0, 255, 0) 
        guiLabelSetColor(EMlabels[3], 0, 255, 0) 
  
        EMedits[1] = guiCreateEdit(271, 44, 76, 20, "30", false, EMwindow) 
        EMedits[2] = guiCreateEdit(207, 145, 198, 18, "", false, EMwindow) 
        EMedits[3] = guiCreateEdit(434, 28, 157, 23, "", false, EMwindow) 
        EMedits[4] = guiCreateEdit(597, 212, 81, 18, "input 1", false, EMwindow) 
        EMedits[5] = guiCreateEdit(680, 212, 81, 18, "input 2", false, EMwindow) 
        EMedits[6] = guiCreateEdit(9, 212, 95, 18, "input 1", false, EMwindow) 
        EMedits[7] = guiCreateEdit(106, 212, 95, 18, "input 2", false, EMwindow) 
        
        guiSetText(EMbuttons[1], "Start Event") 
        guiSetText(EMlabels[2], "VIP IG: "..vipAmount) 
        guiSetText(EMlabels[3], "Warps used: "..total[1].."/"..total[2]) 
        guiSetText(EMbuttons[1], "Add "..guiGetText(EMedits[1]).." more warps") 
      
        EMcheckboxes[1] = guiCreateCheckBox(208, 68, 159, 15, "VIP-Only", false, false, EMwindow) 
        EMcheckboxes[2] = guiCreateCheckBox(208, 87, 159, 15, "Freeze upon warping", false, false, EMwindow) 
        EMcheckboxes[3] = guiCreateCheckBox(208, 106, 159, 15, "Allow multiple warps", false, false, EMwindow) 
        EMcheckboxes[4] = guiCreateCheckBox(208, 125, 193, 15, "Allow/Disallow specific team JOB", false, false, EMwindow) 
  
        EMgrid = guiCreateGridList(9, 24, 193, 207, false, EMwindow) 
        playerSearchGrid = guiCreateGridList(434, 54, 157, 207, false, EMwindow) 
        playerActionsGrid = guiCreateGridList(597, 29, 165, 181, false, EMwindow) 
        guiGridListSetSelectionMode(playerSearchGrid, 1) 
        guiGridListAddColumn(playerActionsGrid, "Player Controls", 2) 
        guiGridListAddColumn(playerSearchGrid, "Players in event dimension", 0.9) 
        guiGridListAddColumn(EMgrid, "Event Controls", 1) 
        guiGridListSetSortingEnabled(playerSearchGrid, false) 
        guiGridListSetSortingEnabled(playerActionsGrid, false) 
  
        EMbuttons[1] = guiCreateButton(204, 173, 102, 42, "Start Event", false, EMwindow) 
        EMbuttons[2] = guiCreateButton(308, 173, 102, 42, "Stop Event", false, EMwindow) 
        EMbuttons[3] = guiCreateButton(308, 222, 101, 40, "Close Window", false, EMwindow) 
        EMbuttons[4] = guiCreateButton(204, 222, 102, 40, "Dimension Warp", false, EMwindow) 
        EMbuttons[5] = guiCreateButton(9, 234, 193, 28, "No action selected", false, EMwindow) 
        EMbuttons[6] = guiCreateButton(412, 26, 18, 236, ">>", false, EMwindow) 
        EMbuttons[7] = guiCreateButton(596, 212, 166, 49, "No action selected", false, EMwindow) 
        guiSetEnabled(EMbuttons[5], false) 
        guiSetEnabled(EMbuttons[7], false) 
        guiSetEnabled(EMedits[2], false) 
        
        addEventHandler ("onClientGUIClick", EMbuttons[1], startEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[2], stopEvent, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[3], hideEMwindow, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[5], onActionClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[6], resizeWindow, false) 
        addEventHandler ("onClientGUIClick", EMedits[4], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[5], onPlayerControlsEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[6], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMedits[7], onEMGridEditClick, false) 
        addEventHandler ("onClientGUIClick", EMcheckboxes[4], onTeamCheckBoxClick, false) 
        addEventHandler ("onClientGUIClick", EMgrid, onGridClick, false) 
        addEventHandler ("onClientGUIClick", playerSearchGrid, onPlayersGridListClick, false) 
        addEventHandler ("onClientGUIClick", playerActionsGrid, onPlayerControlsGridListClick, false) 
        addEventHandler ("onClientGUIClick", EMbuttons[7], onPlayerAction, false) 
        addEventHandler ("onClientGUIDoubleClick", EMgrid, onActionClick, false) 
        addEventHandler ("onClientGUIChanged", EMedits[1], onClientGUIChanged, false) 
        addEventHandler ("onClientGUIChanged", EMedits[4], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[3], onPlayerSearch, false) 
        addEventHandler ("onClientGUIChanged", EMedits[5], onEditChange, false) 
        addEventHandler ("onClientGUIChanged", EMedits[6], onEditChange2, false) 
        addEventHandler ("onClientGUIChanged", EMedits[7], onEditChange2, false) 
      end 
 ) 
  
function bind() 
        if guiGetVisible ( EMwindow ) then   
           guiSetVisible ( EMwindow, false )     
           guiSetVisible ( EMwindow, false ) 
           showCursor(false) 
        else 
            guiSetVisible ( EMwindow, true ) 
            showCursor(true)   
        end   
    end   
bindKey("n", "down", bind) 

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