Jump to content

Help Me :D


Recommended Posts

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

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