28 lines
762 B
PHP
28 lines
762 B
PHP
<?php
|
|
|
|
if (!defined('GAME')) {
|
|
die();
|
|
}
|
|
/*
|
|
Ïðèåì: Ñòàòèêà.
|
|
*/
|
|
$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;
|
|
echo '<b style="color: red">Íà ïåðîñíàæå óæå åñòü ñòàòèêà.</b>';
|
|
} else {
|
|
$this->addEffPr($pl, $id);
|
|
|
|
$prv['color2'] = '0af';
|
|
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], null);
|
|
$prv['text2'] = '{tm1} ' . $prv['text'];
|
|
$btl->priemAddLog($id, 1, 2, $u->info['id'], $this->ue['id'],
|
|
'<font color^^^^#' . $prv['color2'] . '>Ñòàòèêà</font>',
|
|
$prv['text2'],
|
|
($btl->hodID)
|
|
);
|
|
}
|
|
unset($pvr);
|