<?php
RegisterZoneAction( "Clip1", "BL1" , 236, 447, 3 , EnterClip1, ExitClip1 );
?>
<?php
$OnIdleTimeout1 = $TimeIdleWarning; # Idle timeout for OnIdleAction1 in seconds
?>
<?php
$OnIdleTimeout1 = 120; # Idle timeout for OnIdleAction1 in seconds
$OnIdleTimeout2 = 240; # Idle timeout for OnIdleAction2 in seconds
CatchEvent OnLapperStart()
GlobalVar $Idlesystem;
GlobalVar $TimeIdle;
GlobalVar $TimeIdleWarning;
GlobalVar $IdleAction;
$Idlesystem = "on";
$TimeIdle = 600;
$TimeIdleWarning = 540;
$IdleAction = "spec";
$OnIdleTimeout1 = $TimeIdleWarning; # Idle timeout for OnIdleAction1 in seconds
$OnIdleTimeout2 = $TimeIdle; # Idle timeout for OnIdleAction2 in seconds
EndCatchEvent
?>
<?php
enum configVarReadWrite
{
adminfile,
adminemail,
smtpserver,
loginmail,
passmail,
messagetime,
showplayercontrol,
defaulttopcar,
swearwordslist,
swearwordsmax,
handicapusers,
swapside,
autogears,
shifter,
helpbrake,
axisclutch,
autoclutch,
mouse,
kbnohelp,
kbstabilised,
customview,
votelifesec,
voterestart,
votequalify,
voteend,
autorestartracesec,
autorestartonfirstfinished,
rotateeverynbraces,
enablerotation,
rotatetracks,
rotatecars,
showsplitpb,
refreshqualusers,
qualusers,
maxfloodlines,
maxfloodlinestime,
maxsessionlaps,
minanglevelocity,
maxnbinstunt,
maxallowedlaptime1,
maxallowedlaptime2,
onidletimeout1,
idleexclude,
onidletimeout2,
gooddriftscore,
minimumdriftscore,
minimumdriftspeed,
minimumdriftangle,
maximumdriftangle,
accelerationstartspeed,
accelerationendspeed,
accelerationstartspeedmph,
accelerationendspeedmph,
accelerationprivatemaxtime,
maxfastdriveonpit,
pitwindowstart,
pitwindowstop,
maxcarresets,
reordergrid,
}
?>
<?php
CREATE TABLE fi_user_value (
idUserValue INTEGER PRIMARY KEY NOT NULL DEFAULT '',
key CHAR( 50 ),
userName CHAR( 20 ),
nickName CHAR( 20 ),
nickNameStripped CHAR( 20 ),
numval INTEGER,
strval CHAR(50)
)
?>
<?php
$OnIdleTimeout1 = ToNum($TimeIdleWarning);
?>
<?php
RegisterZoneAction( "BL1" , -60,106, 5 , FuncOnEnter, FuncOnExit);
?>
<?php
public void getlistofplayers(GLScript.unionVal val, ArrayList args)
{
string ident = val.nameFunction;
ArrayList lply = new ArrayList();
val.typVal = GLScript.typVal.setOfVar;
val.setVars = new GLScript.SetOfVars( );
foreach (DictionaryEntry de in listOfPlayers.playersUCID)
{
InfoPlayer CI = (InfoPlayer)de.Value;
if (CI.UCID == 0)
continue;
lply.Add(new LOP(CI.userName, Utils.stripLFSColor( CI.nickName )));
}
lply.Sort(new sortByUName());
if (args.Count == 1)
{
string sort = (string)args[0];
if (sort.ToLower() == "n")
lply.Sort(new sortByNName());
}
for (int i = 0; i < lply.Count; i++)
{
val.setVars.Set(i.ToString(), new GLScript.unionVal(0, Utils.quote((lply[i] as LOP).userName), GLScript.typVal.str));
}
}
?>
<?php
// Setup flags (for SetF byte)
#define SETF_SYMM_WHEELS 1
#define SETF_TC_ENABLE 2
#define SETF_ABS_ENABLE 4
?>
<?php
public NPL(byte[] pak)
{
PLID = pakGetByte( pak, 3);
UCID = pakGetByte( pak, 4 );
PType = pakGetByte( pak, 5 );
Flags = pakGetWord(pak, 6);
nickName = pakGetString(pak, 8, 24);
Plate = pakGetString(pak, 32, 8);
CName = pakGetString(pak, 40, 4);
SName = pakGetString(pak, 44, 16);
TyreRearLeft = (tyre)pakGetByte(pak, 60 );
TyreRearRight = (tyre)pakGetByte(pak, 61);
TyreFrontLeft = (tyre)pakGetByte(pak, 62);
TyreFrontRight = (tyre)pakGetByte(pak, 63);
H_Mass = pakGetByte(pak, 64);
H_TRes = pakGetByte(pak, 65);
Pass = pakGetByte(pak, 67);
// SetF should be read here!!!!
NumP = pakGetByte(pak, 73);
}
?>
<?php
Event OnPB( $userName ) # Player event
# globalMsg( langEngine( "%{main_onnewpb}%" , GetCurrentPlayerVar("NickName"), GetCurrentPlayerVar("Car"),NumToMSH(GetCurrentPlayerVar("LapTime")) ) );
# globalMsg( langEngine( "%{main_onnewpb_rank}%" ,GetCurrentPlayerVar("PosAbs") ) );
privMsg( langEngine( "%{main_onnewpb_sesslaps}%" , GetCurrentPlayerVar("SessLaps") ) );
privMsg( langEngine( "%{main_onnewpb_servlaps}%" , GetCurrentPlayerVar("Laps") ) );
privMsg( langEngine( "%{main_onnewpb_avgspeed}%" ,ToPlayerUnit( GetCurrentPlayerVar("AvgSpeed") ),GetCurrentPlayerVar("UnitSpeed") ) );
privRcm( langEngine( "%{main_onnewpb_rank2}%" ,GetCurrentPlayerVar("Car"),GetCurrentPlayerVar("PosAbs") ) );
EndEvent
?>
<?php
6/3/2011 4:26:28 PM -> Syntax error in cfg file "./cif/config_event.lpr" at line #179
'THEN' needed
Function 'raceeventinit' script aborted
?>