cs_get_user_team

Syntax

native CsTeams:cs_get_user_team(index, &any:model = CS_DONTCHANGE);

Usage

index
Client index
model
Optional variable to store model id in

Description

Returns the client's team and optionally the model id.

Note

For a list of valid team ids see the CsTeams enum, and for a list of
valid internal model ids see the CsInternalModel enum.

Return

Team id

Error

If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error will be
thrown.