20.11.2010, 14:49
topic^? (8Char)
if(floatround(Z)) > 0)
{
Z2=Z*3.2808399;
}
Z2=floatround(floatmul(Z, 3.2808399));
#define METRES_TO_FEET(%0) \
( ( %0 ) / 0.3047999995367040007042099189296 )
new
altitude = floatround( METRES_TO_FEET( 500 ) );
new altitude = floatround( METRES_TO_FEET( Z) );
format(String,sizeof(String)," ~r~Vehicle~g~:~w~%s ~r~Health~g~:~w~%d%% ~r~MPH~g~:~w~%i ~r~KMH~g~:~w~%i ~r~Altitude~g~:~w~%d ft",aVehicleNames[GetVehicleModel(vehicle)-400],floatround(health,floatround_round), floatround(floatdiv(Speed, 1.609344), floatround_floor), floatround(Speed, floatround_floor),altitude);
new
Float:vx,
Float:vy,
Float:vz;
GetVehiclePos( vehicle, vx, vy, vz );
format( String, sizeof ( String ), " ~r~Vehicle~g~:~w~%s ~r~Health~g~:~w~%i%% ~r~MPH~g~:~w~%i ~r~KMH~g~:~w~%i ~r~Altitude~g~:~w~%i ft", aVehicleNames[ GetVehicleModel( vehicle ) - 400 ], floatround( health, floatround_round ), floatround( floatdiv( Speed, 1.609344 ), floatround_floor ), floatround( Speed, floatround_floor ), floatround ( METRES_TO_FEET( vz ) ) );