Enargy, Posted November 30, 2013 Share Posted November 30, 2013 I need a little help, I want this GUI / Panel only one I see is displayed, example: when a player is registered (with your accounting data) to the server, this panel displays local sx, sy = guiGetScreenSize() function guiRegistered( x, y, w, h, text, relative, parent ) GUI = guiCreateWindow(sx / 2.5 - 310, sy / 1.4 - 260, 246, 340, "TEXT", false) player = guiCreateButton(6, 4, 233, 56, "localPlayer", false, GUI) anims = guiCreateButton(78, 65, 65, 20, "Anims", false, GUI) info = guiCreateButton(149, 65, 65, 20, "Info", false, GUI) close = guiCreateButton(7, 89, 65, 20, "Close", false, GUI]) end Link to comment
Bssol Posted November 30, 2013 Share Posted November 30, 2013 I don't understand your question! Do you want the panel opens when a player login to his account, or when he login to a specific account? Link to comment
Enargy, Posted November 30, 2013 Author Share Posted November 30, 2013 No, I want that when the user enters the server, the panel appears, but when the user re enter, do not appears the panel Link to comment
bandi94 Posted November 30, 2013 Share Posted November 30, 2013 So you wanna this panel , only the first join of the player ? Link to comment
Castillo Posted November 30, 2013 Share Posted November 30, 2013 local sx, sy = guiGetScreenSize ( ) function guiRegistered ( x, y, w, h, text, relative, parent ) GUI = guiCreateWindow(sx / 2.5 - 310, sy / 1.4 - 260, 246, 340, "TEXT", false) player = guiCreateButton(6, 4, 233, 56, "localPlayer", false, GUI) anims = guiCreateButton(78, 65, 65, 20, "Anims", false, GUI) info = guiCreateButton(149, 65, 65, 20, "Info", false, GUI) close = guiCreateButton(7, 89, 65, 20, "Close", false, GUI]) end addEvent ( "onPlayerRegister", true ) addEventHandler ( "onPlayerRegister", root, guiRegistered ) Then you trigger the event: "onPlayerRegister" from the server side when the player registers. 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