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

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 = 'Çàäåðæêà íà êëàíû óñïåøíî ñíÿòà!';
}
?>