Spielerfarben in case festlegen

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 Leute, ich habe bei meinem Script das Problem, dass ich die Spielerfarben nicht festlegen kann.


    Hier sollte es rein, soweit ich weis, da dort auch die DUTYfarben drin sind, weil es da auch die dutyabfragen gibt.
    Doch ich möchte für die Gangs einfach normale Farben einfügen, ohne duty, wie bekomme ich die z.B hier rein:


    [pwn]case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin];}}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//GSF[/pwn]


    Wenn mir jemand sagen kann, wie ich meine Spielerfarben in diese Zeilen bekomme, würde ich mich echt sehr freuen.


    Danke im Voraus.


    MfG
    Tobi

  • Hä?
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]), SetPlayerColor(playerid, FARBE);}}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]), SetPlayerColor(playerid, FARBE);}}//GSF



    Meinst du das so, oder wie?



    Die heutigen Noobs, sind die Profis von morgen! :thumbup:


    Danke an Jeffry für seine ständige Hilfsbereitschaft und freundliche Art. 8)

  • case 4:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);//LSV
    SetPlayerColor(playerid, FARBE);
    }
    case 5:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    SetPlayerColor(playerid, FARBE);
    }//GSF


    @_iPit_: Du hast da zwei Klammern am Ende, da werden ein paar Errors kommen. ;)


    Und was meinst du mit Abfrage ob der Spieler spawnt? Du kannst es ja bei OnPlayerSpawn hinschreiben.

  • Wenn du Grove Street immer in einer Grünen Farbe haben möchtest mach bei OnPlayerSpawn


    if(SpielerInfo[playerid][pFraktion] == 1) { //bspd Grove Street
    SetPlayerColor(playerid, Grün);}
    else if(SpielerInfo[playerid][pFraktion] == 2) { //bspd Ballas
    SetPlayerColor(playerid, Lila);}


    musst du halt anpassen.


    Mit freundlichen Grüßen


    Jeffry:


    Das hab ich so von ihm übernommen, dachte es wäre absicht ^^



    Die heutigen Noobs, sind die Profis von morgen! :thumbup:


    Danke an Jeffry für seine ständige Hilfsbereitschaft und freundliche Art. 8)

  • Kann mir das bitte jemand einreihen?
    Kriege das bei den Gangs schon hin, aber das Problem liegt bei den Fraktionen mit Duty usw.
    Das ist für mich noch neu, weis nicht genau wie ich das verschieben soll usw.


    {
    case 1:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAPDDUTY);}}//[S]an [A]ndreas [P]olice [D]epartment
    case 2:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FBIDUTY);}}//F.B.I
    case 3:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,MEDICDUTY);}}//San Andreas Rettungsdienst
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin];}}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//GSF
    case 6:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,ARMYDUTY);}}//San Andreas ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//BALLAS
    case 8:{if(Spieler[playerid][pHaveMaske] == 1){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//YAKUZA
    case 10:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//San Andreas News
    case 11:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//Ordnungsamt
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sons of Anarchy
    case 14:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FAHRSCHULEDUTY);}}//faHRSCULE
    case 15:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAELEKTRONIKGmBhDUTY);}}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),Spieler[playerid][pDuty] = 1;}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sureño Syndikat
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Die Sekte
    }
    }


    Kann mir bitte jemand den Code so einreihen das er korrekt ist und ich bei den Gangs usw die Farben einbauen kann?


    Danke im Voraus


    MfG

  • {
    case 1:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAPDDUTY);
    }
    }
    //[S]an [A]ndreas [P]olice [D]epartment
    case 2:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FBIDUTY);
    }
    }
    //F.B.I
    case 3:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,MEDICDUTY);
    }
    }
    //San Andreas Rettungsdienst
    case 4:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin];
    }
    //LSV
    case 5:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }

    //GSF
    case 6:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,ARMYDUTY);
    }
    }
    //San Andreas ARMY
    case 7:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }

    //BALLAS
    case 8:
    {
    if(Spieler[playerid][pHaveMaske] == 1)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    }
    //TERRORS
    case 9:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }

    //YAKUZA
    case 10:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    }
    //San Andreas News
    case 11:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    }
    //Ordnungsamt
    case 12:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    //LCN
    case 13:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    //Sons of Anarchy
    case 14:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FAHRSCHULEDUTY);
    }
    }
    //faHRSCULE
    case 15:
    {
    if(Spieler[playerid][pDuty] != 0)
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAELEKTRONIKGmBhDUTY);
    }
    }
    //SA ELEKTRONIK GmBh
    case 16:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),Spieler[playerid][pDuty] = 1;
    }
    //Regierung
    case 17:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    //Sureño Syndikat
    case 18:
    {
    SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);
    }
    //Die Sekte
    }

  • Das ganze ist unter OnPlayerSpawn, jedoch funktioniert das von Jeffry irgendwie nicht, wenn ich das so einfüge, kackt der compiler ab (funktioniert nicht mehr).
    Ich hab es immer noch nicht geschafft die Farben für die Fraktionen zu machen.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Bei mir kackt der Compiler nur ab wenn ich die cases so einordne wie Jeffry mir das geschrieben hat, wenn ich es so lasse wie es ist, geht es.
    Doch leider gehen die Farben nicht.


    Hier noch mal der Code, wie könnte ich da für die normalen Gangs/Mafien die Farben einfügen, sodass die Fraktionen beim Spawn diese Farben erhalten?



    case 1:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAPDDUTY);}}//[S]an [A]ndreas [P]olice [D]epartment
    case 2:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FBIDUTY);}}//F.B.I
    case 3:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,MEDICDUTY);}}//San Andreas Rettungsdienst
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//GSF
    case 6:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,ARMYDUTY);}}//San Andreas ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//BALLAS
    case 8:{if(Spieler[playerid][pHaveMaske] == 1){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//YAKUZA
    case 10:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SANEWSAGDUTY);}}//San Andreas News
    case 11:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,OAMTDUTY);}}//Ordnungsamt
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sons of Anarchy
    case 14:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FAHRSCHULEDUTY);}}//faHRSCULE
    case 15:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAELEKTRONIKGmBhDUTY);}}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),Spieler[playerid][pDuty] = 1;}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Aztecas
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SEKTEFARBE);}//Die Sekte

  • Ahhh, habe den richtigen bereich gefunden, das von eben was nur der Bereich wo man stirbt.
    Nun habe ich den richtigen bereich gefunden, jedoch bekomme ich Errors.


    CODE:


    switch(Spieler[playerid][pFraktion])
    {
    case 0:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//
    case 1:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SAPD
    case 2:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//FBI
    case 3:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//MEDIC
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,VAGOSFARBE);}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,GROVEFARBE);}//GSF
    case 6:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin])SetPlayerColor(playerid,BALLASFARBE);}//BALLAS
    case 8:{SetPlayerSkin(playerid,Spieler[playerid][pSkin])SetPlayerColor(playerid,ALARABIFARBE);}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin])SetPlayerColor(playerid,YAKUZAFARBE);}//YAKUZA
    case 10:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SANEWSAG
    case 11:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//OAMT
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin])SetPlayerColor(playerid,LCNFARBE);}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin])SetPlayerColor(playerid,BIKERFARBE);}//Sons of Anarchy
    case 14:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//FAHRSCHULE
    case 15:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),Spieler[playerid][pDuty] = 1;}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sureño Syndikat
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Die Sekte
    }


    Habe die SetPlayerColor bereits rein gemacht aber der zeigt mir dann noch irgendwelche errors mit identifier oder so xD

  • Du hast zwischen den beiden Funktionen SetPlayerSkin und SetPlayerColor jeweils ein Komma ( , ) vergessen.

  • Damit wir alle noch einmal auf dem neusten Stand sind:
    Du bekommst keine Errors / Fehlermeldungen, erhälst aber auch nicht die Farbe der Fraktion, richtig?


    Wenn das so ist, dann schicke uns bitte mal die "#define"'s von den Farben.

  • Dann zeig mal den ganzen Code her.
    Sprich, vielleicht ganz OnPlayerSpawn und ggf. OnPlayerDeath.

  • So, hier ist jetzt der etwas längere Code, dieser beinhaltet das OnPlayerSpawn und auch das wo man stirbt.


    public OnPlayerSpawn(playerid)
    {
    new string[256];
    if(IsPlayerNPC(playerid))
    {
    if(!strcmp(SpielerName(playerid),"[BOT]PanzerBot",true))
    {
    Spieler[playerid][pGrundwehrdienst] = 1;
    Spieler[playerid][pPlaneLic] = 1;
    Spieler[playerid][pHeliLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,287);
    PutPlayerInVehicleEx(playerid,BOTArmyPanzer,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]ZugBot",true))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,98);
    PutPlayerInVehicleEx(playerid,BOTZug,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Shamal",true))
    {
    Spieler[playerid][pPlaneLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,61);
    PutPlayerInVehicleEx(playerid,BOTshamal,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]AT400",true))
    {
    Spieler[playerid][pPlaneLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,61);
    PutPlayerInVehicleEx(playerid,BOTat400,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]OpiumDealer",true))//opiumdealer
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,29);
    SetPlayerPosEx(playerid,-1890.7620,-205.5517,14.3058);
    SetPlayerFacingAngle(playerid,272.1447);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]DKDealer",true))//Ganjakokadealer
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,28);
    SetPlayerPosEx(playerid,1299.7727,-854.0055,43.5333);
    SetPlayerFacingAngle(playerid,125.0721);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]F.NinowBot",true))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,98);
    PutPlayerInVehicleEx(playerid,BOTtramsf,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]C4Transport",true))
    {
    Spieler[playerid][pGrundwehrdienst] = 1;
    Spieler[playerid][pPlaneLic] = 1;
    Spieler[playerid][pHeliLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,287);
    PutPlayerInVehicleEx(playerid,BOTarmytransport,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Bank",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Antibot",true))
    {
    new changeskin = random(11);
    switch(changeskin)
    {
    case 0: SetPlayerSkin(playerid,26);
    case 1: SetPlayerSkin(playerid,51);
    case 2: SetPlayerSkin(playerid,78);
    case 3: SetPlayerSkin(playerid,94);
    case 4: SetPlayerSkin(playerid,101);
    case 5: SetPlayerSkin(playerid,137);
    case 6: SetPlayerSkin(playerid,167);
    case 7: SetPlayerSkin(playerid,205);
    case 8: SetPlayerSkin(playerid,264);
    case 9: SetPlayerSkin(playerid,239);
    case 10: SetPlayerSkin(playerid,230);
    case 11: SetPlayerSkin(playerid,289);
    }
    StopAudioStreamForPlayer(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]StadthalleLS",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]StadthalleSF",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Prister",true))
    {
    SetPlayerSkin(playerid,68);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]DruckereiBot",true))
    {
    SetPlayerSkin(playerid,112);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]TintenBot",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerBS",true))//skin ändern
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerLV",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerSF",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]ShopManLV",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]HackerHelper",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]LuigiSF",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerColor(playerid,UNSICHTBAR);
    }
    return 1;
    }

    //SetPlayerWaffenSkill(playerid);
    SetPlayerACHealth(playerid,100);
    SetPlayerACArmour(playerid,0);
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    mysql_SetInt(""#SERVERTAG"_account_main","Online",1,"Name",Spieler[playerid][pName]);
    if(ImTutorial[playerid] == 0)
    {
    for(new i=0;i<5;i++)
    {
    if(Spieler[playerid][pTutMissionComplete][i] == true)
    {
    RemovePlayerAttachedObject(playerid,0);
    RemovePlayerAttachedObject(playerid,1);
    if(Spieler[playerid][pTutMissionComplete][0] == true) DestroyPickup(tutorialpickup[playerid][0]);
    if(Spieler[playerid][pTutMissionComplete][1] == true) DestroyPickup(tutorialpickup[playerid][1]);
    if(Spieler[playerid][pTutMissionComplete][3] == true)
    {
    for(new i2=3;i2<154;i2++)
    {
    DestroyPlayerObject(playerid,Spieler[playerid][pTutorialObject][i2]);
    }
    }
    if(Spieler[playerid][pTutMissionComplete][4] == true)
    {
    for(new i3=0;i3<3;i3++)
    {
    DestroyPlayerObject(playerid,Spieler[playerid][pTutorialObject][i3]);
    }
    }
    switch(Spieler[playerid][pAdmin])
    {
    case 1:
    {
    TextDrawShowForPlayer(playerid,Reportdraw[0]);
    TextDrawShowForPlayer(playerid,Reportdraw[1]);
    }
    case 2,3,4:
    {
    TextDrawShowForPlayer(playerid,Reportdraw[0]);
    TextDrawShowForPlayer(playerid,Reportdraw[1]);
    TextDrawShowForPlayer(playerid,Reportdraw[2]);
    }
    case 5,6,7,8,9:
    {
    for(new i4=0;i4<sizeof(Reportdraw);i4++)
    {
    TextDrawShowForPlayer(playerid,Reportdraw[i4]);
    }
    }
    }
    SetPlayerColor(playerid,NAMENWEISS);
    TextDrawHideForPlayer(playerid,BINCOdraw[0]);
    TextDrawHideForPlayer(playerid,BINCOdraw[1]);
    TextDrawHideForPlayer(playerid,BINCOdraw[2]);
    PlayerTextDrawHide(playerid,BINCOplayerdraw[playerid]);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    Spieler[playerid][Skin] = 0;
    Spieler[playerid][pSkin] = GetPlayerSkin(playerid);
    ImTutorial[playerid] = 0;
    Spieler[playerid][pTutorialTime] = 0;
    Spieler[playerid][AmUmkleiden] = 0;
    Spieler[playerid][pBank] = 0;
    Spieler[playerid][pRollerLic] = 1;
    SetPlayerFightingStyle(playerid,0);
    SetPlayerLevel(playerid,1);
    Spieler[playerid][pMinutesAfterPayday] = 0;
    Spieler[playerid][pTimeAfterRegister] = 0;
    Spieler[playerid][pRespektFromPayday] = 0;


    TextDrawShowForPlayer(playerid,InfoSign);
    PlayerTextDrawSetString(playerid,INFOdraw[playerid][2],"~r~Info:~w~~n~Suche nach etwas Geld!");
    PlayerTextDrawShow(playerid,INFOdraw[playerid][2]);
    StopAudioStreamForPlayer(playerid);
    PlayAudioStreamForPlayer(playerid,ServerSounds[13],0.0,0.0,0.0);
    SetPlayerPosEx(playerid,783.5998,-2899.7999,0.3201);
    SetPlayerFacingAngle(playerid,88.8653);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,100+playerid);
    Spieler[playerid][pTutMissionComplete][0] = true;
    SetPlayerCheckpoint(playerid,780.8643,-2896.3550,0.2500,3.0);
    SetPlayerWaffenSkill(playerid);
    TextDrawShowForPlayer(playerid,Introdraw[0]);
    TextDrawShowForPlayer(playerid,Introdraw[1]);
    TextDrawShowForPlayer(playerid,SERVERUHR);
    TextDrawShowForPlayer(playerid,SERVERDATUM);
    PlayerTextDrawShow(playerid,PAYDAYdraw[playerid]);
    format(string,sizeof(string),"~r~PayDay: ~w~%i~r~/~w~60",Spieler[playerid][pMinutesAfterPayday]/60);
    PlayerTextDrawSetString(playerid,PAYDAYdraw[playerid],string);
    //PlayerTextDrawShow(playerid,HPdraw[playerid]);
    //PlayerTextDrawShow(playerid,ARMOURdraw[playerid]);
    Spieler[playerid][DigiHud] = 1;
    SetPlayerWaffenSkill(playerid);
    SaveAccount(playerid);
    if(GetPlayerLevel(playerid) <= ENABLE_KILLORPAY_BYLEVEL)
    {
    format(string,sizeof(string),"ACHTUNG: Solltest du als Level %i´er einen Spieler töten,",GetPlayerLevel(playerid));
    SendClientMessage(playerid,LEUCHTENDESROT,string);
    SendClientMessage(playerid,LEUCHTENDESROT,"wirst du Automatisch vom System gebannt!");
    }
    ShowPlayerDialog(playerid,DIALOG_REGISTER_GEWORBEN,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: User werben User","{C9C9C9}Wurdest du auf unserem Server geworben.\nWenn ja von wem ?\nDu und der angegebene Spieler erhaltet sobald du Level 3 und 5 erreicht hast Premiumpaydays !\nSprich man erhält 2 Erfahrungspunkte mehr als gewöhnlich.\n"#SERVERFARBE"Wichtig{C9C9C9}: Der angegebene Spieler muss registriert sein!","Absenden","Niemand");
    return 1;
    }
    }
    }
    StopPlayerBurning(playerid);
    if(Spieler[playerid][pGenerateState] == true) KeyWillbeGenerate = 0,Spieler[playerid][pGenerateState] = false,KillTimer(Spieler[playerid][pGenerateTimer]);


    PlayerTextDrawHide(playerid,INFOdraw[playerid][0]);
    TextDrawShowForPlayer(playerid,SERVERUHR);
    TextDrawShowForPlayer(playerid,SERVERDATUM);
    PlayerTextDrawShow(playerid,PAYDAYdraw[playerid]);
    format(string,sizeof(string),"~r~PayDay: ~w~%i~r~/~w~60",Spieler[playerid][pMinutesAfterPayday]/60);
    PlayerTextDrawSetString(playerid,PAYDAYdraw[playerid],string);


    if(gPlayerAnimLibsPreloaded[playerid] == false)
    {
    PreloadAnimLib(playerid,"AIRPORT");
    PreloadAnimLib(playerid,"Attractors");
    PreloadAnimLib(playerid,"BAR");
    PreloadAnimLib(playerid,"BASEBALL");
    PreloadAnimLib(playerid,"BD_FIRE");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"benchpress");
    PreloadAnimLib(playerid,"BF_injection");
    PreloadAnimLib(playerid,"BIKED");
    PreloadAnimLib(playerid,"BIKEH");
    PreloadAnimLib(playerid,"BIKELEAP");
    PreloadAnimLib(playerid,"BIKES");
    PreloadAnimLib(playerid,"BIKEV");
    PreloadAnimLib(playerid,"BIKE_DBZ");
    PreloadAnimLib(playerid,"BLOWJOBZ");
    PreloadAnimLib(playerid,"BMX");
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"BOX");
    PreloadAnimLib(playerid,"BSKTBALL");
    PreloadAnimLib(playerid,"BUDDY");
    PreloadAnimLib(playerid,"BUS");
    PreloadAnimLib(playerid,"CAMERA");
    PreloadAnimLib(playerid,"CAR");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"CASINO");
    PreloadAnimLib(playerid,"CHAINSAW");
    PreloadAnimLib(playerid,"CHOPPA");
    PreloadAnimLib(playerid,"CLOTHES");
    PreloadAnimLib(playerid,"COACH");
    PreloadAnimLib(playerid,"COLT45");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"COP_DVBYZ");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CRIB");
    PreloadAnimLib(playerid,"DAM_JUMP");
    PreloadAnimLib(playerid,"DANCING");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"DILDO");
    PreloadAnimLib(playerid,"DODGE");
    PreloadAnimLib(playerid,"DOZER");
    PreloadAnimLib(playerid,"DRIVEBYS");
    PreloadAnimLib(playerid,"FAT");
    PreloadAnimLib(playerid,"FIGHT_B");
    PreloadAnimLib(playerid,"FIGHT_C");
    PreloadAnimLib(playerid,"FIGHT_D");
    PreloadAnimLib(playerid,"FIGHT_E");
    PreloadAnimLib(playerid,"FINALE");
    PreloadAnimLib(playerid,"FINALE2");
    PreloadAnimLib(playerid,"FLAME");
    PreloadAnimLib(playerid,"Flowers");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"Freeweights");
    PreloadAnimLib(playerid,"GANGS");
    PreloadAnimLib(playerid,"GHANDS");
    PreloadAnimLib(playerid,"GHETTO_DB");
    PreloadAnimLib(playerid,"goggles");
    PreloadAnimLib(playerid,"GRAFFITI");
    PreloadAnimLib(playerid,"GRAVEYARD");
    PreloadAnimLib(playerid,"GRENADE");
    PreloadAnimLib(playerid,"GYMNASIUM");
    PreloadAnimLib(playerid,"HAIRCUTS");
    PreloadAnimLib(playerid,"HEIST9");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"INT_OFFICE");
    PreloadAnimLib(playerid,"INT_SHOP");
    PreloadAnimLib(playerid,"JST_BUISNESS");
    PreloadAnimLib(playerid,"KART");
    PreloadAnimLib(playerid,"KISSING");
    PreloadAnimLib(playerid,"KNIFE");
    PreloadAnimLib(playerid,"LAPDAN1");
    PreloadAnimLib(playerid,"LAPDAN2");
    PreloadAnimLib(playerid,"LAPDAN3");
    PreloadAnimLib(playerid,"LOWRIDER");
    PreloadAnimLib(playerid,"MD_CHASE");
    PreloadAnimLib(playerid,"MD_END");
    PreloadAnimLib(playerid,"MEDIC");
    PreloadAnimLib(playerid,"MISC");
    PreloadAnimLib(playerid,"MTB");
    PreloadAnimLib(playerid,"MUSCULAR");
    PreloadAnimLib(playerid,"NEVADA");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"OTB");
    PreloadAnimLib(playerid,"PARACHUTE");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"PAULNMAC");
    PreloadAnimLib(playerid,"PED");
    PreloadAnimLib(playerid,"PLAYER_DVBYS");
    PreloadAnimLib(playerid,"PLAYIDLES");
    PreloadAnimLib(playerid,"POLICE");
    PreloadAnimLib(playerid,"POOL");
    PreloadAnimLib(playerid,"POOR");
    PreloadAnimLib(playerid,"PYTHON");
    PreloadAnimLib(playerid,"QUAD");
    PreloadAnimLib(playerid,"QUAD_DBZ");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"RIFLE");
    PreloadAnimLib(playerid,"RIOT");
    PreloadAnimLib(playerid,"ROB_BANK");
    PreloadAnimLib(playerid,"ROCKET");
    PreloadAnimLib(playerid,"RUSTLER");
    PreloadAnimLib(playerid,"RYDER");
    PreloadAnimLib(playerid,"SCRATCHING");
    PreloadAnimLib(playerid,"SHAMAL");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"SHOTGUN");
    PreloadAnimLib(playerid,"SILENCED");
    PreloadAnimLib(playerid,"SKATE");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"SNIPER");
    PreloadAnimLib(playerid,"SPRAYCAN");
    PreloadAnimLib(playerid,"STRIP");
    PreloadAnimLib(playerid,"SUNBATHE");
    PreloadAnimLib(playerid,"SWAT");
    PreloadAnimLib(playerid,"SWEET");
    PreloadAnimLib(playerid,"SWIM");
    PreloadAnimLib(playerid,"SWORD");
    PreloadAnimLib(playerid,"TANK");
    PreloadAnimLib(playerid,"TATTOOS");
    PreloadAnimLib(playerid,"TEC");
    PreloadAnimLib(playerid,"TRAIN");
    PreloadAnimLib(playerid,"TRUCK");
    PreloadAnimLib(playerid,"UZI");
    PreloadAnimLib(playerid,"VAN");
    PreloadAnimLib(playerid,"VENDING");
    PreloadAnimLib(playerid,"VORTEX");
    PreloadAnimLib(playerid,"WAYFARER");
    PreloadAnimLib(playerid,"WEAPONS");
    PreloadAnimLib(playerid,"WUZI");
    gPlayerAnimLibsPreloaded[playerid] = true;
    }


    //if(Spieler[playerid][DigiHud] == 0) PlayerTextDrawShow(playerid,HPdraw[playerid]),PlayerTextDrawShow(playerid,ARMOURdraw[playerid]);
    if(Spieler[playerid][pKoffer] == 1) SetPlayerAttachedObject(playerid,9,1210,5,0.310000,0.066999,0.000000,0.000000,-91.900009,0.000000,1.000000,1.000000,1.000000);


    SyncFperson(playerid);


    switch(Spieler[playerid][pFraktion])
    {
    case 0:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//
    case 1:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SAPD
    case 2:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//FBI
    case 3:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//MEDIC
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,VAGOSFARBE);}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,GROVEFARBE);}//GSF
    case 6:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,BALLASFARBE);}//BALLAS
    case 8:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]),SetPlayerColor(playerid,ALARABIFARBE);}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,YAKUZAFARBE);}//YAKUZA
    case 10:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SANEWSAG
    case 11:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//OAMT
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,LCNFARBE);}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,BIKERFARBE);}//Sons of Anarchy
    case 14:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//FAHRSCHULE
    case 15:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),Spieler[playerid][pDuty] = 1;}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sureño Syndikat
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Die Sekte
    }


    if(BombState == true)
    {
    if((isPlayerInFrakt(playerid,1) && Spieler[playerid][pFraktABTInvite] != 0) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,8))
    {
    TextDrawShowForPlayer(playerid,Bombdraw);
    }
    }


    new kopfbedekung = Spieler[playerid][pBuyClothes];
    if(kopfbedekung != -1) SetPlayerAttachedObject(playerid,0,ClothesInfo[kopfbedekung][cobjectid],ClothesInfo[kopfbedekung][cbone],ClothesInfo[kopfbedekung][OffSetX],ClothesInfo[kopfbedekung][OffSetY],ClothesInfo[kopfbedekung][OffSetZ],ClothesInfo[kopfbedekung][RotX],ClothesInfo[kopfbedekung][RotY],ClothesInfo[kopfbedekung][RotZ],ClothesInfo[kopfbedekung][ScaleX],ClothesInfo[kopfbedekung][ScaleY],ClothesInfo[kopfbedekung][ScaleZ]);


    JobExit(playerid);
    PlayerInNewsVan[playerid] = -1;
    PlayerInJourney[playerid] = -1;
    Spieler[playerid][pAntiHealInFight] = 0;
    Spieler[playerid][pIsearch] = 0;
    Spieler[playerid][pFreedomTry] = 0;
    Spieler[playerid][pTalkwithBankbitch] = 0;
    Spieler[playerid][pSpecificSkin] = 0;
    Spieler[playerid][pSkinRob] = 0;
    Spieler[playerid][pWearSpecificSkin] = 0;
    Spieler[playerid][pIsearch] = 0;
    Spieler[playerid][pOrtenVehORPlayer] = 0;
    Spieler[playerid][pOrtenVehIDplayerid] = -1;
    Spieler[playerid][pStonedCount] = 0;
    Spieler[playerid][StonedHP] = 0.0;
    Spieler[playerid][pJobchat] = true;
    KillTimer(Spieler[playerid][pTutTimer4All]);
    for(new i=0;i<3;i++){ KillTimer(Spieler[playerid][pStonedTimer][i]); }
    Spieler[playerid][pStonedAntiSpam] = 0;
    KillTimer(SpielerOrtenTimer[playerid]);
    if(Spieler[playerid][PprobefahrtVeh] != 0)
    {
    DeleteVehicle(Spieler[playerid][PprobefahrtVeh]);
    Spieler[playerid][PprobefahrtVeh] = 0;
    Spieler[playerid][PprobefahrtTime] = 0;
    Spieler[playerid][PprobefahrtVehID] = -1;
    }
    DisablePlayerCheckpoint(playerid);
    Spieler[playerid][pEnterExits] = 0;
    Spieler[playerid][pWaiterCrash] = 0;
    Spieler[playerid][pWaiterMeldung] = 0;
    Spieler[playerid][PWeedWait] = 0;
    Leichen[playerid] = -1;
    SetPlayerDrunkLevel(playerid,0);
    Spieler[playerid][InviteInterView] = 0;
    Spieler[playerid][LiveView] = 0;
    Spieler[playerid][pCuffed] = 0;
    Spieler[playerid][pAugenbinde] = 0;
    Spieler[playerid][pTazerd] = 0;
    Spieler[playerid][pTazer] = 0;
    Spieler[playerid][pTazerAkku] = 0;
    Spieler[playerid][pTazerInorOutbag] = 0;
    KillTimer(Spieler[playerid][pKartTimer]);
    KillTimer(Spieler[playerid][pBaggerTimer]);
    KillTimer(Spieler[playerid][pSpraytagTimer]);
    KillTimer(Spieler[playerid][pTazerTimer]);
    Spieler[playerid][pOrtungsgeraet] = 0;
    Spieler[playerid][pFunkgeraet] = 0;
    Spieler[playerid][pMegaphon] = 0;
    Spieler[playerid][pAcceptDice] = 0;
    Spieler[playerid][pDiceTries][0] = 0;
    Spieler[playerid][pDiceTries][1] = 0;
    Spieler[playerid][pDiceTries][2] = 0;
    TextDrawHideForPlayer(playerid,BlackScreendraw);
    SetPlayerVirtualWorld(playerid,0);
    TogglePlayerControllable(playerid,1);
    RemovePlayerAttachedObject(playerid,2);
    RemovePlayerAttachedObject(playerid,3);
    RemovePlayerAttachedObject(playerid,4);
    RemovePlayerAttachedObject(playerid,5);
    RemovePlayerAttachedObject(playerid,6);
    RemovePlayerAttachedObject(playerid,7);
    if(SpawnKillStatus[playerid] == 1) TextDrawHideForPlayer(playerid,Spawnkilldraw),SpawnKillStatus[playerid] = 0;
    if(Spieler[playerid][pUseFlyCam] == true) Spieler[playerid][pUseFlyCam] = false;


    if(Spieler[playerid][pKart] != -1)
    {
    DisablePlayerRaceCheckpoint(playerid);
    KillTimer(Spieler[playerid][pKartTimer]);
    Spieler[playerid][pKartracingCP1] = 0;
    Spieler[playerid][pKartCountdown] = 0;
    DeleteVehicle(Spieler[playerid][pKart]);
    Spieler[playerid][pKart] = -1;
    }
    if(Spieler[playerid][InFahrSchulPruefung] == 1)
    {
    SendClientMessage(playerid,ROT,"Du bist in der Fahrschulprüfung verunglückt! Deine Prüfung wurde abgebrochen.");
    Spieler[playerid][InFahrSchulPruefung] = 0;
    Spieler[playerid][pSchulungsWARNS] = 0;
    Spieler[playerid][pSchulungsCPautolic] = 0;
    Spieler[playerid][pSchulungsCPmotorbikelic] = 0;
    Spieler[playerid][pSchulungsCProllerlic] = 0;
    Spieler[playerid][pSchulungsCPfluglic] = 0;
    Spieler[playerid][pSchulungsCPbootlic] = 0;
    Spieler[playerid][pSchulungsCPhelilic] = 0;
    DeleteVehicle(Spieler[playerid][pSchulungsVEH]);
    Spieler[playerid][pSchulungsVEH] = -1;
    }
    if(isPlayerInFrakt(playerid,4) || isPlayerInFrakt(playerid,5) || isPlayerInFrakt(playerid,7) || isPlayerInFrakt(playerid,9) || isPlayerInFrakt(playerid,12) || isPlayerInFrakt(playerid,13) || isPlayerInFrakt(playerid,17))
    {
    for(new gw;gw<sizeof(GangwarZones);gw++)
    {
    GangZoneShowForPlayer(playerid,GangwarZones[gw][War_ZoneID],GWZoneColorOfFraktion(GangwarZones[gw][War_Owner]));
    if(GangwarZones[gw][War_Started] == 1)
    {
    if(isPlayerInFrakt(playerid,GangwarZones[gw][War_Owner]) || isPlayerInFrakt(playerid,GangwarZones[gw][War_Attacker]))
    {
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][0]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][1]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][2]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][3]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][4]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][5]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][6]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][7]);
    TextDrawShowForPlayer(playerid,GangwarZones[gw][WARdraw][8]);
    GangZoneFlashForPlayer(playerid,GangwarZones[gw][War_ZoneID],GWZoneColorOfFraktion(GangwarZones[gw][War_Attacker]));
    }
    else
    {
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][0]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][1]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][2]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][3]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][4]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][5]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][6]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][7]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][8]);
    GangZoneHideForPlayer(playerid,GangwarZones[gw][War_ZoneID]);
    }
    }
    }
    for(new sm=1;sm<MAX_SMARKETS;sm++)
    {
    if(SmarkInfo[sm][screatet] == 1 && isPlayerInFrakt(playerid,SmarkInfo[sm][sattackerfraktid]) || (isPlayerInFrakt(playerid,SmarkInfo[sm][sfraktid]) && SmarkInfo[sm][sattackerfraktid] != 0))
    {
    GangZoneShowForPlayer(playerid,SmarkInfo[sm][swarzone],GWZoneColorOfFraktion(SmarkInfo[sm][sfraktid]));
    GangZoneFlashForPlayer(playerid,SmarkInfo[sm][swarzone],GWZoneColorOfFraktion(SmarkInfo[sm][sattackerfraktid]));
    }
    else GangZoneHideForPlayer(playerid,SmarkInfo[sm][swarzone]);
    }
    }
    else
    {
    for(new gw;gw<sizeof(GangwarZones);gw++)
    {
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][0]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][1]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][2]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][3]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][4]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][5]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][6]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][7]);
    TextDrawHideForPlayer(playerid,GangwarZones[gw][WARdraw][8]);
    GangZoneHideForPlayer(playerid,GangwarZones[gw][War_ZoneID]);
    }
    for(new sm=1;sm<MAX_SMARKETS;sm++)
    {
    if(SmarkInfo[sm][screatet] == 1 && SmarkInfo[sm][sattackerfraktid] != 0)
    {
    GangZoneHideForPlayer(playerid,SmarkInfo[sm][swarzone]);
    }
    }
    }


    if(Paintball[playerid] == 0) SetPlayerWaffenSkill(playerid);
    if(ImTutorial[playerid] == 1)
    {
    SetPlayerPos(playerid,285.4538,-1898.6946,0.7390);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    if(Spieler[playerid][pInPrison] == 1)
    {
    if(Spieler[playerid][pMaske] == 1 || Spieler[playerid][pDuty] == 4)
    {
    SetPlayerName(playerid,Spieler[playerid][pName]);
    SetPlayerScore(playerid,GetPlayerLevel(playerid));
    }
    if(Spieler[playerid][pDuty] == 1 && isPlayerInFrakt(playerid,14)) if(IsValidDynamic3DTextLabel(fSCHULleher[playerid])) DestroyDynamic3DTextLabel(fSCHULleher[playerid]);

    StopAudioStreamForPlayer(playerid);
    PlayAudioStreamForPlayer(playerid,ServerSounds[8],0.0,0.0,0.0);
    SetPlayerAttachedObject(playerid,0,19137,2,-0.598000,-0.285000,0.000000,0.000000,0.000000,0.000000,10.631006,4.579000,5.497999);
    ResetWeapons(playerid,false);
    if(!isPlayerInFrakt(playerid,16)) Spieler[playerid][pDuty] = 0;
    Spieler[playerid][pMaske] = 0;
    Spieler[playerid][pHaveMaske] = 0;
    GangZoneStopFlashForPlayer(playerid,Friedhofszone);
    GangZoneHideForPlayer(playerid,Friedhofszone);
    SetPlayerColor(playerid,NAMENWEISS);
    SetPlayerPosEx(playerid,1296.5354,2780.4092,10.8203);
    SetPlayerInterior(playerid,0);
    Spieler[playerid][pHandystate] = 0;
    SetPlayerVirtualWorld(playerid,200);
    new changeskin = random(11);
    switch(changeskin)
    {
    case 0: SetPlayerSkin(playerid,26);
    case 1: SetPlayerSkin(playerid,51);
    case 2: SetPlayerSkin(playerid,78);
    case 3: SetPlayerSkin(playerid,94);
    case 4: SetPlayerSkin(playerid,101);
    case 5: SetPlayerSkin(playerid,137);
    case 6: SetPlayerSkin(playerid,167);
    case 7: SetPlayerSkin(playerid,205);
    case 8: SetPlayerSkin(playerid,264);
    case 9: SetPlayerSkin(playerid,239);
    case 10: SetPlayerSkin(playerid,230);
    case 11: SetPlayerSkin(playerid,289);
    }
    SetPlayerWorldBounds(playerid,1404.205,1103.531,2858.022,2707.167);
    PlayerTextDrawShow(playerid,PRISONdraw[playerid]);
    format(string,sizeof(string),"~w~Checkpoints: ~y~%i/~g~%i",Spieler[playerid][pPrisonCPsgelaufen],Spieler[playerid][pPrisonCPsgegeben]);
    PlayerTextDrawSetString(playerid,PRISONdraw[playerid],string);
    new rSpawn = random(sizeof(Prisoncheckpoints));
    SetPlayerCheckpoint(playerid,Prisoncheckpoints[rSpawn][0],Prisoncheckpoints[rSpawn][1],Prisoncheckpoints[rSpawn][2],1.0);
    GameTextForPlayer(playerid,"~w~Im ~r~Prison",1500,3);
    SendClientMessage(playerid,LEUCHTENDESROT,"Du bist im Prison.");
    format(string,sizeof(string),"Du musst noch %i/%i Checkpoints ablaufen.",Spieler[playerid][pPrisonCPsgelaufen],Spieler[playerid][pPrisonCPsgegeben]);
    SendClientMessage(playerid,WEISS,string);
    SendClientMessage(playerid,WEISS,"");
    KillTimer(AkkuTimer[playerid]);
    PlayerTextDrawHide(playerid,HandyInfodraw[playerid]);
    return 1;
    }
    else if(Spieler[playerid][pFriedhof] == 1)
    {
    if(Spieler[playerid][pMaske] == 1 || Spieler[playerid][pDuty] == 4)
    {
    SetPlayerName(playerid,Spieler[playerid][pName]);
    SetPlayerScore(playerid,GetPlayerLevel(playerid));
    }
    ResetWeapons(playerid,false);
    SetPlayerColor(playerid,NAMENWEISS);
    if(!isPlayerInFrakt(playerid,16)) Spieler[playerid][pDuty] = 0;
    Spieler[playerid][pMaske] = 0;
    Spieler[playerid][pHaveMaske] = 0;
    SetPlayerVirtualWorld(playerid,199);
    ClearAnimations(playerid);
    SetPlayerACHealth(playerid,100);
    SetPlayerPosEx(playerid,877.4824,-1101.8864,24.2969);
    SetPlayerInterior(playerid,0);
    GangZoneShowForPlayer(playerid,Friedhofszone,0xDD140074);
    GangZoneFlashForPlayer(playerid,Friedhofszone,0xDCDCDC7F);
    SetPlayerWorldBounds(playerid,952.6713,805.9981,-1055.6499,-1129.9589);
    SendClientMessage(playerid,SORBLAU,"Du bist auf dem Friedhof.");
    SendClientMessage(playerid,WEISS,"Gib /friedhofzeit ein,um zu sehen wie lange du noch auf dem Friedhof bist.");
    SendClientMessage(playerid,WEISS,"");
    SetPlayerSkin(playerid,162);
    }
    else if(Spieler[playerid][pDeath] == 1)
    {
    ResetWeapons(playerid,false);
    Spieler[playerid][pRevived] = 0;
    SendClientMessage(playerid,WANTEDDEATHERROT,"Du bist verletzt.");
    SendClientMessage(playerid,WEISS,"Gib /totenzeit ein,um zu sehen wie lange du noch verletzt bist.");
    SendClientMessage(playerid,WEISS,"");
    ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,1,1,0,0,1);
    SetPlayerPosEx(playerid,Spieler[playerid][tot_x],Spieler[playerid][tot_y],Spieler[playerid][tot_z]);
    SetPlayerInterior(playerid,Spieler[playerid][tot_int]);
    SetPlayerVirtualWorld(playerid,Spieler[playerid][tot_world]);
    SetPlayerACHealth(playerid,10);
    switch(Spieler[playerid][pFraktion])
    {
    case 1:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAPDDUTY);}}//[S]an [A]ndreas [P]olice [D]epartment
    case 2:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FBIDUTY);}}//F.B.I
    case 3:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,MEDICDUTY);}}//San Andreas Rettungsdienst
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//GSF
    case 6:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,ARMYDUTY);}}//San Andreas ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//BALLAS
    case 8:{if(Spieler[playerid][pHaveMaske] == 1){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//YAKUZA
    case 10:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SANEWSAGDUTY);}}//San Andreas News
    case 11:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,OAMTDUTY);}}//Ordnungsamt
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Sons of Anarchy
    case 14:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,FAHRSCHULEDUTY);}}//faHRSCULE
    case 15:{if(Spieler[playerid][pDuty] != 0){SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SAELEKTRONIKGmBhDUTY);}}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,PRAESIFARBE),Spieler[playerid][pDuty] = 1;}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);}//Aztecas
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]),SetPlayerColor(playerid,SEKTEFARBE);}//Die Sekte
    }
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen