Nach spawn im Himmel

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, irgendwie spawnt man bei meinem script, wenn man sich einloggt im himmel... auch wenn man abgeschossen wird.. eigendlich immer wenn man respawnt wird...
    wisst ihr wie man so etwas behebt ? Wäre sehr nett wenn mir jemand helfen würde... :(

  • if(gTeam[playerid] == 3)
    {
    if(SpielerInfo[playerid][sMember] > 0 || SpielerInfo[playerid][sLeader] > 0)
    {
    MedicBill[playerid] = 0;
    new model = SpielerInfo[playerid][pChar];
    if(SpielerInfo[playerid][sMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 5; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 5; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 7) { SetSpawnInfo(playerid, 7, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 12; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 10) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 12; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 12) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 13) { SetSpawnInfo(playerid, 13, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 14) { SetSpawnInfo(playerid, 14, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 14; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 15) { SetSpawnInfo(playerid, 15, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 15; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 16) { SetSpawnInfo(playerid, 16, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 16; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 17) { SetSpawnInfo(playerid, 17, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 17; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 18) { SetSpawnInfo(playerid, 18, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 18; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 19) { SetSpawnInfo(playerid, 19, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 19; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 20) { SetSpawnInfo(playerid, 20, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 20; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sMember] == 21) { SetSpawnInfo(playerid, 21, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 21; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 1; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 10) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 11; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 11) { SetSpawnInfo(playerid, 14, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 1; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 12) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 12; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 13) { SetSpawnInfo(playerid, 13, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 13; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 14) { SetSpawnInfo(playerid, 14, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 14; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 15) { SetSpawnInfo(playerid, 15, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 15; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 16) { SetSpawnInfo(playerid, 16, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 16; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 17) { SetSpawnInfo(playerid, 17, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 17; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 18) { SetSpawnInfo(playerid, 18, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 18; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 19) { SetSpawnInfo(playerid, 19, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 19; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 20) { SetSpawnInfo(playerid, 20, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 20; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    else if(SpielerInfo[playerid][sLeader] == 21) { SetSpawnInfo(playerid, 21, model,0.0,0.0,0.0,0,0,0,0,0,0,0); SpielerInfo[playerid][pTeam] = 21; gTeam[playerid] = 10; SpielerInfo[playerid][pModel] = model; }
    SpawnPlayer(playerid);
    }
    }


    Das is eins bei OnPlayerSpawn... liegt das vllt. an den ganzen nullen ?