You can only use $bbuserinfo in a template condition. If you want to check in a plugin, use $vbulletin->userinfo. Also, if you want it to work for all forums you can just take out the forum check (unless you're leaving it there for future use or something). So try:
Code:
if (is_member_of($vbulletin->userinfo, 5,6,7))
{
I guess in the other thread I assumed when you asked for a conditional you meant a template condition.
BTW, ! just means "not", so it was working only because the check was always failing (so !is_member_of was always true), but I think you would have found that it was true for all members.