Jump to content

مشكله في كود اغلاق النافذه


nony

Recommended Posts

السلام عليكم ورحمه الله وبركاته

يا شباب سويت نافذه تفتح بحرف ت

وسويت زر يسكر النافذه يوم تضغطه

بس الماوس مايروح يبقا على الشاشه

الكود

GUIEditor_Window = {} 
GUIEditor_Button = {} 
  
GUIEditor_Window[1] = guiCreateWindow(70,60,636,483,"",false) 
guiSetVisible(GUIEditor_Window[1],false) 
GUIEditor_Button[1] = guiCreateButton(585,444,38,27,"X",false,GUIEditor_Window[1]) 
  
  
bindKey ( "j" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("open.wav") 
  
 end 
 end 
 ) 
  
  
  
addEventHandler ( "onClientGUIClick", root, 
function () 
if ( source == GUIEditor_Button[1] ) then 
guiSetVisible( GUIEditor_Window[1], false ) 
showCursor( false ) 
end 
end) 

:mrgreen:

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
  
GUIEditor_Window[1] = guiCreateWindow(70,60,636,483,"",false) 
guiSetVisible(GUIEditor_Window[1],false) 
GUIEditor_Button[1] = guiCreateButton(585,444,38,27,"X",false,GUIEditor_Window[1]) 
  
  
function show() 
guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey ("j", "down", show) 
  
  
addEventHandler ( "onClientGUIClick", root, 
function () 
if ( source == GUIEditor_Button[1] ) then 
guiSetVisible(GUIEditor_Window[1],false) 
showCursor(false) 
end 
end) 

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
  
GUIEditor_Window[1] = guiCreateWindow(70,60,636,483,"",false) 
guiSetVisible(GUIEditor_Window[1],false) 
GUIEditor_Button[1] = guiCreateButton(585,444,38,27,"X",false,GUIEditor_Window[1]) 
  
  
function show() 
guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey ("j", "down", show) 
  
  
addEventHandler ( "onClientGUIClick", root, 
function () 
if ( source == GUIEditor_Button[1] ) then 
guiSetVisible(GUIEditor_Window[1],false) 
showCursor(false) 
end 
end) 

اموااح فديتك لبى قلبك

افتني كثير

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