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