if (is_member_of($vbulletin->userinfo,1,2,3)) {// php code to execute if user is in usergroupid 1, 2, or 3}