I have this code:
PHP Code:
#include <hamsandwich>
#include <fakemeta>
new bool:block_reload[33]
public plugin_init()
{
RegisterHam(Ham_Weapon_Reload, "weapon_m249", "fw_weapon_reload")
}
public fw_weapon_reload(ent)
{
static id
id = pev(ent, pev_owner)
if(block_reload[id])
return HAM_SUPERCEDE
return HAM_HANDLED
}
This code only block manual reload by press (R) button. It didn't block auto reload... When the ammo turn to 0, the weapon auto reload. How to block it