cs_set_user_tked

Syntax

native cs_set_user_tked(index, tk = 1, subtract = 1);

Usage

index
Client index
tk
Team kill status
subtract
Amount of frags to subtract, negative values add frags

Description

Sets the client's team kill status, indicating whether the client has
committed a team kill in the current round.

Note

If this is set to 1 the client will be punished at the start of the
next round depending on the value of the mp_tkpunish cvar. The team
kill status is then reset.

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.