hey also ich habe ne frage ich habe ein tacho so und wen ich connecte ist das tacho da wie mache ich das es nur zu sehen ist wen ich im auto bin und nicht wen man connectet ?
mfg justin
hey also ich habe ne frage ich habe ein tacho so und wen ich connecte ist das tacho da wie mache ich das es nur zu sehen ist wen ich im auto bin und nicht wen man connectet ?
mfg justin
Zeig mal bitte den code zum Tacho
Villt hast du im Im falschen Public Gepostet Oder so.
MFG
Justkillyou
den code zum tacho meinste alles ? i
hier bei onplayerconnect.
Speedo4[playerid] = TextDrawCreate(152.000000, 379.000000, "");
TextDrawBackgroundColor(Speedo4[playerid], 255);
TextDrawFont(Speedo4[playerid], 1);
TextDrawLetterSize(Speedo4[playerid], 0.230000, 1.000000);
TextDrawColor(Speedo4[playerid], 522539007);
TextDrawSetOutline(Speedo4[playerid], 1);
TextDrawSetProportional(Speedo4[playerid], 1);
Speedo5[playerid] = TextDrawCreate(152.000000, 393.000000, "100 km/h");
TextDrawBackgroundColor(Speedo5[playerid], 255);
TextDrawFont(Speedo5[playerid], 1);
TextDrawLetterSize(Speedo5[playerid], 0.230000, 1.000000);
TextDrawColor(Speedo5[playerid], -1);
TextDrawSetOutline(Speedo5[playerid], 1);
TextDrawSetProportional(Speedo5[playerid], 1);
Speedo6[playerid] = TextDrawCreate(176.000000, 352.000000, "1000/1000");
TextDrawBackgroundColor(Speedo6[playerid], 255);
TextDrawFont(Speedo6[playerid], 1);
TextDrawLetterSize(Speedo6[playerid], 0.230000, 1.000000);
TextDrawColor(Speedo6[playerid], -1);
TextDrawSetOutline(Speedo6[playerid], 1);
TextDrawSetProportional(Speedo6[playerid], 1);
Speedo7[playerid] = TextDrawCreate(190.000000, 366.000000, "100%");
TextDrawBackgroundColor(Speedo7[playerid], 255);
TextDrawFont(Speedo7[playerid], 1);
TextDrawLetterSize(Speedo7[playerid], 0.230000, 1.000000);
TextDrawColor(Speedo7[playerid], -1);
TextDrawSetOutline(Speedo7[playerid], 1);
TextDrawSetProportional(Speedo7[playerid], 1);
TextDrawHideForPlayer(playerid, Speedo0);
TextDrawHideForPlayer(playerid, Speedo1);
TextDrawHideForPlayer(playerid, Speedo2);
TextDrawHideForPlayer(playerid, Speedo3);
TextDrawHideForPlayer(playerid, Speedo4[playerid]);
TextDrawHideForPlayer(playerid, Speedo5[playerid]);
TextDrawHideForPlayer(playerid, Speedo6[playerid]);
TextDrawHideForPlayer(playerid, Speedo7[playerid]);
TextDrawHideForPlayer(playerid, Speedo8);
Sollte auch im Callback OnPlayerEnterVehilce stehen
wie ?
habe das so auch unter onplayerentervehicle
stehen aber wen ich connecte und laufe habe ich trozdem das tacho unten.
Nimms bei OnPlayerConnect raus und fügs mal hier ein.
Bin nicht sicher obs geht aber sollte.
public OnPlayerStateChange(playerid, newstate, oldstate){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { Speedo4[playerid] = TextDrawCreate(152.000000, 379.000000, ""); TextDrawBackgroundColor(Speedo4[playerid], 255); TextDrawFont(Speedo4[playerid], 1); TextDrawLetterSize(Speedo4[playerid], 0.230000, 1.000000); TextDrawColor(Speedo4[playerid], 522539007); TextDrawSetOutline(Speedo4[playerid], 1); TextDrawSetProportional(Speedo4[playerid], 1);
Speedo5[playerid] = TextDrawCreate(152.000000, 393.000000, "100 km/h"); TextDrawBackgroundColor(Speedo5[playerid], 255); TextDrawFont(Speedo5[playerid], 1); TextDrawLetterSize(Speedo5[playerid], 0.230000, 1.000000); TextDrawColor(Speedo5[playerid], -1); TextDrawSetOutline(Speedo5[playerid], 1); TextDrawSetProportional(Speedo5[playerid], 1);
Speedo6[playerid] = TextDrawCreate(176.000000, 352.000000, "1000/1000"); TextDrawBackgroundColor(Speedo6[playerid], 255); TextDrawFont(Speedo6[playerid], 1); TextDrawLetterSize(Speedo6[playerid], 0.230000, 1.000000); TextDrawColor(Speedo6[playerid], -1); TextDrawSetOutline(Speedo6[playerid], 1); TextDrawSetProportional(Speedo6[playerid], 1);
Speedo7[playerid] = TextDrawCreate(190.000000, 366.000000, "100%"); TextDrawBackgroundColor(Speedo7[playerid], 255); TextDrawFont(Speedo7[playerid], 1); TextDrawLetterSize(Speedo7[playerid], 0.230000, 1.000000); TextDrawColor(Speedo7[playerid], -1); TextDrawSetOutline(Speedo7[playerid], 1); TextDrawSetProportional(Speedo7[playerid], 1);
TextDrawHideForPlayer(playerid, Speedo0); TextDrawHideForPlayer(playerid, Speedo1); TextDrawHideForPlayer(playerid, Speedo2); TextDrawHideForPlayer(playerid, Speedo3); TextDrawHideForPlayer(playerid, Speedo4[playerid]); TextDrawHideForPlayer(playerid, Speedo5[playerid]); TextDrawHideForPlayer(playerid, Speedo6[playerid]); TextDrawHideForPlayer(playerid, Speedo7[playerid]); TextDrawHideForPlayer(playerid, Speedo8); }}
Freundliche Grüsse
DarkBoy
habs schon habe nur was vergeßen aber trozdem danke .