Wenn man als Neuling spawnt, sieht man nichts

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
    Ich habe seid einigen Tagen ein großes Problem, ich habe kürzlich einen Server eröffnet und wenn Neulige am Noobspawn spawnen, dann
    sehen sie nichts, ich habe denen gesagt, sie sollen mal /interior machen. Dann stehen da sie sind nicht im Interior 0. Obwohl bei meinem
    OnPlayerSpawn SetPlayerInterior und SetPlayerVirtualWorld enthalten ist. Ich habe meinen ServerOwner versprochen es bis heute in den Griff zu bekommen, bekomme ich aber nicht. Was kann man da machen, damit man im richtigen Interior spawnt, ich habe schon den ganzen OnPlayerSpawn neu gemacht, soch es hilft nichts, woran kann es liegen ?


    Ich schätze es bringt nichts, wenn ich euch den Code hier poste, denn er ist irsinnig lang und er wird eh nicht komplett von euch durchgeschaut, also bringt mir Ideen.

  • Ne, es leigt nicht dadran.
    Hier der Code, es ist wurscht.


    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(!strcmp(name,"Fischer",false))
    {
    SetSpawnInfo(playerid,0,0,1703.0623,-1953.6575,14.8756,266.1844,0,0,0,0,0,0);
    SetPlayerColor(playerid,0x00FF00AA);
    SetPlayerSkin(playerid,35);
    print("NPC: Der Fischerbot wurde erfolgreich gespawnt.");
    return 1;
    }
    if(!strcmp(name,"Atbot",false))
    {
    SetSpawnInfo(playerid, 0, 0, 1703.0623,-1953.6575,14.8756,266.1844,0, 0, 0, 0, 0, 0);
    SetPlayerColor(playerid,0x00FF00AA);
    SpielerInfo[playerid][drivingskill]=5000;
    PutPlayerInVehicle(playerid,ATBOTCAR,0);
    lightOn(ATBOTCAR);
    SpielerInfo[playerid][flug]=1;
    print("NPC: Der Atbot wurde erfolgreich gespawnt.");
    return 1;
    }
    if(!strcmp(name,"Androbot",false))
    {
    SetSpawnInfo(playerid, 0, 0, 1703.0623,-1953.6575,14.8756,266.1844,0, 0, 0, 0, 0, 0);
    SetPlayerColor(playerid,0x00FF00AA);
    SpielerInfo[playerid][drivingskill]=5000;
    PutPlayerInVehicle(playerid,ANDROBOTCAR,0);
    lightOn(ANDROBOTCAR);
    SpielerInfo[playerid][flug]=1;
    print("NPC: Der Andro wurde erfolgreich gespawnt.");
    return 1;
    }
    if(!strcmp(name,"TrainBOT",false))
    {
    SetSpawnInfo(playerid, 0, 0, 1703.0623,-1953.6575,14.8756,266.1844,0, 0, 0, 0, 0, 0);
    SetPlayerColor(playerid,0x00FF00AA);
    SpielerInfo[playerid][Car]=1;
    SpielerInfo[playerid][drivingskill]=5000;
    PutPlayerInVehicle(playerid,TRAINBOTCAR,0);
    lightOn(TRAINBOTCAR);
    trainbotid=playerid;
    print("NPC: Der Trainbot wurde erfolgreich gespawnt.");
    return 1;
    }
    if(!strcmp(name,"ArmyBot",false))
    {
    SetSpawnInfo(playerid, 0, 287, 1703.0623,-1953.6575,14.8756,266.1844,0, 0, 0, 0, 0, 0);
    SetPlayerColor(playerid,0x00FF00AA);
    SpielerInfo[playerid][drivingskill]=5000;
    SpielerInfo[playerid][Car]=1;
    PutPlayerInVehicle(playerid,ARMYBOTCAR,0);
    lockVehicle(ARMYBOTCAR);
    lightOn(ARMYBOTCAR);
    print("NPC: Der Army wurde erfolgreich gespawnt.");
    return 1;
    }
    }
    if(SpielerInfo[playerid][Eingeloggt]==0)
    {
    skipscreen(playerid);
    SendClientMessage(playerid,Rot,"Du musst dich erst einloggen bevor du Spawnen kannst");
    isttot[playerid]=0;
    return 1;
    }
    new time_now=GetTickCount();
    stoptPlayerTragen(playerid);
    SetPVarInt(playerid,"spawned",gettime());
    SetPVarInt(playerid,"wird_getragen",0);
    SetPVarInt(playerid,"lkw_benzin",0);
    SetPVarInt(playerid,"eingeliefert",0);
    SetPVarInt(playerid,"kann_revivt_werden",0);
    SetPVarInt(playerid,"istinalka",0);
    TogglePlayerControllable(playerid,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    if(spect[playerid]==1)
    {
    SetTimerEx("SpecSpawn",400,false,"i",playerid);
    }
    if(GetPVarInt(playerid,"maske")>0)
    {
    ShowPlayerNameTagForPlayer(playerid,playerid,false);
    }
    else
    {
    ShowPlayerNameTagForPlayer(playerid,playerid,true);
    }
    SetPVarInt(playerid,"exploded",0);
    maskeAbsetzen(playerid);
    SetPVarInt(playerid,"gesegnet",0);
    SetPVarInt(playerid,"willmarkers",0);
    SetPVarInt(playerid,"bikeduty",0);
    SetPVarInt(playerid,"schlüssel",0);
    new rand=random(30);
    rand --;
    switch(rand)
    {
    case 0 :{SetPlayerPos(playerid,1734.9547,-1945.2352,13.5637);}
    case 1 :{SetPlayerPos(playerid,1741.8971,-1945.0713,13.5643);}
    case 2 :{SetPlayerPos(playerid,1750.4263,-1945.6161,13.5623);}
    case 3 :{SetPlayerPos(playerid,1758.1211,-1945.4340,13.5630);}
    case 4 :{SetPlayerPos(playerid,1764.7723,-1945.2772,13.5636);}
    case 5 :{SetPlayerPos(playerid,1770.8610,-1945.1339,13.5571);}
    case 6 :{SetPlayerPos(playerid,1774.9561,-1948.1975,14.1096);}
    case 7 :{SetPlayerPos(playerid,1770.1858,-1948.3656,14.1096);}
    case 8 :{SetPlayerPos(playerid,1766.3633,-1948.4009,14.1096);}
    case 9 :{SetPlayerPos(playerid,1761.8545,-1948.4436,14.1096);}
    case 10 :{SetPlayerPos(playerid,1757.6281,-1948.4835,14.1096);}
    case 11 :{SetPlayerPos(playerid,1753.7567,-1948.5197,13.7827);}
    case 12 :{SetPlayerPos(playerid,1749.7788,-1948.5566,13.7372);}
    case 13 :{SetPlayerPos(playerid,1745.3557,-1948.5984,14.1172);}
    case 14 :{SetPlayerPos(playerid,1741.0270,-1948.6388,14.1172);}
    case 15 :{SetPlayerPos(playerid,1736.4951,-1948.6816,14.1172);}
    case 16 :{SetPlayerPos(playerid,1731.5043,-1948.7295,14.1172);}
    case 17 :{SetPlayerPos(playerid,1726.1738,-1948.7802,14.1172);}
    case 18 :{SetPlayerPos(playerid,1725.3992,-1951.3704,14.1172);}
    case 19 :{SetPlayerPos(playerid,1729.4124,-1951.5742,14.1172);}
    case 20 :{SetPlayerPos(playerid,1733.5695,-1951.4760,14.1172);}
    case 21 :{SetPlayerPos(playerid,1738.6539,-1951.3561,14.1172);}
    case 22 :{SetPlayerPos(playerid,1744.2411,-1951.2245,14.1172);}
    case 23 :{SetPlayerPos(playerid,1749.1068,-1951.2747,14.1172);}
    case 24 :{SetPlayerPos(playerid,1754.5957,-1951.1556,14.1096);}
    case 25 :{SetPlayerPos(playerid,1759.8091,-1951.4025,14.1096);}
    case 26 :{SetPlayerPos(playerid,1767.3545,-1951.2747,14.1096);}
    case 27 :{SetPlayerPos(playerid,1772.9325,-1951.5389,14.1096);}
    case 28 :{SetPlayerPos(playerid,1774.0330,-1949.2599,14.1096);}
    case 29 :{SetPlayerPos(playerid,1778.8274,-1950.2599,14.1096);}
    }
    SetPlayerFacingAngle(playerid,352.2779);
    IntEnforcer[playerid]=0;
    IntCargo[playerid]=0;
    if(SpielerInfo[playerid][handy]==0)
    {
    HandyAn[playerid]=0;
    }
    if(newbichat[playerid]==0)
    {
    if(SpielerInfo[playerid][Level]==1||SpielerInfo[playerid][Level]==2)
    {
    newbichat[playerid]=1;
    SendClientMessage(playerid,0xBC00FFFF,"Der Newbichat wurde eingeschaltet diesen nutzt du mit /nc.");
    }
    }
    if(newbichat[playerid]==0)
    {
    if(IsPlayerAnAdmin(playerid,1)&&uadmin[playerid]==0)
    {
    newbichat[playerid]=1;
    if(!IsPlayerAnAdmin(playerid,8))
    {
    SendClientMessage(playerid,0xBC00FFFF,"Der Newbichat wurde eingeschaltet diesen nutzt du mit /nc.");
    }
    }
    }
    willlspd[playerid]=0;
    SetPVarInt(playerid,"swatduty",0);
    SetPlayerArmour(playerid,0);
    DisablePlayerCheckpoint(playerid);
    istinskin[playerid]=0;
    PlayerCuffed[playerid]=0;
    if(registrierung[playerid]==1)
    {
    PutPlayerInVehicle(playerid,GetPlayerVehicleID(ReturnUser("TrainBot")),1);
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Willkommen auf SuN Revival.");
    registrierung[playerid]=2;
    PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
    }
    PlayerTextDrawHide(playerid,Bombtext[playerid]);
    if(hatGesehen[playerid]==0)
    {
    hatGesehen[playerid]=1;
    ShowPlayerWelcomeDialog(playerid);
    }
    PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
    TextDrawShowForPlayer(playerid,txtTimeDisp);
    TextDrawShowForPlayer(playerid,txtTimeDate);
    gettime(hour2,minute2);
    SetPlayerTime(playerid,hour2,minute2);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    if(GetPVarInt(playerid,"hauschecked")==0)
    {
    SetPVarInt(playerid,"hauschecked",1);
    SetPVarInt(playerid,"lasthaus",-1);
    for(new i=0; i<maxhauses; i++)
    {
    if(Hausplaces[i][active]==1)
    {
    if(!strcmp(Hausplaces[i][besitzer],SpielerName(playerid),true))
    {
    SetPVarInt(playerid,"lasthaus",i);
    break;
    }
    }
    }
    }
    if(IsPlayerAnAdmin(playerid,1))
    {
    TextDrawShowForPlayer(playerid,fragen);
    if(IsPlayerAnAdmin(playerid,3))
    {
    TextDrawShowForPlayer(playerid,regeln);
    if(IsPlayerAnAdmin(playerid,4))
    {
    TextDrawShowForPlayer(playerid,probleme);
    }
    }
    }
    else
    {
    TextDrawHideForPlayer(playerid,fragen);
    TextDrawHideForPlayer(playerid,regeln);
    TextDrawHideForPlayer(playerid,probleme);
    }
    if(SpielerInfo[playerid][Spawnchange]==0)
    {
    if(GetPVarInt(playerid,"lasthaus")!=-1)
    {
    new hausid=GetPVarInt(playerid,"lasthaus");
    if(!strcmp(Hausplaces[hausid][besitzer],SpielerName(playerid),true)&&Hausplaces[hausid][active]==1)
    {
    gibPlayerAward(playerid,11);
    if(Hausplaces[hausid][e_haus_x]==0.0&&Hausplaces[hausid][e_haus_y]==0.0)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    if(Hausplaces[hausid][player_spawn])
    {
    SetPlayerPos(playerid,Hausplaces[hausid][haus_x],Hausplaces[hausid][haus_y],Hausplaces[hausid][haus_z]);
    }
    }
    else
    {
    SetPlayerInterior(playerid,Hausplaces[hausid][inter]);
    SetPlayerVirtualWorld(playerid,Hausplaces[hausid][world]);
    if(Hausplaces[hausid][trash]<=974)
    {
    Hausplaces[hausid][trash]+=25;
    }
    else
    {
    Hausplaces[hausid][trash]=1000;
    }
    if(Hausplaces[hausid][player_spawn])
    {
    SetPlayerPos(playerid,Hausplaces[hausid][e_haus_x],Hausplaces[hausid][e_haus_y],Hausplaces[hausid][e_haus_z]);
    }
    }
    }
    }
    }
    if(SpielerInfo[playerid][Motel]==1)
    {
    SetPlayerInterior(playerid,15);
    SetPlayerPos(playerid,2215.454833,-1147.475585,1025.796875);
    }
    if(SpielerInfo[playerid][rented]>-1)
    {
    if(Hausplaces[SpielerInfo[playerid][rented]][e_haus_x]==0.0&&Hausplaces[SpielerInfo[playerid][rented]][e_haus_y]==0.0)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,Hausplaces[SpielerInfo[playerid][rented]][haus_x],Hausplaces[SpielerInfo[playerid][rented]][haus_y],Hausplaces[SpielerInfo[playerid][rented]][haus_z]);
    }
    else
    {
    SetPlayerInterior(playerid,Hausplaces[SpielerInfo[playerid][rented]][inter]);
    SetPlayerVirtualWorld(playerid,Hausplaces[SpielerInfo[playerid][rented]][world]);
    if(Hausplaces[SpielerInfo[playerid][rented]][trash]<=979)
    {
    Hausplaces[SpielerInfo[playerid][rented]][trash]+=20;
    }
    else
    {
    Hausplaces[SpielerInfo[playerid][rented]][trash]=1000;
    }
    SetPlayerPos(playerid,Hausplaces[SpielerInfo[playerid][rented]][e_haus_x],Hausplaces[SpielerInfo[playerid][rented]][e_haus_y],Hausplaces[SpielerInfo[playerid][rented]][e_haus_z]);
    }
    }
    if(SpielerInfo[playerid][Spawnchange]>=1&&SpielerInfo[playerid][Spawnchange]<=2)
    {
    switch(SpielerInfo[playerid][Frakt])
    {
    case 11:{
    SetPlayerPos(playerid,Oamtspawn);
    SetPlayerInterior(playerid,oamtinterior);
    SetPlayerVirtualWorld(playerid,oamtworld);
    }
    case 3:{
    SetPlayerPos(playerid,1265.8613,-1641.2784,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    case 9:{
    SetPlayerPos(playerid,ballasspawn);
    SetPlayerInterior(playerid,ballasinterior);
    SetPlayerVirtualWorld(playerid,ballasworld);
    }
    case 4:{
    SetPlayerPos(playerid,carbonspawn);
    SetPlayerInterior(playerid,carboninterior);
    SetPlayerVirtualWorld(playerid,carbonworld);
    }
    case 16:{
    SetPlayerPos(playerid,fbispawn);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    case 8:{
    SetPlayerPos(playerid,bikerspawn);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,bikerinterior);
    SetPlayerVirtualWorld(playerid,bikerworld);
    }
    case 7:{
    SetPlayerPos(playerid,newsspawn);
    SetPlayerInterior(playerid,newsinterior);
    SetPlayerVirtualWorld(playerid,newsworld);
    }
    case 6:{
    SetPlayerPos(playerid,223.5613,1861.1538,13.1470);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerFacingAngle(playerid,41.1243);
    }
    case 2:{
    SetPlayerPos(playerid,ffspawn);
    SetPlayerVirtualWorld(playerid,ffworld);
    SetPlayerInterior(playerid,ffinterior);
    }
    case 5:{
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,2496.1792,-1709.3834,1014.7422);
    SetPlayerVirtualWorld(playerid,7);
    }
    case 1:{
    switch(SpielerInfo[playerid][Spawnchange]){
    case 1:{
    SetPlayerPos(playerid,pdspawn);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,pdinterior);
    }
    case 2:{
    SetPlayerPos(playerid,sfpdspawn);
    SetPlayerVirtualWorld(playerid,sfpdworld);
    SetPlayerInterior(playerid,sfpdinterior);
    }
    }
    }
    case 14:{
    SetPlayerPos(playerid,fahrschulspawn);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    }
    case 17:{
    SetPlayerPos(playerid,kirchespawn);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    }
    case 12:{
    switch(SpielerInfo[playerid][Spawnchange]){
    case 1:{
    SetPlayerPos(playerid,medicspawn);
    SetPlayerInterior(playerid,medicinterior);
    SetPlayerVirtualWorld(playerid,medicworldls);
    }
    case 2:{
    SetPlayerPos(playerid,medicspawn);
    SetPlayerInterior(playerid,medicinterior);
    SetPlayerVirtualWorld(playerid,medicworldls2);
    }
    }
    }
    case 10:{
    SetPlayerPos(playerid,terrorspawn);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    }
    case 13:{
    SetPlayerPos(playerid,prasiduty);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,3);
    SetPlayerHealth(playerid,100);
    if(spieltpaintball[playerid]==0)
    {
    SetPlayerArmour(playerid,100);
    }
    }
    }
    }
    if(!IsPlayerInFrakt(playerid,0))
    {
    if(isttot[playerid]==0)
    {
    switch(SpielerInfo[playerid][Frakt])
    {
    case 15:{
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 13:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,24,200);
    GivePlayerWeapon(playerid,29,500);
    }
    case 10:{
    //GivePlayerWeapon(playerid,4,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 17:{
    SetPlayerColor(playerid,0xE0FFA6FF);
    GivePlayerWeapon(playerid,15,1);
    if(SpielerInfo[playerid][Rank]>=2)
    {
    GivePlayerWeapon(playerid,24,200);
    }
    }
    case 11:{
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,41,200);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 16:{
    GivePlayerWeapon(playerid,deagle,348);
    GivePlayerWeapon(playerid,mp5,353);
    GivePlayerWeapon(playerid,m4,356);
    GivePlayerWeapon(playerid,41,365);
    GivePlayerWeapon(playerid,25,250);
    GivePlayerWeapon(playerid,34,40);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 14:{
    GivePlayerWeapon(playerid,41,250);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 4:{
    GivePlayerWeapon(playerid,basi,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 9:{
    GivePlayerWeapon(playerid,basi,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 12:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,41,200);
    }
    case 3:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,41,350);
    }
    case 8:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,5,1);
    }
    case 2:{
    GivePlayerWeapon(playerid,basi,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 5:{
    GivePlayerWeapon(playerid,basi,1);
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    case 7:{
    SetPlayerColor(playerid,COLOR_ORANGE);
    GivePlayerWeapon(playerid,41,350);
    GivePlayerWeapon(playerid,43,200);
    }
    case 1:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,29,500);
    GivePlayerWeapon(playerid,24,200);
    GivePlayerWeapon(playerid,3,19);
    GivePlayerWeapon(playerid,41,350);
    SetPlayerArmedWeapon(playerid, 3);
    }
    case 6:{
    SetPlayerColor(playerid,COLOR_WHITE);
    GivePlayerWeapon(playerid,29,500);
    GivePlayerWeapon(playerid,24,200);
    GivePlayerWeapon(playerid,31,1500);
    GivePlayerWeapon(playerid,41,350);
    SetPlayerArmedWeapon(playerid,24);
    GivePlayerWeapon(playerid,34,50);
    GivePlayerWeapon(playerid,schlagstock,1);
    }
    }
    }
    }
    PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
    if(GetPVarInt(playerid,"waffengeladen")==0&&GetPVarInt(playerid,"loginspawn")==1)
    {
    WaffenLaden(playerid);
    }
    new hatcampingwagen;
    if(SpielerInfo[playerid][Spawnchange]==3)
    {
    for(new i=1; i<MAX_AUTOS;i++)
    {
    if(PlayerAuto[i][id_x]==0)continue;
    if(PlayerAuto[i][vmodel]!=508)continue;
    if(!strcmp(SpielerName(playerid),PlayerAuto[i][vkey],true))
    {
    hatcampingwagen=PlayerAuto[i][id_x];
    }
    }
    if(hatcampingwagen>0)
    {
    SetPlayerPos(playerid, 2392.7415,-1714.5696,-45.7258);
    SetPlayerTime(playerid, 00,00);
    SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 1);
    IsInJourney[playerid] = hatcampingwagen;
    SetPlayerVirtualWorld(playerid,hatcampingwagen);
    }
    }
    if(spieltpaintball[playerid]==1)
    {
    if(GetPVarInt(playerid,"dm")==1)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerDMWeapons(playerid);
    SpawnPlayerAtDM(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,2);
    GameTextForPlayer(playerid,"~w~In der DM-Arena wieder eingestiegen.",2500,4);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else
    {
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid,-1136.4562+random(167),1019.1893+random(80),1345.7520);
    SetPlayerInterior(playerid,10);
    SetPlayerVirtualWorld(playerid,0);
    GameTextForPlayer(playerid,"~w~Beim Paintball ~g~wiedereingestiegen.",3000,4);
    GivePlayerWeapon(playerid,24,200);
    SetPlayerHealth(playerid,100);
    }
    }
    if(SpielerInfo[playerid][Jail]>0)
    {
    if(SpielerInfo[playerid][alka]==0)
    {
    new zahl = GetPVarInt(playerid,"zelle");
    SetPlayerPos(playerid,pdzelle[zahl][dxa],pdzelle[zahl][dya],pdzelle[zahl][dza]);
    SetPlayerInterior(playerid,pdzelle[zahl][zint]);
    SetPlayerVirtualWorld(playerid,0);
    ResetPlayerWeapons(playerid);
    }
    else
    {
    SetPlayerPos(playerid,alkaspawn);
    SetPlayerInterior(playerid,alkainterior);
    SetPlayerVirtualWorld(playerid,0);
    ResetPlayerWeapons(playerid);
    }
    }
    if(SpielerInfo[playerid][Jailed]>1)
    {
    SetPlayerPos(playerid,prisonspawn);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    ResetPlayerWeapons(playerid);
    }
    if(isttot[playerid]==1)
    {
    if(SpielerInfo[playerid][alka]==0)
    {
    SetPlayerInterior(playerid,totinterior[playerid]);
    SetPlayerHealth(playerid,1);
    TogglePlayerControllable(playerid,1);
    SetPlayerPos(playerid,TotX[playerid],TotY[playerid],TotZ[playerid]);
    SetPlayerVirtualWorld(playerid,totvirtual[playerid]);
    }
    else
    {
    SetPlayerPos(playerid,alkaspawn);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,alkainterior);
    SetPlayerHealth(playerid,1);
    }
    }
    else
    {
    SetPVarInt(playerid,"murder",INVALID_PLAYER_ID);
    SetPVarInt(playerid,"untersucht",0);
    SetPVarInt(playerid,"kann_revivt_werden",0);
    SetPVarInt(playerid,"death_reason",0);
    willmedic[playerid]=0;
    }
    duty[playerid]=0;
    SetPlayerSkin(playerid,SpielerInfo[playerid][Skin]);
    if(isttot[playerid]==0)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(!IsPlayerConnected(i))continue;
    if(ortet[i]!=playerid)continue;
    GameTextForPlayer(i,"~r~Spieler ist~n~ respawnt.",2000,1);
    ortet[i]=-1;
    DisablePlayerCheckpoint(i);
    }
    }
    TogglePlayerClock(playerid,0);
    if(SpielerInfo[playerid][Frakt]==2||SpielerInfo[playerid][Frakt]==4||SpielerInfo[playerid][Frakt]==5||IsPlayerInFrakt(playerid,7)||SpielerInfo[playerid][Frakt]==8||IsPlayerInFrakt(playerid,9)||IsPlayerInFrakt(playerid,14))
    {
    if(spieltpaintball[playerid]==0)
    {
    for(new a = 0; a<sizeof(Gebiete); a++)
    {
    switch(Gebiete[a][gbesitzer])
    {
    case 0:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],COLOR_BRIGHTRED);
    }
    case 5:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],COLOR_GREEN);
    }
    case 4:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],COLOR_LIGHTBLUE);
    }
    case 2:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],0x000000CF);
    }
    case 8:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],bikergwcolor);
    }
    case 9:{
    GangZoneShowForPlayer(playerid,Gebiete[a][gebiet_id],ballasgwcolor);
    }
    }
    }
    }
    else
    {
    for(new z = 0; z<sizeof(Gebiete); z++)
    {
    GangZoneHideForPlayer(playerid,Gebiete[z][gebiet_id]);
    }
    }
    }
    else
    {
    for(new z = 0; z<sizeof(Gebiete); z++)
    {
    GangZoneHideForPlayer(playerid,Gebiete[z][gebiet_id]);
    }
    }
    printf("OnPlayerSpawn für %s: %ims",SpielerName(playerid),GetTickCount()-time_now);
    return 1;
    }