31.08.2018, 13:12 
	
	
	PHP код:
stock GetPlayerSpeed(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)); // preciso estudar essa linha
    return kmh ? floatround((pSpeed * 165.12)) : floatround((pSpeed * 103.9)); // e essa
} 
Poderiam ajudar?


