Hi,
Ich habe eine Anzeige:
if(kmhCREATED[playerid] == false)
{
if(IsANeewbieBike(newcar)) { }
else
{
kd[playerid] = TextDrawCreate(356,392,"~w~km/h");
TextDrawFont(kd[playerid],2);
TextDrawSetShadow(kd[playerid],1);
TextDrawShowForPlayer(playerid, kd[playerid]);
kmhCREATED[playerid] =true;
kdSHOWN[playerid]=true;
}
}
if(speedCREATED[playerid] == false)
{
if(IsANeewbieBike(newcar)) { }
else
{
sd[playerid] = TextDrawCreate(320,392,"kmh");
TextDrawFont(sd[playerid],2);
TextDrawSetShadow(sd[playerid],1);
TextDrawShowForPlayer(playerid, sd[playerid]);
speedCREATED[playerid] =true;
sdSHOWN[playerid]=true;
}
}
if(fuelCREATED[playerid] == false)
{
if(IsANeewbieBike(newcar)) { }
else if(IsAnEventCar(newcar)) { }
else
{
format(string, sizeof(string), "~g~Tank: ~w~%1.f/%d", spawncar_gas[newcar],spawncar_maxgas[newcar]);
fd[playerid] = TextDrawCreate(294,372,string);
TextDrawFont(fd[playerid],2);
TextDrawSetShadow(fd[playerid],1);
TextDrawShowForPlayer(playerid, fd[playerid]);
fuelCREATED[playerid] = true;
fdSHOWN[playerid]=true;
}
}
if(fueltypeCREATED[playerid] == false)
{
if(IsANeewbieBike(newcar)) { }
else if(IsAnEventCar(newcar)) { }
else
{
new kraftstoff[256], string2[128];
kraftstoff = GetPlayerVehicleType(GetPlayerVehicleID(playerid));
format(string2, sizeof(string2), "~g~Kraftstoff: ~w~%s", kraftstoff);
ftd[playerid] = TextDrawCreate(220,382,string2);
TextDrawFont(ftd[playerid],2);
TextDrawSetShadow(ftd[playerid],1);
TextDrawShowForPlayer(playerid, ftd[playerid]);
fueltypeCREATED[playerid]=true;
ftdSHOWN[playerid]=true;
}
}
Die ich gerne mit einer Schadensanzeige erweitern würde doch ich weiß nicht wie.
Hoffe ihr klönnt mir helfen.
MfG
Xilent