cs_set_user_zoom

Синтаксис

native cs_set_user_zoom(index, type, mode);

Употреба

index
Client index
type
Zoom type
mode
If zero (blocking) the client will be forced to use the zoom
type set and won't be able to change it until it is reset
with CS_RESET_ZOOM, otherwise the user can restore back to
normal as usual

Описание

Sets a zoom type on the client.

Забележка

Zoom types are not tied to their intended weapons, so any zoom type can
be combined with any weapon.

Забележка

For a list of possible zoom types see the zoom type enum above
(CS_*_ZOOM constants).

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

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

Грешка

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