<?php
public function onPrismError($errno, $errstr)
{
$MTC = new IS_MTC;
$MTC->UCID(255)->Text('^1ERROR: ^7['.$errno.'] '.$errstr)->Sound(4)->Send();
}
public function onPrismClose()
{
$MTC = new IS_MTC;
$MTC->UCID(255)->Text('^1FATAL ERROR. Restarting...')->Sound(4)->Send();
Cruise::sqlSaveAll();
}
public function __construct()
{
#PHP Stuff
set_error_handler(array($this, 'onPrismError'));
register_shutdown_function(array($this, 'onPrismClose'));
?>
<?php
public function tmrMsgGoAway($argv)
{
list($UCID, $number) = $argv;
/* Remove all welcome BTNs from screen */
return PLUGIN_STOP;
}
?>
<?php
public function tmrMsgGoAway($argv)
{
$UCID = $argv[1]; $number = $argv[2];
/* Remove all welcome BTNs from screen */
return PLUGIN_STOP;
}
?>
<?php
CASE "!red":
$NickName = GetCurrentPlayerVar("NickName");
$NickStrip = StripLFSColor( ToLower($NickName))
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag!= -1 )
THEN
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag != -1 )
THEN
$argv1 = substr( $argv,0,30 );
IF( strlen($argv) > 30 )
THEN
$argv2 = substr( $argv,30,strlen($argv) );
ENDIF
IF( $argv2 != "" )
THEN
IF( strlen($argv2) > 30 )
THEN
$argv3 = substr( $argv,strlen($argv2),strlen($argv) );
ENDIF
ENDIF
PrivMsg( $maVar["value"], "^1[r] " . GetCurrentPlayerVar( "UserName" ) . " ^8: ^2" . $argv1 );
IF( $argv2 != "" )
THEN
PrivMsg( $maVar["value"], "^1[r] " . GetCurrentPlayerVar( "UserName" ) . " ^8: ^2" . $argv2 );
ENDIF
IF( $argv3 != "" )
THEN
PrivMsg( $maVar["value"], "^1[r] " . GetCurrentPlayerVar( "UserName" ) . " ^8: ^2" . $argv3 );
ENDIF
ENDIF
ENDFOREACH
ENDIF
ENDIF
BREAK;
?>
int Jobnum = new Random.Next(1, 8);