=$money) { $rm=rand(0,100); $rr=rand(0,100); $rsh=rand(0,100); $rya=rand(0,100); $rd=rand(0,100); $rsc=rand(0,100); $rhp=rand(0,100); if($ku['level']>=35 && $ku['level']<39) { $rrat=rand(300,1000); $rating=intval("".$rrat."000"); if(isset($drakon_act))$rat=(($rating/100)*300)+$rating;else $rat=$rating; mysql_query("UPDATE `kolhoz_user` SET `rating` = '".($ku['rating']+$rat)."' WHERE `id` = '$ku[id]'"); if($rm==10 || $rm==40 || $rm==70 || $rm==100) { $pm="".rand(1,10)."00000"; $pm=intval($pm); $pme=1; } if($rr==10 || $rr==40 || $rr==70 || $rr==100) { $pr=rand(1,20); $pre=1; } } if($ku['level']>=39 && $ku['level']<42) { $rrat=rand(1000,10000); $rating=intval("".$rrat."000"); if(isset($drakon_act))$rat=(($rating/100)*300)+$rating;else $rat=$rating; mysql_query("UPDATE `kolhoz_user` SET `rating` = '".($ku['rating']+$rat)."' WHERE `id` = '$ku[id]'"); if($rm==10 || $rm==40 || $rm==70 || $rm==100) { $pm="".rand(1,10)."000000"; $pm=intval($pm); $pme=1; } if($rr==10 || $rr==40 || $rr==70 || $rr==100) { $pr=rand(20,500); $pre=1; } } if($ku['level']>=42) { $rrat=rand(10000,1000000); $rating=intval("".$rrat."000"); if(isset($drakon_act))$rat=(($rating/100)*300)+$rating;else $rat=$rating; mysql_query("UPDATE `kolhoz_user` SET `rating` = '".($ku['rating']+$rat)."' WHERE `id` = '$ku[id]'"); if($rm==10 || $rm==40 || $rm==70 || $rm==100) { $pm="".rand(1,10)."0000000"; $pm=intval($pm); $pme=1; } if($rr==10 || $rr==40 || $rr==70 || $rr==100) { $pr=rand(1,1000); $pre=1; } } if(isset($pme))mysql_query("UPDATE `kolhoz_user` SET `money` = '".($ku['money']+$pm)."' WHERE `id` = '$ku[id]'"); if(isset($pre))mysql_query("UPDATE `kolhoz_user` SET `rubies` = '".($ku['rubies']+$pr)."' WHERE `id` = '$ku[id]'"); if($rsh==10 || $rsh==40 || $rsh==70 || $rsh==100) { $timee=3600*24; mysql_query("UPDATE `kolhoz_user` SET `time_shmel` = '".($ku['time_shmel']>$time?"".($ku['time_shmel']+$timee)."":"".($time+$timee)."")."' WHERE `id` = '$ku[id]'"); $rshe=1; } if($rya==10 || $rya==40 || $rya==70 || $rya==100) { $timee=3600*24; mysql_query("UPDATE `kolhoz_user` SET `time_yastreb` = '".($ku['time_yastreb']>$time?"".($ku['time_yastreb']+$timee)."":"".($time+$timee)."")."' WHERE `id` = '$ku[id]'"); $ryae=1; } if($rd==10 || $rd==40 || $rd==70 || $rd==100) { $timee=3600*24; mysql_query("UPDATE `kolhoz_user` SET `time_drakon` = '".($ku['time_drakon']>$time?"".($ku['time_drakon']+$timee)."":"".($time+$timee)."")."' WHERE `id` = '$ku[id]'"); $rde=1; } if($rsc==10 || $rsc==40 || $rsc==70 || $rsc==100) { $timee=3600*24; mysql_query("UPDATE `kolhoz_user` SET `scarecrow_time` = '".($ku['scarecrow_time']>$time?"".($ku['scarecrow_time']+$timee)."":"".($time+$timee)."")."' WHERE `id` = '$ku[id]'"); $rsce=1; } if($rhp==10 || $rhp==40 || $rhp==70 || $rhp==100) { $timee=3600*24; $ps=300; mysql_query("UPDATE `kolhoz_user` SET `hydropinics_time` = '".($ku['hydropinics_time']>$time?"".($ku['hydropinics_time']+$timee)."":"".($time+$timee)."")."', `hydropinics_type` = '$ps' WHERE `id` = '$ku[id]'"); $rhpe=1; } echo "
Опыт +$rat
"; } else { $_SESSION['no_money']=$money-$ku['money']; header("Location:?lottery"); } } echo "

# Лотерея ''Спринт''

"; echo "
"; echo "

- Купить билет 1 млн.
"; if(isset($_GET['start']) && $ku['money']>=$money) { echo "
- Ваш выигрыш:
"; echo "
- "; echo "
  - ".rating($rating)." ($rating)
  "; if(isset($pme))echo "
  - $pm
  "; if(isset($pre))echo "
  - $pr
  "; echo "
"; if(isset($psce))echo "
- Пугало на ".($timee-$time)."
"; if(isset($phpe))echo "
- Гидропоника на ".($timee-$time)."
"; if(isset($rshe))echo "
- Шмель на ".($timee-$time)."
"; if(isset($ryae))echo "
- Ястреб на ".($timee-$time)."
"; if(isset($rde))echo "
- Дракон на ".($timee-$time)."
"; } echo "
- Минимальный выигрыш 300000 k
"; echo "

"; ?>