The online racing simulator
[Solved] LFSLapper: Player Lag flag
How to show lfslapper player lag
There's an event named 'OnPlayerFlags'.
See the code below. You can find it in LFSLapper.LPR

##########################################################################################
#Action on Event when player receives a Flag (Yellow/Blue flags and Lag/Missing packets).
##########################################################################################
# The Flags below returns 1 or 0 depends on which flag is received by the user
#$YellowFlag: Player receives a YellowFlag
#$BlueFlag : Player recieves a BlueFlag
#$LagFlag : Player is lagging or is missing carpackets
#$Time : ShortTimeFormat,same as GetLapperVar("ShortTime");

##########################################################################################

$PlayerFlagEvent = -1; #Enable Event 1 = ON / -1 = OFF
Event OnPlayerFlags($userName,$YellowFlag,$BlueFlag,$LagFlag,$Time) # Player event
#your code here
EndEvent

** Best answer **
$PlayerFlagEvent = 1;
Event OnPlayerFlags($userName,$YellowFlag,$BlueFlag,$LagFlag,$Time)
IF( $LagFlag == 1)
THEN
PrivMsg("^1You're driving a delay!");
Endif
EndEvent
This: $PlayerFlagEvent = -1;
Should be this: $PlayerFlagEvent = 1;

Otherwise the event is disabled as can be seen in the syntax posted by Bass-Driver.
-
(CanerYilmaz0) DELETED by CanerYilmaz0
This thread is closed

FGED GREDG RDFGDR GSFDG