[Help] bei Gates

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
  • Hallo,
    ich hab ne frage...


    ... also ich hab Tore gemacht
    aber die wollen net auf wenn man im Auto
    sitzt ;(


    Hier:
    if(newkeys == (KEY_WALK))
    {
    if (PlayerToPoint(40.0, playerid, -1571.9320068359, 661.54284667969, 8.1212449073792))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    new car = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
    {
    MoveObject(sfpd1,-1571.9320068359, 661.54284667969, 3.1212449073792, 4);
    SetTimer("sfpd1timer", 5000, 0);
    }
    }
    }
    else if (PlayerToPoint(40.5, playerid, -1700.0808105469, 684.21929931641, 26.706785202026))
    {// PD--
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    new car = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
    {
    MoveObject(sfpd2,-1700.0808105469, 684.21929931641, 16.706785202026, 4);
    SetTimer("sfpd2timer", 5000, 0);
    }
    }
    }
    else if (PlayerToPoint(45.5, playerid, -1633.2602539063, 691.55584716797, 6.4729248285294))
    {// PD--
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    new car = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
    {
    MoveObject(sfpd3,-1633.2602539063, 691.55584716797, -1.4729248285294, 4);
    SetTimer("sfpd3timer", 5000, 0);
    }
    }
    }
    }



    Wieso wollen sie nicht?


    Danke
    mfg Pascal

    Einmal editiert, zuletzt von iVirtual ()

  • new's:


    new sfpd1;
    new sfpd2;
    new sfpd3;

    dan erklärung:
    sfpd1 = CreateObject(980, -1571.962890625, 661.53253173828, 8.9608917236328, 0, 0, 270.27026367188);
    sfpd2 = CreateObject(971, -1700.1300048828, 684.7265625, 26.201324462891, 0, 0, 270.27026367188);
    sfpd3 = CreateObject(972, -1633.2635498047, 691.58752441406, 6.1875, 0, 0, 270.27026367188);



    forwards:
    forward sfpd1timer();
    forward sfpd2timer();
    forward sfpd3timer();

    public:
    public sfpd1timer()
    {
    MoveObject (sfpd1,-1571.962890625, 661.53253173828, 8.9608917236328, 4);
    return 1;
    }
    public sfpd2timer()
    {
    MoveObject (sfpd2,-1700.1300048828, 684.7265625, 26.201324462891, 4);
    return 1;
    }
    public sfpd3timer()
    {
    MoveObject (sfpd3,-1633.2635498047, 691.58752441406, 6.1875, 4);
    return 1;
    }


    das wars^^

  • ehm gehört sowas nicht in scripting base rein?? ..