native
cs_set_user_zoom
Syntax
native cs_set_user_zoom(index, type, mode);
Description
Sets a weapon zoom type on a player, any zoom type will work for all weapons, so you can even set an awp zoom to pistols :D
The 2nd param has to be one of the above zoom types in the enum. Mode can only be 0 or 1.
If mode=0 (blocking mode), the user will be forced to use the zoom type set by the native, and wont be able to change it (even by changing weapon)
until the native resets the zoom with CS_RESET_ZOOM.
If mode=1 the user will be able to restore back to a normal view by changing weapon.