<?php
if ($M == '!thetime' OR $M == 'thetime' OR $M == '!time' OR $M == 'time')
{
$MTC = new IS_MTC();
$MTC->PLID = ($p->PLID) ? $p->PLID : NULL;
$MTC->UCID = ($p->UCID) ? $p->UCID : NULL;
$MTC->Msg = 'The time is: ' . date('H:i:s') . ' server local time';
$this->sendPacket($MTC);
}
?>
<?php
switch ($M) {
case '!thetime': case 'thetime': case '!time': case 'time':
$MTC = new IS_MTC();
$MTC->PLID = ($p->PLID) ? $p->PLID : NULL;
$MTC->UCID = ($p->UCID) ? $p->UCID : NULL;
$MTC->Msg = 'The time is: ' . date('H:i:s') . ' server local time';
$this->sendPacket($MTC);
break;
}
?>
<?php
Global $something;
CASE "!test1":
$something = "blah";
example(0,$userName.$something);
BREAK;
CASE "!test2":
$something = "hahaha";
example(0,$userName.$something);
BREAK;
Sub example( $KeyFlags,$id )
$username = subStr( $current_car,0,StrLen($something) );#test 1 will have strlen of 4 test 2 will have 6
privmsg("your username: ".$username);
EndSub
?>
<?php
IF ( $Mode == "Cruise" )
THEN
Turn_Cruise_On( $userName );
ENDIF
?>
<?php
GlobalVar $Mode; $Mode = "Cruise";
?>
<?php
GlobalVar $Mode;
?>
<?php
GlobalVar $Mode; $Mode = "Cruise";
?>
<?php
Sub ControlType()
SetCurrentPlayerVar( "ControlType", "Wheel" );
$PitWork=splitToArray( GetCurrentPlayerVar("PlayerFlags")," " );
FOREACH( $maVar IN $PitWork )
IF ( $maVar["value"] == "Mouse" )
THEN
SetCurrentPlayerVar( "ControlType", "Mouse" );
ENDIF
IF ( $maVar["value"] == "KbStabilised" || $maVar["value"] == "KbNoHelp" )
THEN
SetCurrentPlayerVar( "ControlType", "Keyboard" );
ELSE
$IsNotBlank = 1;
ENDIF
ENDFOREACH
EndSub
?>
<?php
IF( GetCurrentPlayerVar("Mouse") == "1" ) THEN
GlobalMsg($userName." Is Using a Mouse");
ENDIF
?>