09.12.2011, 18:38
Well I'm currently scripting some gauges for aircrafts and I wanted to know how could I make a above sea level gauge in metres, I can make the textdraw myself but I need some function to get it
new Float:x, Float:y, Float:z, height[20];
GetPlayerPos(playerid, x, y, z);
format(height, sizeof height, "Height: %i", z);
SendClientMessage(playerid, 0xFFFFFFFF, height);
new Float:x, Float:y, Float:z;
GetVehiclePos(vid, x, y, z);
new string[128];format(string,sizeof string,"ASL: %d m",z);
TextDrawSetString(td_asl[i],string);
format(string,sizeof string,"ASL: %.2f m",z);