native

zpn_set_user_frozen

Syntax

native bool:zpn_set_user_frozen(const this, const Float:time = 3.0, const bool:reset_time = false, const bool:play_sound = true);

Description

Freezes a client for a limited time.

Parameters

this Client index
time Freeze duration in seconds
reset_time Whether an existing freeze task should be replaced
play_sound Whether a freeze sound should be played

Note

This calls zpn_user_frozen_pre() before applying the frozen state and
zpn_user_frozen_post() after the state is applied.

Note

The time value is clamped internally between 0.1 and 60.0 seconds.

Return

true if the client was frozen, false if the forward blocked
the freeze