SA-MP Forums Archive
Increase the maximum speed of a vehicle - 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: Increase the maximum speed of a vehicle (/showthread.php?tid=498558)



Increase the maximum speed of a vehicle - TheSy - 03.03.2014

Hello!

I have seen 2 functions on wiki:
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
https://sampwiki.blast.hk/wiki/SetVehicleVelocity

Allows you to retrieve and change the speed of a vehicle.

However what I'm trying to do:

To change the speed of a vehicle MAXIMUM, and https://sampwiki.blast.hk/wiki/SetVehicleVelocity it alters the timing or "for all time", for example if my Sanchez goes to 150 KM / H max descent, I want it can go to 200, you know? ^ ^

Thank you.


Re: Increase the maximum speed of a vehicle - TheSy - 04.03.2014

up....


Re: Increase the maximum speed of a vehicle - Stinged - 04.03.2014

I think this makes the car faster, use it when a player uses a command or presses a button.

pawn Код:
new Float:vX, Float:vY, Float:vZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vX * 1.8, vY *1.8, vZ * 1.8);



Re: Increase the maximum speed of a vehicle - TheSy - 04.03.2014

Nop...


Re: Increase the maximum speed of a vehicle - |gg|Vlado - 04.03.2014

You need to use OnPlayerUpdate...

Check this out:

https://sampforum.blast.hk/showthread.php?tid=179089
https://sampforum.blast.hk/showthread.php?tid=334339


Re: Increase the maximum speed of a vehicle - MayaEU - 21.06.2016

Thank you guys