Brolis Posted August 8, 2012 Share Posted August 8, 2012 (edited) Hi all again, today I wan't to fix this resource, when I join a game, this window automaticly popup, I wan't to make it hidden, just only if player press a key, it will be showing for that player, like me for me or other for other, I gess you guys know what I mean, default key is F9 - if you want to know I have already removed helpmanager, so no bugs with that, help me. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(231,202,557,359,"SERVER TITLE GOES HERE",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,539,75,"logo.png",false,GUIEditor_Window[1]) GUIEditor_Radio[1] = guiCreateRadioButton(9,97,151,29,"INFO1",false,GUIEditor_Window[1]) GUIEditor_Radio[2] = guiCreateRadioButton(9,138,140,26,"INFO2",false,GUIEditor_Window[1]) GUIEditor_Radio[3] = guiCreateRadioButton(9,179,129,23,"INFO3",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE1",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE2",false,GUIEditor_Window[1]) GUIEditor_Memo[3] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE3",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiMemoSetReadOnly(GUIEditor_Memo[3],true) guiMemoSetReadOnly(GUIEditor_Memo[4],true) guiMemoSetReadOnly(GUIEditor_Memo[5],true) GUIEditor_Button[1] = guiCreateButton(9,311,168,39,"Close",false,GUIEditor_Window[1]) function eta() if (source == GUIEditor_Radio[1]) then guiSetVisible ( GUIEditor_Memo[1], true ) guiSetVisible ( GUIEditor_Memo[2], false ) guiSetVisible ( GUIEditor_Memo[3], false ) elseif (source == GUIEditor_Radio[2]) then guiSetVisible ( GUIEditor_Memo[1], false ) guiSetVisible ( GUIEditor_Memo[2], true ) guiSetVisible ( GUIEditor_Memo[3], false ) elseif (source == GUIEditor_Radio[3]) then guiSetVisible ( GUIEditor_Memo[1], false ) guiSetVisible ( GUIEditor_Memo[2], false ) guiSetVisible ( GUIEditor_Memo[3], true ) end end addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) function oppenz() if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) setTimer(glowbabyglow,6000,1) end end bindKey("F9","down",oppenz) function close() if (source == GUIEditor_Button[1]) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) So, fix that someone, thanks a lot! Edited August 13, 2012 by Guest Link to comment
UAEpro Posted August 8, 2012 Share Posted August 8, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(231,202,557,359,"SERVER TITLE GOES HERE",false) guiSetVisible ( GUIEditor_Window[1], false ) ------ i added this GUIEditor_Image[1] = guiCreateStaticImage(9,23,539,75,"logo.png",false,GUIEditor_Window[1]) GUIEditor_Radio[1] = guiCreateRadioButton(9,97,151,29,"INFO1",false,GUIEditor_Window[1]) GUIEditor_Radio[2] = guiCreateRadioButton(9,138,140,26,"INFO2",false,GUIEditor_Window[1]) GUIEditor_Radio[3] = guiCreateRadioButton(9,179,129,23,"INFO3",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE1",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE2",false,GUIEditor_Window[1]) GUIEditor_Memo[3] = guiCreateMemo(184,97,364,253,"TEXT GOES HERE3",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiMemoSetReadOnly(GUIEditor_Memo[3],true) guiMemoSetReadOnly(GUIEditor_Memo[4],true) guiMemoSetReadOnly(GUIEditor_Memo[5],true) GUIEditor_Button[1] = guiCreateButton(9,311,168,39,"Close",false,GUIEditor_Window[1]) function eta() if (source == GUIEditor_Radio[1]) then guiSetVisible ( GUIEditor_Memo[1], true ) guiSetVisible ( GUIEditor_Memo[2], false ) guiSetVisible ( GUIEditor_Memo[3], false ) elseif (source == GUIEditor_Radio[2]) then guiSetVisible ( GUIEditor_Memo[1], false ) guiSetVisible ( GUIEditor_Memo[2], true ) guiSetVisible ( GUIEditor_Memo[3], false ) elseif (source == GUIEditor_Radio[3]) then guiSetVisible ( GUIEditor_Memo[1], false ) guiSetVisible ( GUIEditor_Memo[2], false ) guiSetVisible ( GUIEditor_Memo[3], true ) end end addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) function oppenz() if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) setTimer(glowbabyglow,6000,1) end end bindKey("F9","down",oppenz) function close() if (source == GUIEditor_Button[1]) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) 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