#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define NAME "FAST INSTALL C4"
#define VERSION "1.0"
#define AUTHOR "MayroN"
#define XTRA_OFS_WEAPONS 4
#define m_bStartedArming 78
#define m_bBombPlacedAnimation 79
public plugin_init()
{
register_plugin(NAME, VERSION, AUTHOR);
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_c4", "Fast_Install_C4");
}
public Fast_Install_C4(const pItem)
{
if(!pev_valid(pItem))
return HAM_IGNORED;
set_pdata_int(pItem, m_bStartedArming, true, XTRA_OFS_WEAPONS)
set_pdata_int(pItem, m_bBombPlacedAnimation, true, XTRA_OFS_WEAPONS)
return HAM_IGNORED;
}