RealXwar Posted August 5, 2016 Share Posted August 5, 2016 السلام عليكم وتختفي الفاره Panel يغلق الClose ممكن مساعده في السكربت التالي هو انا اريد عندما يضغط الاعب علي شكرا . لا اعرف كيفيه وضع السكربت في Spoldier marker1 = createMarker(1543.01550,-1719.50916,12.55456,"cylinder",3,255,255,255) function spawn() GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(238, 130, 492, 333, "INRU Spawner", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[2] = guiCreateButton(386, 24, 96, 55, "Close", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(9, 22, 103, 50, "Sanchez", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",getRootElement(),spawn) function Close() GUIEditor.button[2] = guiCreateButton(386, 24, 96, 55, "Close", false, GUIEditor.window[1]) end addEventHandler ( "onClientGUIClick",GUIEditor.button[2] , close2, false ) function close2() guiSetVisible ( GUIEditor.window[1], false ) end Link to comment
Vunili Posted August 5, 2016 Share Posted August 5, 2016 تفضل marker1 = createMarker(1543.01550,-1719.50916,12.55456,"cylinder",3,255,255,255) function spawn() GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(238, 130, 492, 333, "INRU Spawner", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[2] = guiCreateButton(386, 24, 96, 55, "Close", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(9, 22, 103, 50, "Sanchez", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",getRootElement(),spawn) addEventHandler("onClientGUIClick",root, function ( ) if ( source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) Link to comment
RealXwar Posted August 5, 2016 Author Share Posted August 5, 2016 تفضل marker1 = createMarker(1543.01550,-1719.50916,12.55456,"cylinder",3,255,255,255) function spawn() GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(238, 130, 492, 333, "INRU Spawner", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[2] = guiCreateButton(386, 24, 96, 55, "Close", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(9, 22, 103, 50, "Sanchez", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",getRootElement(),spawn) addEventHandler("onClientGUIClick",root, function ( ) if ( source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(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