21 lines
361 B
PHP
21 lines
361 B
PHP
<?php
|
|
|
|
if( !defined('GAME') ) {
|
|
die();
|
|
}
|
|
|
|
class botLogic {
|
|
|
|
public $bot = array( );
|
|
|
|
//Ïîëó÷åíèå èíôîðìàöèè î áîòå
|
|
public function botInfo( $id ) {
|
|
|
|
self::$bot = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.mysql_real_escape_string($id).'" LIMIT 1'));
|
|
if( !isset(self::$bot['id']) ) {
|
|
self::$bot = 'stop';
|
|
}
|
|
}
|
|
|
|
}
|
|
?>
|