mint3d Posted October 14, 2013 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) Skype: Jordan_Nymph
cheez3d Posted October 14, 2013 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)
Castillo Posted October 14, 2013 Posted October 14, 2013 You forgot to define how much times the timer will repeat. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
mint3d Posted October 14, 2013 Author Posted October 14, 2013 I tried the code its not working well Skype: Jordan_Nymph
Castillo Posted October 14, 2013 Posted October 14, 2013 What is not working? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
mint3d Posted October 14, 2013 Author Posted October 14, 2013 I think the thing you said the timer Skype: Jordan_Nymph
Castillo Posted October 14, 2013 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted October 14, 2013 Posted October 14, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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