Quote:
Originally Posted by MPNumB
I once tested Ham_TakeDamage. When I didn't return anything - damage wasn't given. I'm telling you.
|
Just tested this code: works fine, prints the message, damage is taken normally.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage", 0)
}
public hamTakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(is_user_connected(this))
client_print(this, print_chat, "TakeDamage")
}
__________________