Enargy, Posted November 30, 2013 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 - Inactivo.
Bssol Posted November 30, 2013 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?
Enargy, Posted November 30, 2013 Author 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 - Inactivo.
bandi94 Posted November 30, 2013 Posted November 30, 2013 So you wanna this panel , only the first join of the player ? Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Castillo Posted November 30, 2013 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. 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