19.03.2015, 16:24
Anyway, still same problem.
Код:
new vehicleid = GetPlayerVehicleID(playerid); new Float:vhealth[MAX_VEHICLES]; GetVehicleHealth(vehicleid, vhealth[vehicleid]); if(vhealth[vehicleid] >= 900.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0x00FF00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 800.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0x84FF00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 700.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xAEFF00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 600.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xD5FF00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 500.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xFFFF00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 400.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xFFC400FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 300.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xFF8400FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }else if(vhealth[vehicleid] <= 200.0) { PlayerTextDrawHide(playerid, TD_VPARAMS[1][playerid]); PlayerTextDrawColor(playerid, TD_VPARAMS[1][playerid], 0xFF3C00FF); PlayerTextDrawShow(playerid, TD_VPARAMS[1][playerid]); }