stock(GetVehicleVelocity, &Float:vel)
{
new Float:vx, Float:vy, Float:vz;
vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5);
}
forward OnSpeedUpdate(vehicleID, playerid);
public OnSpeedUpdate(vehicleID, playerid)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), svx[playerid], svy[playerid], svz[playerid]);
s10[playerid] = floatsqroot(((svx[playerid]*svx[playerid])+(svy[playerid]*svy[playerid]))+(svz[playerid]*svz[playerid]))*100;
s2[playerid] = floatround(s10[playerid],floatround_round);
format(s3[playerid],32,"%i", s2[playerid]);
PlayerTextDrawSetString(playerid, Dash5, s3[playerid]);
return 1;
}
stock(GetVehicleVelocity, &Float:vel) { new Float:vx, Float:vy, Float:vz; vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz); vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5); } |
CODE Car,Vehicle ID,Measured Top Speed (KPH),Theoretical Top Speed (KPH) Landstalker,400,157,157 Bravura,401,147,147 Buffalo,402,186,185 Linerunner,403,110,111 Perennial,404,133,133 Sentinel,405,164,163 Dumper,406,110,110 Firetruck,407,148,148 Trashmaster,408,100,99 Stretch,409,158,157 Manana,410,129,129 Infernus,411,221,221 Voodoo,412,168,168 Pony,413,110,111 Mule,414,105,105 Cheetah,415,192,192 Ambulance,416,154,153 Moonbeam,418,115,115 Esperanto,419,149,148 Taxi,420,145,145 Washington,421,154,153 Bobcat,422,140,140 MrWhoopie,423,99,99 BFInjection,424,135,136 Premier,426,173,173 Enforcer,427,165,165 Securicar,428,157,157 Banshee,429,201,201 Bus,431,130,131 Rhino,432,94,95 Barracks,433,110,111 Hotknife,434,167,166 Previon,436,149,148 Coach,437,158,157 Cabbie,438,142,142 Stallion,439,168,168 Rumpo,440,136,136 Romero,442,139,140 Packer,443,126,126 Monster,444,110,110 Admiral,445,164,164 Turismo,451,193,192 Flatbed,455,157,157 Yankee,456,106,107 Caddy,457,95,96 Solair,458,157,157 Berkley's RC Van,459,136,136 Glendale,466,147,147 Oceanic,467,140,140 Patriot,470,157,157 Quadbike,471,110,111 Hermes,474,149,148 Sabre,475,173,171 ZR350,477,186,185 Walton,478,117,117 Regina,479,140,140 Comet,480,184,183 Burrito,482,156,157 Camper,483,122,123 Baggage,485,99,99 Dozer,486,64,65 Rancher,489,139,140 FBIRancher,490,157,157 Virgo,491,149,148 Greenwood,492,140,140 Hotring,494,214,213 Sandking,495,176,177 Blista Compact,496,162,163 Boxville,498,108,107 Benson,499,123,122 Mesa,500,140,140 Bloodring Banger,504,173,171 SuperGT,506,179,178 Elegant,507,166,165 Journey,508,108,107 Tanker,514,120,120 Roadtrain,515,142,142 Nebula,516,157,157 Majestic,517,157,157 Buccaneer,518,164,163 Cement Truck,524,130,130 Towtruck,525,160,160 Fortune,526,158,157 Cadrona,527,149,149 FBI Truck,528,176,175 Willard,529,149,148 Forklift,530,60,60 Tractor,531,70,70 Combine Harvester,532,110,111 Feltzer,533,167,166 Remington,534,168,168 Slamvan,535,158,157 Blade,536,173,171 Vincent,540,149,148 Bullet,541,203,202 Clover,542,164,163 Sadler,543,151,151 Hustler,545,147,147 Intruder,546,149,148 Primo,547,142,142 Tampa,549,153,153 Sunrise,550,145,144 Merit,551,157,157 Utility Van,552,121,121 Yosemite,554,144,143 Windsor,555,158,157 Uranus,558,156,157 Jester,559,178,177 Sultan,560,169,169 Stratum,561,154,153 Elegy,562,178,177 Flash,565,165,163 Tahoma,566,160,160 Savanna,567,173,171 Bandito,568,146,146 Kart,571,93,94 Mower,572,60,60 Dune,573,110,110 Sweeper,574,60,60 Broadway,575,158,157 Tornado,576,158,157 DFT-30,578,130,130 Huntley,579,158,157 Stafford,580,153,153 Newsvan,582,136,136 Tug,583,85,86 Emperor,585,153,153 Euros,587,165,163 Hotdog,588,108,107 Club,589,162,162 Police LS,596,175,175 Police SF,597,175,175 Police LV,598,175,175 Police Ranger,599,158,157 Picador,600,151,151 SWAT Van,601,110,110 Alpha,602,169,168 Phoenix,603,171,170 Burglary Boxville,609,108,107