Great job! Works as advertised.
Observation: Bots still target you when friendly is active.
Desired effect: Bots ignore you when friendly is active.
Possible fix: Maybe use some of the coding already done by the amazing Tylerst on his 'Bot Ignore' plugin:
https://forums.alliedmods.net/showthread.php?p=2087931