{
if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
{
new Float:Strecke,Float:Geschwindigkeit;
GetVehiclePos(GetPlayerVehicleID(i),X1[i],Y1[i],Z1[i]);
Strecke = floatsqroot(floatpower(floatabs(floatsub(X1[i],X2[i])),2)+floatpower(floatabs(floatsub(Y1[i],Y2[i])),2)+floatpower(floatabs(floatsub(Z1[i],Z2[i])),2));
Geschwindigkeit = (Strecke / (TACHOTIMER/500)) * 3.6;
new String[50];
format(String,50,"KMH: %d",floatround(Geschwindigkeit));
TextDrawSetString(Tacho[i],String);
GetVehiclePos(GetPlayerVehicleID(i),X2[i],Y2[i],Z2[i]);
new String2[50];
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
format(String2,sizeof(String2),"HP: %i",GetVehicleHealth(veh, health));
TextDrawSetString(TachoZustand2[i],String2);
TextDrawShowForPlayer(i,Tacho[i]);
TextDrawShowForPlayer(i,TachoFuel[i]);
TextDrawShowForPlayer(i,TachoName[i]);
TextDrawShowForPlayer(i,TachoZustand2[i]);
TextDrawShowForPlayer(i,Tachohelp1[i]);
TextDrawShowForPlayer(i,Tachohelp2[i]);
}