The online racing simulator
Restrictions
(6 posts, started )
Restrictions
Hi Guys

I want to put a restriction on a car on my server im just wondering ohw do i make it so people have to use a restricted car a bit like ctra do.

A
#2 - J@tko
Use LFS Lapper. There's a restriction erm, restriction somewhere in it
does anyone know what to type and where in the code file to make the lapper only allow people using the restriction. I was a 10% air intake restricion.

A
#4 - J@tko
Upload your lfs lapper config file and I'll point it out to you
Quote from Ashley Williams :does anyone know what to type and where in the code file to make the lapper only allow people using the restriction. I was a 10% air intake restricion.

A


###########
#Handicaps#
###########
#You can specify 3 levels of handicap : for car, for car and track, for user
#Priority Level low to hight : HandicapCars, HandicapCarsTracks, HandicapUser
#-------------------------------------------------------------------
#Handicap cars
#
#Syntax :
#
#$HandicapCars = "car:mass:irest,car:mass:irest,...,car:mass:irest";
#
#car : LFS short car name
#mass : mass handicap in kg
#irest : Air intake restriction in percent
#-------------------------------------------------------------------
#Handicap cars/tracks
#
#Syntax :
#
#$HandicapCarsTracks = "car/track:mass:irest,car/track:mass:irest,...,car/track:mass:irest";
#
#car : LFS short car name
#track : LFS short track name
#mass : mass handicap in kg
#irest : Air intake restriction in percent
#-------------------------------------------------------------------
#$HandicapUser # a list of players and their handicap
# # if you prefix with & , You can indicate a file name that contains a list of racers, one racer per line
# # if you prefix with @, You can list username separated with ,
#
#Syntax :
#
#$HandicapUsers = "&./your_file";
#$HandicapUsers = "@userName:mass:irest,userName:mass:irest,...userName:mass:irest";
#
#$RefreshHandicapUsers # allow Lapper to refresh HandicapUsers on each player leaving pits
# Usefull if HandicapUsers is a file and is updated frequently by an external program
#-------------------------------------------------------------------

$HandicapCars = "XFG:0:10"; <----

#$HandicapCarsTracks = "XFG/BL1:100:10,XRT/AS1:50:10";

#$RefreshHandicapUsers = true;
#$HandicapUsers = "&./your_hand.flt";
#$HandicapUsers = "@Gai-Luron:100:20,gwendoline:100:30,_-ALUCARD-_,lagamel:50:10,lister88,c-quad,shimanofr,bruno7529,boby5,kevinb,edgar,berlioz,la tortue,neron59,eur-can,stff,2psbob,oliv76000";

# Actions to execute, when the handicap of a player is below specified HandicapUsers
# Possible variables to use:
#
#$Nickname - Nickname of driver
#$Username - Username of driver
#$H_Mass - User mass required
#$H_TRes - User Intake restriction required

Event OnToLowHandicap()
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to low handicap" );
cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!");
EndEvent

<---- use the car code you want and you're ready to go.
i tried that and i couldnt get it to work but either way i dont need it now thanks very much for your help.

A

Restrictions
(6 posts, started )
FGED GREDG RDFGDR GSFDG