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

16 lines
457 B
PHP

<?
if(!defined('GAME'))
{
die();
}
if( $u->info['clan'] > 0 ) {
$u->error = 'Âû íàõîäèòåñü â êëàíå...';
}elseif( $u->info['align'] != 1 && $u->info['align'] != 3 && $u->info['align'] != 7 ) {
$u->error = 'Ó âàñ óæå íåò ñêëîííîñòè êîòîðóþ ìîæíî áûëî áû ñíÿòü.';
}elseif( $itm['id'] > 0 ) {
$u->deleteItem($itm['id']);
mysql_query('UPDATE `users` SET `align` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->error = 'Ó âàñ çàáðàëè ñêëîííîñòü';
}
?>