if (!is_member_of($vbulletin->userinfo, x, y, z)) { // no permission if you aren't a member of usergroupid x, y, or z print_no_permission(); }