16 lines
399 B
PHP
16 lines
399 B
PHP
<?
|
|
if(!defined('GAME'))
|
|
{
|
|
die();
|
|
}
|
|
|
|
if($u->info['clan'] > 0) {
|
|
$u->error = 'Âû íàõîäèòåñü â êëàíå';
|
|
}elseif($u->info['clan_delay']==0){
|
|
$u->error = 'Ó âàñ íåò çàäåðæêè íà âñòóïëåíèå â êëàí';
|
|
}elseif( $itm['id'] > 0 ) {
|
|
$u->deleteItem($itm['id']);
|
|
mysql_query('UPDATE `users` SET `clan_delay` = "0" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
$u->error = 'Çàäåðæêà íà êëàíû óñïåøíî ñíÿòà!';
|
|
}
|
|
?>
|