for my plugins, I did not use
RegisterHamFromEntity because i stoped using ZBot and switched to SyPB or PODBot which both BOT was treated like actual player => No need to use
RegisterHamFromEntity
In fact, it would cause the Ham Registered twice on those BOT making they take twice the effect/damage
PHP Code:
new g_HamBot
public client_putinserver(id)
{
if(!g_HamBot && is_user_bot(id))
{
g_HamBot = 1
set_task(0.1, "Register_HamBot", id)
}
}
public Register_HamBot(id)
{
//Do the same with other Ham
RegisterHamFromEntity(Ham_TraceAttack, id, "fw_TraceAttack_Player")
}
__________________