You don't need to check if the player is connected on Ham_Item_Deploy hook.
Code:
public Ham_Knife_Deploy_Post(iEnt)
{
new id = get_pdata_cbase(iEnt, m_pPlayer, 4)
if(g_bBot[id] && g_iBotsWithRandomKnives)
{
return
}
refreshKnifeModel(id)
}
__________________