06.05.2010, 01:17
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
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;
}

