The online racing simulator
#1 - A z
need help with script disable cars



hello friends ..

i have lfs lapper v6.0.1.4

and i have a reg_system for ports but there is more then glitch
the players can join to race with out sign in
i believe in the script
i think if i have the script , ill not see more glitch's
i need this script :
photo link : https://d56i.imgup.net/efc10ce1-be935.jpg
i need disable cars script
and thank you <3

Attached images
efc10ce1-b2d0-4344-97f1-5d219aaa05d0.jpg
0.6H..... "2002 - 2015"

"... players can join to race without sign in"

Don't tell me...... crack..?

edit : huh?
@A z: we have been sending alot of messages between us and while I gave you a lot of instructions about what to do and probably solve your issue, you fail to respond to this. See the instructions I gave you and answer the questions I gave you. Thread closed.
EDIT: MADE THIS POST TO LATE

Hello,

It is possible to disable cars for each player.
  • First you have to download LFSLapper V7.0.4.4

  • -Look for the following Event (Onconnect) in the LFSLapper.LPR
    this event will execute everytime when a new player connects to the server.
Event OnConnect( $userName ); #Player joined the server
EndEvent
  • Than add the lines of code into the event:

$Cars = XFG+XRG+FBM; #Cars that will be allowed for this user.
AllowedPlayerCars($UserName,$Cars); #Function that set the allowed cars for this user
  • Your event shall look like this
#Note: this is just an example

<?php 
Event OnConnect
$userName ); #Player joined the server
      
$Cars XFG+XRG+FBM#Cars that will be allowed for this user.
      
AllowedPlayerCars($UserName,$Cars); #Function that set the allowed cars for this user     
EndEvent
?>


Quote from A z :


Hello again

i just update the lapper and take the script and its work but ..

the problem the player after sign in the cars stay disable

can i disable the cars for the players who did not sign in ?
after sign in can show the cars ?

and thank you again <3

Questions:

-What kind of script are you using?
-Why disabling cars if you could kick the user from the server?

To disable/enable Playercars: https://www.lfs.net/forum/post/1920550#post1920550

The problem you might have, is that the developer of the script you are using, need to be edited. Which takes some time.
He using crack server Wink
and he want close the cars from any new guest to can't join to race.

I believe that this act is not allowed.

And please don't try steal any more spec from my server ^_^"

Thanks all.
#8 - A z
Quote from Bass-Driver : Questions:
-What kind of script are you using?

i use this script for the glitch's i don't want any glitch's in room
Quote from Bass-Driver :
-Why disabling cars if you could kick the user from the server?

some time's can join to server with out sign in & no admin
i'm use cruise server [TC] if you can join whit out sign in you can take any car
if you can give me the script to show cars after sign in that's good

Quote from iHozat :
And please don't try steal any more spec from my server ^_^"
Thanks all.

yes i use crack server & i don't steel any thing please if you can help tell me if you can't don't see any thing again .

thanks .
Quote from A z :yes i use crack server & i don't steel any thing please if you can help tell me if you can't don't see any thing again.

This is enough reason to close this topic.
This thread is closed

need help with script disable cars
(9 posts, closed, started )
FGED GREDG RDFGDR GSFDG