Jump to content
McKay Development

Anonymous 'node-globaloffensive' Connection


Z3ik3n

Recommended Posts

Hi.

Is there any way to connect to GC with an anonymous account? I tried to set the client.gamesPlayed to 730, but it doesn't seems to work. It doesn't enter the 'csgo.on' method.

My current code:
 

app.get('/api/retrieveFloat', (req, res) => {
  const client = new SteamUser()
  const csgo = new GlobalOffensive(client)
 
  client.logOn()
 
  client.on('loggedOn', (details) => {
    console.log('Logged on: ' + client.steamID)
    client.setPersona(SteamUser.EPersonaState.Online)
    client.gamesPlayed(730, true)
 
    csgo.on('connectedToGC', () => {
      if (csgo.haveGCSession) {
        console.log('Connected')
      } else {
        console.log('Not connected')
      }
    })
  })
})
Edited by Z3ik3n
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...