+---------------------------------------------------------------+
|Changes from 7.0.9.3 to 7.0.9.4
+---------------------------------------------------------------+
=================================================
New:
=================================================
1: New Discord Feature MentionDiscordUser()
$DiscordChannelID = "123456789";
$DiscordUserID = "123456789";
MentionDiscordUser($DiscordChannelID,$DiscordUserID);
2: New Function: GetListOfDirectories();
#Get list of directories
$ListOfDirectories = GetListOfDirectories("");
#Get NumberOfDirectories
$DirCount = $ListOfDirectories["NumberOfDirectories"];
#Get through all the directories
FOR($i = 0; $i < ToNum($DirCount); $i = $i + 1)
$NameOfDir = $ListOfDirectories[$i,"DirName"];
$CreationDateOfDir = $ListOfDirectories[$i,"DirCreated"];
$LastAccessedOfDir = $ListOfDirectories[$i,"DirAccessed"];
privmsg("NameOfDir: ".$NameOfDir);
privmsg("CreationDateOfDir: ".$CreationDateOfDir);
privmsg("LastAccessedOfDir: ".$LastAccessedOfDir);
ENDFOR
3: New Function: SetPlayerHandicap(); LFS Version (Client & Host) D50 or higher
Set handicaps for multiple players at once, only when the player is On Track
UserName are capital sensitive.
Mass value 0 - 200
Intake value 0 - 50
SetPlayerHandicap("UserName1:Mass:Intake,UserName2:Mass2:Intake");
SetPlayerHandicap("Bass-Driver:200:50,finland69:100:10");
4: New Function: GetListPlayerHandicap(); LFS Version (Client & Host) D50 or higher
This function executes Event: OnPlayerHandicap(), see below
5: New Event: OnPlayerHandicap(); LFS Version (Client & Host) D50 or higher
#Event will execute when the players handicap has been changed by command or by insim: SetPlayerHandicap()
#LFS Commands:
#/h_mass username X - set added mass for user's car
#/h_tres username X - set restriction for user's car
#$userName = Username of player
#$Flags: 1 = Mass Changed
#$Flags: 2 = Intake Changed
#$Flags: 3 = Both Handicaps Changed
$H_Mass = Current value mass
$H_Tres = Current value Intake restriction
Event OnPlayerHandicap( $userName,$Flags,$H_Mass,$H_Tres) # Player event
globalmsg("Handicap has been changed");
globalmsg("UserName: ".$userName);
globalmsg("Flags: ".$Flags);
globalmsg("Intake Res: ".$H_Tres);
globalmsg("Mass: ".$H_Mass);
EndEvent
=================================================
Update:
=================================================
1: New buttonfunction: Display button in garage.
I've been looking to display the button in the garagemenu
I think its a nice workaround without breaking the buttonfunctions.
Type the number 255 to the ButtonStyle parameter to display the button in the garage.
Example:
openPrivButton( "test",50,60,100,15,0,-1,32+64+255, "Test" );
=================================================
Fix:
=================================================
1: Potential fix for LFSlapper crash when modsystem isnt available from LFS.net
=================================================
Known Issues:
=================================================
1: No encoded characters in (clickable) textbuttons
$GetAngleInDegrees = GetAngle($userName,"-387:-635");
IF((ToNum($GetAngleInDegrees) > 80)&&(ToNum($GetAngleInDegrees) < 120))THEN
privmsg(>>>);
ENDIF
cmdLFS( "/p_clear " . GetCurrentPlayerVar( "UserName" ));
struct IS_NOX // Insim Node xTime
{
byte Size; // 15
byte Type; // ISP_NOX
byte ReqI; // 0
byte PLID; // player's unique id
word Node; //Node ID
byte Sp1; //Spare 2
byte Sp2; //Spare 3
byte Sp3; //Spare 4
unsigned Time; // hundredths of a second since start (as in SMALL_RTP)
};
<?php
IF (getcurrentplayervar("Heading") < 0)
THEN
PrivMsg("^T^7Araç Çevirme ^2Başarılı");
joinrequest($X_Axis , $Y_Axis , $Z_Axis , $Flags ,$Heading+180 , $UCID , $PLID ,$JRRAction); #Send Data to LFS
ELSE
PrivMsg("^T^7Araç Çevirme ^2Başarılı");
joinrequest($X_Axis , $Y_Axis , $Z_Axis , $Flags ,$Heading-179 , $UCID , $PLID ,$JRRAction); #Send Data to LFS
ENDIF
?>
<?php
IF (getcurrentplayervar("Heading") < 0)
THEN
PrivMsg("^T^7Araç Çevirme ^2Başarılı");
$NewHeading = ToNum($Heading) + 180;
joinrequest($X_Axis , $Y_Axis , $Z_Axis , $Flags ,$NewHeading , $UCID , $PLID ,$JRRAction); #Send Data to LFS
ELSE
PrivMsg("^T^7Araç Çevirme ^2Başarılı");
$NewHeading = ToNum($Heading) - 179;
joinrequest($X_Axis , $Y_Axis , $Z_Axis , $Flags ,$NewHeading , $UCID , $PLID ,$JRRAction); #Send Data to LFS
ENDIF
?>
Privmsg("X = ".$X_Axis);
Privmsg("Y = ".$Y_Axis);
Privmsg("Z = ".$Z_Axis);
Privmsg("Heading = ".$Heading);
Privmsg("PLID = ".$PLID);
Privmsg("UCID = ".$UCID);