Get vehicle max velocity?
#1

What is the max velocity of a vehicle?
Reply
#2

you'd have to make a function to get the players vehicle model and set the max speed in the function, u'd have to get the max speed for each vehicle.
Reply
#3

that is lame :<
Reply
#4

There is not a specific max speed for the vehicles in general. I got a list with the max speed of some vehicles:


pawn Код:
Landstalker - 127 KPH
Bravura - 137 KPH
Buffalo - 150 KPH
Perenniel - 122KPH
Sentinel - 145 KPH
Stretch (Limo) - 143 KPH
Manana - 126 KPH
Infernus - 180 KPH
Voodoo - 148 KPH
Pony - 113 KPH
Cheetah - 160 KPH
Moonbeam - 118 KPH
Esperanto - 139 KPH
Taxi - 136 KPH
Washington - 139 KPH
Bobcat - 133 KPH
BF Injection - 121 KPH
Premier - 153 KPH
Enforcer - 144 KPH
Securicar - 147 KPH
Banshee - 165 KPH
Hotknife - 142 KPH
Previon - 136 KPH
Cabbie - 127 KPH
Stallion - 134 KPH
Rumpo - 131 KPH
Romero - 131 KPH
Monster - 118 KPH
Admiral - 147 KPH
Turismo - 157 KPH

I hope that i have helped
Reply
#5

Yeah it helped, but im trying to make a way to get all the vehicles max speed, then break the engine at max speed. :S
Reply
#6

lol that list is kind of wrong.
infernus is 183 btw and

those are mph not kmph

just helping, elegy - 122/123 w & w/o nos mph
Reply
#7

Quote:
Originally Posted by The_Gangstas
Посмотреть сообщение
lol that list is kind of wrong.
infernus is 183 btw and

those are mph not kmph
Depends on which speed system he uses, If i'm correct, all of the world uses the Metric system (Km, m, cm etc) while the US uses the Imperial system (Miles, feet, inches, yeah)

Just convert it D:
Reply
#8

Wow, it went all off topic D:! Anyone know how i would do dis?
Reply
#9

erm? make a speedometer and record the top speed
pawn Код:
stock GetPlayerSpeed(playerid,bool:kmh)
{
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
true = mph and false = kmph
GetPlayerSpeed(playerid,true);
Reply
#10

Open handling.cfg ..SA\data\handling.cfg

search for vehicle list

....75 0.85 0.5 5 160.0 25.0 20.0 4 D....
Is Speed in km/h
Код:
LANDSTAL     1700.0    5008.3   2.5	   0.0 0.0 -0.3  85  0.75 0.85 0.5  	5 160.0 25.0 20.0 4 D 	6.2   0.60 0 35.0  	2.4  0.08  0.0   0.28 -0.14 0.5  0.25		0.27 0.23 25000 	20			500002		0  1	0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)