'./PBgrip' instead of './Databases/PBgrip'.
#GlobalVar $TrafficLightFolder; $TrafficLightFolder = "C:\Users\Danny\Desktop\SavedTrafficLights";
<?php
$list = GetListTop( $TopCarList, $flagQual, $flagNear );
# GetListTop is hard coded for 24 results, so we go through the first 18 , because we have no more space
FOR( $i = 0; $i < 18; $i = $i + 1)
# Only show the line if it has a valid username
IF ( $list[$i,"UserName"] != "") THEN
IF( ToLower( $currUName ) == ToLower( $list[$i,"UserName"] ) ) THEN
$bStyle = ISB_LIGHT;
ELSE
$bStyle = ISB_DARK;
ENDIF
$topOrigT = $topOrigT + $topRowHeight; # Go down to the next printable row
openPrivButton ($DialogPrefix . "toppos_" . $i,$topOrigL,$topOrigT,10,$topRowHeight,1,-1,$bStyle, "^7" . $list[$i,"Pos"]);
openPrivButton ($DialogPrefix . "topcar_" . $i,$topOrigL+10,$topOrigT,10,$topRowHeight,1,-1,$bStyle, "^7" . $list[$i,"CName"]);
openPrivButton ($DialogPrefix . "topnick_" . $i,$topOrigL+20,$topOrigT,35,$topRowHeight,1,-1,ISB_LEFT + $bStyle, "^7" . $list[$i,"NickName"]);
IF ($list[$i,"PbLapTime"] > 3599000) THEN
$colpb = ((3600000 - $list[$i,"PbLapTime"]) / 10) . "/" . GetConfigVar( "LapTimeUsedForPb" ) + langEngine( "%{built_lapsdone}%" );
$colpos = "-";
ELSE
$colpb = NumToMSH( $list[$i,"PbLapTime"] );
ENDIF
openPrivButton ($DialogPrefix . "toppb_" . $i,$topOrigL+55,$topOrigT,15,$topRowHeight,1,-1,$bStyle, "^7" . $colpb);
$colsplit = "";
FOR( $k = 0; $k < 3; $k = $k +1 )
$SplitTime = $list[$i,"SplitTime".$k];
IF ($SplitTime != 0) THEN
IF ( $colsplit != "" ) THEN
$colsplit = $colsplit . "/" . NumToMSH($SplitTime);
ELSE
$colsplit = NumToMSH($SplitTime);
ENDIF
ENDIF
ENDFOR
openPrivButton ($DialogPrefix . "topsplits_" . $i,$topOrigL+70,$topOrigT,28,$topRowHeight,1,-1,$bStyle, "^7" . $colsplit);
ENDIF
ENDFOR
?>
$list = getlisttop( "UF1", FALSE,FALSE ); #TopList of racetimes
$list = getlisttopuser("StoredValue",DESC,FALSE,"1" ); #TopList for stored values.
$list = getlisttopdrift("XRT",FALSE,FALSE ); #TopList of Driftscores.
DoMyUserTop( "UF1",DESC,FALSE,"" );
DoMyUserTop( "UF1","DESC",FALSE,"" );
drf() / drfnear() / top()/ topnear()
<?php
neartop() = DoMyUserTop( UF1,DESC,TRUE,1);
drf(XRT) = DoMyDriftTop( XRT,FALSE,FALSE);
drf(19_36) = DoMyDriftTop( 19,FALSE,FALSE);
drfnear(XRT) = DoMyDriftTop(XRT,FALSE,TRUE);
?>
V2.5.1 (26-07-2021)
New : [TimeTable] ToggleButton to Memorize Car/Username filter.
Update: [Commands] !showstats display your stats to everyone in the server
!stats<user> display stats of a player in the server
V2.5.2 (27-07-2021)
Update: [HelpMenu] Added list of Ranks
Update: [Commands] !stats or !stats <user> can be used now.
!stats = Globalmessage of your stats
!stats <user in server> = private message of userstats
Fix: Button overlap in !times when clicking on clicking between the stages
Removed: [Commands] !showstats
New TimeAttack insim update:
V2.5 (25-07-2021)
**New: New Layout **
-Powered by the new LFSLapper Insim Teleport System
-Build by Bass-Driver(Dan190NL) and Dlocky
-6 stages
-Easy/Medium Difficulty
-Short or Medium TimeLength
**New: Teleport System V1.**
-It teleports you to the correct stage or back to the Central Area.
-Timer set to 3 seconds before it teleports you.
-Warning message to leave the spawn location ASAP
-AutoX Light to indicate the status of the spawn location.
**New: Message what todo when you join the track**
V2.4(14-07-2021)
-Add: [TimeTable]: WR list button. Displays list with the current WR times
-Add: [HUD] : Report button.
-Update: [Live Timing] Updated buttons with sector/total timedifference
-Update: [HUD] : StageProgress percentage next to the sector counter
-Fix: [Sectors] :Prevent skipping sectors, will now count as a invalid run.
-Fix: [HUD]: Cursor shows when splitspeed is being displayed to the player.
-Delete: Some startsequence code.
+---------------------------------------------------------------+
|Changes from 7.0.7.2 to 7.0.8.0
+---------------------------------------------------------------+
=================================================
New:
=================================================
1: New PlayerVar: "CarConfig"
GetCurrentPlayerVar("CarConfig");
// Configuration (Config byte)
// UF1 / LX4 / LX6 : 0 = DEFAULT / 1 = OPEN ROOF
// XRR / FZR : 0 = DEFAULT / 1 = DRIFT / RX
// FXR : 0 = DEFAULT / 1 = RX
2: New PlayerVar: "FrontWheelAdj" When Alternate setup config has been chosen.
Tyre width reduction (front)
3: New PlayerVar: "RearWheelAdj" When Alternate setup config has been chosen.
Tyre width reduction (rear)
4: New event: OnBlueFlag();
OnBlueFlag($userName,$userNameBehind,$Time)
$userName = Player were the blueflag is ment for
$userNameBehind = faster Player behind $userName
$Time = Time of flag
5: New event: OnYellowFlag();
OnYellowFlag($userName,$State,$Time)
$userName = Player that is causing the yellowflag
$State = Yellowflag 1 or 0 (on/off)
$Time = Time of flag
6: New PlayerVar: "Fuel" Display the fuel amount in percent "%" After player left the pit.
IF /showfuel=yes ELSE value = -1
7: New PlayerVar: "PitFuel" Display the fuel amount in percent "%" that is being add during a pitstop.
IF /showfuel=yes ELSE value = -1
=================================================
Changed:
=================================================
1: Maxlaptime that will be stored to the database have been increased from 30 to 90 minutes, for really long layouts.
2: [TEST] Record ID of Grip/Drift Database will now be shown in DumpVar(); for certain Car/track requests.
$list = GetListTop( getConfigVar( DefaultTopCar ), 0, 0 );
IF ( getConfigVar( DefaultTopCar ) == "XFG" )
THEN
dumpVar ( $list );
ENDIF
3: PlayerVar: "Fuel" : remaining fuel percent "%", will set when acrossing a split or completing a lap.
4: [Discord] Set multiple channels for sending texts to LFSLapper:
-open MyInc.LPR
You are allowed to set 5 channels, seperate them with a comma ",". see example below.
-$DiscordChannelReceive = "0000000000,0000000000,0000000000";
5: [Discord] Changed $DiscordUName to $UName.
6: [Discord] Added $UNameID into OnReceiveDiscordMessage():
7: [Discord] Event OnReceiveDiscordMessage()
-Number of arguments has been changed: OnReceiveDiscordMessage($ChannelID,$ChannelName,$UNameID,$UName,$Text)
=================================================
Fix:
=================================================
1: Wrong amount of arguments send to Event: OnPlayerSelectCar
2: Performance issues due to windows updates.
Removed some functions: Thread.Sleep(); this functions seems to malfunction on some PC's
3: Lappercrash when clicking on one of the layouts in the layoutlist.
4: Layoutlist didnt load the layout files properly into the list.
5: Lappercrash when a player using the JoinRequest function while being retired on the track.
=================================================
Removed:
=================================================
1: Event OnPlayerFlags();