0.3z Spieler kommt auf Server und Stirbt

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
  • Hey
    Hab das Problem das seitdem ich auf 0.3z den Server geändert habe der User bei der Registration sofort stribt und das immer wieder sobald ich den Server auf 0.3x laufen lasse passiert dieses nicht.
    Danke im vorraus,


    Mfg, Dome_

    Einmal editiert, zuletzt von Dome_ ()

  • Zeig mal dein OnPlayerConnect code


    Hier:
    public OnPlayerConnect(playerid)
    {
    PlayAudioStreamForPlayer(playerid, "http://www.Name-of-roleplay.com/wcf/start.mp3");
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 500);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 500);
    AddPlayer(playerid);
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid, COLOR_WHITE, "");
    SendClientMessage(playerid,COLOR_WHITE,"Willkommen auf {00FF00}N{FFFFFF}ame-of {00FF00}R{FFFFFF}oleplay.");
    gPlayerLogged[playerid] = 0;
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    new playerip[256];
    GetPlayerIp(playerid,playerip,sizeof(playerip));
    strmid(PlayerInfo[playerid][pUserIP], playerip, 0, strlen(playerip), 255);
    Logintime[playerid] = -1;
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
    // Streamer_OnPlayerConnect(playerid);
    if(!IsPlayerNPC(playerid))
    {
    UsersOnline++;
    }
    new TextString[256];
    format(TextString, sizeof(TextString), "UPDATE `users` SET `Online` = '1' WHERE Name = '%s'", playername);
    self_mysql_query(TextString);


    TextDrawShowForPlayer(playerid,HauptMenuOrangeBox);
    TextDrawShowForPlayer(playerid,HauptMenuRegisterBox);
    TextDrawShowForPlayer(playerid,HauptMenuRegisterText);
    TextDrawShowForPlayer(playerid,HauptMenuRegisterText2);
    TextDrawShowForPlayer(playerid,HauptMenuLoginBox);
    TextDrawShowForPlayer(playerid,HauptMenuLoginText);
    TextDrawShowForPlayer(playerid,HauptMenuLoginText2);
    TextDrawShowForPlayer(playerid,HauptMenuForumBox);
    TextDrawShowForPlayer(playerid,HauptMenuForumText);
    TextDrawShowForPlayer(playerid,HauptMenuTsBox);
    TextDrawShowForPlayer(playerid,HauptMenuTsText);
    TextDrawShowForPlayer(playerid,HauptMenuUCPBox);
    TextDrawShowForPlayer(playerid,HauptMenuUCPText);
    SelectTextDraw(playerid,-1);
    TextDrawHideForPlayer(playerid,DrawMaske);
    TextDrawHideForPlayer(playerid,NODMZoneTextdraw);
    TextDrawHideForPlayer(playerid,TicketsTextdraw);
    TextDrawHideForPlayer(playerid,TeamDMDraw);
    TextDrawShowForPlayer(playerid,Website);
    TextDrawShowForPlayer(playerid,VersionDraw);
    TextDrawHideForPlayer(playerid,SpawnKill);
    MaxVeh[playerid] = 3;
    CarKey[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    WantedLabel[playerid][i] = -1;
    }
    gPlayerUsingLoopingAnim[playerid] = 0;
    gPlayerAnimLibsPreloaded[playerid] = 0;
    PortedTimer[playerid] = 0;


    SetPVarInt(playerid, "PVTeam", -1);
    SetPVarInt(playerid, "PVAdmin", 0);
    SetPVarInt(playerid, "PVJob", 0);
    for(new i = 0; i < 47; i++)
    {
    BuyedWeapons[playerid][i] = 0;
    }
    BuyedWeapons[playerid][0] = 50;
    BuyedWeapons[playerid][2] = 50;
    BuyedWeapons[playerid][46] = 50;


    FirstSpawnAfterLogin[playerid] = 0;
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);
    CellTime[playerid] = 0; Mobile[playerid] = -1; RingTone[playerid] = 0; Uberweisungsid[playerid] = -1; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; AllowTune[playerid] = -1;
    RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; MullManOwned[playerid] = -1;
    CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; NoDmTimer[playerid] = 0; NoDmWarnungen[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; HitSound[playerid] = 1;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; SexOn[playerid] = -1; SexTime[playerid] = -1; RepairOffer[playerid] = -1; RepairPrice[playerid] = 0;
    VertragOffer[playerid] = -1; Supportercar[playerid] = -1; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; HealProds[playerid] = 0;
    LessonOffer[playerid] = -1; LessonPrice[playerid] = 0; TakingLesson[playerid] = 0; RefillOffer[playerid] = -1; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    HotdogOffer[playerid] = -1; HotdogPrice[playerid] = 0; HealPrice[playerid] = -1; PlayerHeal[playerid] = -1; HealOffer[playerid] = -1;
    UnDrugs[playerid] = 0; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; PlayerTied[playerid] = 0;
    RegistrationStep[playerid] = 0; ConnectedToPC[playerid] = 0; JailPrice[playerid] = 0; MedicBill[playerid] = -1; MedicBillTimer[playerid] = -1;
    GoChase[playerid] = -1; ContractTaked[playerid] = 0; Maske[playerid] = 0; OrderReady[playerid] = 0; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0; EventEingeladen[playerid] = 0; TransportDuty[playerid] = 0;
    BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicAccepted[playerid] = -1; MechanicCallTime[playerid] = 0; FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = -1; Music[playerid] = 0;
    Spectate[playerid] = -1; PlayerDrunkTime[playerid] = 0; WheelmanAccepted[playerid] = -1; HaveDonuts[playerid] = 0; EatDonutAktive[playerid] = 0;
    gLastCar[playerid] = 0; WantedLoseAllow[playerid] = 0; SpawnKillAktiv[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; TogAdminChat[playerid] = 0; TogLoginLogout[playerid] = 1;
    gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerStonedTime[playerid] = 0;
    TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; CodesHolding[playerid] = 0; TazerCan[playerid] = 0;
    MatsHolding[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pCash] = 0; Blitzed[playerid] = 0;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    PlayerPaintballing[playerid] = 0; PlayerTeamPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
    FallAngenommen[playerid] = -1; FallAngenommenTimer[playerid] = 0; FallAngenommenAnwalt[playerid] = -1;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; InviteOffer[playerid] = -1; InviteTeam[playerid] = -1;
    AntiAFKCode[playerid] = 0; AntiAFKTime[playerid] = 0; AntiAFKTimer[playerid] = 0; AFKChecker[playerid] = -1;
    Kleidungsshop[playerid] = -1; AFKKick[playerid] = 0;
    AFKModus[playerid] = 0;
    JobFreeze[playerid] = 300; HotdogTime[playerid] = 0; //HotdogLager[playerid] = 0;
    TicketSys[playerid][TSAdminID] = -1;
    TicketSys[playerid][TSUserID] = -1;
    strmid(TicketSys[playerid][TSText], "------", 0, strlen("------"), 255);
    AntiSpamWarns[playerid] = 0; AntiSpamTime[playerid] = 0;
    WantedHackZeit[playerid] = -1; HackArt[playerid] = 0; WantedHackKunde[playerid] = -1;
    HackAnzahl[playerid] = 0;


    GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]);
    PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pDonatorRank] = 0; PlayerInfo[playerid][gPupgrade] = 0; PlayerInfo[playerid][pConnectTime] = 0; PlayerInfo[playerid][pReg] = 0; PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAlter] = 0; PlayerInfo[playerid][pOrigin] = 0; PlayerInfo[playerid][pRespekt] = 0; PlayerInfo[playerid][pBank] = 0; PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0; PlayerInfo[playerid][pArrested] = 0; PlayerInfo[playerid][pArrestTime] = 0; PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pFishes] = 0; PlayerInfo[playerid][pBiggestFish] = 0; PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pPayCheck] = 0; PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; PlayerInfo[playerid][pMats] = 0; PlayerInfo[playerid][pCodes] = 0; PlayerInfo[playerid][pSaveMats] = 0; PlayerInfo[playerid][pSaveCodes] = 0;
    PlayerInfo[playerid][pDrugs] = 0;PlayerInfo[playerid][pSaveDrugs] = 0; PlayerInfo[playerid][pLeader] = -1; PlayerInfo[playerid][pMember] = -1; PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 101; PlayerInfo[playerid][pVertragszeit] = 1; PlayerInfo[playerid][pDetSkill] = 0; PlayerInfo[playerid][pSexSkill] = 0; PlayerInfo[playerid][pAnwaltSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0; PlayerInfo[playerid][pJackSkill] = 0; PlayerInfo[playerid][pCarSkill] = 0; PlayerInfo[playerid][pNewsSkill] = 0; PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0; PlayerInfo[playerid][pFishSkill] = 0; PlayerInfo[playerid][pSHealth] = 50.0;
    PlayerInfo[playerid][pLocal] = -1; PlayerInfo[playerid][pMuted] = 0;
    PlayerInfo[playerid][pTeam] = -1; PlayerInfo[playerid][pNummer] = 0; PlayerInfo[playerid][pPhousekey] = -1; PlayerInfo[playerid][pBizKey] = -1; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pLKWLic] = 0; PlayerInfo[playerid][pBikeLic] = 0;
    PlayerInfo[playerid][pCarLicPoints] = 0; PlayerInfo[playerid][pBikeLicPoints] = 0; PlayerInfo[playerid][pZollpass] = 0; PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo1] = 0; PlayerInfo[playerid][pAmmo2] = 0; PlayerInfo[playerid][pAmmo3] = 0; PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pCarTime] = 0; PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayDayHad] = 0; PlayerInfo[playerid][pCDPlayer] = 0; PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pPainKillerPerk] = 0; PlayerInfo[playerid][pDrugPerk] = 0; PlayerInfo[playerid][pMiserPerk] = 0; PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pWarns] = 0;PlayerInfo[playerid][pFuel] = 0; PlayerInfo[playerid][pWantedLevel] = 0; PlayerInfo[playerid][pAdminOnDuty] = 0; PlayerInfo[playerid][pBankrob] = 0;
    PlayerInfo[playerid][pInviteSperre] = 0; PlayerInfo[playerid][pWarnTime1] = 0; PlayerInfo[playerid][pWarnTime2] = 0; PlayerInfo[playerid][pTicketsopen] = 0; PlayerInfo[playerid][pSQLID] = -1;
    strmid(PlayerInfo[playerid][pWerberName], "Niemand", 0, strlen("Niemand"), 255);
    strmid(PlayerInfo[playerid][pNODMKiller], "Niemand", 0, strlen("Niemand"), 255);
    strmid(PlayerInfo[playerid][pForceName], "Niemand", 0, strlen("Niemand"), 255);
    strmid(PlayerInfo[playerid][pOldName], "Niemand", 0, strlen("Niemand"), 255);
    strmid(PlayerInfo[playerid][pOrgaName], "Keine", 0, strlen("Keine"), 255);
    PlayerInfo[playerid][pOrgaID] = -1;
    PlayerInfo[playerid][pOrgaLeader] = -1;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pTruckHaengerID] = -1;
    PlayerInfo[playerid][pTHProdukte] = 0;
    PlayerInfo[playerid][pDonatorZeit] = 0;
    PlayerInfo[playerid][pFightingStyle] = 0;
    PlayerInfo[playerid][pHandy] = 0;
    PlayerInfo[playerid][pOnDutySkin] = 267;
    PlayerInfo[playerid][pAllowed] = 0;
    PlayerInfo[playerid][pBankFach1] = 0;
    PlayerInfo[playerid][pBankFach2] = 0;
    PlayerInfo[playerid][pBankFach3] = 0;
    PlayerInfo[playerid][pBankFach4] = 0;
    PlayerInfo[playerid][pwgs] = 0;
    PlayerInfo[playerid][pfacherlaubis] = 0;
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    Santa[playerid] = 0;
    ClearMarriage(playerid);
    //Car System//
    for(new h = 0; h < MaxVeh[playerid]; h++){
    Carlist[playerid][h][Typ]=-1;
    Carlist[playerid][h][pos_x]=0.0;
    Carlist[playerid][h][pos_y]=0.0;
    Carlist[playerid][h][pos_z]=0.0;
    Carlist[playerid][h][z_angle]=0.0;
    Carlist[playerid][h][Status]=0;
    Carlist[playerid][h][Lock]=0;
    Carlist[playerid][h][Carid]=-1;
    Carlist[playerid][h][Farbe1]=-1;
    Carlist[playerid][h][Farbe2]=-1;
    Carlist[playerid][h][mod1]=-1;
    Carlist[playerid][h][mod2]=-1;
    Carlist[playerid][h][mod3]=-1;
    Carlist[playerid][h][mod4]=-1;
    Carlist[playerid][h][mod5]=-1;
    Carlist[playerid][h][mod6]=-1;
    Carlist[playerid][h][mod7]=-1;
    Carlist[playerid][h][mod8]=-1;
    Carlist[playerid][h][mod9]=-1;
    Carlist[playerid][h][mod10]=-1;
    Carlist[playerid][h][mod11]=-1;
    Carlist[playerid][h][mod12]=-1;
    Carlist[playerid][h][mod13]=-1;
    Carlist[playerid][h][mod14]=-1;
    Carlist[playerid][h][mod15]=-1;
    Carlist[playerid][h][mod16]=-1;
    Carlist[playerid][h][mod17]=-1;
    Carlist[playerid][h][Paintjob]=-1;
    Carlist[playerid][h][OwnerID] = playerid;
    Carlist[playerid][h][SpawnSaveX]=0.0;
    Carlist[playerid][h][SpawnSaveY]=0.0;
    Carlist[playerid][h][SpawnSaveZ]=0.0;
    Carlist[playerid][h][SpawnSaveRot]=0.0;
    Carlist[playerid][h][TankVolumen]=0;
    Carlist[playerid][h][RepairTime] = 0;
    Carlist[playerid][h][Versicherung] = 0;
    Carlist[playerid][h][StandTime] = 0;
    Carlist[playerid][h][Meter] = 0;
    Spectating[playerid] = -1;
    }
    for(new i = 0; i < MaxUberweisung; i++)
    {
    strmid(Uberweisungen[playerid][i], "Keine Überweisung Vorhanden", 0, strlen("Keine Überweisung Vorhanden"), 255);
    }
    if(IsPlayerNPC(playerid))
    {
    gPlayerAccount[playerid] = 1;
    gPlayerLogged[playerid] = 1;
    format(TextString, sizeof(TextString), "UPDATE `onlines` SET `Legend` = '1' WHERE `SQLid`='%d'", playerid);
    self_mysql_query(TextString);
    if(strcmp(playername, "Dirk", true) == 0)
    {
    PlayerInfo[playerid][pChar] = 6;
    SetPlayerSkin(playerid, 6);
    SpawnPlayer(playerid);
    }


    return 1;
    }
    SetPlayerColor(playerid, COLOR_GRAD2);
    new VAR = 0;
    new BanHammer[128], BanReason[128], BPZeit;
    format(TextString, sizeof(TextString), "SELECT * FROM `bannedplayers` WHERE `Name`='%s'", playername);
    self_mysql_query(TextString);
    mysql_store_result(MySQLConnection);
    if(mysql_num_rows(MySQLConnection) != 0)
    {
    mysql_fetch_row_format(TextString);
    new val[256];
    self_mysql_get_field("Reason", val); strmid(BanReason, val, 0, strlen(val), 255);
    self_mysql_get_field("Hammer", val); strmid(BanHammer, val, 0, strlen(val), 255);
    self_mysql_get_field("Time", val); BPZeit = strval( val );
    if(BPZeit != -1)
    {
    if(BPZeit > Time())
    {
    VAR = 1;
    }
    else
    {
    format(TextString, sizeof(TextString), "DELETE FROM `bannedplayers` WHERE `Name`='%s'", playername);
    self_mysql_query(TextString);
    VAR = 0;
    }
    }
    else
    {
    VAR = 1;
    }
    if(VAR == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "{00FF00}N{FFFFFF}ame-of {00FF00}R{FFFFFF}oleplay. Baninformation.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Dieser Account wurde von einem Admin gebannt, für einen Entbann wende dich bitte an einen Admin !");
    if(BPZeit == -1)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Dauer: unbegrenzt");
    }
    else
    {
    new _converts[4], Zeit = BPZeit-Time();
    ConvertSecEx( Zeit , _converts[0] , _converts[1] , _converts[2] , _converts[3]);
    format(TextString, sizeof(TextString), "Dauer: %d Tage, %d Stunden, %d Minuten und %d Sekunden", _converts[3],_converts[2],_converts[1],_converts[0]);
    SendClientMessage(playerid, COLOR_LIGHTRED, TextString);
    }
    format(TextString, sizeof(TextString), "Grund: %s", BanReason);
    SendClientMessage(playerid, COLOR_LIGHTRED, TextString);
    format(TextString, sizeof(TextString), "Gebannt von: %s", BanHammer);
    SendClientMessage(playerid, COLOR_LIGHTRED, TextString);
    SetTimerEx("ConnectKick", 4000,0,"i",playerid);
    //Kick(playerid);
    return 1;
    }
    }
    mysql_free_result(MySQLConnection);
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Ach Ja, zeig uns mal public OnPlayerSpawn(playerid)


    Hier:
    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid)){
    PlayerInfo[playerid][pCarLic] = 1;
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    SetPlayerToTeamColor(playerid);
    if(strcmp(botname, "Dirk", true) == 0){
    SetPlayerSkin(playerid,6);
    SetPlayerVirtualWorld(playerid,0);
    PutPlayerInVehicle(playerid, BotCarDirk, 0);
    Attach3DTextLabelToVehicle(BusbotLS, BotCarDirk, 0.0, 0.0, 0.0);
    }
    }
    PlayerInfo[playerid][pLocal] = -1;
    SetPlayerPos(playerid,1110.1477,-1796.8231,16.5938);
    SetPlayerHealth(playerid, 100);
    TextDrawHideForPlayer(playerid,Tacho[playerid]);
    TextDrawHideForPlayer(playerid,Tacho1[playerid]);
    TextDrawHideForPlayer(playerid,Tacho2[playerid]);
    TextDrawHideForPlayer(playerid,Tacho3[playerid]);
    TextDrawHideForPlayer(playerid,Tacho4[playerid]);
    TextDrawHideForPlayer(playerid,Tacho5[playerid]);
    TextDrawHideForPlayer(playerid,Tacho6[playerid]);
    TextDrawHideForPlayer(playerid,Tacho7[playerid]);
    TextDrawHideForPlayer(playerid,AntiAFK[playerid]);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerToTeamColor(playerid);
    SetCameraBehindPlayer(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerWeapons(playerid);
    if(!gPlayerAnimLibsPreloaded[playerid]){
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    gPlayerAnimLibsPreloaded[playerid] = 1;
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++){
    new GANGZONE_COLOR;
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { GANGZONE_COLOR = GANGCOLOR_LCN; }
    if(GangfightSystemInfo[i][GFOwnerID] == 6) { GANGZONE_COLOR = GANGCOLOR_YAKUZA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 17) { GANGZONE_COLOR = GANGCOLOR_CAMORA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 18) { GANGZONE_COLOR = GANGCOLOR_ATZTECAS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 19) { GANGZONE_COLOR = GANGCOLOR_GROVESTREET; }
    if(GangfightSystemInfo[i][GFOwnerID] == 20) { GANGZONE_COLOR = GANGCOLOR_BALLAS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 22) { GANGZONE_COLOR = GANGCOLOR_RIFA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 23) { GANGZONE_COLOR = GANGCOLOR_REDSOLDIER; }
    if(GangfightSystemInfo[i][GFOwnerID] == 24) { GANGZONE_COLOR = GANGCOLOR_VAGOS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 25) { GANGZONE_COLOR = GANGCOLOR_GUERILLA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 26) { GANGZONE_COLOR = GANGCOLOR_KARTEL; }
    GangZoneShowForPlayer(playerid, GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    if(GangfightSystemInfo[i][GFGegnerID] != -1){
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GANGZONE_COLOR = GANGCOLOR_LCN; }
    if(GangfightSystemInfo[i][GFGegnerID] == 6) { GANGZONE_COLOR = GANGCOLOR_YAKUZA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 17) { GANGZONE_COLOR = GANGCOLOR_CAMORA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 18) { GANGZONE_COLOR = GANGCOLOR_ATZTECAS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 19) { GANGZONE_COLOR = GANGCOLOR_GROVESTREET; }
    if(GangfightSystemInfo[i][GFGegnerID] == 20) { GANGZONE_COLOR = GANGCOLOR_BALLAS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 22) { GANGZONE_COLOR = GANGCOLOR_RIFA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 23) { GANGZONE_COLOR = GANGCOLOR_REDSOLDIER; }
    if(GangfightSystemInfo[i][GFGegnerID] == 24) { GANGZONE_COLOR = GANGCOLOR_VAGOS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 25) { GANGZONE_COLOR = GANGCOLOR_GUERILLA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 26) { GANGZONE_COLOR = GANGCOLOR_KARTEL; }
    GangZoneFlashForPlayer(playerid, GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    }}
    //Gangzonen Ende
    if(FirstSpawnAfterLogin[playerid] == 1){
    if(PlayerInfo[playerid][pWantedLevel] > 0){
    new string[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
    format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
    WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID,1);
    }}}}
    FirstSpawnAfterLogin[playerid] = 0;
    return 1;
    }