2022-12-19 20:16:24 +00:00
< ?
2022-08-11 10:38:38 +00:00
if ( ! defined ( 'GAME' )) {
die ();
2022-06-06 21:30:34 +00:00
}
/*
2023-01-10 16:29:32 +00:00
Прием : Статика .
2022-06-06 21:30:34 +00:00
*/
2022-08-11 10:38:38 +00:00
$pvr = [];
$pvr [ 'x5' ] = mysql_fetch_array ( mysql_query ( 'SELECT `id`,`x` FROM `eff_users` WHERE `uid` = ' . $this -> ue [ 'id' ] . ' AND `v2` = 260 AND `delete` = 0 LIMIT 1' ));
if ( $pvr [ 'x5' ][ 'x' ] > 0 ) {
$cup = true ;
2023-01-10 16:29:32 +00:00
echo '<b style="color: red">Н а пероснаже уже есть статика.</b>' ;
2022-08-11 10:38:38 +00:00
} else {
$this -> addEffPr ( $pl , $id );
2022-06-06 21:30:34 +00:00
2022-08-11 10:38:38 +00:00
$prv [ 'color2' ] = '0af' ;
2022-12-19 20:16:24 +00:00
$prv [ 'text' ] = $btl -> addlt ( 1 , 19 , $btl -> users [ $btl -> uids [ $u -> info [ 'id' ]]][ 'sex' ], null );
2022-08-11 10:38:38 +00:00
$prv [ 'text2' ] = '{tm1} ' . $prv [ 'text' ];
$btl -> priemAddLog ( $id , 1 , 2 , $u -> info [ 'id' ], $this -> ue [ 'id' ],
2023-01-10 16:29:32 +00:00
'<font color^^^^#' . $prv [ 'color2' ] . '>Статика</font>' ,
2022-08-11 10:38:38 +00:00
$prv [ 'text2' ],
( $btl -> hodID )
);
2022-06-06 21:30:34 +00:00
}
unset ( $pvr );