SA-MP Forums Archive
Modifying speed - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Modifying speed (/showthread.php?tid=163550)



Modifying speed - matejdro - 27.07.2010

Is there any way to modify speed of player or vehicles?


Re: Modifying speed - Kar - 27.07.2010

yep in your gtasa files you can modify your vehicle speed.

i cant remember about players but you need to download the sa handling tool to edit the gta files btw or your effed.


Re: Modifying speed - matejdro - 27.07.2010

Yes but i want to modify it from server. So everyone gets faster stuff.


Re: Modifying speed - John_F - 27.07.2010

setvehiclevelocity sets the speed of a vehicle
wiki:
https://sampwiki.blast.hk/wiki/SetVehicleVelocity

A nice way to make vehicles faster is to do something like:

OnPlayerUpdate:
if the player is in a vehicle
get the players vehicle
get the vehicles velocity
then, set the vehicles velocity to some number more than what it currently is.