AMX Mod X API Documentation

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

Sets the client's team kill status, indicating whether the client has

committed a team kill in the current round.

Notes
  • 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.

Parameters
  • index Client index
  • tk Team kill status
  • subtract Amount of frags to subtract, negative values add frags
No return value
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.

Назад
Верх