Jump to content

[AJUDA] Ações para a primeira entrada no server.


Recommended Posts

addEventHandler("onPlayerLogin", root, 
function(_, account) 
    if not getAccountData(account, "FirstTime") then 
        outputChatBox("Voce está jogando pela primeira vez", source, 255, 255, 0) 
        setAccountData(account, "FirstTime", true) 
    else 
        outputChatBox("Não é a sua primeira vez", source, 255, 255, 0) 
    end 
end) 

 

use então =

SERVER-SIDE

local account = getPlayerAccount(source)
if getAccountData(account, "FirstTime") then 

 

Edited by Furzy
  • Thanks 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...