Signature
native cs_set_user_zoom(index, type, mode);
Description
Sets a zoom type on the client.
Notes
-
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).
Parameters
- 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
No return value
Errors
-
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.