Just wanted to say that I tried it out and it works well for bots not shooting CTs, however, once they turn zombies, they still try to knife each other instead of going after CTs.
I tried solving this issue as well and never succeeded.
Attached you can find the source I was using to try and fix the issue (I literally tried all combinations and also asked someone for help with no avail).
this extension is needed to compile the plugin
https://forums.alliedmods.net/showthread.php?t=220118
I don't recall if a compiled version was available and working for CS:S, I believe I compiled it myself for linux (attached)