How to do this?
#1

When I enter a checkpoint, i want the system to give me a new vehicle and destroy my old one, I know how to do this, but if i drive with alot of speed into the checkpoint it stops me, it will put me to 0 kph / mph.

I want to let myself continue in the same direction with the same speed, but in a new vehicle, how do i do this?

Thanks alot
Reply
#2

pawn Код:
new Float:vx, Float:vy, Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
// Destroy current vehicle, create the new one and put the player in driver seat stuff code...
SetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
Reply
#3

thanks!
Reply
#4

I have tried this, and it doesn't work when entering a checkpoint.. But when I use it inside a command it does work...?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)