Problem mit dem Spawnen

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 Community,


    Ich habe heute wieder angenfangen zu scripten, habe einiges vergessen in letzter Zeit weil ich ja auch angefahren wurde und vergesslicher wurde. Egal, zum Haupt Thema:


    Ich spawne die ganze Zeit am Bauernhof in Dillimore, ich benutze ein GF Script auf MySQL geschrieben mit dem G-Stylezzz MySQL Plugin (R5)


    MfG
    tobi

  • Okay, lass dich mal spawnen und save die position. Such sie dann im Script und schau was da genau passiert.

  • Okay, lass dich mal spawnen und save die position. Such sie dann im Script und schau was da genau passiert.


    Achso also am 0 Punkt ? Zeig mal OnPlayerSpawn.

  • Ich denke mal du spanst am 0 Punkt. Also wird das Coordinaten saven nichts bringen.
    Benutzt du irgendein Anti-Cheat, weil ich meine bei mir war das mal als ich bei
    Juncbuster was falsch gemacht habe.

    Zitat von Elon Musk

    If you're trying to create a company, it's like baking a cake. You have to have all the ingredients in the right proportion.


  • Achso also am 0 Punkt ? Zeig mal OnPlayerSpawn.


    Ja genau, am 0 Punkt.



    public OnPlayerSpawn(playerid)
    {
    SpielerInfo[playerid][pTot] = 0;
    SetPlayerWantedLevel(playerid, SpielerInfo[playerid][pWanted]);
    SetPlayerSkin(playerid, SpielerInfo[playerid][pChar]);
    for(new i = 0; i < 11; i++){
    TextDrawHideForPlayer(playerid, LoginText[playerid][i]);
    }
    for(new i = 0; i < 11; i++)
    {
    TextDrawShowForPlayer(playerid, ServerInfo[playerid][i]);
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_bsn", true))
    {
    SetPlayerSkin(playerid, 217);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1202.9404,-899.5023,43.2659);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_schalter", true))//Am Schalter in der Bank der Bot
    {
    SetPlayerSkin(playerid, 11);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,4539.6909,-2001.6259,20.0500);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_kasse", true))//Bot hinten am Geld
    {
    SetPlayerSkin(playerid, 240);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,4550.4180,-2031.7531,23.5746);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_lauf", true))//Bot am BSN der herum läuft
    {
    SetPlayerSkin(playerid, 250);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1194.1891,-913.3006,43.2659);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_noob", true))//Bot am Zivispawn hinter der Bar
    {
    SetPlayerSkin(playerid, 194);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1805.3015,-1307.0839,82.1559);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_lspd1", true))//Bot am LSPD der am Schreibtisch ist
    {
    SetPlayerSkin(playerid, 282);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1530.9845,-1654.5168,2001.1659);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_lspd2", true))
    {
    SetPlayerSkin(playerid, 280);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1528.2131,-1654.4939,2001.1659);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_fot1", true))//Bot für 1 Schnappschuss Fotograf
    {
    SetPlayerSkin(playerid, 107);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2479.3569,-1303.5466,29.8371);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_fot2", true))//Bot für 2 Schnappschuss Fotograf
    {
    SetPlayerSkin(playerid, 108);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2268.8708,-2629.1638,13.5997);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_fot3", true))//Bot für 2 Schnappschuss Fotograf
    {
    SetPlayerSkin(playerid, 106);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2267.2461,-2629.1033,13.5976);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_fot4", true))//Bot für 3 Schnappschuss Fotograf
    {
    SetPlayerSkin(playerid, 111);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,812.4905,-1104.5758,25.7863);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_chef", true))//Bot für Ende von Fotograf
    {
    SetPlayerSkin(playerid, 185);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,921.0030,-1287.5537,14.4054);
    return 1;
    }
    }
    //Bots Tutorial:
    if(IsPlayerNPC(playerid))//jonny
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_tut1", true))
    {
    SetPlayerSkin(playerid, 33);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1107.5842,-871.4341,43.3906);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))//Cindy
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_tut2", true))
    {
    SetPlayerSkin(playerid, 193);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1144.0289,-1932.7026,44.3836);//Noch nicht gesetzt
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))//Tom
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_tut3", true))
    {
    SetPlayerSkin(playerid, 240);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1815.0374,-1309.9805,13.6864);
    return 1;
    }
    }//Dönerladen:
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_doner1", true))
    {
    SetPlayerSkin(playerid, 209);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,892.3904,-1430.2101,13.3859);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_doner3", true))
    {
    SetPlayerSkin(playerid, 14);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,895.5209,-1433.6764,13.3859);
    return 1;
    }
    }
    //Donutladen
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_donut1", true))
    {
    SetPlayerSkin(playerid, 229);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1908.1503,-1860.0649,13.8514);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_donut2", true))
    {
    SetPlayerSkin(playerid, 184);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1907.6100,-1869.5043,13.8354);
    return 1;
    }
    }
    //Bike Haus
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_bike", true))
    {
    SetPlayerSkin(playerid, 177);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1055.1007,-927.9169,42.9459);
    return 1;
    }
    }
    //Autohaus
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_auto1", true))
    {
    SetPlayerSkin(playerid, 189);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1016.3264,-1430.1224,13.9766);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_auto2", true))
    {
    SetPlayerSkin(playerid, 164);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,982.9749,-1425.1343,13.9746);
    return 1;
    }
    }
    //Fraktionsautohaus
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_frakhaus", true))
    {
    SetPlayerSkin(playerid, 164);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1362.2186,-1829.6062,14.4559);
    return 1;
    }
    }
    //Drogen dealer
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_dealer1", true))
    {
    SetPlayerSkin(playerid, 28);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2414.6655,-1424.6694,23.9830);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_dealer2", true))
    {
    SetPlayerSkin(playerid, 29);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2518.3379,-1484.0543,23.9906);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_dealer3", true))
    {
    SetPlayerSkin(playerid, 28);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,2805.0325,-1240.3804,45.6209);
    return 1;
    }
    }
    //Nutten
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_nutte1", true))
    {
    SetPlayerSkin(playerid, 87);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1201.3372,10.9855,1000.9219);
    SetPlayerInterior(playerid,2);
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_nutte2", true))
    {
    SetPlayerSkin(playerid, 90);
    gPlayerLogged[playerid] = 0;
    SetPlayerPos(playerid,1208.3239,-6.4397,1001.3281);
    SetPlayerInterior(playerid,2);
    return 1;
    }
    }
    //Tänzer
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_tanzer", true))
    {
    SetPlayerSkin(playerid, 46);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,17);
    return 1;
    }
    }
    //Bots einmal
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_neu1", true))
    {
    SetPlayerSkin(playerid, 60);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_neu2", true))
    {
    SetPlayerSkin(playerid, 93);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_neu3", true))
    {
    SetPlayerSkin(playerid, 170);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_neu4", true))
    {
    SetPlayerSkin(playerid, 22);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_neu5", true))
    {
    SetPlayerSkin(playerid, 23);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    //Bots Arbeitsamt
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_arb1", true))
    {
    SetPlayerSkin(playerid, 188);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_arb2", true))
    {
    SetPlayerSkin(playerid, 233);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    //Bots kaufhaus
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_helm", true))
    {
    SetPlayerSkin(playerid, 254);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_laden", true))
    {
    SetPlayerSkin(playerid, 192);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_skin", true))
    {
    SetPlayerSkin(playerid, 20);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_uhren", true))
    {
    SetPlayerSkin(playerid, 170);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_brille", true))
    {
    SetPlayerSkin(playerid, 172);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_handy", true))
    {
    SetPlayerSkin(playerid, 170);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_lotto", true))
    {
    SetPlayerSkin(playerid, 184);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_laden2", true))
    {
    SetPlayerSkin(playerid, 188);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_kiosk1", true))
    {
    SetPlayerSkin(playerid, 250);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_kiosk2", true))
    {
    SetPlayerSkin(playerid, 192);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "bot_krankenhaus", true))
    {
    SetPlayerSkin(playerid, 8);
    gPlayerLogged[playerid] = 0;
    return 1;
    }
    }
    if(SpielerInfo[playerid][pTottime] > 1 && SpielerInfo[playerid][pJailed] == 0)
    {
    if(PlayerPaintballing[playerid] != 1)
    {
    new kosten = suecost; new zeit = SpielerInfo[playerid][pTottime]-1, string[128];
    TogglePlayerControllable(playerid, 0); // Das Bringt das der spieler gefrezzt ist = er kann sich nicht bewegen.
    SetPlayerPos(playerid,1138.6342,-1308.4501,2001.8162); // Hier Stellt ihr ein wo euer spieler beim krankenhaus stehen soll
    SetPlayerCameraPos(playerid, 1131.8008,-1307.2313,2001.0850); // Die Kamera Positision
    SetPlayerCameraLookAt(playerid, 1131.8008,-1307.2313,2001.0850); //Die Kamera Blickrichtung
    SetPlayerVirtualWorld(playerid,playerid);
    ApplyAnimation(playerid, "CRACK","crckdeth1", 4.0, 0, 1, 1, 1, 0, 1);//crack Animation
    if(SpielerInfo[playerid][pLifeInsurance] == 1) { kosten = kosten/2; }
    if(SpielerInfo[playerid][pLifeInsurance] == 2) { kosten = 0; }
    SendClientMessage(playerid,COLOR_WHITE,"==================== [ KRANKENHAUS ] ====================");
    SendClientMessage(playerid,COLOR_WHITE,"Durch deine Verletzungen wurdest du ins Krankenhaus");
    SendClientMessage(playerid,COLOR_WHITE,"gebracht. Dr. Hartmut wird dich behandeln.");
    format(string,sizeof(string), "Krankenhausaufenthalt: %i Minute(n) | Arztkosten: %i $",zeit, kosten);
    SendClientMessage(playerid,COLOR_WHITE,string);
    SendClientMessage(playerid,COLOR_WHITE,"==================== [ KRANKENHAUS ] ===================="); //Ihr Müsst nicht unbedingt diesen text nehmen ihr könnt ihn beliebig editieren oder einfach nur eine zeile behalten
    SpielerIstTot[playerid] = 0;
    return 1;
    }
    }
    GangZoneShowForPlayer(playerid, NODMBSN, COLOR_WHITE);
    GangZoneShowForPlayer(playerid, NODMSH, COLOR_WHITE);
    GangZoneShowForPlayer(playerid, NODMNEWB, COLOR_WHITE);
    GangZoneShowForPlayer(playerid, NODMZIVI, COLOR_WHITE);
    GangZoneShowForPlayer(playerid, NODMARBEIT, COLOR_WHITE);
    if(gPlayerLogged[playerid] != 1)
    {
    SendClientMessage(playerid,COLOR_LIGHTRED,"SERVER: Du musst erst einen Account erstellen oder dich Einloggen!");
    return Kick(playerid);
    }
    ClearAnimations(playerid);
    VehSperre[playerid] = 0;
    STDPlayer[playerid] = 0;
    MakeAnimation[playerid] = 0;
    //GANGWAR ANFANG
    for(new i; i<MAX_GANGZONES; i++)//Damit alle gebiete durchlaufen werden
    {
    new color;//Erstellt eine neue Variable
    if(Gebiete[i][gOwner] == 999){color=COLOR_WHITE;}
    if(Gebiete[i][gOwner] == 5){color=COLOR_GREY;}
    if(Gebiete[i][gOwner] == 6){color=COLOR_WHITE;}
    if(Gebiete[i][gOwner] == 12){color=TEAM_GROVE_COLOR;}
    if(Gebiete[i][gOwner] == 13){color=TEAM_BALLAS_COLOR;}
    if(Gebiete[i][gOwner] == 14){color=TEAM_MS13_COLOR;}
    if(Gebiete[i][gOwner] == 15){color=COLOR_RED;}
    if(Gebiete[i][gOwner] == 16){color=COLOR_BLUE;}
    if(Gebiete[i][gOwner] == 17){color=COLOR_PURPLE;}
    if(Gebiete[i][gOwner] == 20){color=COLOR_LIGHTBLUE;}
    if(Gebiete[i][gOwner] == 21){color=COLOR_YELLOW2;}
    GangZoneShowForPlayer(playerid, Gebiet[i], color); // Hier wird dann die Zone gezeigt. Als erstes die spielerid, und die ist bei OnPlayerSpawn nunmal mit playerid definiert, dann welches Gebiet also Gebiet^^ und als letztes die Farbe die wir oben definiert haben.
    }//GANGWAR ENDE
    gTeam[playerid] = SpielerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }
    if(gTeam[playerid] == 11 && SpielerInfo[playerid][sMember] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Chef dieser Familie, du bist Zivilist !");
    SpielerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SpielerInfo[playerid][pChar] = CIV[rand];
    SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 5)
    {
    if(SpielerInfo[playerid][sMember] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Mitglied dieser Familie, du bist Zivilist !");
    SpielerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SpielerInfo[playerid][pChar] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 10)
    {
    if(SpielerInfo[playerid][sMember] != 8)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Mitglied dieser Fraktion, du bist Zivilist !");
    SpielerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SpielerInfo[playerid][pChar] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 2 && SpielerInfo[playerid][sMember] > 3 && SpielerInfo[playerid][sMember] != 7)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein LSPD'ler / Kripo / Bundeswehr, du bist Zivilist !");
    SpielerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SpielerInfo[playerid][pChar] = CIV[rand];
    SpawnPlayer(playerid);
    }
    SetPlayerSpawn(playerid);
    StopLoopingAnim(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);
    //Tankstellen:
    SetPlayerMapIcon(playerid, 1, 1004.5329,-938.8837,41.7556, 42, COLOR_YELLOW, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 2, 1943.9933,-1773.2720,12.9510, 42, COLOR_YELLOW, MAPICON_LOCAL);
    //Burger Shot Nord
    SetPlayerMapIcon(playerid, 3, 1199.6279,-903.3371,42.8233, 10, COLOR_YELLOW, MAPICON_LOCAL);
    //Paint Spray´s
    SetPlayerMapIcon(playerid, 4, 488.3834,-1733.5953,10.7362, 63, COLOR_YELLOW, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 5, 2072.8599,-1830.4628,13.1276, 63, COLOR_YELLOW, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 6, 1025.7695,-1030.1359,31.6324, 63, COLOR_YELLOW, MAPICON_LOCAL);
    //Gangs / Mafien
    SetPlayerMapIcon(playerid, 7, -2117.2429,925.8564,86.0791, 43, COLOR_YELLOW, MAPICON_LOCAL);//Triaden
    SetPlayerMapIcon(playerid, 8, 980.4578,2126.3708,10.8203, 44, COLOR_YELLOW, MAPICON_LOCAL);//Russen Mafia
    SetPlayerMapIcon(playerid, 9, 2352.1335,-1170.0316,28.0439, 59, COLOR_YELLOW, MAPICON_LOCAL);//Ballas
    SetPlayerMapIcon(playerid, 10, 2496.5293,-1683.8661,13.3708, 62, COLOR_YELLOW, MAPICON_LOCAL);//Grove
    //Kaufhaus
    SetPlayerMapIcon(playerid, 11, 1751.0537,-1900.9380,13.1116, 45, COLOR_YELLOW, MAPICON_LOCAL);
    //Arbeitsamt
    SetPlayerMapIcon(playerid, 12, 1727.2313,-1770.8839,13.0440, 56, COLOR_YELLOW, MAPICON_LOCAL);
    //Stadthalle
    SetPlayerMapIcon(playerid, 13, 1478.4165,-1759.4841,13.1037, 38, COLOR_YELLOW, MAPICON_LOCAL);
    //Polizei
    SetPlayerMapIcon(playerid, 14, 1554.2108,-1675.9125,15.7581, 30, COLOR_YELLOW, MAPICON_LOCAL);
    //Noobspawn
    SetPlayerMapIcon(playerid, 15, 1797.4347,-1289.8792,13.0553, 57, COLOR_YELLOW, MAPICON_LOCAL);
    //Bank
    SetPlayerMapIcon(playerid, 16, 1462.4924,-1015.5032,25.7708, 52, COLOR_YELLOW, MAPICON_LOCAL);
    //FlugZeug Rep
    SetPlayerMapIcon(playerid, 17, 1849.2041,-2419.1587,13.5547, 27, COLOR_YELLOW, MAPICON_LOCAL);
    for(new idx; idx<sizeof(HouseInfo); idx++){
    if(HouseInfo[idx][hCreated] != 0) {
    if(!strcmp(HouseInfo[idx][hOwner], "Zu Verkaufen", true)){
    SetPlayerMapIcon( playerid, idx+17, HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez], 31, COLOR_YELLOW , MAPICON_LOCAL );
    }else {
    SetPlayerMapIcon( playerid, idx+17, HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez], 32, COLOR_YELLOW , MAPICON_LOCAL);
    }
    }
    }


    //Bankraub System
    //Damit die Tasche bei Tot entfernt wird
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    if(!gPlayerAnimLibsPreloaded[playerid])
    {
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    gPlayerAnimLibsPreloaded[playerid] = 1;
    }
    return 1;
    }


    Geburtstagskuchen: Nein, kein Junkbuster :)