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

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 = 'Âàñ íàãðàäèëè Ñâåòëîé Ñêëîííîñòüþ';
}
?>