Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init()
{
register_event("SetFOV", "eventSetFOV", "b")
}
public eventSetFOV(id)
{
client_print(id, print_chat, "* Your FOV is: %i", read_data(1));
log_amx("zoomed");
new ammo,clip;
new WeaponNum = get_user_weapon(id, ammo, clip);
if(WeaponNum == CSW_AWP)
{
log_amx("awp zoomed");
message_begin(MSG_ONE, get_user_msgid("SetFOV"), {0,0,0}, id);
write_byte(90);
message_end();
}
}
This works, have tested....weird!
__________________