Arena
Это в uhead.php:
if($ku['arena2']<$ku['arena2max'] && $ku['arena2time']<=$time)
{
mysql_query("UPDATE kolhoz_user SET arena2time = '".($time+300)."' WHERE id = '$ku[id]'");
mysql_query("UPDATE kolhoz_user SET arena2 = '".($ku['arena2']+10)."' WHERE id = '$ku[id]'");
}
-----------
Это в center.php:
<br><li><img width='16' height='16' src='images/icons/tomato.png' alt='o'/> <a href='?arena'>PvP Арена</a> <span class='title'>(".mysql_result(mysql_query("select count(*) from `arena` "),0).")</span></li>

---------
в functions.php после <? Пишем:
function cpgs($count)
{
$count=$count+1;
if($count>=0 && $count<=9)$cena=1;
elseif($count>=10 && $count<=19)$cena=2;
elseif($count>=20 && $count<=29)$cena=5;
elseif($count>=30 && $count<=39)$cena=10;
elseif($count>=40 && $count<=49)$cena=15;
elseif($count>=50 && $count<=59)$cena=20;
elseif($count>=60 && $count<=69)$cena=25;
elseif($count>=70 && $count<=79)$cena=50;
elseif($count>=80 && $count<=89)$cena=100;
elseif($count>=90 && $count<=99)$cena=250;
elseif($count>=100 && $count<=150)$cena=500;
elseif($count>=160 && $count<=200)$cena=1000;
else $cena=1500;
return $cena;
}
