Raised This Month: $ Target: $400
 0% 

HamSandwich Disable/Enable Hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 10-22-2013 , 10:48   HamSandwich Disable/Enable Hook
Reply With Quote #1

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?
Phant is offline
Send a message via ICQ to Phant
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode