25.04.2014, 11:19
PHP код:
if(TireInfo[vehicleid][Front_Left_Tire] <= 400 || TireInfo[vehicleid][Front_Left_Tire] >= 300)
{
PlayerTextDrawHide(i,PriekineKaire[i]);
PlayerTextDrawColor(i, PriekineKaire[i], COLOR_GREEN);
PlayerTextDrawShow(i,PriekineKaire[i]);
}
else if(TireInfo[vehicleid][Front_Left_Tire] <= 300 || TireInfo[vehicleid][Front_Left_Tire] >= 200)
{
PlayerTextDrawHide(i,PriekineKaire[i]);
PlayerTextDrawColor(i, PriekineKaire[i], COLOR_YELLOW);
PlayerTextDrawShow(i,PriekineKaire[i]);
}
else if(TireInfo[vehicleid][Front_Left_Tire] <= 200 || TireInfo[vehicleid][Front_Left_Tire] >= 50)
{
PlayerTextDrawHide(i,PriekineKaire[i]);
PlayerTextDrawColor(i, PriekineKaire[i], COLOR_ORANGE);
PlayerTextDrawShow(i,PriekineKaire[i]);
}
else if(TireInfo[vehicleid][Front_Left_Tire] <= 50 || TireInfo[vehicleid][Front_Left_Tire] >= 0)
{
PlayerTextDrawHide(i,PriekineKaire[i]);
PlayerTextDrawColor(i, PriekineKaire[i], COLOR_RED);
PlayerTextDrawShow(i,PriekineKaire[i]);
}
/////////////////////////////////////////////////////////////////////////////////////
if(TireInfo[vehicleid][Front_Right_Tire] <= 400 || TireInfo[vehicleid][Front_Right_Tire] >= 300)
{
PlayerTextDrawHide(i,PriekineDesine[i]);
PlayerTextDrawColor(i, PriekineDesine[i], COLOR_GREEN);
PlayerTextDrawShow(i,PriekineDesine[i]);
}
else if(TireInfo[vehicleid][Front_Right_Tire] <= 300 || TireInfo[vehicleid][Front_Right_Tire] >= 200)
{
PlayerTextDrawHide(i,PriekineDesine[i]);
PlayerTextDrawColor(i, PriekineDesine[i], COLOR_YELLOW);
PlayerTextDrawShow(i,PriekineDesine[i]);
}
else if(TireInfo[vehicleid][Front_Right_Tire] <= 200 || TireInfo[vehicleid][Front_Right_Tire] >= 50)
{
PlayerTextDrawHide(i,PriekineDesine[i]);
PlayerTextDrawColor(i, PriekineDesine[i], COLOR_ORANGE);
PlayerTextDrawShow(i,PriekineDesine[i]);
}
else if(TireInfo[vehicleid][Front_Right_Tire] <= 50 || TireInfo[vehicleid][Front_Right_Tire] >= 0)
{
PlayerTextDrawHide(i,PriekineDesine[i]);
PlayerTextDrawColor(i, PriekineDesine[i], COLOR_RED);
PlayerTextDrawShow(i,PriekineDesine[i]);
}
/////////////////////////////////////////////////////////////////////////////////////
if(TireInfo[vehicleid][Rear_Right_Tire] <= 200 || TireInfo[vehicleid][Rear_Right_Tire] >= 150)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineDesine[i], COLOR_GREEN);
PlayerTextDrawShow(i,GalineDesine[i]);
}
else if(TireInfo[vehicleid][Rear_Right_Tire] <= 150 || TireInfo[vehicleid][Rear_Right_Tire] >= 100)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineDesine[i], COLOR_YELLOW);
PlayerTextDrawShow(i,GalineDesine[i]);
}
else if(TireInfo[vehicleid][Rear_Right_Tire] <= 100 || TireInfo[vehicleid][Rear_Right_Tire] >= 50)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineDesine[i], COLOR_ORANGE);
PlayerTextDrawShow(i,GalineDesine[i]);
}
else if(TireInfo[vehicleid][Rear_Right_Tire] <= 50 || TireInfo[vehicleid][Rear_Right_Tire] >= 0)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineDesine[i], COLOR_RED);
PlayerTextDrawShow(i,GalineDesine[i]);
}
////////////////////////////////////////////////////////////////////////////////////////////////
if(TireInfo[vehicleid][Rear_Left_Tire] <= 200 || TireInfo[vehicleid][Rear_Left_Tire] >= 150)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineKaire[i], COLOR_GREEN);
PlayerTextDrawShow(i,GalineKaire[i]);
}
else if(TireInfo[vehicleid][Rear_Left_Tire] <= 150 || TireInfo[vehicleid][Rear_Left_Tire] >= 100)
{
PlayerTextDrawColor(i, GalineKaire[i], COLOR_YELLOW);
PlayerTextDrawShow(i,GalineKaire[i]);
}
else if(TireInfo[vehicleid][Rear_Left_Tire] <= 100 || TireInfo[vehicleid][Rear_Left_Tire] >= 50)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineKaire[i], COLOR_ORANGE);
PlayerTextDrawShow(i,GalineKaire[i]);
}
else if(TireInfo[vehicleid][Rear_Left_Tire] <= 50 || TireInfo[vehicleid][Rear_Left_Tire] >= 0)
{
PlayerTextDrawHide(i,GalineKaire[i]);
PlayerTextDrawColor(i, GalineKaire[i], COLOR_RED);
PlayerTextDrawShow(i,GalineKaire[i]);
}
Код:
maintimer = SetTimer("MainTimer", 1000, true);