Raised This Month: $ Target: $400
 0% 

hook ham_ after supercede


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-10-2016 , 07:24   Re: hook ham_ after supercede
Reply With Quote #4

i see my problems was i was using this:
PHP Code:
#include <amxmodx>
#include <hamsandwich> 

public plugin_init() 

    
RegisterHam(Ham_TraceAttack"player""TraceAttack_Pre"); 
    
RegisterHam(Ham_TakeDamage"player""TakeDamage_Pre"); 


public 
TakeDamage_Pre(iVictimiInflictoriAttackerFloat:fDamageiBitDamage

    return 
HAM_SUPERCEDE 
}

public 
TraceAttack_Pre()
{
    return 
HAM_SUPERCEDE

and takedamage wasn't called but trace attack is working so i will just use it:
PHP Code:
#include <amxmodx> 
#include <hamsandwich> 


public plugin_init() 

    
RegisterHam(Ham_TraceAttack"player""TraceAttack_Pre"); 
    
RegisterHam(Ham_TakeDamage"player""TakeDamage_Pre"); 


public 
TakeDamage_Pre(iVictimiInflictoriAttackerFloat:fDamageiBitDamage

    
client_print(0,print_chat,"called?")


public 
TraceAttack_Pre()
{
    
client_print(0,print_chat,"called2?")

__________________
JusTGo is offline
 



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 09:26.


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