TextDraws Help
#1

ENG:
Hi, I'm creating a textdraw for vehicle life, this below is the textdraw with the code:
ITA:
Ciao, sto creando un textdraw per la vita dei veicoli, questo qui sotto и il textdraw con il codice:

//Vehicle Health
Quote:

Danni_veicolo[playerid] = TextDrawCreate(482.234344, 404.816894, "usebox");
TextDrawLetterSize(Danni_veicolo[playerid], 0.000000, -9.172124);
TextDrawTextSize(Danni_veicolo[playerid], 471.534454, 0.000000);
TextDrawAlignment(Danni_veicolo[playerid], 1);
TextDrawUseBox(Danni_veicolo[playerid], true);
TextDrawBoxColor(Danni_veicolo[playerid], -16776961);
TextDrawSetShadow(Danni_veicolo[playerid], 0);
TextDrawSetOutline(Danni_veicolo[playerid], 0);

//SCRIPT
Quote:

if(health < 0)
{
TextDrawLetterSize(Danni_veicolo[playerid], 0.0, -0.565394);
}
else if(health >= 1000)
{
TextDrawLetterSize(Danni_veicolo[playerid], 0.0, -9.209616);
}
else
{
ENG:
How do I get it to match the life of the vehicle
ITA:
Come faccio a farlo combaciare con la vita del veicolo
Quote:

TextDrawLetterSize(Danni_veicolo[playerid], 0.0, floatadd(-9.209616, floatdiv(health, 10)));

}
TextDrawShowForPlayer(playerid, Danni_veicolo[playerid]);

//rod
Quote:

Asta_km[playerid] = TextDrawCreate(527.134216, 362.892089, "LD_SPAC:white");
TextDrawLetterSize(Asta_km[playerid], 0.000000, 0.000000);
TextDrawTextSize(Asta_km[playerid], -30.266456, 1.866667);
TextDrawAlignment(Asta_km[playerid], 1);
TextDrawColor(Asta_km[playerid], -5963521);
TextDrawSetShadow(Asta_km[playerid], 0);
TextDrawSetOutline(Asta_km[playerid], 0);
TextDrawFont(Asta_km[playerid], 4);

//SCRIPT
Quote:

if(velocity >= 0)
{
TextDrawSetPreviewRot(Asta_km[playerid], velocity + 70, 0, 0, 1);
}
else if(velocity > 260)
{
TextDrawSetPreviewRot(Asta_km[playerid], 280, 0, 0, 1);
}
TextDrawShowForPlayer(playerid, Asta_km[playerid]);

you can help me fix my script, thanks
Reply


Messages In This Thread
TextDraws Help - by DarkWorldJack - 12.04.2019, 16:36
Re: TextDraws Help - by SiaReyes - 14.04.2019, 04:11
Re: TextDraws Help - by DarkWorldJack - 14.04.2019, 10:52
Re: TextDraws Help - by DarkWorldJack - 16.04.2019, 11:47
Re: TextDraws Help - by NaS - 16.04.2019, 12:01
Re: TextDraws Help - by DarkWorldJack - 17.04.2019, 19:26
Re: TextDraws Help - by DarkWorldJack - 18.04.2019, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)