PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack, "player", "Ham_PrimaryAttackHook")
PHP Code:
public Ham_PrimaryAttackHook(id)
{
if(g_Holster[id])
return HAM_SUPERCEDE
return HAM_IGNORED
}
Does not work. (g_Holster[id] is 1)
Edit: Looks like it's not even called.
PHP Code:
public Ham_PrimaryAttackHook(id)
{
client_print(id, print_console, "[Debug] Ham_PrimaryAttackHook: CALLED")
if(g_Holster[id])
return HAM_SUPERCEDE
return HAM_IGNORED
}
nothing shows up in the console.