12.04.2019, 16:36
(
Last edited by DarkWorldJack; 13/04/2019 at 10:01 PM.
)
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
//SCRIPT
//rod
//SCRIPT
you can help me fix my script, thanks
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); |
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:
TextDrawShowForPlayer(playerid, Danni_veicolo[playerid]); |
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); |
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]); |