9 lines
459 B
PHP
9 lines
459 B
PHP
<?
|
|
if(!defined('GAME')) { die(); }
|
|
$u->info['hpNow'] = $u->stats['hpAll'];
|
|
$u->info['mpNow'] = $u->stats['mpAll'];
|
|
mysql_query('UPDATE `stats` set `hpNow` = "'.$u->info['hpNow'].'",`mpNow` = "'.$u->info['mpNow'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
|
$u->error = 'Âû óñïåøíî âîññòàíîâèëè '.$u->info['hpNow'].' ÕÏ / '.$u->info['mpNow'].' MP';
|
|
?>
|