Tete omar Posted May 19, 2012 Share Posted May 19, 2012 (edited) Hey guys !!! how are you function funcInput ( player, key, keyState ) local state = "let go of" if ( keyState == "down" ) then state = "pressed" GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[1]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[2]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[3]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[4]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[5]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[6]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[7]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[8]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[9]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[10]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[11]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[12]) guiEditSetReadOnly(GUIEditor_Edit[2],true) guiSetVisible(GUIEditor_TabPanel[1], false) function bindTheKeys ( player, commandName ) bindKey ( player, "F1", "down", funcInput ) bindKey ( player, "F1", "up", funcInput ) end ) end I want when the player type in "guiCreateEdit" the chat show up on another "guiCreateEdit" Example GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) <~~~ the player type here GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[1]) <~~~ the chat show up here guiEditSetReadOnly(GUIEditor_Edit[2],true) <~~~ Readonly Thanks for reading. and i hope you understood me. Edited May 19, 2012 by Guest Link to comment
Kenix Posted May 19, 2012 Share Posted May 19, 2012 Explain better. I not understand. Also your code wrong. bindKey ( player, "F1", "down", funcInput ) bindKey ( player, "F1", "up", funcInput ) Read wiki. Link to comment
Tete omar Posted May 19, 2012 Author Share Posted May 19, 2012 Explain better. I not understand.Also your code wrong. bindKey ( player, "F1", "down", funcInput ) bindKey ( player, "F1", "up", funcInput ) Read wiki. This is created window by guieditor and i want the player speak his language in a one of tabs in the script just like if the player german he suppose talk here GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) but the most important thing, is about how to make this window as chat window and when the player press F2 this window suppose show up so i want make all of script as a chat window " your server is cool by the way i like your server" Link to comment
Noneatme Posted May 20, 2012 Share Posted May 20, 2012 local Guivar = 0 local GUIEditor_TabPanel = {} local GUIEditor_Tab = {} local GUIEditor_Edit = {} local function createThisGui ( ) if(Guivar == 1) then return end Guivar = 1 showCursor(true) GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[1]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[2]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[3]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[4]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[5]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[6]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[7]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[8]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[9]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[10]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[11]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[12]) guiEditSetReadOnly(GUIEditor_Edit[2],true) guiSetVisible(GUIEditor_TabPanel[1], false) end bindKey("F2", "down", function() if(Guivar == 0) then createThisGui() else Guivar = 0 destroyElement(GUIEditor_Window[1]) showCursor(false) end end) Like this? Link to comment
Wei Posted May 20, 2012 Share Posted May 20, 2012 GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[1]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[2]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[3]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[4]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[5]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[6]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[7]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[8]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[9]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[10]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[11]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[12]) guiEditSetReadOnly(GUIEditor_Edit[2],true) guiSetVisible(GUIEditor_TabPanel[1], false) bindKey('f2','down', function () guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now