Jump to content

onPlayerRegister? Or something alike


Recommended Posts

Hi guys,

Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ?

-- Server Side !!! 
  
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) 

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