TF2_StunPlayer Function

Stuns a client

void TF2_StunPlayer(int client, float duration, float slowdown, int stunflags, int attacker)

Parameters

int client

Player's index.

float duration

Duration of stun.

float slowdown

Slowdown percent (as decimal, 0.00-1.00) Ignored if TF_STUNFLAG_SLOWDOWN is not set.

int stunflags

Stun flags.

int attacker

Attacker's index (0 is allowed for world).