function gamestateupdate() { if (eval(__MAGIC__)) { return $___RET_VALUE; } $chprocess(); eval(import_module('sys', 'gameflow_antiafk')); if ($gamestate >= 40 && $now > $afktime + $antiAFKertime * 60) { //判定自动反挂机 antiAFK(); $afktime = $now; } }
systemputchat($now, 'comboupdate', $combonum); } $ginfochange = true; } // if((($gamestate == 30)&&($alivenum <= $combolimit))||($deathlimit&&($gamestate < 40)&&($gamestate >= 20)&&($deathnum >= $deathlimit))) {//判定进入连斗 // $gamestate = 40; // //save_gameinfo(); // //$db->query("UPDATE {$tablepre}players SET teamID='',teamPass='' WHERE type=0 "); // addnews($now,'combo'); // systemputchat($now,'combo'); // $ginfochange = true; // } if ($gamestate >= 40 && $now > $afktime + $antiAFKertime * 60) { //判定自动反挂机 include_once GAME_ROOT . './include/system.func.php'; antiAFK(); $afktime = $now; //echo 'afk'; //save_gameinfo(); $ginfochange = true; } if ($gamestate >= 40) { if ($alivenum <= 1) { include_once GAME_ROOT . './include/system.func.php'; gameover(); // testlog('游戏结束'); } } if ($ginfochange || $lostfocus) { save_gameinfo(); }