nony Posted September 27, 2012 Share Posted September 27, 2012 السلام عليكم ورحمه الله وبركاته يا شباب سويت نافذه تفتح بحرف ت وسويت زر يسكر النافذه يوم تضغطه بس الماوس مايروح يبقا على الشاشه الكود 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) Link to comment
MR.S3D Posted September 27, 2012 Share Posted September 27, 2012 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
nony Posted September 27, 2012 Author Share Posted September 27, 2012 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
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