22.12.2010, 16:45
pawn Код:
new Float:health;
new veh;
veh = GetPlayerVehicleID(i);
GetVehicleHealth(veh, health);
new Float:VehicleHealth = floatround(health, floatround_round);
new Float:health;
new veh;
veh = GetPlayerVehicleID(i);
GetVehicleHealth(veh, health);
new Float:VehicleHealth = floatround(health, floatround_round);
new
Float: health,
VehicleHealth,
veh;
veh = GetPlayerVehicleID(i);
GetVehicleHealth(veh, health);
VehicleHealth = floatround(health);
if (!strcmp(cmdtext[1], "test", true))
{
new
Float: fHealth,
iVehicle,
iHealth,
szText[128];
iVehicle = GetPlayerVehicleID(playerid);
GetVehicleHealth(iVehicle, fHealth);
iHealth = floatround(fHealth);
format(szText, sizeof (szText), "VehicleID: %i - Health: %f - %i", iVehicle, fHealth, iHealth);
SendClientMessage(playerid, 0xFFFFFFFF, szText);
return 1;
}
new Float:vH;
GetVehicleHealth(GetPlayerVehicleID(i), vH);
printf("%i", floatround(vH));