$allowed_usergroups = array(1,2,3,4);if (!in_array($vbulletin->userinfo["usergroupid"], $allowed_usergroups)) { print_no_permission(); }