Problem! alle spawnen am noobspawn

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
  • hi wie die überschrieft schon sagt spawnen irgendwie alle am noobspawn :S
    bei setplayerspawn sind aber andre coords dirn kann jemand helfen, wäre sehe sehr sehr dankbar :love:


    //EDIT:



    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
    {
    zivispawn(playerid,pWohnort);
    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;
    }
    /*else if(SpielerInfo[playerid][pWohnort] == 0 && SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1817.4718,-1349.9363,15.0701); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    else if(SpielerInfo[playerid][pWohnort] == 1 && SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-1987.8271,139.9761,27.5391); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }*/
    }
    return 1;
    }


  • SetPlayerspawn weil dort wir ja abgefragt ob der in der frak is und wenn ja soll er da gespawnt werden


  • 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, 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
    {
    zivispawn(playerid,pWohnort);
    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;
    }
    /*else if(SpielerInfo[playerid][pWohnort] == 0 && SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1817.4718,-1349.9363,15.0701); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    else if(SpielerInfo[playerid][pWohnort] == 1 && SpielerInfo[playerid][sMember] == 0 || SpielerInfo[playerid][sLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-1987.8271,139.9761,27.5391); //1129.2047,-1489.1949,22.7690
    SetPlayerFacingAngle(playerid, 315);
    SetCameraBehindPlayer(playerid);
    return 1;
    }*/
    }
    return 1;
    }

  • Es liegt an deiner Variable 'pSpawnChange', bedeutet wenn der Wert vom Spieler bei 'pSpawnChange' nicht 0 ist, dann spawnt er am Noobspawn ^^


    if(SpielerInfo[playerid][pSpawnChange] != 0) //Also hier ist der Fehler ^^

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!

  • Und womit muss ich das ersezten danke schonmal :thumbup:

  • lösch die If Abfrage raus ^^ und füg es als UND Operator (&&) zur Hausabfrage hinzu.

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!


  • if(SpielerInfo[playerid][pSpawnChange] == 0 && 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;
    }
    }

  • Theorethisch in Ordnung, wenn die Variablen auch dir passen ^^ Aber dieses


    if(HouseInfo[house][hMuell] < 50) hat in deinem gepostetem Code keine geschlossene Klammer. Wollt ich nur anmerken.

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!

  • also wie muss ich das jez machen bitte helft mir es geht nicht bitte editiert das mal so und postet es dann bin euch dann sehr sehr sehr sehr dankbar



    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] == 0)
    {
    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;
    }

    Einmal editiert, zuletzt von _(DereezZeD)_ ()

  • Die obere IF-Abfrage


    if(SpielerInfo[playerid][pSpawnChange] != 0)


    muss weg!

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!

  • Ob es geht weiß ich net aber schonmal danke
    aber wie bekomme ich das ding weg

    C:\Users\DereezZeD\Desktop\Infinity Roleplay\gamemodes\IRP0.2.2.pwn(5687) : warning 209: function "SetPlayerSpawn" should return a value


  • ganz am Ende in der Funktion SetPlayerSpawn ein einfaches


    return 1; einfügen

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!

  • danke schön Templer
    ich muss ja leider 6 Wörter und 15 Zeichen haben xD