AMX Mod X API Documentation

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

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

Notes
  • For a list of valid team ids see the CsTeams enum, and for a list of

    valid internal model ids see the CsInternalModel enum.

Parameters
  • index Client index
  • model Optional variable to store model id in
Returns

Team id

Errors
  • If the client index is not within the range of 1 to

    MaxClients, or the client is not connected, an error will be

    thrown.

Назад
Верх