Change TextDraw color
#6

write printf

PHP код:
    new vehicleid GetPlayerVehicleID(playerid);
        new 
Float:vhealth[MAX_VEHICLES];
        
GetVehicleHealth(vehicleidvhealth[vehicleid]);
        if(
vhealth[vehicleid] >= 900.0)
        {
            
PlayerTextDrawHide(playeridTD_VPARAMS[1][playerid])
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0x00FF00FF);
            
PlayerTextDrawShow(playeridTD_VPARAMS[1][playerid])
            
printf("done test 1");
            
        }else if(
vhealth[vehicleid] <= 800.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0x84FF00FF);
        }else if(
vhealth[vehicleid] <= 700.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xAEFF00FF);
        }else if(
vhealth[vehicleid] <= 600.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xD5FF00FF);
        }else if(
vhealth[vehicleid] <= 500.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xFFFF00FF);
        }else if(
vhealth[vehicleid] <= 400.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xFFC400FF);
        }else if(
vhealth[vehicleid] <= 300.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xFF8400FF);
        }else if(
vhealth[vehicleid] <= 200.0)
        {
            
PlayerTextDrawColor(playeridTD_VPARAMS[1][playerid], 0xFF3C00FF);
            
printf("done test 2");
        } 
Reply


Messages In This Thread
Change TextDraw color - by cnoopers - 19.03.2015, 15:58
Re: Change TextDraw color - by fuckingcruse - 19.03.2015, 16:12
Re: Change TextDraw color - by cnoopers - 19.03.2015, 16:16
Re: Change TextDraw color - by Golf - 19.03.2015, 16:17
Re: Change TextDraw color - by cnoopers - 19.03.2015, 16:24
Re: Change TextDraw color - by Golf - 19.03.2015, 16:26
Re: Change TextDraw color - by Jefff - 19.03.2015, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)