bosslorenz Posted July 25, 2016 Posted July 25, 2016 What codes do I need to make a GUI appear when someone is just newly registered. But this GUI wont appear if its old account. Only for new accounts.
Addlibs Posted July 25, 2016 Posted July 25, 2016 Show the GUI for any account unless it has a specific account-data, and after showing the GUI, set that specific account-data so that the GUI won't re-appear later
LabiVila Posted July 25, 2016 Posted July 25, 2016 addEventHandler ("onPlayerLogin", getRootElement(), function () local acc = getPlayerAccount (source) if acc and not isGuestAccount (acc) then local everPlayed = getAccountData (acc, "everPlayedHere") if (everPlayed == false) then --showWindow setAccountData (acc, "everPlayedHere", true) outputChatBox ("Table showed cuz you never logged in here", source) else outputChatBox ("Table not showed cuz u've logged in here once", source) end end end ) The same stuff can be client-side (since you have GUIs, but it works like this)
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