Minor Update CS2
This commit is contained in:
parent
07324f4d38
commit
669866b59c
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ class action extends actions
|
|||
$bots = $cfg['bots'][$server['game']] ? '' : '-nobots';
|
||||
|
||||
// TV
|
||||
$tv = $server['tv'] ? '+tv_enable 1 +tv_maxclients 30 +tv_port ' . ($port + 10000) : '-nohltv';
|
||||
$tv = isset($server['tv']) ? '+tv_enable 1 +tv_maxclients 30 +tv_port ' . ($port + 10000) : '-nohltv';
|
||||
|
||||
$check = explode('/', $server['map_start']);
|
||||
|
||||
|
@ -104,7 +104,7 @@ class action extends actions
|
|||
$mod = !$server['pingboost'] ? $mods[2] : $mods[$server['pingboost']];
|
||||
|
||||
// Параметры запуска
|
||||
$bash = './game/bin/linuxsteamrt64/cs2 -dedicated -condebug console.log -usercon -ip ' . $ip . ' -port ' . $port . ' -maxplayers ' . $server['slots_start'] . ' -tickrate ' . $server['tickrate'] . ' ' . $map . ' ' . $vac . ' ' . $bots;
|
||||
$bash = './game/bin/linuxsteamrt64/cs2 -dedicated -condebug console.log -usercon -ip ' . $ip . ' -port ' . $port . ' -maxplayers ' . $server['slots_start'] . ' -tickrate ' . $server['tickrate'] . ' ' . $map . ' ' . $vac . ' ' . $bots . ' ' . $tv;
|
||||
|
||||
// Временный файл
|
||||
$temp = sys::temp($bash);
|
||||
|
|
|
@ -124,7 +124,7 @@ class scan extends scans
|
|||
|
||||
$data = $sq->GetInfo();
|
||||
|
||||
$map = explode('/', $data['Map']);
|
||||
$map = explode('/', $data['Map'] ?? '');
|
||||
|
||||
$server['name'] = $data['HostName'];
|
||||
$server['map'] = end($map);
|
||||
|
|
Loading…
Reference in a new issue