xTeacherx Posted May 2, 2012 Share Posted May 2, 2012 Hi all Cods: window = guiCreateWindow(202,192,655,432,"news",false) showCursor (true) butto = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,window) editBo = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,window) Close = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,window) -------------------------------------------------------------------------- windows = guiCreateWindow(202,192,655,432," Edit news",false) guiSetVisible ( windows, false ) button = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,windows) editBox = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,windows) Closes = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,windows) guiEditSetMaxLength ( editBox, 128 ) ---------------------------------------------------- function eta() if (source == butto) then guiSetVisible ( windows, true ) end end addEventHandler("onClientGUIClick",butto,eta,false) function closeInfo ( ) if ( guiGetVisible ( windows ) == true ) then guiSetVisible ( windows, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Closes, closeInfo) function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Close, closeInfo) function info(text) if source == button then local text = guiGetText ( editBox ) if text and text ~= "eeee" then guiSetText(editBo,""..text.."",editBox) end end end addEventHandler ( "onClientGUIClick", button, info ) ------------------------------------------------------------------------- So now I Dont Have Any Problem . But I Want : ( butto = guiCreateButton ) ( guiSetVisible True ) For Admin ! *( guiSetVisible False ) To Any One . 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