PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
new const g_szWeapons[][] = { "weapon_aug", "weapon_sg552" }
#define SHOOT_SPEED 0.0825
#define XO_WEAPON 4
#define m_pPlayer 41
#define m_flNextPrimaryAttack 46
public plugin_init()
{
register_plugin("Normal Fire Rate When Zoomed", "1.0", "OciXCrom")
for(new i; i < sizeof(g_szWeapons); i++)
RegisterHam(Ham_Weapon_PrimaryAttack, g_szWeapons[i], "OnPrimAttack", 1)
}
public OnPrimAttack(iEnt)
{
if(cs_get_user_zoom(get_pdata_cbase(iEnt, m_pPlayer, XO_WEAPON)) == CS_SET_AUGSG552_ZOOM)
set_pdata_float(iEnt, m_flNextPrimaryAttack, SHOOT_SPEED, XO_WEAPON)
}
__________________