Raised This Month: $ Target: $400
 0% 

Hamsandwich and func_healthcharger


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edeloa
Member
Join Date: Mar 2007
Location: Redwood City, Ca
Old 06-14-2013 , 22:50   Hamsandwich and func_healthcharger
Reply With Quote #1

For some reason, I'm not able to get a hooked function called by registering it with hamsandwich. This *only* applies to the "func_healthcharger" and "func_recharge" entities.

PHP Code:
RegisterHamHam_Use"func_healthcharger""FwdHamChargerUse" );
RegisterHamHam_Use"func_recharge",      "FwdHamChargerUse" );

public 
FwdHamChargerUse( const iEntity, const iCaller ) {
    
server_print("Unfortunately, this message will never display...");
    return 
HAM_IGNORED;

To double-check the issue wasn't in my code, I tried running xPaw's Inifite Rechargers (https://forums.alliedmods.net/showthread.php?t=120140), and even that isn't working for me. Has something changed with "func_healthcharger" and "func_recharge"? Could I possibly be missing something?
__________________
"To be a student and not be a revolutionary is a contradiction." -Salvador Allende
edeloa is offline
Send a message via AIM to edeloa Send a message via MSN to edeloa
 



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 08:24.


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