Thank you, working fine now.Found that variable in LFSLapper.lpr
<?php
$OnIdleTimeout1 = ToNum($TimeIdleWarning);
?>
Event OnLapperStart()
GlobalVar $Idlesystem;
GlobalVar $TimeIdle;
GlobalVar $TimeIdleWarning;
GlobalVar $IdleAction;
$Idlesystem = "on";
$TimeIdle = "600";
$TimeIdleWarning = "540";
$IdleAction = "spec";
EndEvent
$OnIdleTimeout1 = ToNum($TimeIdleWarning); # Idle timeout for OnIdleAction1 in seconds
Event OnIdle1( $userName ) # Player event
IF($Idlesystem == "on")
THEN
IF(GetCurrentPlayerVar( "OnTrack" ) == 1)
THEN
privMsg( "^7»Idling System Active");
IF($IdleAction == "spec")
THEN
privMsg( "^7»U will be spectated in ^3(^7".(ToNum($TimeIdle) - ToNum($TimeIdleWarning)) ."^3) ^7seconds");
ELSE
IF($IdleAction == "kick")
THEN
privMsg( "^7U will be kicked in ^3(^7" . (ToNum($TimeIdle) - ToNum($TimeIdleWarning)) . "^3) ^7seconds");
ENDIF
ENDIF
ENDIF
ENDIF
EndEvent
$OnIdleTimeout2 = ToNum($TimeIdle); # Idle timeout for OnIdleAction2 in seconds
Event OnIdle2( $userName ) # Player event
IF($Idlesystem == "on")
THEN
IF(GetCurrentPlayerVar( "OnTrack" ) == 1)
THEN
cmdLFS("/" .$IdleAction . " " . GetCurrentPlayerVar("NickName") );
privMsg( langEngine( "%{main_idle2}%" ) );
ENDIF
ENDIF
EndEvent
<?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,
}
?>