Init.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if( $itm['magic_inci'] == 'enternizin' ) {
|
||||
|
||||
|
||||
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
if( $u->info['room'] == 447) {
|
||||
$u->error = '<font color=red><b>Âû è òàê â ýòîé êîìíàòå, íåò ñìûñëà èñïîëüçîâàòü ñâèòîê.</b></font> ';
|
||||
}else{
|
||||
|
||||
mysql_query('UPDATE `users` SET `room` = 447 WHERE `users`.`id` = "'.$u->info['id'].'" LIMIT 1;');
|
||||
mysql_query('DELETE FROM `items_users` WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
$u->error = '<font color=red><b>Ñâèòîê óäà÷íî èñïîëüçîâàí</b></font> ';
|
||||
}
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
||||
unset($pvr);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user