Hi,
wie aktualiere ich den zustand des Fahrzeuges?
Habe es zurzeit nur Unter OnPlayerStateChange
//Zustand
new zustand[64];
new Float:VehicleHealth;
leben[playerid] = CreatePlayerTextDraw(playerid, 160.000000, 374.000000, "Zustand");
PlayerTextDrawBackgroundColor(playerid, leben[playerid], 255);
PlayerTextDrawFont(playerid, leben[playerid], 1);
PlayerTextDrawLetterSize(playerid, leben[playerid], 0.230000, 1.100000);
PlayerTextDrawColor(playerid, leben[playerid], -1);
PlayerTextDrawSetOutline(playerid, leben[playerid], 0);
PlayerTextDrawSetProportional(playerid, leben[playerid], 1);
PlayerTextDrawSetShadow(playerid, leben[playerid], 1);
PlayerTextDrawShow(playerid, leben[playerid]);
GetVehicleHealth(GetPlayerVehicleID(playerid), VehicleHealth);
format(zustand,64,"Zustand: %.0f",VehicleHealth);
PlayerTextDrawSetString(playerid,leben[playerid],zustand);