cs_set_user_tked

Синтаксис

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

Употреба

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

Описание

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

Забележка

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.

Връщаща стойност

Тази функция няма връщаща стойност.

Грешка

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