is this possible - 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: is this possible (
/showthread.php?tid=393724)
is this possible -
SecoL - 19.11.2012
if i do /speed1 and i go like 50mph but not press w
Re: is this possible -
iGetty - 19.11.2012
Like a cruise control?
Re: is this possible -
goviscrap - 19.11.2012
I think its what he means
Re: is this possible -
iGetty - 19.11.2012
Then use the search function. There's a cruise control filterscript that could help you.
Re: is this possible - XProtocol - 19.11.2012
Or he means whenever he do /speed1 his speed would increase by 50 kph like when he do it 2 times it will be 50x2
maybe.
Re: is this possible -
NewerthRoleplay - 19.11.2012
Use the search button or ******...
Re: is this possible -
park4bmx - 19.11.2012
no he means if he types the cmd the he will make the vehicle move with
50mph without the player having to press the
accelerate key!
SetVehicleVelocity is what your looking here my friend
pawn Код:
new Float:Velocity[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
SetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0]+15, Velocity[1]+15, Velocity[2]);
// to make it advanced you will have to detect which way the car is facing, i will leave that to you