Hi! There is no problem when I am the only player on the server, the drift counter works, but when there are more than 6 members on the server, the drift counter does not work for some player. I also want to know the difference between catchevent and normal event.
<?php
$DriftDatabase = "Databases/DriftPB";
$RealTimeDriftScore = 1; #Turn on (1) /off (-1) realtime driftscoring . This may have effect on LFSLapper performance with many players on the server. (Default = -1)
$MinimumDriftSpeed = 10; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is resetx
$MaximumDriftAngle = 100; # Maximum angel to maintain. When angle is above value, score is reset
CatchEvent OnDriftScore( $userName ) # Player event
openPrivButton( "drfhud_DriftText",80,36,40,20,4,10,0,"^1DRIFT");
openPrivButton( "drfhud_TotalScore",80,48,40,20,4,10,0,"^7". ToNum(GetCurrentPlayerVar("DriftScore")));
SetCurrentPlayerVar("DriftSC", ToNum(GetCurrentPlayerVar("DriftScore")));
EndCatchEvent
CatchEvent OnDriftResetScore( $userName ) # Player event
openPrivButton( "drfhud_GetMoney",80,61,40,10,4,10,0,"^2+ Drift End");
privdelayedcommand(2, closedrifthud);
EndCatchEvent
Sub closedrifthud($KeyFlags)
closeprivbutton("drfhud_GetMoney&drfhud_TotalScore&drfhud_DriftText");
EndSub
?>