$add_where.=' and `a`.`user_use`!="'.$btl->users[$i]['id'].'"';
}
$i++;
}
//
$pvr['no']=' AND `a`.`v2` != 201';
$pvr['no']=' AND `a`.`v2` != 31';
//$pvr['no'] .= ' AND `a`.`v2` != 260';
$pvr['no'].=' AND `a`.`v2` != 191';
$pvr['no'].=' AND `a`.`v2` != 280';
$pvr['no'].=' AND `a`.`v2` != 201';
$pvr['no'].=' AND `a`.`v2` != 42 AND `a`.`v2` != 121 AND `a`.`v2` != 122 AND `a`.`v2` != 123 AND `a`.`v2` != 124 AND `a`.`v2` != 125';
$pvr['no'].=' AND `a`.`v2` != 186 AND `a`.`v2` != 246 AND `a`.`v2` != 257 AND `a`.`v2` != 281';
$pvr['no'].=' AND `a`.`v2` != 282';
$pvr['no'].=' AND `a`.`v2` != 21 AND `a`.`v2` != 73 AND `a`.`v2` != 74 AND `a`.`v2` != 75 AND `a`.`v2` != 76 AND `a`.`v2` != 77 AND `a`.`v2` != 78 AND `a`.`v2` != 79';
//$pvr['no'] .= ' AND `a`.`name` NOT LIKE "Цель%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Оледенение%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Серое Мастерство%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Метеорит%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Регенерация%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Туманный образ%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Жертва%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Призрачн%" ';
//
$prv['dell']=mysql_fetch_array(mysql_query('SELECT `a`.* FROM `eff_users` AS `a` WHERE `a`.`user_use`!= "" and `a`.`delete`="0" and `a`.`uid`="'.$this->ue['id'].'" and `a`.`v1`="priem" '.$add_where.' '.$pvr['no'].' LIMIT 1'));
$pvr['no'].=' AND `a`.`v2` != 42 AND `a`.`v2` != 121 AND `a`.`v2` != 122 AND `a`.`v2` != 123 AND `a`.`v2` != 124 AND `a`.`v2` != 125';
$pvr['no'].=' AND `a`.`v2` != 186 AND `a`.`v2` != 246 AND `a`.`v2` != 257 AND `a`.`v2` != 281';
$pvr['no'].=' AND `a`.`v2` != 282';
$pvr['no'].=' AND `a`.`v2` != 21 AND `a`.`v2` != 73 AND `a`.`v2` != 74 AND `a`.`v2` != 75 AND `a`.`v2` != 76 AND `a`.`v2` != 77 AND `a`.`v2` != 78 AND `a`.`v2` != 79';
//$pvr['no'] .= ' AND `a`.`name` NOT LIKE "Цель%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Оледенение%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Серое Мастерство%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Метеорит%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Регенерация%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Туманный образ%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Жертва%" ';
$pvr['no'].=' AND `a`.`name` NOT LIKE "Призрачн%" ';
$pvr['sp']=mysql_query('SELECT `a`.*, `a`.`id` AS `ueffid` FROM `eff_users` AS `a` LEFT JOIN `priems` AS `b` ON `b`.`id` = `a`.`v2` WHERE `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`v1` = "priem" '.$pvr['no'].' AND ( (`b`.`neg` > 0 AND `a`.`v2` != 260) OR `a`.`v2` = 191 OR ( `a`.`v2` = 260 AND `a`.`data` NOT LIKE "%add_mg2static_points=0%" ) ) ORDER BY `a`.`id` DESC LIMIT 1');
$pvr['pl']=mysql_fetch_array($pvr['sp']);
$pvr['pl']['priem']=mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = "'.$pvr['pl']['v2'].'" LIMIT 1'));