07.12.2010, 11:33
Hi guys I just want to make a cmd like this:
But its not giving right ans I known I am doing wrong way pls help how to do this. I div health by 1148846080 cuz Its giving me this val of health on New truck(no damage... )
pawn Код:
CMD:vh(playerid,params[])
{
#pragma unused params
new Float:health, veh,str[64];
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
format(str,sizeof(str),"Truck Health %d",(health/1148846080)*100);
SendClientMessage(playerid,GREEN,str);
return 1;
}