Posts: 811
Threads: 140
Joined: May 2013
Reputation:
0
How I can make if some one not close to the vehicles so he cant enter the vehicle
As Passenger and Even As Driver if he is not close to the vehicle Door..?
Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
I don't understand what do you mean...
Posts: 811
Threads: 140
Joined: May 2013
Reputation:
0
Like You see People Teleport Vehicles which are near to them and they are getting inside that vehicle as Drive..
So I want if some budy try to teleport vehicle he unable to teleport it.
I want he is far from the vehicle he cant teleport that that. any budy who are close to vehicle
only he can sit inside it as driver or as passenger.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Get the coordinates of the vehicle, and check if the player is in a certain range with IsPlayerInRangeOfPoint, if he's too far away, then use GetPlayerPos, and use SetPlayerPos to his own position, which will make him stop.
EDIT: Just saw your new post, there's an include or something against that, i can't find it again though.
Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
You mean when players try to enter the vehicle while the vehicle moving far away, they enter the vehicle, is this what do you mean?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
So what's the problem in that script?
Posts: 811
Threads: 140
Joined: May 2013
Reputation:
0
where should I use these codes Under OnPlayerEnterVehicle?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Yes, use it under OnPlayerEnterVehicle.
Posts: 811
Threads: 140
Joined: May 2013
Reputation:
0
Is This Code Stop The Car Teleporting thing? which I maked?