Hey Leute kann mir jmd helfen:
bus[0] = AddStaticVehicle(437,1080.5735,-1775.5188,13.4513,269.9214,1,6); // NewBus1
bus[1] = AddStaticVehicle(437,1080.8353,-1769.6393,13.4569,270.9058,1,6); // NewBus2
bus[2] = AddStaticVehicle(437,1080.9146,-1763.8500,13.4722,269.9808,1,6); // NewBus3
bus[3] = AddStaticVehicle(437,1080.9071,-1757.9260,13.4838,270.6707,1,6); // NewBus4
bus[4] = AddStaticVehicle(431,1065.1042,-1736.1549,13.6827,270.1359,1,6); // NewBus5
bus[5] = AddStaticVehicle(431,1082.1935,-1736.1841,13.7214,269.9921,1,6); // NewBus6
bus[6] = AddStaticVehicle(431,1082.2491,-1747.3916,13.6451,270.3666,1,6); // NewBus7
bus[7] = AddStaticVehicle(431,1059.2462,-1770.3340,13.5627,359.4961,1,6); // NewBus8
bus[8] = AddStaticVehicle(431,1059.1908,-1753.7209,13.6218,0.1888,1,6); // NewBus9
bus[9] = AddStaticVehicle(431,1102.0671,-1770.4241,13.5342,0.0443,1,6); // NewBus10
bus[10] = AddStaticVehicle(431,1102.0356,-1758.3676,13.5359,0.0886,1,6); // NewBus11
bus1 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus1, bus[0], 0, 0, 0);
bus2 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus2, bus[1], 0, 0, 0);
bus3 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus3, bus[2], 0, 0, 0);
bus4 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus4, bus[3], 0, 0, 0);
bus5 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus5, bus[4], 0, 0, 0);
bus6 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus6, bus[5], 0, 0, 0);
bus7 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus7, bus[6], 0, 0, 0);
bus8 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus8, bus[7], 0, 0, 0);
bus9 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus9, bus[8], 0, 0, 0);
bus10 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus10, bus[9], 0, 0, 0);
bus11 = Create3DTextLabel( "Leerfahrt", 0x00BEFFFF, 0.0, 0.0, 0.0, 10.0, 0, 1);
Attach3DTextLabelToVehicle(bus11, bus[10], 0, 0, 0);
Also, jetzt möchte ich, dass wenn ich /linie mache das sich die Schrift Leerfahrt zu Linie ändert hier der Befehl:
ocmd:linie(playerid,params[])
{
if(GetPVarInt(playerid,"Job")!=3) return SendClientMessage(playerid,ROT,"Du bist kein Busfahrer!");
{
ShowPlayerDialog(playerid,Busf,DIALOG_STYLE_LIST,"Buslinien","Linie 1(0 Skillpunkte)\nLinie 2(30 Skillpunkte)\nLinie 3(60 Skillpunkte)\nLinie 4(90 Skillpunkte)\nLinie 5(120 Skillpunkte)\nLinie 6(150 Skillpunkte)","Auwählen","Abbrechen");
return 1;
}
}
if(dialogid == Busf) //
{
if(response)
{
if(listitem == 0)
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
if(listitem == 1)
{
if(GetPVarInt(playerid,"Busskill")!=30)return SendClientMessage(playerid,ROT,"Du hast nicht genug Skill!");
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
}
if(listitem == 2) //Stadthalle
{
if(GetPVarInt(playerid,"Busskill")!=60)return SendClientMessage(playerid,ROT,"Du hast nicht genug Skill!");
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
}
if(listitem == 3) //Bank
{
if(GetPVarInt(playerid,"Busskill")!=90)return SendClientMessage(playerid,ROT,"Du hast nicht genug Skill!");
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
}
if(listitem == 4) //LSPD
{
if(GetPVarInt(playerid,"Busskill")!=120)return SendClientMessage(playerid,ROT,"Du hast nicht genug Skill!");
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
}
if(listitem == 5) //Fahrschule
{
if(GetPVarInt(playerid,"Busskill")!=150)return SendClientMessage(playerid,ROT,"Du hast nicht genug Skill!");
{
CheckPoint2[playerid] = 1;
SetPlayerCheckpoint(playerid,1185.5792,-937.2421,42.8852,9);
SendClientMessage(playerid,GRÜN,"Du hast deine Busfahrt gestartet!");
return 1;
}
}
}
}
Wo kann ich da den Wechsel machen?
Kann mir jemand helfen?
MfG Larso99
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link