Question

Нашел тему где рассказывают как увеличить скорость, но я не знаю как увеличить для определенной машины,подскажите пожалуйста, вот сама функция : 

stock SetVehicleSpeed(vehicleid,mph)
{
  new Float:Vx, Float:Vy, Float:Vz ,Float:speeds, Float:multiple;
  GetVehicleVelocity(vehicleid,Vx,Vy,Vz);
  speeds = floatsqroot(Vx*Vx + Vy*Vy + Vz*Vz);
  if(speeds > 0)
  {
    multiple = (mph / (speeds * 250));
    return SetVehicleVelocity(vehicleid, Vx*multiple, Vy*multiple, Vz*multiple);
  }
  return 0;
}

Share this post


Link to post

0 answers to this question

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content