Server Startet nicht!

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
  • Dann zeige bitte deinen Code von OnPlayerRequestSpawn und OnPlayerSpawn.




    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);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]ZugBot",true))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,98);
    PutPlayerInVehicleEx(playerid,BOTZug,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Shamal",true))
    {
    Spieler[playerid][pPlaneLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,61);
    PutPlayerInVehicleEx(playerid,BOTshamal,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]AT400",true))
    {
    Spieler[playerid][pPlaneLic] = 1;
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,61);
    PutPlayerInVehicleEx(playerid,BOTat400,0);
    }
    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);
    }
    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);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]F.NinowBot",true))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,98);
    PutPlayerInVehicleEx(playerid,BOTtramsf,0);
    }
    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);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Bank",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    }
    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);
    }
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]StadthalleLS",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]StadthalleSF",true))
    {
    SetPlayerSkin(playerid,11);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,1);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]Prister",true))
    {
    SetPlayerSkin(playerid,68);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,1);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]DruckereiBot",true))
    {
    SetPlayerSkin(playerid,112);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]TintenBot",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerBS",true))//skin ändern
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerLV",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerSF",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]ShopManLV",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]HackerHelper",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(!strcmp(SpielerName(playerid),"[BOT]LuigiSF",true))
    {
    SetPlayerSkin(playerid,124);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    return 1;
    }



    public OnPlayerRequestSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))return 1;
    return 1;
    }

    Einmal editiert, zuletzt von Smokey. ()

  • Hast du da schon eine Skin-Auswahl zum Start? Wenn ja, ist das die Standard-Auswahl, mit den Links/Rechts/Spawn Buttons? Oder hast du eine eigene, ohne diese Buttons?


    Das sind keine Buttons das sind Textdraws mit Zurück , Weiter, Spawn

  • Callback



    public OnPlayerClickTextDraw(playerid,Text:clickedid)
    {
    new string[1000],query[256],counter = 0;
    if(clickedid == Reportdraw[0])
    {
    for(new i=0;i<30;i++)
    {
    if(ReportListitem[i][rID][0] != -1)
    {
    format(string,sizeof(string),"%s\n(ID:%i) %s",string,ReportListitem[i][rID][0],Spieler[ReportListitem[i][rID][0]][pName]);
    }
    else
    {
    format(string,sizeof(string),"%s\n-",string);
    }
    counter++;
    }
    if(counter == 0)
    {
    SendClientMessage(playerid,GRAU,"Niemand hat einen Report (Fragen) geschrieben.");
    CancelSelectTextDraw(playerid);
    return 1;
    }
    CancelSelectTextDraw(playerid);
    Spieler[playerid][pReportSelect] = 0;
    ShowPlayerDialog(playerid,DIALOG_REPORTANNAHME,DIALOG_STYLE_LIST,"Fragen",string,"Auswählen","Abbrechen");
    return 1;
    }
    if(clickedid == Reportdraw[1])
    {
    for(new i=0;i<30;i++)
    {
    if(ReportListitem[i][rID][1] != -1)
    {
    format(string,sizeof(string),"%s\n(ID:%i) %s",string,ReportListitem[i][rID][1],Spieler[ReportListitem[i][rID][1]][pName]);
    }
    else
    {
    format(string,sizeof(string),"%s\n-",string);
    }
    counter++;
    }
    if(counter == 0)
    {
    SendClientMessage(playerid,GRAU,"Niemand hat eine Einweisung angefordert.");
    CancelSelectTextDraw(playerid);
    return 1;
    }
    CancelSelectTextDraw(playerid);
    Spieler[playerid][pReportSelect] = 1;
    ShowPlayerDialog(playerid,DIALOG_REPORTANNAHME,DIALOG_STYLE_LIST,"Einweisung",string,"Auswählen","Abbrechen");
    return 1;
    }
    if(clickedid == Reportdraw[2])
    {
    for(new i=0;i<30;i++)
    {
    if(ReportListitem[i][rID][2] != -1)
    {
    format(string,sizeof(string),"%s\n(ID:%i) %s",string,ReportListitem[i][rID][2],Spieler[ReportListitem[i][rID][2]][pName]);
    }
    else
    {
    format(string,sizeof(string),"%s\n-",string);
    }
    counter++;
    }
    if(counter == 0)
    {
    SendClientMessage(playerid,GRAU,"Niemand hat einen Report (Regelmeldung) geschrieben.");
    CancelSelectTextDraw(playerid);
    return 1;
    }
    CancelSelectTextDraw(playerid);
    Spieler[playerid][pReportSelect] = 2;
    ShowPlayerDialog(playerid,DIALOG_REPORTANNAHME,DIALOG_STYLE_LIST,"Regelmeldung",string,"Auswählen","Abbrechen");
    return 1;
    }
    if(clickedid == Reportdraw[3])
    {
    for(new i=0;i<30;i++)
    {
    if(ReportListitem[i][rID][3] != -1)
    {
    format(string,sizeof(string),"%s\n(ID:%i) %s",string,ReportListitem[i][rID][3],Spieler[ReportListitem[i][rID][3]][pName]);
    }
    else
    {
    format(string,sizeof(string),"%s\n-",string);
    }
    counter++;
    }
    if(counter == 0)
    {
    SendClientMessage(playerid,GRAU,"Niemand hat einen Report (Fraktion) geschrieben.");
    CancelSelectTextDraw(playerid);
    return 1;
    }
    CancelSelectTextDraw(playerid);
    Spieler[playerid][pReportSelect] = 3;
    ShowPlayerDialog(playerid,DIALOG_REPORTANNAHME,DIALOG_STYLE_LIST,"Fraktion",string,"Auswählen","Abbrechen");
    return 1;
    }
    if(clickedid == Reportdraw[4])
    {
    for(new i=0;i<30;i++)
    {
    if(ReportListitem[i][rID][4] != -1)
    {
    format(string,sizeof(string),"%s\n(ID:%i) %s",string,ReportListitem[i][rID][4],Spieler[ReportListitem[i][rID][4]][pName]);
    }
    else
    {
    format(string,sizeof(string),"%s\n-",string);
    }
    counter++;
    }
    if(counter == 0)
    {
    SendClientMessage(playerid,GRAU,"Niemand hat einen Report (Donator) geschrieben.");
    CancelSelectTextDraw(playerid);
    return 1;
    }
    CancelSelectTextDraw(playerid);
    Spieler[playerid][pReportSelect] = 4;
    ShowPlayerDialog(playerid,DIALOG_REPORTANNAHME,DIALOG_STYLE_LIST,"Donator",string,"Auswählen","Abbrechen");
    return 1;
    }
    if(clickedid == Text:65535)
    {
    if(Spieler[playerid][AmUmkleiden] == 1)
    {
    return SelectTextDraw(playerid,GRAU);
    }
    }
    if(clickedid == BINCOdraw[0])//skin nach hinten wechseln
    {
    if(Spieler[playerid][AmUmkleiden] == 1)
    {
    if(GetPlayerVirtualWorld(playerid) != 0)
    {
    Spieler[playerid][Skin]--;
    if(Spieler[playerid][Skinchange] == 1 || ImTutorial[playerid] != 0)
    {
    if(Spieler[playerid][pDuty] <= 0)
    {
    if(Spieler[playerid][Skin] < 0) Spieler[playerid][Skin] = sizeof(BincoSystemZiviSkins);
    SetPlayerSkin(playerid,BincoSystemZiviSkins[Spieler[playerid][Skin]][Skinid]);
    format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_account_main WHERE SkinID='%d' OR FraktionSkinID='%d'",GetPlayerSkin(playerid),GetPlayerSkin(playerid));
    mysql_function_query(MySqlConnection,query,true,"OnQueryFinish","siii",query,_SQL_BINCOSKIN_COUNT,playerid,MySqlConnection);
    return 1;
    }
    }
    }
    if(Spieler[playerid][FSkinchange] == 1)
    {
    if(Spieler[playerid][Skin] >= 0 && isPlayerInFrakt(playerid,BincoSystemFraktionsSkins[Spieler[playerid][Skin]][Fraktid]))
    {
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[Spieler[playerid][Skin]][Skinid]);
    }
    else
    {
    new skincounter = 0;
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(isPlayerInFrakt(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    skincounter = i;
    }
    }
    Spieler[playerid][Skin] = skincounter;
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[skincounter][Skinid]);
    }
    format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_account_main WHERE SkinID='%d' OR FraktionSkinID='%d'",GetPlayerSkin(playerid),GetPlayerSkin(playerid));
    mysql_function_query(MySqlConnection,query,true,"OnQueryFinish","siii",query,_SQL_BINCOSKIN_COUNT,playerid,MySqlConnection);
    return 1;
    }
    }
    }
    if(clickedid == BINCOdraw[1])//skin nach vorne wechseln
    {
    if(Spieler[playerid][AmUmkleiden] == 1)
    {
    if(GetPlayerVirtualWorld(playerid) != 0)
    {
    Spieler[playerid][Skin]++;
    if(Spieler[playerid][Skinchange] == 1 || ImTutorial[playerid] != 0)
    {
    if(Spieler[playerid][pDuty] == 0)
    {
    if(Spieler[playerid][Skin] > sizeof(BincoSystemZiviSkins)) Spieler[playerid][Skin] = 0;
    SetPlayerSkin(playerid,BincoSystemZiviSkins[Spieler[playerid][Skin]][Skinid]);
    format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_account_main WHERE SkinID='%d' OR FraktionSkinID='%d'",GetPlayerSkin(playerid),GetPlayerSkin(playerid));
    mysql_function_query(MySqlConnection,query,true,"OnQueryFinish","siii",query,_SQL_BINCOSKIN_COUNT,playerid,MySqlConnection);
    return 1;
    }
    }
    }
    if(Spieler[playerid][FSkinchange] == 1)
    {
    if(Spieler[playerid][Skin] >= sizeof(BincoSystemFraktionsSkins))
    {
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(!isPlayerInFrakt(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    Spieler[playerid][Skin] = i;
    }
    }
    }
    if(!isPlayerInFrakt(playerid,BincoSystemFraktionsSkins[Spieler[playerid][Skin]][Fraktid]))
    {
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(isPlayerInFrakt(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    Spieler[playerid][Skin] = i;
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[i][Skinid]);
    break;
    }
    }
    }
    else
    {
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[Spieler[playerid][Skin]][Skinid]);
    }
    format(query,sizeof(query),"SELECT * FROM "#DATENBANKTAG"_account_main WHERE SkinID='%d' OR FraktionSkinID='%d'",GetPlayerSkin(playerid),GetPlayerSkin(playerid));
    mysql_function_query(MySqlConnection,query,true,"OnQueryFinish","siii",query,_SQL_BINCOSKIN_COUNT,playerid,MySqlConnection);
    return 1;
    }
    }
    }
    if(clickedid == BINCOdraw[2])//skin bestätigen
    {
    CancelSelectTextDraw(playerid);
    if(Spieler[playerid][AmUmkleiden] == 1)
    {
    if(GetPlayerVirtualWorld(playerid) != 0)
    {
    if(ImTutorial[playerid] != 0)
    {
    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 i=0;i<sizeof(Reportdraw);i++)
    {
    TextDrawShowForPlayer(playerid,Reportdraw[i]);
    }
    }
    }
    SetPVarInt(playerid,"Eingeloggt",1);
    mysql_SetInt(""#DATENBANKTAG"_account_main","Online",1,"Name",Spieler[playerid][pName]);
    SetPlayerColor(playerid,WEISS);
    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;
    Spieler[playerid][pTutorialObject][3] = CreatePlayerObject(playerid,19394,778.75,-2899.57,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][4] = CreatePlayerObject(playerid,19340,734.31,-2898.24,-4.50, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][5] = CreatePlayerObject(playerid,19447,779.52,-2899.52,2.18, 0.00,90.00,90.00,1);
    Spieler[playerid][pTutorialObject][6] = CreatePlayerObject(playerid,1499,778.75,-2900.29,-0.92, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][7] = CreatePlayerObject(playerid,19394,784.26,-2899.55,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][8] = CreatePlayerObject(playerid,1497,784.25,-2900.29,-0.92, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][9] = CreatePlayerObject(playerid,1499,780.38,-2898.37,-0.94, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][10] = CreatePlayerObject(playerid,19457,779.54,-2900.73,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][11] = CreatePlayerObject(playerid,19457,774.78,-2905.57,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][12] = CreatePlayerObject(playerid,19457,771.89,-2903.17,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][13] = CreatePlayerObject(playerid,19457,770.03,-2898.38,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][14] = CreatePlayerObject(playerid,19411,771.87,-2909.55,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][15] = CreatePlayerObject(playerid,19457,779.51,-2910.32,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][16] = CreatePlayerObject(playerid,19457,771.87,-2915.95,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][17] = CreatePlayerObject(playerid,19457,779.52,-2912.63,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][18] = CreatePlayerObject(playerid,19447,772.95,-2902.58,2.18, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][19] = CreatePlayerObject(playerid,19447,772.95,-2912.17,2.18, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][20] = CreatePlayerObject(playerid,19447,779.50,-2912.08,2.18, 0.00,90.00,90.00,1);
    Spieler[playerid][pTutorialObject][21] = CreatePlayerObject(playerid,19466,771.89,-2909.56,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][22] = CreatePlayerObject(playerid,19394,781.02,-2911.44,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][23] = CreatePlayerObject(playerid,19394,784.40,-2911.44,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][24] = CreatePlayerObject(playerid,19394,785.89,-2910.24,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][25] = CreatePlayerObject(playerid,1501,774.65,-2901.47,-0.76, 0.00,0.00,270.00,1);
    Spieler[playerid][pTutorialObject][26] = CreatePlayerObject(playerid,1501,774.64,-2905.20,-0.76, 0.00,0.00,270.00,1);
    Spieler[playerid][pTutorialObject][27] = CreatePlayerObject(playerid,1494,774.71,-290.67,-0.76, 0.00,0.00,270.00,1);
    Spieler[playerid][pTutorialObject][28] = CreatePlayerObject(playerid,1501,774.65,-2908.51,-0.76, 0.00,0.00,270.00,1);
    Spieler[playerid][pTutorialObject][29] = CreatePlayerObject(playerid,1499,785.12,-2909.99,-0.92, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][30] = CreatePlayerObject(playerid,19411,785.91,-2912.63,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][31] = CreatePlayerObject(playerid,19394,787.58,-2911.46,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][32] = CreatePlayerObject(playerid,19466,785.91,-2912.63,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][33] = CreatePlayerObject(playerid,19457,779.51,-2909.92,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][34] = CreatePlayerObject(playerid,19394,785.89,-2910.08,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][35] = CreatePlayerObject(playerid,19394,785.89,-2909.92,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][36] = CreatePlayerObject(playerid,19457,787.58,-2905.82,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][37] = CreatePlayerObject(playerid,19457,782.85,-2905.06,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][38] = CreatePlayerObject(playerid,19394,782.03,-2906.73,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][39] = CreatePlayerObject(playerid,19438,782.03,-2909.07,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][40] = CreatePlayerObject(playerid,19447,783.00,-2908.32,2.18, 0.00,90.00,90.00,1);
    Spieler[playerid][pTutorialObject][41] = CreatePlayerObject(playerid,19447,783.00,-2904.83,2.18, 0.00,90.00,270.00,1);
    Spieler[playerid][pTutorialObject][42] = CreatePlayerObject(playerid,19447,776.45,-2905.51,2.18, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][43] = CreatePlayerObject(playerid,19447,789.18,-2911.59,2.18, 0.00,90.00,90.00,1);
    Spieler[playerid][pTutorialObject][44] = CreatePlayerObject(playerid,19447,782.82,-2902.77,2.18, 0.00,90.00,270.00,1);
    Spieler[playerid][pTutorialObject][45] = CreatePlayerObject(playerid,19457,779.52,-2901.07,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][46] = CreatePlayerObject(playerid,1501,782.26,-2908.56,-0.12, 84.00,11.00,56.00,1);
    Spieler[playerid][pTutorialObject][47] = CreatePlayerObject(playerid,19394,778.12,-2903.53,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][48] = CreatePlayerObject(playerid,19438,778.16,-2901.95,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][49] = CreatePlayerObject(playerid,1499,778.16,-2904.27,-0.92, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][50] = CreatePlayerObject(playerid,2180,778.56,-2904.02,-1.55, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][51] = CreatePlayerObject(playerid,19340,822.68,-2991.44,-4.50, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][52] = CreatePlayerObject(playerid,2180,779.10,-2904.02,-1.88, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][53] = CreatePlayerObject(playerid,2180,779.56,-2904.02,-2.22, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][54] = CreatePlayerObject(playerid,2180,780.02,-2904.02,-2.50, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][55] = CreatePlayerObject(playerid,19340,823.30,-2815.63,-4.50, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][56] = CreatePlayerObject(playerid,2180,780.38,-2904.02,-2.82, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][57] = CreatePlayerObject(playerid,2180,780.72,-2904.02,-3.12, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][58] = CreatePlayerObject(playerid,19340,822.43,-2817.53,-7.36, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][59] = CreatePlayerObject(playerid,19340,832.15,-2826.22,2.84, 180.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][60] = CreatePlayerObject(playerid,19394,795.60,-2903.51,-1.89, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][61] = CreatePlayerObject(playerid,1499,795.60,-2904.26,-3.66, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][62] = CreatePlayerObject(playerid,2180,781.10,-2904.00,-3.40, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][63] = CreatePlayerObject(playerid,2180,781.50,-2904.00,-3.68, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][64] = CreatePlayerObject(playerid,2180,781.84,-2904.00,-3.94, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][65] = CreatePlayerObject(playerid,2180,782.16,-2904.00,-4.18, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][66] = CreatePlayerObject(playerid,19457,789.12,-2901.07,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][67] = CreatePlayerObject(playerid,19457,779.66,-2902.46,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][68] = CreatePlayerObject(playerid,19457,789.14,-2902.46,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][69] = CreatePlayerObject(playerid,19457,782.86,-2904.56,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][70] = CreatePlayerObject(playerid,19457,788.58,-2904.56,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][71] = CreatePlayerObject(playerid,19394,781.15,-2898.38,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][72] = CreatePlayerObject(playerid,19438,783.39,-2898.38,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][73] = CreatePlayerObject(playerid,19457,782.80,-2893.51,0.84, -0.02,-0.02,0.00,1);
    Spieler[playerid][pTutorialObject][74] = CreatePlayerObject(playerid,19457,773.42,-2893.52,0.84, -0.02,-0.02,0.00,1);
    Spieler[playerid][pTutorialObject][75] = CreatePlayerObject(playerid,19394,776.43,-2898.38,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][76] = CreatePlayerObject(playerid,19438,778.81,-2898.38,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][77] = CreatePlayerObject(playerid,19457,778.13,-2888.83,0.84, -0.02,-0.02,90.00,1);
    Spieler[playerid][pTutorialObject][78] = CreatePlayerObject(playerid,1499,775.66,-2898.37,-0.94, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][79] = CreatePlayerObject(playerid,19394,778.75,-2896.35,0.84, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][80] = CreatePlayerObject(playerid,19457,778.73,-2889.95,0.84, -0.02,-0.02,0.00,1);
    Spieler[playerid][pTutorialObject][81] = CreatePlayerObject(playerid,1499,778.77,-2897.09,-0.92, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][82] = CreatePlayerObject(playerid,1497,787.58,-2912.20,-0.92, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][83] = CreatePlayerObject(playerid,19447,773.49,-2893.64,2.14, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][84] = CreatePlayerObject(playerid,19447,776.97,-2893.65,2.14, 0.00,90.00,180.00,1);
    Spieler[playerid][pTutorialObject][85] = CreatePlayerObject(playerid,19447,780.33,-2893.63,2.14, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][86] = CreatePlayerObject(playerid,19447,783.82,-2893.62,2.14, 0.00,90.00,180.00,1);
    Spieler[playerid][pTutorialObject][87] = CreatePlayerObject(playerid,1416,775.15,-2891.46,0.00, -66.00,24.00,22.00,1);
    Spieler[playerid][pTutorialObject][88] = CreatePlayerObject(playerid,2081,776.29,-2891.69,-0.18, 26.00,22.00,33.00,1);
    Spieler[playerid][pTutorialObject][89] = CreatePlayerObject(playerid,14493,777.45,-2891.14,1.54, 42.00,20.00,74.00,1);
    Spieler[playerid][pTutorialObject][90] = CreatePlayerObject(playerid,2595,774.41,-2892.62,-0.10, -18.00,-72.00,50.00,1);
    Spieler[playerid][pTutorialObject][91] = CreatePlayerObject(playerid,2683,776.02,-2893.04,-0.01, -68.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][92] = CreatePlayerObject(playerid,2683,775.60,-2893.02,-0.05, -68.00,-4.00,56.00,1);
    Spieler[playerid][pTutorialObject][93] = CreatePlayerObject(playerid,2683,774.76,-2893.36,-0.05, -50.00,-34.00,135.00,1);
    Spieler[playerid][pTutorialObject][94] = CreatePlayerObject(playerid,18691,776.29,-2893.20,0.00, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][95] = CreatePlayerObject(playerid,18691,776.27,-2898.31,0.08, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][96] = CreatePlayerObject(playerid,18691,776.36,-2890.53,0.05, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][97] = CreatePlayerObject(playerid,18691,782.70,-2891.14,0.43, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][98] = CreatePlayerObject(playerid,18691,774.67,-2902.66,0.70, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][99] = CreatePlayerObject(playerid,18691,787.51,-2912.37,1.10, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][100] = CreatePlayerObject(playerid,18691,784.93,-2908.63,0.18, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][101] = CreatePlayerObject(playerid,18691,774.86,-2907.46,0.70, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][102] = CreatePlayerObject(playerid,2683,775.20,-2910.63,-0.05, -68.00,-4.00,56.00,1);
    Spieler[playerid][pTutorialObject][103] = CreatePlayerObject(playerid,18691,773.31,-2901.42,0.04, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][104] = CreatePlayerObject(playerid,18691,774.45,-2902.13,0.03, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][105] = CreatePlayerObject(playerid,18691,774.51,-2905.78,0.02, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][106] = CreatePlayerObject(playerid,2683,776.25,-2911.00,-0.05, -22.00,-4.00,56.00,1);
    Spieler[playerid][pTutorialObject][107] = CreatePlayerObject(playerid,2683,774.78,-2911.26,-0.05, -25.00,-32.00,110.00,1);
    Spieler[playerid][pTutorialObject][108] = CreatePlayerObject(playerid,2683,775.14,-2911.09,-0.03, -18.00,-12.00,126.00,1);
    Spieler[playerid][pTutorialObject][109] = CreatePlayerObject(playerid,2079,774.98,-2894.11,0.15, -36.00,26.00,-12.00,1);
    Spieler[playerid][pTutorialObject][110] = CreatePlayerObject(playerid,3009,775.41,-2891.75,-0.06, -53.00,10.00,-32.00,1);
    Spieler[playerid][pTutorialObject][111] = CreatePlayerObject(playerid,19173,776.18,-2889.14,1.17, 0.00,4.00,0.00,1);
    Spieler[playerid][pTutorialObject][112] = CreatePlayerObject(playerid,12954,779.85,-2892.97,0.19, -4.00,16.00,56.00,1);
    Spieler[playerid][pTutorialObject][113] = CreatePlayerObject(playerid,18691,780.23,-2892.68,0.86, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][114] = CreatePlayerObject(playerid,3009,776.26,-2910.70,-0.32, -62.00,-40.00,26.00,1);
    Spieler[playerid][pTutorialObject][115] = CreatePlayerObject(playerid,18691,776.37,-2910.33,0.68, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][116] = CreatePlayerObject(playerid,1220,786.09,-2903.04,5.31, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][117] = CreatePlayerObject(playerid,1220,777.09,-2911.02,-0.11, 0.00,26.00,32.00,1);
    Spieler[playerid][pTutorialObject][118] = CreatePlayerObject(playerid,1421,772.46,-2907.10,0.10, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][119] = CreatePlayerObject(playerid,2991,779.20,-2908.52,0.00, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][120] = CreatePlayerObject(playerid,2991,779.20,-2908.52,1.22, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][121] = CreatePlayerObject(playerid,18691,777.23,-2907.52,0.34, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][122] = CreatePlayerObject(playerid,1220,782.00,-2911.10,-0.21, 0.00,55.00,-46.00,1);
    Spieler[playerid][pTutorialObject][122] = CreatePlayerObject(playerid,1220,772.92,-2904.54,-0.11, 0.00,26.00,32.00,1);
    Spieler[playerid][pTutorialObject][123] = CreatePlayerObject(playerid,1220,772.78,-2909.47,-0.23, 52.00,72.00,32.00,1);
    Spieler[playerid][pTutorialObject][124] = CreatePlayerObject(playerid,2934,783.69,-2917.73,-0.50, 14.00,132.00,34.00,1);
    Spieler[playerid][pTutorialObject][125] = CreatePlayerObject(playerid,18691,779.94,-2917.85,0.65, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][126] = CreatePlayerObject(playerid,18716,775.02,-2894.29,0.10, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][127] = CreatePlayerObject(playerid,18716,780.60,-2892.20,0.21, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][128] = CreatePlayerObject(playerid,18716,773.17,-2904.21,0.24, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][129] = CreatePlayerObject(playerid,18716,781.98,-2910.99,0.41, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][130] = CreatePlayerObject(playerid,18715,780.26,-2907.53,-0.21, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][131] = CreatePlayerObject(playerid,19340,844.17,-2824.74,0.00, 180.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][132] = CreatePlayerObject(playerid,1220,779.06,-2911.02,-0.21, 0.00,30.00,86.00,1);
    Spieler[playerid][pTutorialObject][133] = CreatePlayerObject(playerid,1220,772.93,-2900.90,-0.25, 193.00,84.00,66.00,1);
    Spieler[playerid][pTutorialObject][134] = CreatePlayerObject(playerid,19394,773.07,-2912.61,0.84, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][135] = CreatePlayerObject(playerid,19457,774.78,-2917.37,0.84, -0.02,-0.02,180.00,1);
    Spieler[playerid][pTutorialObject][136] = CreatePlayerObject(playerid,19394,771.87,-2922.35,0.84, -0.02,-0.02,0.00,1);
    Spieler[playerid][pTutorialObject][137] = CreatePlayerObject(playerid,19447,772.95,-2921.77,2.18, 0.00,90.00,0.00,1);
    Spieler[playerid][pTutorialObject][138] = CreatePlayerObject(playerid,19411,773.38,-2922.85,0.84, 0.00,0.00,-62.00,1);
    Spieler[playerid][pTutorialObject][139] = CreatePlayerObject(playerid,19466,773.38,-2922.85,0.84, 0.00,0.00,-62.00,1);
    Spieler[playerid][pTutorialObject][140] = CreatePlayerObject(playerid,19340,738.86,-2999.62,-4.50, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][141] = CreatePlayerObject(playerid,1497,771.93,-2923.07,-0.94, 0.00,0.00,90.00,1);
    Spieler[playerid][pTutorialObject][142] = CreatePlayerObject(playerid,1497,772.31,-2912.62,-0.90, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][143] = CreatePlayerObject(playerid,2060,780.80,-2893.28,-0.02, 50.00,20.00,76.00,1);
    Spieler[playerid][pTutorialObject][144] = CreatePlayerObject(playerid,1520,775.94,-2911.38,-0.03, 76.00,76.00,143.00,1);
    Spieler[playerid][pTutorialObject][145] = CreatePlayerObject(playerid,19273,774.24,-2912.41,0.96, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][146] = CreatePlayerObject(playerid,19088,418.90,2545.27,11.72, -49.00,-4.00,0.00,1);
    Spieler[playerid][pTutorialObject][147] = CreatePlayerObject(playerid,19088,418.90,2545.25,11.64, -49.00,-4.00,0.00,1);
    Spieler[playerid][pTutorialObject][148] = CreatePlayerObject(playerid,19088,418.90,2545.25,11.60, -49.00,-4.00,0.00,1);
    Spieler[playerid][pTutorialObject][149] = CreatePlayerObject(playerid,19088,418.90,2545.25,11.68, -49.00,-4.00,0.00,1);
    Spieler[playerid][pTutorialObject][150] = CreatePlayerObject(playerid,19088,419.58,2545.16,11.74, -47.00,8.00,-2.00,1);
    Spieler[playerid][pTutorialObject][151] = CreatePlayerObject(playerid,19088,418.82,2545.37,11.58, -53.00,-4.00,2.00,1);
    Spieler[playerid][pTutorialObject][152] = CreatePlayerObject(playerid,19088,419.34,2541.88,13.67, 0.00,0.00,0.00,1);
    Spieler[playerid][pTutorialObject][153] = CreatePlayerObject(playerid,1264,414.79,2538.45,9.44, 0.00,0.00,76.00,1);
    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[26],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;
    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 Donatorpaydays !\nSprich man erhält 2 Respektpunkte mehr als gewöhnlich.\n"#SERVERFARBE"Wichtig{C9C9C9}: Der angegebene Spieler muss registriert sein!","Absenden","Niemand");
    return 1;
    }
    if(Spieler[playerid][Skinchange] == 1)
    {
    if((GetACMoney(playerid) - BincoSystemZiviSkins[Spieler[playerid][Skin]][SkinPreis]) < 0)return SendClientMessage(playerid,GRAU,"Nicht genug Geld dabei.");
    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 i=0;i<sizeof(Reportdraw);i++)
    {
    TextDrawShowForPlayer(playerid,Reportdraw[i]);
    }
    }
    }
    SendClientMessage(playerid,BLAU,"Du hast deinen Skin gewechselt.");
    ACMoney(playerid,-BincoSystemZiviSkins[Spieler[playerid][Skin]][SkinPreis]);
    TextDrawHideForPlayer(playerid,BINCOdraw[0]);
    TextDrawHideForPlayer(playerid,BINCOdraw[1]);
    TextDrawHideForPlayer(playerid,BINCOdraw[2]);
    PlayerTextDrawHide(playerid,BINCOplayerdraw[playerid]);
    SetCameraBehindPlayer(playerid);
    SetPlayerVirtualWorld(playerid,0);
    TogglePlayerControllable(playerid,1);
    Spieler[playerid][Skin] = 0;
    Spieler[playerid][Skinchange] = 0;
    Spieler[playerid][AmUmkleiden] = 0;
    Spieler[playerid][pSkin] = GetPlayerSkin(playerid);
    SaveAccount(playerid);
    return 1;
    }
    if(Spieler[playerid][FSkinchange] == 1)
    {
    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 i=0;i<sizeof(Reportdraw);i++)
    {
    TextDrawShowForPlayer(playerid,Reportdraw[i]);
    }
    }
    }
    SendClientMessage(playerid,BLAU,"Du hast deinen FraktionsSkin gewechselt.");
    TextDrawHideForPlayer(playerid,BINCOdraw[0]);
    TextDrawHideForPlayer(playerid,BINCOdraw[1]);
    TextDrawHideForPlayer(playerid,BINCOdraw[2]);
    PlayerTextDrawHide(playerid,BINCOplayerdraw[playerid]);
    SetCameraBehindPlayer(playerid);
    SetPlayerVirtualWorld(playerid,0);
    TogglePlayerControllable(playerid,1);
    Spieler[playerid][Skin] = 0;
    Spieler[playerid][FSkinchange] = 0;
    Spieler[playerid][AmUmkleiden] = 0;
    Spieler[playerid][pFraktSkin] = GetPlayerSkin(playerid);
    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]) && GangwarZones[gw][War_Started] == 1)
    {
    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]);
    }
    }
    }
    }
    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]);
    }
    }
    if(Spieler[playerid][ImInvite] == 1)
    {
    format(string,sizeof(string),"SELECT * FROM "#DATENBANKTAG"_fraktion_motd WHERE fID='%d'",Spieler[playerid][pFraktion]);
    mysql_function_query(MySqlConnection,string,true,"OnQueryFinish","siii",string,_SQL_FRAKTIONSMOTD_SELECT,playerid,MySqlConnection);
    SetPlayerColor(playerid,WEISS);
    SetPlayerPosEx(playerid,Spieler[playerid][LastInGamePos_x],Spieler[playerid][LastInGamePos_y],Spieler[playerid][LastInGamePos_z]);
    SetPlayerInterior(playerid,Spieler[playerid][LastInGamePos_int]);
    SetPlayerVirtualWorld(playerid,Spieler[playerid][LastInGamePos_world]);
    Spieler[playerid][ImInvite] = 0;
    Spieler[playerid][pDuty] = 0;
    switch(Spieler[playerid][pFraktion])
    {
    case 1:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//SAPD
    case 2:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//FBI
    case 3:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//MEDIC
    case 4:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//LSV
    case 5:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//GSF
    case 6:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//ARMY
    case 7:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//BALLAS
    case 8:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//TERRORS
    case 9:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//YAKUZA
    case 10:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//SANEWSAG
    case 11:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//OAMT
    case 12:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//LCN
    case 13:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//Sons of Anarchy
    case 14:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//FAHRSCHULE
    case 15:{SetPlayerSkin(playerid,Spieler[playerid][pSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest Offduty.");}//SA ELEKTRONIK GmBh
    case 16:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//Regierung
    case 17:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//Sureño Syndikat
    case 18:{SetPlayerSkin(playerid,Spieler[playerid][pFraktSkin]);SendClientMessage(playerid,BLAU,"Du spawnst nun an deinem letzten Ort bevor du Invited wurdest.");}//Die Sekte
    }
    }
    SaveAccount(playerid);
    return 1;
    }
    }
    }
    }
    return 1;
    }

  • Dann zeige bitte deinen Code von OnPlayerRequestSpawn und OnPlayerSpawn.



    Dies hab ich auch eingefügt. bei OnplaySpawn und bei OnPlayerRequestSpawn aber der spawnt immer noch mit dem CJ Skin

  • Dann ändere das
    if(!IsPlayerNPC(playerid)) SetPlayerSkin(playerid,Spieler[playerid][pSkin]);
    zu:
    if(!IsPlayerNPC(playerid))
    {
    printf("Setze Skin von ID %d zu: %d", playerid, Spieler[playerid][pSkin]);
    SetPlayerSkin(playerid,Spieler[playerid][pSkin]);
    }


    Dann poste was im Server Log steht, wenn du spawnst. Es geht darum zu sehen, ob zum einen der Code überhaupt aufgerufen wird, und zum anderen ob der Wert in der pSkin Variable korrekt ist.

  • Dann poste was im Server Log steht, wenn du spawnst. Es geht darum zu sehen, ob zum einen der Code überhaupt aufgerufen wird, und zum anderen ob der Wert in der pSkin Variable korrekt ist.


  • Ok, das ist schonmal gut.
    Jetzt ändere in der Skin-Auswahl:
    Spieler[playerid][pSkin] = GetPlayerSkin(playerid);
    zu:
    printf("Skin Ausgewählt: %d", GetPlayerSkin(playerid));
    Spieler[playerid][pSkin] = GetPlayerSkin(playerid);


    Was steht dann im Server Log, wenn du den Skin auswählst und spawnst?
    Es geht jetzt darum, zu erkennen ob der Wert da gespeichert wird. Wenn ja, dann ist es relativ leicht zu beheben.