There is a bug in HPB-Bot which will make the bots don't want to capture the flag after a successful capture.
You can do something like this to fix it:
Code:
if ([chech for pent->v.owner] && pBot->pEdict->v.origin == pent->origin)
which pent is the pointer to the flag.