battles/magic/nybut.php

12 lines
321 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?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;
}