game/_incl_data/class/priem/46.php
2022-06-07 00:30:34 +03:00

26 lines
777 B
PHP

<?
if(!defined('GAME')) {
die();
}
/*
Ïðèåì: Ñìåíà ïðîòèâíèêà
*/
$pvr = array();
//echo '['.$btl->stats[$btl->uid[$u->info['id']]]['smena'].']';
//if( isset($this->ue['id']) ) {
$u->info['smena'] += 1;
$btl->users[$btl->uid[$u->info['id']]]['smena'] += 1;
mysql_query('UPDATE `stats` SET `smena` = "'.mysql_real_escape_string($u->info['smena']).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//$u->info['enemy'] = $this->ue['id'];
echo '<font color=red><b>Âû óñïåøíî èñïîëüçîâàëè ïðèåì &quot;Âûáîð ïðîòèâíèêà&quot;</b></font>';
$btl->priemAddLog( $id, 1, 2, $u->info['id'], 0,
'Âûáîð ïðîòèâíèêà',
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'',
($btl->hodID)
);
//}
//Îòíèìàåì òàêòèêè
$this->mintr($pl);
unset($pvr);
?>