28 lines
619 B
PHP
28 lines
619 B
PHP
<?
|
|
if(!defined('GAME')) {
|
|
die();
|
|
}
|
|
/*
|
|
Ïðèåì: Êðóãîâàÿ çàùèòà
|
|
*/
|
|
$pvr = array();
|
|
if( isset($pr_momental_this)) {
|
|
|
|
}elseif( isset($pr_tested_this) ) {
|
|
|
|
}elseif( isset($pr_used_this) ) {
|
|
|
|
}else{
|
|
//Äåéñòâèå ïðè êëèêå
|
|
$btl->priemAddLogFast( $u->info['id'], 0, "Êðóãîâàÿ Çàùèòà",
|
|
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'',
|
|
0, time() );
|
|
//
|
|
mysql_query('INSERT INTO `battle_actions` (`btl`,`uid`,`time`,`vars`,`vals`) VALUES (
|
|
"'.$btl->info['id'].'","'.$u->info['id'].'","'.time().'","use_defteam'.$u->info['team'].'","1"
|
|
)');
|
|
//
|
|
$this->mintr($pl);
|
|
}
|
|
unset($pvr);
|
|
?>
|