mint3d Posted October 14, 2013 Share Posted October 14, 2013 I basically want to change it from onClientPlayerSpawn closemywindow to a timer of 2 mins local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabScript = guiCreateTab( "Script Information", tabPanel ) local tabStaff = guiCreateTab( "Staff", tabPanel ) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "These scripts have been edited and have new custom systems.", true, tabScript) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "Owner - Lewis White.\nCo-Owner - Bob Falcon\nHead Admins - None\nLead Admins - None\nSuper Admins - None\nAdmins - Brian James\nTrial Admins - James Bullet, Jack Granger", true, tabStaff) function closemyWindow () guiSetVisible (myWindow, false) end addEventHandler("onClientPlayerSpawn", getRootElement(), closemyWindow) Link to comment
cheez3d Posted October 14, 2013 Share Posted October 14, 2013 local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabScript = guiCreateTab( "Script Information", tabPanel ) local tabStaff = guiCreateTab( "Staff", tabPanel ) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "These scripts have been edited and have new custom systems.", true, tabScript) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "Owner - Lewis White.\nCo-Owner - Bob Falcon\nHead Admins - None\nLead Admins - None\nSuper Admins - None\nAdmins - Brian James\nTrial Admins - James Bullet, Jack Granger", true, tabStaff) function closemyWindow () guiSetVisible (myWindow, false) end local seconds = 120 setTimer(closemyWindow,seconds*1000) Link to comment
Castillo Posted October 14, 2013 Share Posted October 14, 2013 You forgot to define how much times the timer will repeat. Link to comment
mint3d Posted October 14, 2013 Author Share Posted October 14, 2013 I tried the code its not working well Link to comment
mint3d Posted October 14, 2013 Author Share Posted October 14, 2013 I think the thing you said the timer Link to comment
Castillo Posted October 14, 2013 Share Posted October 14, 2013 He didn't define how much times the timer will repeat itself. Change: setTimer(closemyWindow,seconds*1000) to: setTimer ( closemyWindow, ( seconds * 1000 ), 1 ) Link to comment
mint3d Posted October 14, 2013 Author Share Posted October 14, 2013 Works good Thanks 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