30.03.2014, 10:22
Hey I got a stock for vehicle speed but at Turismo it shows only 177kmh when car like that should reach around 230 kmh?
Here is the stock to get Speed but I don't like when turismo reaches only 177 kmh
how to raise that speed?
Here is the stock to get Speed but I don't like when turismo reaches only 177 kmh
how to raise that speed?
pawn Код:
stock GetVehicleSpeed(playerid, bool:kmh = true)
{
new
Float:xx,
Float:yy,
Float:zz,
Float:pSpeed;
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(GetPlayerVehicleID(playerid),xx,yy,zz);
}
else
{
GetPlayerVelocity(playerid,xx,yy,zz);
}
pSpeed = floatsqroot((xx * xx) + (yy * yy) + (zz * zz));
return kmh ? floatround((pSpeed * 165.12)) : floatround((pSpeed * 136.666667));
}