if(newstate == PLAYER_STATE_DRIVER) {
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid),health);
if (health >= 900 && health <= 1000)
{
TextDrawShowForPlayer(playerid,TACHO0);
TextDrawShowForPlayer(playerid,TACHO1);
TextDrawShowForPlayer(playerid,TACHO2);
TextDrawShowForPlayer(playerid,TACHO3);
TextDrawShowForPlayer(playerid,TACHO6);
TextDrawShowForPlayer(playerid,TACHO5);
TextDrawShowForPlayer(playerid,TACHO4);
}
else if (health >= 800 && health <= 900)
{
TextDrawShowForPlayer(playerid,TACHO0);
TextDrawShowForPlayer(playerid,TACHO1);
TextDrawShowForPlayer(playerid,TACHO2);
TextDrawShowForPlayer(playerid,TACHO3);
TextDrawShowForPlayer(playerid,TACHO6);
TextDrawShowForPlayer(playerid,TACHO5);
TextDrawShowForPlayer(playerid,ZUSTAND10);
}
Ich will das wenn das Leben unter 900 des Fahrzeuges wird ein anderes Tacho erscheint bzw vom Tacho der Zustand weniger wird nur klappt das nicht keine ahnung warum.