battles/magic/nybut.php
2019-01-16 19:45:30 +02:00

12 lines
321 B
PHP

<?php
// магия "шаг назад"
if (rand(1,100)!=1) {
if ($_SESSION['uid'] == null) header("Location: index.php");
mysql_query("UPDATE `users` SET `hp`=`maxhp` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;");
echo "<font color=red><b>Ваши жизни восстановлены...<b></font>";
$bet=1;
}