Es wird nur die Scheibe angezeigt.
// Neues Tacho (Oldschool-Nadel)
enum td
{
Text:TDSpeedClock[10]
}
new TextDraws[td];
new Text:TextDrawsd[MAX_PLAYERS][4];
// Neues Tacho
new Text:TachoHeal[MAX_PLAYERS];
new Text:TachoTueren[MAX_PLAYERS];
new Text:TachoTank[MAX_PLAYERS];
new Text:TachoName[MAX_PLAYERS];
new Text:TachoMotor[MAX_PLAYERS];
OnGamemodeInit
//Tacho
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
TachoTank[playerid] = TextDrawCreate(527.000000, 431.000000, "Tank: 130L");
TextDrawBackgroundColor(TachoTank[playerid], 255);
TextDrawFont(TachoTank[playerid], 1);
TextDrawLetterSize(TachoTank[playerid], 0.310000, 1.200000);
TextDrawColor(TachoTank[playerid], -1);
TextDrawSetOutline(TachoTank[playerid], 1);
TextDrawSetProportional(TachoTank[playerid], 1);
TachoHeal[playerid] = TextDrawCreate(517.000000, 417.000000, "Zustand: 1200");
TextDrawBackgroundColor(TachoHeal[playerid], 255);
TextDrawFont(TachoHeal[playerid], 1);
TextDrawLetterSize(TachoHeal[playerid] , 0.260000, 1.300000);
TextDrawColor(TachoHeal[playerid], -1);
TextDrawSetOutline(TachoHeal[playerid], 1);
TextDrawSetProportional(TachoHeal[playerid], 1);
TachoMotor[playerid] = TextDrawCreate(533.000000, 368.000000, "Motor aus");
TextDrawBackgroundColor(TachoMotor[playerid], 255);
TextDrawFont(TachoMotor[playerid], 1);
TextDrawLetterSize(TachoMotor[playerid], 0.230000, 1.000000);
TextDrawColor(TachoMotor[playerid], -1);
TextDrawSetOutline(TachoMotor[playerid], 1);
TextDrawSetProportional(TachoMotor[playerid], 1);
TachoTueren[playerid] = TextDrawCreate(526.000000, 356.000000, "Aufgeschlossen");
TextDrawBackgroundColor(TachoTueren[playerid], 255);
TextDrawFont(TachoTueren[playerid], 1);
TextDrawLetterSize(TachoTueren[playerid], 0.210000, 1.000000);
TextDrawColor(TachoTueren[playerid], 16711935);
TextDrawSetOutline(TachoTueren[playerid], 1);
TextDrawSetProportional(TachoTueren[playerid], 1);
TextDrawSetProportional(TachoTueren[playerid], 1);
//ROT: -16776961
//GRÜN: 16711935
TachoName[playerid] = TextDrawCreate(558.000000, 317.000000, "Landstalker");
TextDrawAlignment(TachoName[playerid], 2);
TextDrawBackgroundColor(TachoName[playerid], 255);
TextDrawFont(TachoName[playerid], 0);
TextDrawLetterSize(TachoName[playerid], 0.659999, 2.000000);
TextDrawColor(TachoName[playerid], -1);
TextDrawSetOutline(TachoName[playerid], 1);
TextDrawSetProportional(TachoName[playerid], 1);
// Spediteur / Trucker Anzeige
LadungTD[playerid] = TextDrawCreate(515.000000, 274.000000, "Ladung:");
TextDrawBackgroundColor(LadungTD[playerid], 255);
TextDrawFont(LadungTD[playerid], 1);
TextDrawLetterSize(LadungTD[playerid], 0.500000, 1.000000);
TextDrawColor(LadungTD[playerid], -1);
TextDrawSetOutline(LadungTD[playerid], 1);
TextDrawSetProportional(LadungTD[playerid], 1);
Typ[playerid] = TextDrawCreate(543.000000, 288.000000, "Typ:");
TextDrawBackgroundColor(Typ[playerid], 255);
TextDrawFont(Typ[playerid], 1);
TextDrawLetterSize(Typ[playerid], 0.500000, 1.000000);
TextDrawColor(Typ[playerid], -1);
TextDrawSetOutline(Typ[playerid], 1);
TextDrawSetProportional(Typ[playerid], 1);
LadungZahl[playerid] = TextDrawCreate(594.000000, 274.000000, "35");
TextDrawBackgroundColor(LadungZahl[playerid], 255);
TextDrawFont(LadungZahl[playerid], 1);
TextDrawLetterSize(LadungZahl[playerid], 0.500000, 1.000000);
TextDrawColor(LadungZahl[playerid], -1);
TextDrawSetOutline(LadungZahl[playerid], 0);
TextDrawSetProportional(LadungZahl[playerid], 1);
TextDrawSetShadow(LadungZahl[playerid], 1);
TypName[playerid] = TextDrawCreate(585.000000, 288.000000, "Fisch");
TextDrawBackgroundColor(TypName[playerid], 255);
TextDrawFont(TypName[playerid], 1);
TextDrawLetterSize(TypName[playerid], 0.500000, 1.000000);
TextDrawColor(TypName[playerid], -1);
TextDrawSetOutline(TypName[playerid], 0);
TextDrawSetProportional(TypName[playerid], 1);
TextDrawSetShadow(TypName[playerid], 1);
}
OnPlayerDisconnect
// TextDrawsLöschen
TextDrawDestroy(GWBox[playerid]);
TextDrawDestroy(GWText[playerid]);
TextDrawDestroy(GWAngreifer[playerid]);
TextDrawDestroy(GWVerteidiger[playerid]);
TextDrawDestroy(GWAngrPunkte[playerid]);
TextDrawDestroy(GWVertPunkte[playerid]);
TextDrawDestroy(GWZeit[playerid]);
TextDrawDestroy(GWZeitText[playerid]);
TextDrawDestroy(KTime[playerid]);
TextDrawDestroy(PTime[playerid]);
TextDrawDestroy(TieHintergrund);
TextDrawDestroy(Text:TieString);
TextDrawDestroy(LadungTD[playerid]);
TextDrawDestroy(LadungZahl[playerid]);
TextDrawDestroy(Typ[playerid]);
TextDrawDestroy(TypName[playerid]);
TextDrawDestroy(TachoHeal[playerid]);
TextDrawDestroy(TachoTueren[playerid]);
TextDrawDestroy(TachoTank[playerid]);
TextDrawDestroy(TachoName[playerid]);
TextDrawDestroy(TachoMotor[playerid]);
TextDrawDestroy(PrologTime[playerid]);
TextDrawDestroy(WantedStat[playerid]);
if(oldstate == PLAYER_STATE_DRIVER)
{
pInfo[playerid][pPanzerGlas] =0;
StopAudioStreamForPlayer(playerid);
TextDrawHideForPlayer(playerid,TachoTank[playerid]);
TextDrawHideForPlayer(playerid,TachoHeal[playerid]);
TextDrawHideForPlayer(playerid,TachoName[playerid]);
TextDrawHideForPlayer(playerid,TachoTueren[playerid]);
TextDrawHideForPlayer(playerid,TachoMotor[playerid]);
for(new t; t < 4; t++)
TextDrawDestroy(TextDrawsd[playerid][t]);
for(new t; t < 10; t++)
TextDrawHideForPlayer(playerid,TextDraws[TDSpeedClock][t]);
for(new i=0;i<MAX_VEHICLES;i++)
{
if(newstate == PLAYER_STATE_DRIVER)
{
// new str[16];
new vehid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehid);
pOldCar[playerid] =GetPlayerVehicleID(playerid);
TextDrawShowForPlayer(playerid,TachoTank[playerid]);
TextDrawShowForPlayer(playerid,TachoHeal[playerid]);
TextDrawShowForPlayer(playerid,TachoName[playerid]);
TextDrawShowForPlayer(playerid,TachoTueren[playerid]);
TextDrawShowForPlayer(playerid,TachoMotor[playerid]);
for(new t; t < 10; t++)
TextDrawShowForPlayer(playerid, TextDraws[TDSpeedClock][t]);
for(new t; t < 4; t++)
TextDrawsd[playerid][t] = TextDrawCreate(555.0, 402.0, ".");
new vID = GetPlayerVehicleID(playerid);
for(new i=0;i<MAX_VEHICLES;i++)
{
Mfg