Actually it's $PRISM->hosts->getStateById($HostID)->State , but you got me looking in the right direction.
<?php
class Msg2Lfs
{
public $PLID = 0;
public $UCID = 0;
public $Text = '';
public $Sound = SND_SILENT;
public function __construct($text = '')
{
$this->Text = $text;
return $this;
}
public function &__call($name, $arguments)
{
if (property_exists(get_class($this), $name))
$this->$name = array_shift($arguments);
return $this;
}
public function send($hostId = NULL)
{
if ($this->Text == '') { return; }
global $PRISM;
// Decide what IS packet to use to send this message
if (($PRISM->hosts->getStateById($hostId)->State & ISS_MULTI) === 0)
{
// Single player
IS_MSL()->Msg($this->Text)->Sound($this->Sound)->send();
}
else
{
// Multi player
if ($this->UCID > 0)
IS_MTC()->UCID($this->UCID)->Text($this->Text)->Sound($this->Sound)->send();
else if ($this->PLID > 0)
IS_MTC()->PLID($this->PLID)->Text($this->Text)->Sound($this->Sound)->send();
else
IS_MSX()->Text($this->Text)->send();
}
return $this;
}
}; function Msg2Lfs() { return new Msg2Lfs; }
?>
<?php
IS_MTC()->PLID($CompCar->PLID)->Text('You are ^1off^9 the track!')->Send();
?>
<?php
Msg2Lfs()->PLID($CompCar->PLID)->Text('You are ^1off^9 the track!')->Send();
?>
<?php
public function onMsgOut(IS_MSO $MSO)
{
$MSO->Msg->toUTF8(); // Converts to UTF-8
$MSO->Msg->toUTF8(); // Converts to UTF-16
$MSO->Msg->toHTML(); // To HTML string.
$MSO->Msg->toLFS(); // To LFS String
$MSO->Msg->Strip(); // Remove all colors.
$MSO->Msg->Wrap(80); // Word Wrap at the 80th Char.
}
?>
if ($trackType != 'X' OR $trackType != 'Y')
return; # Not a open layout where we need to check for custom pth files.
<?php
if ($trackType == 'X' OR $trackType == 'Y')
?>
<?php
php
define('ROOTPATH', dirname(realpath(__FILE__)));
require('./modules/prism_pth.php');
$pth = new PTH('./data/pth/BL1.pth');
$pth->drawPath('./BL1.png');
?>
<?php
126: $im = imagecreatetruecolor(2560, 2560);
?>
<?php
139: $dlx2 = ($p->Nodes[$i]->DirX * $LeftCos - (-$p->Nodes[$i]->DirY) * $LeftSin) * $p->Nodes[$i]->DriveLeft + ($p->Nodes[$i]->CenterX + 1024);
?>
<?php
if ($trackType == 'X' OR $trackType == 'Y')
return; # Not a open layout where we need to check for custom pth files.
?>
<?php
# Is a open layout where we need to check for custom pth files.
?>