height
#1

im trying to make it when a player bounces his car using hydrolics it shows how high they bounce .I got my script working but i was wondering if there is a way to convert the z position to feet or inches .right now when the bounce its showing a number like 31.234567

part of the code so you get a better idea

Код:
public hydrometer(playerid)
{
  new currentveh;
  currentveh = GetPlayerVehicleID(playerid);
  new Float:vehx, Float:vehy, Float:vehz;
  GetVehiclePos(currentveh, vehx, vehy, vehz);
  new vehpostext[96];
  format(vehpostext, sizeof(vehpostext), "Your current vehicle Height Is: %f", vehz);
  SendClientMessage(playerid, 0xFFFFFFFF, vehpostext);
  return 1;
}
Reply


Messages In This Thread
height - by [SF]RobMob - 06.05.2010, 01:17
Re: height - by -Rebel Son- - 06.05.2010, 01:25
Re: height - by [SF]RobMob - 06.05.2010, 01:37
Re: height - by -Rebel Son- - 06.05.2010, 01:38
Re: height - by [SF]RobMob - 06.05.2010, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)