hmmm. It was long time I had this kind plugin.
And I remember something that there is tiny differences with VAC message between windows and linux server...
I'm not 100% sure.
But last time I used this
*edit
And this works only when event player_disconnect happen. (VAC banned player try join in server or have been kicked by server.)
PHP Code:
if(StrEqual(reason, "VAC banned from secure server\n", true))