Check out this, this is a sample & not tested...
but the deagle should have in the clip 1, and in the bpammo 1
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Weapon_Reload, "weapon_deagle", "fw_deagle_reload_post", 1)
}
public fw_deagle_reload_post(const wEnt)
{
if(!pev_valid(wEnt)) return;
new id = pev(wEnt, pev_owner);
if(!is_user_alive(id)) return;
cs_set_user_bpammo(id, CSW_DEAGLE, 1);
}
Or
PHP Code:
public HamDeaglePrimaryAttackPre(iWeapon)
{
new id = get_pdata_cbase(iWeapon, m_pPlayer, OFFSET_LINUX_WEAPONS)
if(!is_user_alive(id))
return HAM_IGNORED
cs_set_user_bpammo(id, CSW_DEAGLE, 1);
return HAM_IGNORED
}
__________________