Spawn-Bug|bitte helfen drehe durch

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
  • //EDIT ich bin gleich wieder online also nich mit antworten warten bis ich wieder on bin^^
    hallo
    also hier is mein setplayerspawn:

    public SetPlayerSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    TogglePlayerControllable(playerid, 1);
    if(SpielerInfo[playerid][pTut] == 0)
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    TogglePlayerControllable(playerid, 0);
    RegistrationStep[playerid] = 1;
    ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_MSGBOX,"Geschlecht","Bist du Männlich oder Weiblich?","Männlich","Weiblich");
    SetPlayerPos(playerid,-1834.8555,18.3044,1061.1436);
    SetPlayerFacingAngle(playerid, 4.0557);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerCameraPos(playerid, -1833.3828,17.7951,1061.3993);
    SetPlayerCameraLookAt(playerid,-1834.5859,21.0157,1062.1665);
    }
    new rand;
    new house = SpielerInfo[playerid][pPhousekey];
    new tmpcar = GetPlayerVehicleID(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 1)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid,264.5257,77.6400,1001.0391);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Deine Strafe ist noch nicht vorbei, zurück in den Knast.");
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 2)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
    SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 3)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,219.3131,109.1838,999.0156);
    return 1;
    }
    if(MedicBill[playerid] == 1 && SpielerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    if(pTest[playerid] > 0)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTest[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(pTestFly[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTestFly[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(DKT[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    DKT[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(pTestBoat[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTestBoat[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    MedicBill[playerid] = 0;
    MedicTime[playerid] = 0;
    NeedMedicTime[playerid] = 0;
    }
    if(SpielerInfo[playerid][pSpawnChange] == 1 && house != 999)
    {
    if(HouseInfo[house][hMuell] < 50)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
    SpielerInfo[playerid][pLocal] = house;
    SpielerInfo[playerid][pInt] = HouseInfo[house][hInt];
    return 1;
    }
    else
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); // Warp the player
    return 1;
    }
    }
    if(SpielerInfo[playerid][pSpawnChange] == 0)
    {
    if (SpielerInfo[playerid][sMember] == 1 || SpielerInfo[playerid][sLeader] == 1)//Polizei Spawn
    {
    OnDuty[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,262.4644,71.1239,1003.2422);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 2 || SpielerInfo[playerid][sLeader] == 2)//FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid, 220.2969,108.5934,1010.2188);
    SetPlayerFacingAngle(playerid,270);
    SpielerInfo[playerid][pInt] = 10;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 3 || SpielerInfo[playerid][sLeader] == 3)//Army Spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 213.6955,1866.9175,13.1406);
    SetPlayerFacingAngle(playerid, 270.0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 4 || SpielerInfo[playerid][sLeader] == 4)//Arzt spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2037.8256,-1410.6281,17.1641);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 5 || SpielerInfo[playerid][sLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 244.411987,305.032989,999.148437);
    //SetPlayerFacingAngle(playerid, 43);
    SpielerInfo[playerid][pInt] = 1;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)//Yakuza Spawn
    {
    //SetPlayerVirtualWorld(playerid,2);
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 2);
    SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
    SetPlayerFacingAngle(playerid, 180);
    SpielerInfo[playerid][pInt] = 2;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if(SpielerInfo[playerid][sLeader] == 7||SpielerInfo[playerid][sMember] == 7)//President Spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 363.1330,172.5314,1025.7891);
    SpielerInfo[playerid][pInt] = 3;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 8 || SpielerInfo[playerid][sLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -381.7926,-1438.7909,25.7266);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 9 || SpielerInfo[playerid][sLeader] == 9) //CNN spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -2050.8962,460.0262,35.1719);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 10 || SpielerInfo[playerid][sLeader] == 10) //Taxi Cab Company spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1252.9410,-1672.4580,12.6719);
    SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 11 || SpielerInfo[playerid][sLeader] == 11) //BUGGY
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2570.3564,-1284.6008,1060.9844);
    SetPlayerFacingAngle(playerid, 139);
    SetPlayerInterior(playerid,2);
    SpielerInfo[playerid][pInt] = 2;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 12 || SpielerInfo[playerid][sLeader] == 12) //CRIPS FAMILIY
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2527.654052,-1679.388305,1015.498596);
    SetPlayerInterior(playerid,1);
    SpielerInfo[playerid][pInt] = 1;
    //SetPlayerVirtualWorld(playerid,12);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 13 || SpielerInfo[playerid][sLeader] == 13) //BLOODS GANG
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,302.180999,300.722991,999.148437);
    //SetPlayerFacingAngle(playerid,281.6475);
    SetPlayerInterior(playerid,4);
    SpielerInfo[playerid][pInt] = 4;
    //SetPlayerVirtualWorld(playerid,13);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 14 || SpielerInfo[playerid][sLeader] == 14) //Los Santos MS13
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,14);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 15 || SpielerInfo[playerid][sLeader] == 15)//need for speed
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,15);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 16 || SpielerInfo[playerid][sLeader] == 16) //OUTLAWS
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2350.339843,-1181.649902,1027.976562);
    //SetPlayerFacingAngle(playerid, 139);
    SetPlayerInterior(playerid,5);
    SpielerInfo[playerid][pInt] = 5;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 17 || SpielerInfo[playerid][sLeader] == 17)//URC
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,322.197998,302.497985,999.148437);
    SetPlayerInterior(playerid,5);
    SpielerInfo[playerid][pInt] = 5;
    //SetPlayerVirtualWorld(playerid,17);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 18 || SpielerInfo[playerid][sLeader] == 18) //O-Amt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1768.3827,-2041.4266,13.5299);
    SetPlayerFacingAngle(playerid, 271);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 19 || SpielerInfo[playerid][sLeader] == 19) //Partisans
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-1819.3967,-1612.1416,23.0156);
    //SetPlayerFacingAngle(playerid,180);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 20 || SpielerInfo[playerid][sLeader] == 20) //Triaden
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1523.509887,-47.821197,1002.130981);
    SetPlayerInterior(playerid,2);
    SpielerInfo[playerid][pInt] = 2;
    //SetPlayerVirtualWorld(playerid,20);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 21 || SpielerInfo[playerid][sLeader] == 21) //MARA
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
    SetPlayerInterior(playerid,3);
    SpielerInfo[playerid][pInt] = 3;
    //SetPlayerVirtualWorld(playerid,21);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 22 || SpielerInfo[playerid][sLeader] == 22) //juarez
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106);
    SetPlayerInterior(playerid,3);
    SpielerInfo[playerid][pInt] = 3;
    //SetPlayerVirtualWorld(playerid,21);
    SetPlayerWeapons(playerid);
    return 1;
    }
    }


    }
    else if(SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1772.8477,-1941.1484,13.5666); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }



    return 1;
    }



    wenn ich den normal lasse spawnen alle am noobspawn auch von den fraks
    wenn ichs so mache spawnen die fraks ganz normal aber die zivis nicht.
    guckts euch an.


    Bei der Regestrierung:


    Bild1:
    hier bin ich bei der registrierung


    bild2:
    dann falle ich dort runter


    blid3:
    und nun wo die registration fertig is fall ich dort beim arbeitsamt runter-.-
    da dann auch nahcm reloggen



    Bitte Leute helft mir ich krieg hier noch n Anfall :thumbdown:


    Wenn mir einer das gerade biegen kann liebe ich ihn :thumbup: spaß


    //EDIT ich bin gleich wieder online also nich mit antworten warten bis ich wieder on bin^^

  • hier ist der Fehler:


    if (SpielerInfo[playerid][sMember] == 1 || SpielerInfo[playerid][sLeader] == 1)//Polizei Spawn
    {
    OnDuty[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,262.4644,71.1239,1003.2422);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    SetPlayerWeapons(playerid);
    return 1;
    }

    machs ma so:


    if (SpielerInfo[playerid][sMember] == 1 || SpielerInfo[playerid][sLeader] == 1)//Polizei Spawn
    {
    OnDuty[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,262.4644,71.1239,30);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    SetPlayerWeapons(playerid);
    return 1;
    }

    mfg. :thumbup:

  • diesen Bug habe ich auf meinem Selfmade auch... -.-

  • Ne das is ja der police spawn hat ja damit nichts zu tun :pinch:

  • Hat es auch net ^^


    es hat damit zu tun dass man seine "Z" Achse bei dem Interior "0" nicht höher legen sollte als nötig ^^ also naja xD 1000 is zu viel der höchste Punkt is ja gerade ma iwas mit 500 metern hoch :D


    ( Z = höhen Achse )


    Naja da is der Fehler !


    mfg. :thumbup:

  • ja aber es hat ja nichts mit dem policespawn zu tun.
    Die Frakspawns gehen ja aber als noob nicht.
    Bitte nochmal lesen! :thumbup:

  • Bei pTut == 0 setzt du die hoehe auf 1061, aber kein Interior.
    SetPlayerPos(playerid,-1834.8555,18.3044,1061.1436);
    SetPlayerFacingAngle(playerid, 4.0557);
    SetPlayerInterior(playerid,0);


    Ich werde jetzt nicht das ganze Script durchgehen da es viel zu unuebersichtlich ist. Wenn du die Sachen vernuenftig einruecken wuerdest koennte man den Fehler um einiges leichter finden. Du hast aber Eindeutig etwas mit den Klammerungen Falsch gemacht, denn in Zeile 352 schliesst du 'if(IsPlayerConnected(playerid))' und darauf folgt:
    else if(SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1772.8477,-1941.1484,13.5666); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    Ist mit sicherheit nicht beabsichtigt.


    Btw @Hisara:
    SetPlayerPos(playerid,262.4644,71.1239,1003.2422);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,6);
    Interior 6, daher ist die hoehe wahrscheinlich schon korrekt.

  • ja ich poste es mal wies original ist und wo ALLE am noobspawn spawnen:

    public SetPlayerSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    TogglePlayerControllable(playerid, 1);
    if(SpielerInfo[playerid][pTut] == 0)
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    TogglePlayerControllable(playerid, 0);
    RegistrationStep[playerid] = 1;
    ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_MSGBOX,"Geschlecht","Bist du Männlich oder Weiblich?","Männlich","Weiblich");
    SetPlayerPos(playerid,-1834.8555,18.3044,1061.1436);
    SetPlayerFacingAngle(playerid, 4.0557);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerCameraPos(playerid, -1833.3828,17.7951,1061.3993);
    SetPlayerCameraLookAt(playerid,-1834.5859,21.0157,1062.1665);
    }
    new rand;
    new house = SpielerInfo[playerid][pPhousekey];
    new tmpcar = GetPlayerVehicleID(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 1)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid,264.5257,77.6400,1001.0391);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Deine Strafe ist noch nicht vorbei, zurück in den Knast.");
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 2)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
    SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 3)
    {
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,219.3131,109.1838,999.0156);
    return 1;
    }
    if(MedicBill[playerid] == 1 && SpielerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    if(pTest[playerid] > 0)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTest[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(pTestFly[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTestFly[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(DKT[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    DKT[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(pTestBoat[playerid] > 0)
    {
    DisablePlayerRaceCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist Durchgefallen weil du gestorben bist!");
    pTestBoat[playerid] = 0;
    GameTextForPlayer(playerid, "~r~ Durchgefallen", 5000, 3);
    PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
    SetVehicleToRespawn(tmpcar);
    TakingLesson[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    }
    MedicBill[playerid] = 0;
    MedicTime[playerid] = 0;
    NeedMedicTime[playerid] = 0;
    }
    if(SpielerInfo[playerid][pSpawnChange] != 0)
    {
    if(SpielerInfo[playerid][pSpawnChange] == 1 && house != 999)
    {
    if(HouseInfo[house][hMuell] < 50)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
    SpielerInfo[playerid][pLocal] = house;
    SpielerInfo[playerid][pInt] = HouseInfo[house][hInt];
    return 1;
    }
    else
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); // Warp the player
    return 1;
    }
    }
    if(SpielerInfo[playerid][pSpawnChange] == 2)
    {
    SendClientMessage(playerid,COLOR_LIGHTRED,"Der Spawn kostet dich 50$!");
    PlayerMoney[playerid] = PlayerMoney[playerid]-50;
    if (SpielerInfo[playerid][sMember] == 1 || SpielerInfo[playerid][sLeader] == 1)//Polizei Spawn
    {
    OnDuty[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,262.4644,71.1239,1003.2422);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 2 || SpielerInfo[playerid][sLeader] == 2)//FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid, 220.2969,108.5934,1010.2188);
    SetPlayerFacingAngle(playerid,270);
    SpielerInfo[playerid][pInt] = 10;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 3 || SpielerInfo[playerid][sLeader] == 3)//Army Spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 213.6955,1866.9175,13.1406);
    SetPlayerFacingAngle(playerid, 270.0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 4 || SpielerInfo[playerid][sLeader] == 4)//Arzt spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2037.8256,-1410.6281,17.1641);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 5 || SpielerInfo[playerid][sLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 18);
    SetPlayerPos(playerid, 1728.1071,-1668.0999,22.6094);
    SetPlayerFacingAngle(playerid, 43);
    SpielerInfo[playerid][pInt] = 18;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)//Yakuza Spawn
    {
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, -2660.9822,1423.5663,912.4114);
    SetPlayerFacingAngle(playerid, 180);
    SpielerInfo[playerid][pInt] = 3;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if(SpielerInfo[playerid][sLeader] == 7||SpielerInfo[playerid][sMember] == 7)//President Spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 363.1330,172.5314,1025.7891);
    SpielerInfo[playerid][pInt] = 3;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 8 || SpielerInfo[playerid][sLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -381.7926,-1438.7909,25.7266);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 9 || SpielerInfo[playerid][sLeader] == 9) //CNN spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -2050.8962,460.0262,35.1719);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 10 || SpielerInfo[playerid][sLeader] == 10) //Taxi Cab Company spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1252.9410,-1672.4580,12.6719);
    SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 11 || SpielerInfo[playerid][sLeader] == 11) //BUGGY
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2570.3564,-1284.6008,1060.9844);
    SetPlayerFacingAngle(playerid, 139);
    SetPlayerInterior(playerid,2);
    SpielerInfo[playerid][pInt] = 2;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 12 || SpielerInfo[playerid][sLeader] == 12) //GROOVE STREET FAMILIY
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,12);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 13 || SpielerInfo[playerid][sLeader] == 13) //BALLAS GANG
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,281.6475);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,13);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 14 || SpielerInfo[playerid][sLeader] == 14) //Los Santos MS13
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,14);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 15 || SpielerInfo[playerid][sLeader] == 15)//need for speed
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,15);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 16 || SpielerInfo[playerid][sLeader] == 16) //Scarfo
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2570.3564,-1284.6008,1060.9844);
    SetPlayerFacingAngle(playerid, 139);
    SetPlayerInterior(playerid,2);
    SpielerInfo[playerid][pInt] = 2;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 17 || SpielerInfo[playerid][sLeader] == 17)//Russen spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 17;
    SetPlayerVirtualWorld(playerid,17);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 18 || SpielerInfo[playerid][sLeader] == 18) //O-Amt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1768.3827,-2041.4266,13.5299);
    SetPlayerFacingAngle(playerid, 271);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 19 || SpielerInfo[playerid][sLeader] == 19) //Terroristen
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-1819.3967,-1612.1416,23.0156);
    SetPlayerFacingAngle(playerid,180);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 20 || SpielerInfo[playerid][sLeader] == 20) //Aztecas
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 20;
    SetPlayerVirtualWorld(playerid,20);
    SetPlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][sMember] == 21 || SpielerInfo[playerid][sLeader] == 21) //Biker
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,488.4585,-81.7211,998.7578);
    SetPlayerInterior(playerid,11);
    SpielerInfo[playerid][pInt] = 21;
    SetPlayerVirtualWorld(playerid,21);
    SetPlayerWeapons(playerid);
    return 1;
    }
    }
    }
    else
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1772.8477,-1941.1484,13.5666); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    }
    return 1;
    }

  • Ja :) das ist richtig ;) ich sagte ja deshalb au "nur wenn Interior = 0" :D

  • Nach dem ich die EInrueckungen korrigiert habe nehme ich mal an, dass else if(SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1772.8477,-1941.1484,13.5666); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    Der noob spawn sein soll. Verschieb' den code vor die schliessende Klammer zuvor, da die, wie schon gesagt, if(IsPlayerConnected(.. schliesst. Ausserdem wuerde ich da SetPlayerInterior hinzufuegen um sicher zu gehen, dass der Spieler im korrekten interior ist.

  • weiß wirklich niemand anderes eine lösng ;(

  • Wie gesagt :D


    Du hast dein Script doch vor dir ^^


    es heißt immer :


    SetPlayerPos(playerid, X, Y, Z); // überprüf immer die Z Achse | aber nur wenn SetPlayerInterior 0 ist !
    SetPlayerInterior(playerid, 0); // dann MUSS Z kleiner sein als 1000 !



    Musst du leider selber überprüfen ^^


    mfg. :thumbup:


    PS: Viel Erfolg :rolleyes: