Don’t stay zoomed more than 3 sec.
With this plugins you can block the player to stay zommed more than 3 seconds.

.

.
Installation;
- 1. “antizoomed.amxx” file in the / plugins folder.
- 2. Add “antizoomed.amxx” text to the bottom line of the plugins.ini file.
- 3. Finally, reset the server, or change the map.!
you can change drop zoomed seconds edit this #define MAX_ZOOM_TIME 3.0
.
#include <amxmodx>
#define PLUGIN_VERSION "1.0"
#define TASK_ZOOM 123987
#define MAX_ZOOM_TIME 3.0
public plugin_init()
{
register_plugin("Max Zoom Time", PLUGIN_VERSION, "OciXCrom")
register_cvar("CRXZoomTime", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
register_event("SetFOV", "OnSetFOV", "b")
}
public OnSetFOV(id)
{
if(get_user_weapon(id) != CSW_AWP)
return
if(read_data(1) < 90)
set_task(MAX_ZOOM_TIME, "DropWeapon", id + TASK_ZOOM)
else remove_task(id + TASK_ZOOM)
}
public DropWeapon(id)
{
id -= TASK_ZOOM
client_cmd(id, "drop")
client_print(id, print_center, "You can't stay zoomed more than %.0f seconds.", MAX_ZOOM_TIME, id)
}.
Related Posts:Short Pallet for Dust2
TOP PLUGINSSimple Afk Slay in 30 sec
TOP PLUGINSAmxx C4 Hud Timer v2
PUBLIC PLUGINSDescriptive 'Fire in the hole!' (+colors)
TOP PLUGINSAMXX Tutor Advertisments V2
TOP PLUGINSShow All Players IP - amx_showip
PUBLIC PLUGINSAmxx Ping Faker
TOP PLUGINSSimple Knife Warmup on Round 1
TOP PLUGINSHUD C4 Timer AMXX Plugin
TOP PLUGINSStatsX Shell NEW TOP15 , RANKSTATS
TOP PLUGINSAmxx Round Message
TOP PLUGINSCustum Hud Message
TOP PLUGINS
Short Pallet for Dust2
TOP PLUGINS
Simple Afk Slay in 30 sec
TOP PLUGINS
Amxx C4 Hud Timer v2
PUBLIC PLUGINS
Descriptive 'Fire in the hole!' (+colors)
TOP PLUGINS
AMXX Tutor Advertisments V2
TOP PLUGINS
Show All Players IP - amx_showip
PUBLIC PLUGINS
Amxx Ping Faker
TOP PLUGINS
Simple Knife Warmup on Round 1
TOP PLUGINS
HUD C4 Timer AMXX Plugin
TOP PLUGINS
StatsX Shell NEW TOP15 , RANKSTATS
TOP PLUGINS
Amxx Round Message
TOP PLUGINS
Custum Hud Message
TOP PLUGINS