TonyJunakPRO Posted April 2, 2011 Share Posted April 2, 2011 ScreenLocked = guiCreateWindow(22,175,141,267,"SmartEX C45",false) guiSetAlpha(ScreenLocked,1) guiWindowSetMovable(ScreenLocked,false) guiWindowSetSizable(ScreenLocked,false) ImageLocked = guiCreateStaticImage(9,30,123,228,"images/mtalogo.png",false,ScreenLocked) guiSetAlpha(ImageLocked,1) ScreenLocked_UnlockButton = guiCreateButton(16,234,107,15,"Click to unlock",false,ScreenLocked) guiSetAlpha(ScreenLocked_UnlockButton,1) guiSetVisible(ScreenLocked, false) bindKey ("f1", "down", showHide) bindKey ("y", "down", showHide) function showHide() if guiGetVisible(ScreenLocked, true) guiSetVisible(ScreenLocked, false) else guiSetVisible(ScreenLocked, true) end end addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockButton, funScreenLocked_UnlockButton, false ) function funScreenLocked_UnlockButton() guiSetVisible(ScreenLocked, false) end Link to comment
Piorun Posted April 2, 2011 Share Posted April 2, 2011 But .. hmm .. what is wrong ?? Link to comment
TonyJunakPRO Posted April 2, 2011 Author Share Posted April 2, 2011 screen doesnt appear Link to comment
Piorun Posted April 2, 2011 Share Posted April 2, 2011 first: not if guiGetVisible(ScreenLocked, true) but if guiGetVisible(ScreenLocked)==true And login in your server and write in console "debugscript 3" and show us your warnings please Link to comment
TonyJunakPRO Posted April 2, 2011 Author Share Posted April 2, 2011 first: not if guiGetVisible(ScreenLocked, true) but if guiGetVisible(ScreenLocked)==true And login in your server and write in console "debugscript 3" and show us your warnings please not working, nothing happens can you check the rest of my script Link to comment
Piorun Posted April 2, 2011 Share Posted April 2, 2011 And login in your server and write in console "debugscript 3" and show us your warnings please Firstly - do this! Link to comment
TonyJunakPRO Posted April 2, 2011 Author Share Posted April 2, 2011 fixed, handler and bind lines need to be after function lines 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