Jump to content

onPlayerLogin doesn't get triggered ?


Recommended Posts

    function setBackupOnConnect() 
                if getAccountData(getPlayerAccount(source), "ucpZombiesKilled") == nil then setAccountData(getPlayerAccount(source), "ucpZombiesKilled", 0) end 
                setElementData(source, "backupPK", getElementData(source, "zombieskilled")) 
                outputChatBox("> playerAccountData "..getPlayerAccount(source).." ucpHeadshots w/:  "..getAccounData(getPlayerAccount(source), "ucpHeadshots"), getRootElement(), 255, 0, 0, false) 
    end 
    addEventHandler("onPlayerLogin", getRootElement(), setBackupOnConnect) 

This is a bit of a ucp I am making for my server. The problem I have is that for some unknown reasons, the onPlayerLogin doesn't get triggered. Any ideas for why this doesn't happen ? :roll:

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