hi there
im here since a week cause i want to customize my cs a little
the code is very hard to learn cause all these shorts and idīs
but i tried my luck and copy/paste of other codes together but it doesnt work correctly
this plugin should be able to activate and de-activate an other Zoom-Option for the weapon AWP with "awp_smoothzoom 0/1"
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "AWP Smooth Zoom"
#define VERSION "0.1"
#define AUTHOR "ab2"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","awp_smoothzoom","be","1=1","2=18")
register_cvar("awp_smoothzoom", "1")
}
public awp_smoothzoom(id)
{
if(is_user_alive(id) == 0)
return PLUGIN_HANDLED
if(cs_get_user_zoom(id) == CS_SET_FIRST_ZOOM)
cs_set_user_zoom (id,CS_SET_AUGSG552_ZOOM,1)
else(cs_get_user_zoom(id) == CS_SET_NO_ZOOM)
return PLUGIN_HANDLED
}
But my problem is now
if i zoom with awp first time i get the "normal" zoom-view with the black corners and the big crosshair
after shooting 1 bullet and switching automaticly back to zoom-mode the black corners will leave but the big crosshair stays -_-
i want, that all the time there is no big crosshair and no black corners
is that possible?
greetings abē
__________________