battles/magic/nybut.php
2018-01-28 18:40:49 +02:00

12 lines
323 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;
}
?>