If you wish to throw grenades like a boss, then this is how it would be done:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define VERSION "0.0.1"
#define XO_WEAPON 4
#define m_flTimeWeaponIdle 48
public plugin_init()
{
register_plugin( "Instant Grenade Throw", VERSION, "hornet" );
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_hegrenade", "CHEGrenade_PrimaryAttack" );
}
public CHEGrenade_PrimaryAttack( iEnt )
{
set_pdata_float( iEnt, m_flTimeWeaponIdle, 0.0, XO_WEAPON );
ExecuteHam( Ham_Weapon_WeaponIdle, iEnt );
}
__________________