cs_set_user_team

Syntax

native cs_set_user_team(index, {CsTeams,_}:team, {CsInternalModel,_}:model = CS_DONTCHANGE);

Usage

index
Client index
team
Team id
model
Internal model id, if CS_DONTCHANGE the game will choose the
model

Description

Sets the client's team without killing the player, and sets the client model.

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

This function has no return value.

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.