HandBrake System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HandBrake System (
/showthread.php?tid=593417)
HandBrake System -
VincenzoDrift - 05.11.2015
Hi, I would like to create a handbrake system for cars. So I would create a script that controls the angle of the car and if it is greater or less than 0, the car begins to fall. The problem is that the function SetPlayerVelocity works only for the vehicle in which there is a player. Is there a way to make moving a vehicle unoccupied?
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
Sorry for my bad english
Re: HandBrake System -
Karan007 - 05.11.2015
PHP код:
for(new i; i < MAX_VEHICLES i++){
if(!IsPlayerInVehicle(i, i)){ // Check if a player is in the vehicle
SetVehicleVelocity(i, X, Y ,Z);}} // Put your coordinates @ X,Y,Z
Not sure for it to work.
Re: HandBrake System -
VincenzoDrift - 05.11.2015
SetVehicleVelocity has no affect on un-occupied vehicles
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
Re: HandBrake System -
JaKe Elite - 05.11.2015
There is no other way to do it, SetVehiclePos would look terrible doe.