Hello. I try:
Code:
public plugin_init() {
new HamHook:ham_handle_worldspawn = RegisterHam(Ham_TraceAttack, "worldspawn", "fw_TraceAttack")
}
And disable/enable it:
Code:
public cc_toggle(id)
{
if(wbh_toggle == 0)
{
EnableHamHook(ham_handle_worldspawn)
} else {
DisableHamHook(ham_handle_worldspawn)
}
}
Compile error:
Code:
warning 204: symbol is assigned a value that is never used: "ham_handle_worldspawn"
error 017: undefined symbol "EnableHamHook"
error 017: undefined symbol "DisableHamHook"
Seems like there are no EnableHamHook/EnableHamHook functions.
How I can disable/enable HamSandwith hooks?