open.mp forum
[Pawn] Is there any solution to prevent bike sprint? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Is there any solution to prevent bike sprint? (/showthread.php?tid=1592)



Is there any solution to prevent bike sprint? - Cada - 2021-01-25

Hello.



I`m devloping Role Playing server and wanna prevent bike sprint (bicycle = battering key w,?motorcycle = battering key?arrow UP).

I found that whether player press w or arrow up key in vehicle to sprint, but i dont know how to make speed lower of their vehicle or something.

If you guys have any solution, please make give me that! :>



thanks everyone.


RE: Is there any solution to prevent bike sprint? - rasheed - 2021-01-27

You can use https://open.mp/docs/scripting/functions/SetVehicleVelocity for limiting vehicle speed