Fraktioncars

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
  • Guten Tag,


    ich habe ein Problem und zwar ich kann ich ein Fraktioncar wie Polizeiauto einsteigen obwohl ich es gemacht habe das es nicht geht hier mal der Code:


    if(IstPolizei(modelid))
    {
    if(SpielerInfo[playerid][Haubtjob] == 1){ }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, Rot, "Du bist kein Polizist!");
    }
    }


    ich bitte um hilfe!

  • Wie meinste das:


    PolizeiAuto[1] = CreateVehicle(596,1602.9777,-1683.9468,5.6107,269.3139,0,1,10000); // Polizei-1
    PolizeiAuto[2] = CreateVehicle(596,1602.8875,-1687.9159,5.6116,269.6698,0,1,10000); // Polizei-2
    PolizeiAuto[3] = CreateVehicle(596,1602.9371,-1692.1107,5.6111,268.9252,0,1,10000); // Polizei-3
    PolizeiAuto[4] = CreateVehicle(596,1603.0742,-1696.1655,5.6105,269.9011,0,1,10000); // Polizei-4
    PolizeiAuto[5] = CreateVehicle(596,1602.8048,-1699.9299,5.6146,268.2267,0,1,10000); // Polizei-5
    PolizeiAuto[6] = CreateVehicle(596,1602.9692,-1704.0605,5.6124,269.2452,0,1,10000); // Polizei-5
    PolizeiAuto[7] = CreateVehicle(528,1595.3319,-1710.3201,5.9327,0.2006,0,0,10000); // Polizei-Sicherheits-1
    PolizeiAuto[8] = CreateVehicle(528,1591.4895,-1711.2125,5.9353,358.7102,0,0,10000); // Polizei-Sicherheits-2
    PolizeiAuto[9] = CreateVehicle(528,1587.7448,-1711.2402,5.9345,359.8579,0,0,10000); // Polizei-Sicherheits-3
    PolizeiAuto[10] = CreateVehicle(528,1583.7639,-1710.6473,5.9347,359.8363,0,0,10000); // Polizei-Sicherheits-4
    PolizeiAuto[11] = CreateVehicle(528,1579.0454,-1710.5579,5.9342,358.4349,0,0,10000); // Polizei-Sicherheits-5
    PolizeiAuto[12] = CreateVehicle(528,1574.5671,-1710.9534,5.9341,359.3513,0,0,10000); // Polizei-Sicherheits-6
    PolizeiAuto[13] = CreateVehicle(528,1570.8265,-1710.5614,5.9344,359.5651,0,0,10000); // Polizei-Sicherheits-7
    PolizeiAuto[14] = CreateVehicle(567,1566.5717,-1711.2471,5.7559,358.9572,93,64,10000); // Zivil-1
    PolizeiAuto[15] = CreateVehicle(415,1562.2931,-1711.0197,5.6617,358.7242,62,1,10000); // Zivil-2
    PolizeiAuto[16] = CreateVehicle(451,1558.8059,-1711.0288,5.5976,0.3594,18,18,10000); // Zivil-3
    PolizeiAuto[17] = CreateVehicle(461,1531.5327,-1688.2478,5.4819,268.4282,61,1,10000); // Zivil-4
    PolizeiAuto[18] = CreateVehicle(461,1530.4694,-1683.7429,5.4807,273.6420,61,1,10000); // Zivil-5
    PolizeiAuto[19] = CreateVehicle(468,1554.4501,-1682.1069,5.8879,97.9280,6,6,10000); // Zivil-6
    PolizeiAuto[20] = CreateVehicle(468,1554.7035,-1683.8054,5.8774,93.2208,6,6,10000); // Zivil-7
    PolizeiAuto[21] = CreateVehicle(468,1555.2617,-1685.4896,5.8879,88.1313,6,6,10000); // Zivil-8
    PolizeiAuto[22] = CreateVehicle(523,1547.5637,-1684.3326,5.4640,88.4596,0,0,10000); // Zivil-9
    PolizeiAuto[23] = CreateVehicle(523,1547.6106,-1680.1067,5.4549,91.7539,0,0,10000); // Zivil-10
    PolizeiAuto[24] = CreateVehicle(523,1546.9026,-1676.5736,5.4611,89.8860,0,0,10000); // Zivil-11
    PolizeiAuto[25] = CreateVehicle(541,1544.9957,-1671.9550,5.5156,87.6292,2,1,10000); // Zivil-12
    PolizeiAuto[26] = CreateVehicle(541,1544.3738,-1667.9164,5.5157,92.1930,2,1,10000); // Zivil-13
    PolizeiAuto[27] = CreateVehicle(542,1544.2179,-1663.1053,5.6342,90.4787,45,92,10000); // Zivil-14
    PolizeiAuto[28] = CreateVehicle(542,1544.4169,-1658.9768,5.6343,91.3828,45,92,10000); // Zivil-15
    PolizeiAuto[29] = CreateVehicle(550,1544.1980,-1654.8999,5.7109,88.5901,7,7,10000); // Zivil-16
    PolizeiAuto[30] = CreateVehicle(550,1544.5995,-1651.0243,5.7107,92.6375,7,7,10000); // Zivil-17
    PolizeiAuto[31] = CreateVehicle(559,1538.7246,-1645.0646,5.5470,180.7650,2,1,10000); // Zivil-18
    PolizeiAuto[32] = CreateVehicle(562,1534.6980,-1645.4794,5.5503,180.8363,116,1,10000); // Zivil-19
    PolizeiAuto[33] = CreateVehicle(587,1530.6045,-1645.8324,5.6156,182.1518,72,1,10000); // Zivil-20


    oder das:
    public IstPolizei(carid)
    {
    for(new i = 0; i < sizeof(PolizeiAuto); i++)
    {
    if(carid == PolizeiAuto[i])
    {
    return 1;
    }
    }
    return 0;
    }

    2 Mal editiert, zuletzt von Hawkn ()

  • ich bitte drum das mir jemand hilft schon 4 Tahe sitze ich an diesem Sch... ProbleM!