
Oooops.. ya, it should only be printing 0.. that would make sense!!
I messed up, did it too fast.. try this tho, it may be what you're looking for: (but again, I didnt test this)
Code:
#include <amxmodx>
public plugin_init()
{
register_event( "Damage", "Event_Damage", "b", "2!0" )
}
public Event_Damage( id )
{
new iDamage = read_data( 2 )
new iAttackerID = get_user_attacker( id )
if( (iAttackerID == 0) || (iAttackerID == id) )
{
new szUsername[32]
get_user_name( id, szUsername, 31 )
client_print( 0, print_chat, "%s hurt self for %d HP!", szUsername, iDamage )
}
return PLUGIN_CONTINUE
}
NOTE: Notice the change in the register_event()