What does GetClientTeam(client) return in empires?

Discussion in 'Support' started by FreedomvilleServer, Jul 26, 2009.

  1. FreedomvilleServer

    FreedomvilleServer Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    So we were thinking of customizing welcome messages and other plug in type things between NF and BE. I was wondering if GetClientTeam(client) is what we should be trying to use and what does it return? Thanks
     
  2. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    Code:
    // Team Defines
    #define TEAM_INVALID                    -1
    #define TEAM_UNASSIGNED                 0       // not assigned to a team
    #define TEAM_SPECTATOR                  1       // spectator team
    #define TEAM_NF                                 2       // Northern Faction
    #define TEAM_IMP                                3       // Brenodi Empire
    
    Also,
    Code:
            GetTeamName( 2, teamName1, sizeof(teamName1) );
            GetTeamName( 3, teamName2, sizeof(teamName2) );
    
    As an example.

    GetClientTeam returns the team number/id.
     
    Last edited: Jul 26, 2009
  3. Theowningone

    Theowningone Noone likes me :'(

    Messages:
    704
    Likes Received:
    0
    Trophy Points:
    0

Share This Page