initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?
|
||||
if(!isset($_SESSION['uid'])) { header('Location: ../index.php'); die(); }
|
||||
|
||||
if($user['battle'] > 0) {
|
||||
echo "<font color=red><b>Не в бою ...</b></font>";
|
||||
} elseif($user['hp'] == $user['maxhp']) {
|
||||
echo "<font color=red><b>Ваше здоровье и так полное ...</b></font>";
|
||||
} else {
|
||||
$user['hp'] = $user['maxhp'];
|
||||
mysql_query('UPDATE `users` SET `hp` = "'.$user['hp'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1');
|
||||
echo "<font color=red><b>Вы скушали Бутербродик ...</b></font>";
|
||||
$bet = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user