Jump to content

[HELp] On Player First Join


Recommended Posts

    addEventHandler("onPlayerLogin", root, 
    function(_, account) 
        if not getAccountData(account, "FirstTime") then 
            outputChatBox("You're playing for the first time!", source, 0, 255, 0) 
            setAccountData(account, "FirstTime", true) 
        else 
            outputChatBox("This is not the first time for you!", source, 255, 0, 0) 
        end 
    end) 

Yeah but i don't want to set him as first join if it's not his first join....

i want to check only if it's his first join..no need to set him

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...