Beiträge von Fabian_DeSanta

    @Douq Ich habe beides raus gemacht und siehe da nach dem Tod kommt das Loginmenü nicht mehr. Aber jetzt habe ich das Problem das nicht mehr gespeichert, geladen wird und der Spawn funktioniert nicht auch nicht mehr :(?(


    Edit: Habe mein Account gelöscht und neu erstellt jetzt Speichert/Lädt wieder alles, allerdings wenn ins Krankenhaus komme, spawne ich nicht mehr raus :(


    Edit1: Ich habe es jetzt soweit das Ich aus dem Krankenhaus spawne aber nicht an den Koordinaten. Die Koordinaten sind vor dem Krankenhaus gesetzt aber ich Spawne am Noobspawen.....



    public Krankenhaus(playerid)
    {
    sSpieler[playerid][Tod] = 0;
    SendClientMessage(playerid,HELLBLAU, "Du bist aus dem Krankenhaus entlassen.");
    SetPlayerPos(playerid,1178.7651,-1324.4899,14.1362);
    SetPlayerFacingAngle(playerid,269.0957);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, true);
    SetPlayerHealth(playerid,100);
    SetPlayerInterior(playerid,0);
    return 1;
    }

    Er wird bei OnPlayerRequestClass benutzt und bei stock Login wenn das Passwort falsch eingegeben wurde.



    public OnPlayerRequestClass(playerid, classid)
    {
    new Spieler[64];
    new Sname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Sname,sizeof(Sname));
    format(Spieler,sizeof(Spieler),"/Accounts/%s.ini",Sname);
    if(dini_Exists(Spieler))
    {
    logintimer = SetTimerEx("LoginTimer",120000,0,"i",playerid);
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid, BLAU, "{ff0000}....:{E1E1E1}Willkommen auf Hollywood-Street-of-Life !!! {ff0000}:....");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Der {ff0000}Server{E1E1E1} hat deinen {ff0000}Account{E1E1E1} gefunden, Viel Spaß :) {ff0000}:....");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Login geht nicht? Kommt noch {ff0000}:....");
    ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_PASSWORD,"Hollywood Street of Life: Login","{FEFEFE}Dein {FF9600}Account {FEFEFE}wurde in unserer Datenbank gefunden, bitte gebe nun dein Passwort ein und logge dich somit ein.","Login","Abbrechen");
    PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid,ORANGE,"");
    SendClientMessage(playerid, BLAU, "{ff0000}|---------------{E1E1E1} Willkommen auf dem Hollywood-Street-of-Life Server {ff0000}---------------|{E1E1E1}");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Hollywood-Street-of-Life Registration - Willkommen !!{ff0000}:....");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Du hast noch kein {ff0000}Account{E1E1E1}. Du kannst nun einen {ff0000}Erstellen{E1E1E1}!{ff0000}:....");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Dein {ff0000}Account{E1E1E1} wurde {ff0000}nicht{E1E1E1} gefunden. Du kannst dir aber ein Account {ff0000}Erstellen{E1E1E1}! {ff0000}:....");
    SendClientMessage(playerid, WEIS, "{ff0000}....:{E1E1E1}Login geht nicht? Kommt noch{ff0000}:....");
    ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_PASSWORD,"Hollywood Street of Life: Registrieren","Bitte wähle ein Passwort ein um dir ein Account zu erstellen","Registrieren","Abbrechen");
    PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
    return 1;
    }
    }


    stock Login(playerid,key[])
    {
    new string[128],zielip1[128];
    new Spieler[64];
    new Sname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Sname,sizeof(Sname));
    format(Spieler,sizeof(Spieler),"/Accounts/%s.ini",Sname);
    if(!strcmp(key,dini_Get(Spieler,"Passwort"),true))
    {
    SendClientMessage(playerid,HELLBLAU,"Login erfolgreich . . . Spielerdaten werden geladen!");
    SpielerLaden(playerid);
    StopAudioStreamForPlayer(playerid);
    KillTimer(logintimer);
    SpawnPlayer(playerid);
    //sSpieler[playerid][sEingeloggt] = 1;
    FalschesPW[playerid] = 0;
    CheckHaus(playerid);
    SendClientMessage(playerid, GRÜN, "");
    SendClientMessage(playerid, GRÜN, "--------------------------------------------------------------------------------");
    format(string, sizeof(string), "Willkommen auf {FFCC00}Hollywood Street of Life{FFFFFF}, {FFFFFF}%s.",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    if(sSpieler[playerid][Adminlevel] == 1)
    {
    format(string, sizeof(string), "Suppoter: {FFFFFF}%s",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Adminlevel] == 2)
    {
    format(string, sizeof(string), "Moderator: {FFFFFF}%s",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Adminlevel] == 3)
    {
    format(string, sizeof(string), "Admin: {FFFFFF}%s",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Adminlevel] == 4)
    {
    format(string, sizeof(string), "Head-Admin: {FFFFFF}%s",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Adminlevel] == 5)
    {
    format(string, sizeof(string), "Projektleiter: {FFFFFF}%s",SpielerName(playerid));
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Vip] > 0)
    {
    SendClientMessage(playerid,GELB,"Du hast einen Premiumaccount!");
    }
    if(sSpieler[playerid][Vip] > 0)
    {
    if(sSpieler[playerid][Waffenschein] > 0)
    {
    GivePlayerWeapon(playerid,24,30);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,GRAU,"Du hast kein Waffenschein also bekommst du auch nicht die Waffe!");
    return 1;
    }
    }
    if(sSpieler[playerid][Scheinsperrezeit] > 0 && sSpieler[playerid][Scheinsperre] > 0)
    {
    new days,hours,mins;
    new scheinsperrezeit = sSpieler[playerid][Scheinsperre];
    new restzeit= scheinsperrezeit -gettime();
    days = floatround(restzeit / 86400,floatround_floor);
    hours = restzeit - (days * 86400);
    hours = floatround(hours / 3600,floatround_floor);
    mins = restzeit - ( (days * 86400) + (hours * 3600) );
    mins = floatround(mins / 60,floatround_floor);
    format(string, sizeof(string), "Verbleibende Scheinsperre: %d Tage.",days);
    SendClientMessage(playerid, GELB,string);
    }
    if(sSpieler[playerid][Geburtstag] == 0)
    {
    SpielerGeburtstag(playerid);
    }
    /*if(sSpieler[playerid][Vipzeit] > 0 && sSpieler[playerid][Vip] > 0)
    {
    new days,hours,mins;
    new premiumzeit = sSpieler[playerid][Vipzeit];
    new restzeit= premiumzeit -gettime();
    days = floatround(restzeit / 86400,floatround_floor);
    hours = restzeit - (days * 86400);
    hours = floatround(hours / 3600,floatround_floor);
    mins = restzeit - ( (days * 86400) + (hours * 3600) );
    mins = floatround(mins / 60,floatround_floor);
    format(string, sizeof(string), "Verbleibende Premiumzeit: %d Tage.",days);
    SendClientMessage(playerid, GELB,string);
    }*/
    SendClientMessage(playerid, GRÜN, "---------------------------------------------------------------------------------");
    return 1;
    }
    if(FalschesPW[playerid] >= 3)
    {
    FalschesPW[playerid] = 0;
    SendClientMessage(playerid,ROT,"Du wurdest vom Server gekickt da du dein Passwort 3x falsch eingeben hast!");
    SendClientMessage(playerid,ROT,"");
    SetTimerEx("KickTimer", 300,false, "i",playerid);
    format(Sname,sizeof(Sname),"/Gekickt/%s.ini",zielip1);
    dini_Create(Sname);
    new Datum[30];
    new tag,monat,jahr,sekunden,minuten,stunden;
    getdate(jahr,monat,tag);
    gettime(stunden,minuten,sekunden);
    format(Datum, sizeof(Datum), "%s",SpielerName(playerid));
    dini_Set(Sname,"Name",Datum);
    format(Datum, sizeof(Datum), "3x Falsche Passwort eingabe");
    dini_Set(Sname,"Grund",Datum);
    format(string,sizeof(string),"(%d/%d/%d) [%d:%d:%d] %s wurde vom Server gekickt! Grund: 3x Falsche Passwort eingabe",tag,monat,jahr,stunden,minuten,sekunden,SpielerName(playerid));
    dini_Set(Sname,"Gekickt",string);
    return 1;
    }
    else
    {
    FalschesPW[playerid] ++;
    SendClientMessage(playerid,ROT,"Das eingebene Passwort ist inkorrekt!");
    ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Login","{FEFEFE}Dein {FF9600}Account {FEFEFE}wurde in unserer Datenbank gefunden, bitte gebe nun dein Passwort ein und logge dich somit ein.","Login","Abbrechen");
    }
    return 1;
    }

    Hallo zusammen,
    Wenn man stirbt kommt das Login Fenster anstatt das man im Krankenhaus spawnt.



    public OnPlayerSpawn(playerid)
    {
    new string[256];
    SetPlayerMapIcon(playerid, 1, 1544.4790,-1673.6595,13.5585, 30, GELB); // LSPD
    SetPlayerMapIcon(playerid, 2, 1480.9323,-1767.7324,18.7958, 38, GELB); // Stadthalle
    SetPlayerMapIcon(playerid, 3, 1176.0037,-1326.3264,13.9999, 22, GELB); // Krankenhaus
    SetPlayerMapIcon(playerid, 5, 1003.2296,-936.9583,42.3354, 42, GELB); // BSN Tanke
    SetPlayerMapIcon(playerid, 6, -91.6243,-1170.1760,2.4145, 42, GELB); // LS-SF Tanke
    SetPlayerMapIcon(playerid, 7, -2025.4976,156.6423,28.8359, 42, GELB); // SF Hafen Tanke
    SetPlayerMapIcon(playerid, 8, 2115.7598,920.4518,10.8203, 42, GELB); // LV Ammu Tanke
    SetPlayerMapIcon(playerid, 9, 655.1419,-564.7432,16.3359, 42, GELB); // Dillmore Tanke
    SetPlayerMapIcon(playerid, 10, 1596.0321,2198.6726,10.5256, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 11, 1114.9974,-1297.4119,13.7144, 42, GELB); //KH Tanke
    SetPlayerMapIcon(playerid, 12, -1628.0029,651.6329,6.8932, 42, GELB); //SFPD Tanke
    SetPlayerMapIcon(playerid, 13, 1543.9258,-1609.9548,12.9464, 42, GELB); // LSPD Tanke
    SetPlayerMapIcon(playerid, 14, -1327.9417,2677.3276,49.7678, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 15, 1366.3171,-1279.6683,13.5469, 18, GELB); //Waffenladen
    SetPlayerMapIcon(playerid, 16, 1464.0879,-1031.8586,23.8922, 52, GELB); //LS Bank
    SetPlayerMapIcon(playerid, 17, 2061.2505,-1886.8424,16.8752, 36, GELB); //Fahrschule
    SetPlayerMapIcon(playerid, 19, 70.4484,1219.2515,18.5172, 42, GELB); //Tanke außerhalb von LS
    SetPlayerMapIcon(playerid, 20, 1381.8209,462.8659,19.8424, 42, GELB); //Tanke in LV
    SetPlayerMapIcon(playerid, 21, -1347.2850,459.4279,6.7522, 42, GELB); //Army Tanke
    SetPlayerMapIcon(playerid, 22, -1676.1210,412.5870,6.9054, 42, GELB); //Tanke gegenüber von Army
    SetPlayerMapIcon(playerid, 23, 776.3939,-1351.9756,13.2436, 55, GELB); //Billigautohaus
    SetPlayerMapIcon(playerid, 24, 2127.9531,-1127.1896,25.2422, 55, GELB); //Bikeautohaus
    SetPlayerMapIcon(playerid, 25, -1973.4039,284.3802,34.8771, 55, GELB); //Luxusautohaus
    SetPlayerMapIcon(playerid, 26, -2056.6167,454.3479,35.1719, 52, GELB); //SF Bank
    SetPlayerMapIcon(playerid, 27, 2273.7500,2450.3140,46.9766, 30, GELB); //LVPD
    SetPlayerMapIcon(playerid, 28, -1607.9067,681.0796,-5.2422, 30, GELB); //SFPD
    SetPlayerMapIcon(playerid, 29, -2661.3589,622.8655,14.4531, 22, GELB); //SF Krankenhaus
    SetPlayerMapIcon(playerid, 30, -2766.5366,375.5697,6.3347, 38, GELB); //SF Stadthalle
    SetPlayerMapIcon(playerid, 31, -2519.4587,1215.5695,37.4283, 36, GELB); //SF Fahrschule
    SetPlayerMapIcon(playerid, 32, 962.2885,1735.0990,8.6484, 36, GELB); //LV Fahrschule
    SetPlayerMapIcon(playerid, 33, 2375.8191,2308.9973,8.1406, 38, GELB); //LV Stadthalle
    SetPlayerMapIcon(playerid, 34, 2447.6890,2376.0242,12.1635, 52, GELB); //LV Bank
    SetPlayerMapIcon(playerid, 35, 2242.8030,-1663.7587,15.4766, 45, GELB); //Binco LS grove street
    SetPlayerMapIcon(playerid, 36, 1941.4962,-1769.1779,13.6406, 42, GELB); //Alhambra Tankstelle (Idelwood)
    SetPlayerMapIcon(playerid, 37, -2233.0403,-2558.2966,31.9219, 42, GELB); //Angelpine Tankstelle
    SetPlayerMapIcon(playerid, 38, -1608.5887,-2715.7720,48.9453, 42, GELB); //Whetstone Tankstelle
    SetPlayerMapIcon(playerid, 39, -1470.0267,1864.5287,32.6328, 42, GELB); //Tierra Robada Tankstelle
    SetPlayerMapIcon(playerid, 40, -2410.8398,973.2244,45.4609, 42, GELB); //Juniper hill Tankstelle
    SetPlayerMapIcon(playerid, 41, 615.9429,1690.1908,6.9922, 42, GELB); //Bone Conuty Tankstelle
    SetPlayerMapIcon(playerid, 42, 2637.5703,1116.1748,10.8203, 42, GELB); //Come A Lot Tankstelle
    SetPlayerMapIcon(playerid, 43, 2190.5928,2470.4636,11.2422, 42, GELB); //Emerald Tankstelle
    SetPlayerMapIcon(playerid, 44, 2153.2043,2736.5422,11.1763, 42, GELB); //Spinybed Tankstelle
    GangZoneShowForPlayer(playerid,NoDMSH,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoob,ROT);
    GangZoneShowForPlayer(playerid,NoDMSHLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobSf,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMSFSH,ROT);
    GangZoneShowForPlayer(playerid,GSZone,GRÜN);
    GangZoneShowForPlayer(playerid,VZone,GELB);
    GangZoneShowForPlayer(playerid,BZone,LILA);
    //NPC/Bots
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,botname,sizeof(botname));
    if(!strcmp(botname,"Wache",true))
    {
    new Text3D:Wache;
    Wache = Create3DTextLabel("Alcatraz-Wache",GELB,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(Wache, playerid, 0,0,0);
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,1000);
    }
    if(!strcmp(botname,"Wache1",true))
    {
    new Text3D:Wache1;
    Wache1 = Create3DTextLabel("Alcatraz-Wache",GELB,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(Wache1, playerid, 0,0,0);
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,1000);
    }
    if(!strcmp(botname,"Wache2",true))
    {
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,1000);
    new Text3D:soldatt;
    soldatt = Create3DTextLabel("US Veteran Richard (2. Weltkrieg)\n{19FF00}Kriegsveteran",WEIS,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(soldatt, playerid, 0,0,0);
    }
    if(!strcmp(botname,"Wache3",true))
    {
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,1000);
    new Text3D:soldatt;
    soldatt = Create3DTextLabel("US Veteran Peter (2. Weltkrieg)\n{19FF00}Kriegsveteran",WEIS,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(soldatt, playerid, 0,0,0);
    }
    if(!strcmp(botname,"Mission",true))
    {
    new Text3D:questt;
    questt = Create3DTextLabel("Quest/Mission abholen für Belohnungen\n{19FF00}Legale Missionen",GELB,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(questt, playerid, 0,0,0);
    SetPlayerSkin(playerid,33);
    }
    if(!strcmp(botname,"Soldat",true))
    {
    SetPlayerSkin(playerid,287);
    new Text3D:soldat;
    soldat = Create3DTextLabel("US Veteran Joseph (1. Weltkrieg)\n{19FF00}Kriegsveteran",WEIS,0,0,0.65, 50.0, 0);
    Attach3DTextLabelToPlayer(soldat, playerid, 0,0,0);
    GivePlayerWeapon(playerid,31,1000);
    }
    if(!strcmp(botname,"Tom",true))
    {
    SetPlayerSkin(playerid,30);
    }
    }
    if(IsPlayerNPC(playerid)) return 1;
    if(sSpieler[playerid][Geburtstag] == 5)
    {
    ClearChat(playerid);
    SendClientMessage(playerid,WEIS,"Das Hollywood Street of Life Administratoren Team wünscht dir Happy Birthday,");
    SendClientMessage(playerid,WEIS,"anbei erhältst du noch ein kleines Geldgeschenkt von uns!");
    new randtime = 1250 + random (321);
    GivePlayerCash(playerid,randtime);
    sSpieler[playerid][Geburtstag] = 1;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && sSpieler[i][Tut] == 1)
    {
    format(string, sizeof(string), "%s hat heute Geburtstag, herzlichen Glückwunsch und alles Gute ;)",SpielerName(playerid));
    SendClientMessage(i, GELB,string);
    }
    }
    }
    if(sSpieler[playerid][Tod] == 1 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && GetPVarInt(playerid, "Autoscooter") == 0)
    {
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    SetPlayerInterior(playerid, 0);
    SendClientMessage(playerid, HELLBLAU, "Du bist noch im Krankenhaus!");
    TodTimer[playerid] = SetTimerEx("tot",60133,false,"i",playerid);
    }
    if(GetPlayerScore(playerid) <= 3 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Knast] == 0)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPVarInt(playerid, "Spawnkill", 1);
    SpawnKilllabel[playerid] = Create3DTextLabel("SpawnKillSchutz aktiv",0x0C9BCBFF,X,Y,Z-0.4,15.0,0);
    Attach3DTextLabelToPlayer(SpawnKilllabel[playerid], playerid, 0.0, 0.0, 0.8);
    SetPlayerHealth(playerid,999.9);
    SetTimerEx("SpawnKillSchutzende", 15077, false, "d", playerid);
    SendClientMessage(playerid,BLAU,"Dein Spawnkillschutz ist nun für 15 Sekunden aktiv!");
    }
    if(sSpieler[playerid][SpawnChange] == 4 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Fraktion] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerPos(playerid,-1962.4498,138.0814,27.6940);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,89.7789);
    }
    if(sSpieler[playerid][SpawnChange] == 5 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Fraktion] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerPos(playerid,1433.9365,2619.2686,11.3926);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,175.6535);
    }
    if(sSpieler[playerid][Paintball] == 1 && PlayerSpieltPaintball[playerid] != 0 && sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,25,100);
    GivePlayerWeapon(playerid,34,100);
    }
    if(sSpieler[playerid][Gangjail] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -230.5179,1506.8551,75.5625);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, BLAU, " Du befindest dich noch im GangJail!");
    }
    if(pFirstLog[playerid] == true && sSpieler[playerid][Tut] < 1)
    {
    SetPlayerPos(playerid,839.3776,-2062.0535,12.8672); // Tutorial Position
    SetPlayerCameraPos(playerid,794.2142,-2184.9741,31.8352);
    SetPlayerCameraLookAt(playerid,839.3776,-2062.0535,12.8672);
    SetPlayerFacingAngle(playerid,179.0452);
    TogglePlayerControllable(playerid,false);
    TutTime[playerid] = 1;
    TutTimer[playerid] = SetTimerEx("Tutorial",1000,1,"i",playerid);
    }
    if(Frei[playerid] != -1 && sSpieler[playerid][Knast] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1)
    {
    new rand = random(sizeof(KnastSpawn));
    SetPlayerPos(playerid, KnastSpawn[rand][0], KnastSpawn[rand][1], KnastSpawn[rand][2]);
    SetPlayerFacingAngle(playerid,KnastSpawn[rand][3]);
    SendClientMessage(playerid,ROT,"Haftstrafe noch nicht abgessen!");
    SetPlayerPos(playerid,197.8290,161.8141,1003.0300);
    SetPlayerInterior(playerid,3);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    }
    if(Frei[playerid] != -1 && sSpieler[playerid][Alcatrazz] == 1 && sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Tod] == 0)
    {
    SetPlayerPos(playerid,2978.7654,-319.1464,2.7515);
    SetPlayerFacingAngle(playerid,180.5927);
    SetCameraBehindPlayer(playerid);
    SetTimerEx("Alcatraz",720000,0,"i",playerid);
    ResetPlayerWeapons(playerid);
    }
    if(sSpieler[playerid][Prison] == 1 && sSpieler[playerid][Tod] == 0)
    {
    SendClientMessage(playerid,ROT,"Prisonzeit noch nicht abgessen!");
    SetPlayerPos(playerid, 271.1351,1858.3071,8.7578);
    SetPlayerInterior(playerid,0);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Prisonzeit",60000,0,"i",playerid);
    }
    if(sSpieler[playerid][Hotel] > 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Haus] == -1 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Knast] == 0)
    {
    SetHotelSpawn(playerid);
    }
    if(sSpieler[playerid][SpawnChange] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Haus] != 255 && sSpieler[playerid][Hotel] == 0 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Prison] == 0)
    {
    new house = sSpieler[playerid][Haus];
    SetPlayerInterior(playerid,HouseInt_Interior[HouseInfo[house][hInteriorID]]);
    SetPlayerPos(playerid, HouseInt_Spawn_X[HouseInfo[house][hInteriorID]],HouseInt_Spawn_Y[HouseInfo[house][hInteriorID]],HouseInt_Spawn_Z[HouseInfo[house][hInteriorID]]);
    SetPlayerVirtualWorld(playerid, house);
    return 1;
    }
    if(sSpieler[playerid][Haus] == 255 && sSpieler[playerid][SpawnChange] == 1 && sSpieler[playerid][Tut] == 1)
    {
    sSpieler[playerid][SpawnChange] = 0;
    }
    if(sSpieler[playerid][Wohnwagen] == 0 && sSpieler[playerid][SpawnChange] == 2 && sSpieler[playerid][Tut] == 1)
    {
    sSpieler[playerid][SpawnChange] = 0;
    }
    if(sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Hotel] == 0 && sSpieler[playerid][SpawnChange] == 0 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0) //Fraktionsspawn und Normaler Spawn
    {
    SetFraktionsSpawn(playerid);
    }
    SetPVarInt(playerid,"Airbrake", 0);
    SetPVarInt(playerid,"Airbrakew", 0);
    return 1;
    }
    public Tot(playerid)
    {
    sSpieler[playerid][Tod] = 0;
    SendClientMessage(playerid,HELLBLAU, "Du bist aus dem Krankenhaus entlassen.");
    SetPlayerPos(playerid,1178.3287,-1323.7129,14.1147);
    SetPlayerFacingAngle(playerid,270.4384);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, true);
    SetPlayerHealth(playerid,100);
    SetPlayerInterior(playerid,0);
    KillTimer(TodTimer[playerid]);
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    new string[128];
    if(PlayerSpieltPaintball[playerid] == 0 || GetPVarInt(playerid, "Autoscooter") == 0)
    {
    sSpieler[playerid][Tod] = 1;
    }
    if(GetPVarInt(playerid, "Autoscooter") != 0)
    {
    AutoscooterPlayers -= 1;
    }
    if(Robber[playerid] == 1 && IsACop(killerid))
    {
    ClearChat(playerid);
    PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    SendClientMessage(killerid,GELB,"Du hast den gesuchten 24/7 Räuber geschnappt!");
    SendClientMessage(killerid,GELB,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    SendClientMessage(playerid,GELB,"Du wurdest von der Polizei gestoppt, dein Geld wird dir abgezogen!");
    StoreRobed[playerid] = 0;
    Robber[playerid] = 0;
    SetPlayerWantedLevel(playerid,0);
    sSpieler[killerid][Preamie] += 1000;
    sSpieler[playerid][Wanteds] = 0;
    sSpieler[playerid][Knast] = 1;
    sSpieler[playerid][Knastzeit] = 900;
    sSpieler[playerid][Ladenrob] = 0;
    if(IsACop(playerid))
    {
    format(string, sizeof(string), "%s hat den gesuchten 24/7 Laden Räuber %s geschnappt!", SpielerName(killerid), SpielerName(playerid));
    SendClientMessageToAll(HELLBLAU, string);
    }
    GivePlayerCash(playerid,-GetPVarInt(playerid, "247Cash"));
    RegK+=GetPVarInt(playerid, "247Cash");
    SetPVarInt(playerid,"247Cash",0);
    SpielerSpeichern(playerid);
    }
    //24/7 Rob
    if(Robber[playerid] == 1 && killerid == playerid)
    {
    SendClientMessage(playerid,GELB,"Du bist gestorben,Dein 24/7 Überfall ist fehlgeschlagen, dein Geld wird dir abgezogen!");
    StoreRobed[playerid] = 0;
    Robber[playerid] = 0;
    SetPlayerWantedLevel(playerid,0);
    sSpieler[playerid][Wanteds] = 0;
    sSpieler[playerid][Ladenrob] = 0;
    if(IsACop(playerid))
    {
    format(string, sizeof(string), "Der gesuchte 24/7 Laden Räuber %s ist gestorben!",SpielerName(playerid));
    SendClientMessageToAll(HELLBLAU, string);
    }
    GivePlayerCash(playerid,-GetPVarInt(playerid, "247Cash"));
    SetPVarInt(playerid,"247Cash",0);
    }
    //Bankraub
    if(GetPVarInt(playerid, "BankRaub") > 0 && IsACop(killerid))
    {
    ClearChat(playerid);
    PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    SendClientMessage(killerid,GELB,"Du hast den gesuchten Bankräuber geschnappt!");
    SendClientMessage(killerid,GELB,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    SendClientMessage(playerid,GELB,"Du wurdest von der Polizei gestoppt, dein Geld wird dir abgezogen!");
    SetPlayerWantedLevel(playerid,0);
    sSpieler[killerid][Preamie] += 1500;
    sSpieler[playerid][Wanteds] = 0;
    sSpieler[playerid][Knast] = 1;
    sSpieler[playerid][Knastzeit] = 1200;
    sSpieler[playerid][Bankraube] = 0;
    sSpieler[playerid][Geldsack] = 0;
    RemovePlayerAttachedObject(playerid,0);
    if(IsACop(playerid))
    {
    format(string, sizeof(string), "%s hat den gesuchten Bankräuber %s geschnappt!", SpielerName(killerid), SpielerName(playerid));
    SendClientMessageToAll(HELLBLAU, string);
    }
    GivePlayerCash(playerid,-GetPVarInt(playerid, "BankGeld"));
    RegK+=GetPVarInt(playerid, "BankGeld");
    SetPVarInt(playerid,"BankGeld",0);
    DeletePVar(playerid, "BankRaub");
    DisablePlayerCheckpoint(playerid);
    //Angehängte Objecte entfernen
    RemovePlayerAttachedObject(playerid,0);
    SpielerSpeichern(playerid);
    }
    //Bankräuber
    if(GetPVarInt(playerid, "BankRaub") > 0 && killerid == playerid)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,GELB,"Du bist gestorben,dein Bankraub ist fehlgeschlagen, dein Geld wird dir abgezogen!");
    SetPlayerWantedLevel(playerid,0);
    sSpieler[playerid][Wanteds] = 0;
    sSpieler[playerid][Bankraube] = 0;
    if(IsACop(playerid))
    {
    format(string, sizeof(string), "Der gesuchte Bankräuber %s ist gestorben!",SpielerName(playerid));
    SendClientMessageToAll(HELLBLAU, string);
    }
    GivePlayerCash(playerid,-GetPVarInt(playerid, "BankGeld"));
    DeletePVar(playerid, "BankGeld");
    DeletePVar(playerid, "BankRaub");
    //Angehängte Objecte entfernen
    RemovePlayerAttachedObject(playerid,0);
    }
    if(sSpieler[playerid][Tod] == 1 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && GetPVarInt(playerid, "Autoscooter") == 0)
    {
    SendClientMessage(playerid, HELLBLAU, "Du bist schwer verletzt und landest im Krankenhaus!");
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    SetPlayerInterior(playerid, 0);
    TogglePlayerControllable(playerid, false);
    TodTimer[playerid] = SetTimerEx("tot",60000,false,"i",playerid);
    }
    ResetPlayerWeapons(playerid);
    if(sSpieler[playerid][Helm] > 0 && GetPVarInt(playerid, "Helm") == 1)
    {
    RemovePlayerHelm(playerid);
    SetPVarInt(playerid, "Helm", 0);
    }
    if(PlayerSpieltPaintball[playerid] == 0 || GetPVarInt(playerid, "Autoscooter") == 0 || sSpieler[playerid][Tod] == 1)
    {
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreateDynamicPickup(1254,1, pX, pY, pZ);
    KadaverX[playerid] = pX;
    KadaverY[playerid] = pY;
    KadaverZ[playerid] = pZ;
    format(string, sizeof(string), "{FFFFFF}Leichnam von {FFFF00}%s",SpielerName(playerid));
    TotenKopfLabel[playerid] = CreateDynamic3DTextLabel(string,0xAAAAFFFF,pX,pY,pZ+1.0,10.0);
    if(sSpieler[playerid][Krankenhausversicherung] == 0)
    {
    Totentimer[playerid] = SetTimerEx("DeleteTotenkopf",60337,false,"i",playerid);
    }
    else if(sSpieler[playerid][Krankenhausversicherung] == 1)
    {
    Totentimer[playerid] = SetTimerEx("DeleteTotenkopf",30029,false,"i",playerid);
    }
    }
    Injourney[playerid] = 0;
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    DisablePlayerCheckpoint(playerid);
    pizzen[playerid] = 0;
    if(sSpieler[playerid][Auftrag] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(sSpieler[killerid][Member] == 11 || sSpieler[killerid][Leader] == 11)
    {
    if(GoChase[killerid] == playerid)
    {
    //new string[128];
    new killer[MAX_PLAYER_NAME];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = sSpieler[playerid][Auftrag]/2;
    HitmanK += fkasse;
    GivePlayerCash(killerid, sSpieler[playerid][Auftrag]/2);
    format(string,128,"Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d",killer,name,sSpieler[playerid][Auftrag]/2);
    SendClientMessageToAll(GELB, string);
    sSpieler[playerid][Auftrag] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    if(koffermission[playerid] != 0)
    {
    GameTextForPlayer(playerid,"~r~Mission Fehlgeschlagen", 2000, 0);
    DisablePlayerCheckpoint(playerid);
    koffermission[playerid] = 0;
    }
    if(liefermission[playerid] != 0)
    {
    GameTextForPlayer(playerid,"~r~Mission Fehlgeschlagen", 2000, 0);
    DisablePlayerCheckpoint(playerid);
    liefermission[playerid] = 0;
    }
    if(mission[playerid] != 0)
    {
    GameTextForPlayer(playerid,"~r~Mission Fehlgeschlagen", 2000, 0);
    StartmissionCP[playerid] = 0;
    Startmission[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    mission[playerid] = 0;
    }
    if(sSpieler[playerid][Wanteds] > 0)
    {
    if(IsACop(playerid))
    {
    new killstring[264];//,string[128];
    if(sSpieler[playerid][Leader] == 1 || sSpieler[playerid][Member] == 1)
    {
    format(killstring,sizeof(killstring),"LS-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 2 || sSpieler[playerid][Member] == 2)
    {
    format(killstring,sizeof(killstring),"SFPD-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 3 || sSpieler[playerid][Member] == 3)
    {
    format(killstring,sizeof(killstring),"Soldat %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    sSpieler[playerid][Preamie] += 400;
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 13 || sSpieler[playerid][Member] == 13)
    {
    format(killstring,sizeof(killstring),"LVPD-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    sSpieler[playerid][Preamie] += 400;
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    }
    }
    if(!IsACop(killerid))
    {
    new str[128],str1[128],pname[MAX_PLAYER_NAME];
    new wantedlevel = GetPlayerWantedLevel(killerid);
    GetPlayerName(playerid,pname,sizeof(pname));
    format(str,sizeof(str),"Du hast einen Verbrechen begangen (Vorsätzlicher Mord). Zeuge: Niemand", pname);
    SendClientMessage(killerid,ORANGE,str);
    format(str1,sizeof(str1),"Dein Aktuelles WantedLevel: %d",sSpieler[killerid][Wanteds]);
    SendClientMessage(killerid,GELB,str1);
    SetPlayerWantedLevel(killerid, wantedlevel + 2);
    }
    sSpieler[playerid][Deaths] ++;
    sSpieler[killerid][Kills] ++;
    PaintballKills[killerid]++;
    if(sSpieler[killerid][Paintball] == 1)
    {
    SetPlayerWantedLevel(killerid,0);
    }
    if(sSpieler[playerid][Paintball] >= 1)
    {
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast einen Spieler getötet. Dein Paintballscore beträgt nun: %d",PaintballKills[killerid]);
    SendClientMessage(killerid,GELB,nachricht);
    return 1;
    }
    return 1;
    }


    Ich hoffe mir kann jemand sagen wo das Problem ist, danke ^^

    Hallo zusammen,
    1. Ich arbeite momentan an einem System, in dem kann man Goldbarren in der Wüste erbeuten.. nur 1 Befehl funktioniert nicht so ganz vielleicht habe ich ein Denkfehler.
    Der befehl /graben sagt mir ständig das ich nicht im Checkpoint sei obwohl ich drin stehe ?


    new Float:buddeln[40][3] = {
    {-152.4400,1846.9717,29.2687},//1
    {-156.7346,1836.0719,35.8069},//2
    {-159.3667,1819.4857,41.8780},//3
    {-167.8414,1811.2115,47.8237},//4
    {-170.0450,1801.4122,52.2505},//5
    {-161.8423,1793.4242,53.3616},//6
    {-158.1084,1784.1903,54.7704},//7
    {-155.6175,1774.2726,55.9601},//8
    {-161.5969,1759.1898,54.8455},//9
    {-169.1723,1744.1102,54.3982},//10
    {-179.5686,1728.7390,56.0567},//11
    {-194.2571,1725.0474,57.2687},//12
    {-211.9686,1723.6018,59.9577},//13
    {-232.1001,1724.2982,65.5360},//14
    {-249.9986,1729.4911,70.9397},//15
    {-256.7750,1744.8335,79.7419},//16
    {-263.5448,1757.6102,85.9440},//17
    {-248.7828,1757.2014,91.1319},//18
    {-236.3986,1762.3973,97.1517},//19
    {-241.1614,1779.8954,98.7132},//20
    {-158.1247,1657.6960,15.5781},//21
    {-159.1710,1646.9923,17.1366},//22
    {-161.2974,1631.9705,13.9626},//23
    {-167.4120,1617.1793,16.0704},//24
    {-179.3784,1609.5249,16.3702},//25
    {-196.5753,1614.7747,18.1386},//26
    {-208.7043,1622.6949,20.1674},//27
    {-221.8707,1630.6270,23.0112},//28
    {-224.7464,1643.3513,25.0204},//29
    {-214.8419,1654.8787,24.1355},//30
    {-217.1145,1666.9935,24.9542},//31
    {-230.0202,1671.4265,28.5422},//32
    {-240.1701,1680.7133,28.0925},//33
    {-252.4414,1677.7377,27.4495},//34
    {-264.8186,1666.5928,26.4511},//35
    {-277.9287,1668.5056,27.4045},//36
    {-287.5557,1678.8755,26.5148},//37
    {-290.7267,1693.0597,28.3341},//38
    {-300.0582,1705.0482,32.0989},//39
    {-316.0493,1698.2067,34.0618}//40
    };


    ocmd:graben(playerid,params[])
    {
    if(IsPlayerConnected(playerid))
    {
    new cp = random(40);
    if(IsPlayerInRangeOfPoint(playerid,5.0,buddeln[cp][0],buddeln[cp][1],buddeln[cp][2]))
    {
    if(sSpieler[playerid][Schaufel] < 1)
    {
    SendClientMessage(playerid,ROT,"Du hast keine Schaufeln mehr, kaufe dir neue im 24/7 Shop!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid,ROT,"Du sitz in/auf einem Fahrzeug!");
    return 1;
    }
    new randomvar=random(3);
    switch(randomvar)
    {
    case 0:
    {
    sSpieler[playerid][Schaufel] -= 1;
    SendClientMessage(playerid,GOLD,"Du hast einen Goldbarren gefunden, du kannst ihn behalten, an andere Spieler verkaufen.");
    SendClientMessage(playerid,GOLD,"oder auf dem Schwarzmarkt verkaufen.");
    sSpieler[playerid][Goldbarre] += 1;
    DisablePlayerCheckpoint(playerid);
    }
    case 1:
    {
    sSpieler[playerid][Schaufel] -= 1;
    SendClientMessage(playerid,HELLBLAU,"Leider hast du nichts gefunden, aber nicht aufgeben der Schatz wartet ;)");
    DisablePlayerCheckpoint(playerid);
    }
    case 2:
    {
    SendClientMessage(playerid,HELLBLAU,"Du hast eine Tasche gefunden, vielleicht ist was besonderes drin.");
    SendClientMessage(playerid,HELLBLAU,"Mit /tasche kannst du sie öffnen.");
    sSpieler[playerid][Schaufel] -= 1;
    sSpieler[playerid][Tasche] += 1;
    DisablePlayerCheckpoint(playerid);
    }
    }
    }
    else
    {
    SendClientMessage(playerid,GRAU,"Du bist nicht in der Nähe!");
    return 1;
    }
    }
    return 1;
    }
    ocmd:bd(playerid,params[])
    {
    if(IsPlayerConnected(playerid))
    {
    if(sSpieler[playerid][Schaufel] < 1)
    {
    SendClientMessage(playerid,ROT,"Du hast keine Schaufeln mehr, kaufe dir neue im 24/7 Shop!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid,ROT,"Du sitz in/auf einem Fahrzeug!");
    return 1;
    }
    new cp = random(40);
    SetPlayerCheckpoint(playerid, buddeln[cp][0], buddeln[cp][1] ,buddeln[cp][2],5.0);
    SendClientMessage(playerid,HELLBLAU,"Geh zum Checkpoint und tippe /graben ein. Viel Erfolg ;)");
    }
    return 1;
    }


    2. Es gibt 40 Saveboxen auf dem Server um die zufinden habe ich ein Befehl erstellt aber der crasht den Server sobald ich den eingebe.



    new Float:Saveboxs[][3] = {
    {-1834.7000000,327.5000000,16.7000000},
    {-2932.1001000,453.8999900,3.6000000},
    {-2942.3999000,1110.8000000,5.3000000},
    {-1971.9000000,2601.7000000,48.8000000},
    {-813.5999800,2345.8000000,119.8000000},
    {-364.5000000,1593.4000000,76.5000000},
    {-1356.4000000,2141.2000000,41.4000000},
    {-792.0999800,2761.5000000,50.4000000},
    {1564.4000000,2780.8999000,10.4000000},
    {2627.0000000,2850.8999000,10.4000000},
    {2613.2000000,718.5999800,10.4000000},
    {2723.6001000,-1828.2000000,11.4000000},
    {2471.6001000,-2697.7000000,2.6000000},
    {1450.0000000,-2271.8999000,13.1000000},
    {1120.4000000,-1886.5000000,36.3000000},
    {707.7999900,-1472.7000000,5.0000000},
    {1100.3000000,-665.4000200,109.7000000},
    {1544.5000000,-1374.7000000,329.6000100},
    {2112.2000000,-1500.5000000,10.0000000},
    {2836.2000000,-1463.3000000,40.3000000},
    {2840.1001000,-2395.8000000,20.0000000},
    {2791.8999000,-2489.6001000,14.6000000},
    {-1450.9000000,-217.8999900,13.7000000},
    {-2508.0000000,-675.2000100,138.8999900},
    {-2685.2000000,1428.9000000,6.6000000},
    {-1688.6000000,1219.1000000,20.2000000},
    {-1898.1000000,-127.0000000,22.8000000},
    {-2229.3000000,138.8999900,34.9000000},
    {-2053.7000000,309.7999900,41.5000000},
    {-1724.2000000,543.7000100,33.5000000},
    {-1797.7000000,372.5000000,0.1000000},
    {1122.4000000,1463.7000000,5.4000000},
    {1333.8000000,1250.2000000,10.4000000},
    {1773.6000000,623.7000100,10.4000000},
    {2439.3999000,-152.3999900,31.4000000},
    {2114.2000000,-354.2999900,58.3000000},
    {2243.6001000,1132.4000000,10.4000000},
    {1990.1000000,1804.1000000,11.5000000},
    {2561.5000000,2301.3999000,10.6000000},
    {2119.7000000,1497.0000000,10.4000000}
    };


    ocmd:sb(playerid,params[])
    {
    if(IsPlayerConnected(playerid))
    {
    ShowPlayerDialog(playerid,SBLISTE,DIALOG_STYLE_LIST,"Savebox - Liste","Box1,Box2,Box3,Box4,Box5,Box6,Box7,Box8,Box9,Box10,Box11,Box12,Box13,Box14,Box15,Box16,Box17,Box18,Box19,Box20,Box21,Box22,Box23,Box24,Box25,Box26,Box27,Box28,Box29,Box30,Box31,Box32,Box33,Box34,Box35,Box36,Box37,Box38,Box39,Box40","Wählen","");
    }
    return 1;
    }


    if(dialogid == SBLISTE)
    {
    if(response)
    {
    switch(listitem)
    {
    case 0:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1834.7000000,327.5000000,16.7000000, 5);
    }
    case 1:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2932.1001000,453.8999900,3.6000000, 5);
    }
    case 2:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2942.3999000,1110.8000000,5.3000000, 5);
    }
    case 3:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1971.9000000,2601.7000000,48.8000000, 5);
    }
    case 4:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-813.5999800,2345.8000000,119.8000000, 5);
    }
    case 5:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-364.5000000,1593.4000000,76.5000000, 5);
    }
    case 6:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1356.4000000,2141.2000000,41.4000000, 5);
    }
    case 7:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-792.0999800,2761.5000000,50.4000000, 5);
    }
    case 8:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1564.4000000,2780.8999000,10.4000000, 5);
    }
    case 9:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2627.0000000,2850.8999000,10.4000000, 5);
    }
    case 10:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2613.2000000,718.5999800,10.4000000, 5);
    }
    case 11:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2723.6001000,-1828.2000000,11.4000000, 5);
    }
    case 12:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2471.6001000,-2697.7000000,2.6000000, 5);
    }
    case 13:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1450.0000000,-2271.8999000,13.1000000, 5);
    }
    case 14:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1120.4000000,-1886.5000000,36.3000000, 5);
    }
    case 15:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,707.7999900,-1472.7000000,5.0000000, 5);
    }
    case 16:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1100.3000000,-665.4000200,109.7000000, 5);
    }
    case 17:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1544.5000000,-1374.7000000,329.6000100, 5);
    }
    case 18:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2112.2000000,-1500.5000000,10.0000000, 5);
    }
    case 19:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2836.2000000,-1463.3000000,40.3000000, 5);
    }
    case 20:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2840.1001000,-2395.8000000,20.0000000, 5);
    }
    case 21:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2791.8999000,-2489.6001000,14.6000000, 5);
    }
    case 22:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1450.9000000,-217.8999900,13.7000000, 5);
    }
    case 23:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2508.0000000,-675.2000100,138.8999900, 5);
    }
    case 24:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2685.2000000,1428.9000000,6.6000000, 5);
    }
    case 25:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1688.6000000,1219.1000000,20.2000000, 5);
    }
    case 26:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1898.1000000,-127.0000000,22.8000000, 5);
    }
    case 27:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2229.3000000,138.8999900,34.9000000, 5);
    }
    case 28:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-2053.7000000,309.7999900,41.5000000, 5);
    }
    case 29:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1724.2000000,543.7000100,33.5000000, 5);
    }
    case 30:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,-1797.7000000,372.5000000,0.1000000, 5);
    }
    case 31:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1122.4000000,1463.7000000,5.4000000, 5);
    }
    case 32:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1333.8000000,1250.2000000,10.4000000, 5);
    }
    case 33:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1773.6000000,623.7000100,10.4000000, 5);
    }
    case 34:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2439.3999000,-152.3999900,31.4000000, 5);
    }
    case 35:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2114.2000000,-354.2999900,58.3000000, 5);
    }
    case 36:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2243.6001000,1132.4000000,10.4000000, 5);
    }
    case 37:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,1990.1000000,1804.1000000,11.5000000, 5);
    }
    case 38:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2561.5000000,2301.3999000,10.6000000, 5);
    }
    case 39:
    {
    GameTextForPlayer(playerid,"~w~ROUTE WIRD ~g~KALKULIERT",2000,4);
    SetPlayerCheckpoint(playerid,2119.7000000,1497.0000000,10.4000000, 5);
    }
    }
    }
    }


    Ich danke euch für die Hilfe und einen schönen Abend wünsche ich allen ;)

    zu 1.
    Die Abfrage ob der Spieler eingeloggt ist, steht bei "stock Login", sSpieler[playerid][Neu] war die Zivispawn Position was mittlerweile aber geändert wurde. Mittlerweile spawne ich beim Krankenhaus aber habe noch das Problem mit dem Login-Fenster und der Fraktionsspawn + Zivispawn funktionieren jetzt garnicht mehr :( .


    EDIT: Zivispawn und Frakspawn funktionieren einwandfrei stand 1.1.2019



    zu 2. Wenn ich das Fahrzeug löschen lasse ist es komplett weg und taucht nach relogg auch nicht mehr auf. Verstehe das noch nicht so wirklich :( .

    Klar, sry hatte ich vergessen


    public OnPlayerDeath(playerid, killerid, reason)
    {
    new string[128];
    pTot[playerid] = 1;
    SendClientMessage(playerid, HELLBLAU, "Du bist schwer verletzt und landest im Krankenhaus!");
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    SetPlayerInterior(playerid, 0);
    TogglePlayerControllable(playerid, false);
    SetTimer("Tot", 1000*30, false);
    ResetPlayerWeapons(playerid);
    if(PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 1)
    {
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreateDynamicPickup(1254,1, pX, pY, pZ);
    KadaverX[playerid] = pX;
    KadaverY[playerid] = pY;
    KadaverZ[playerid] = pZ;
    format(string, sizeof(string), "{FFFFFF}Leichnam von {FFFF00}%s",SpielerName(playerid));
    TotenKopfLabel[playerid] = CreateDynamic3DTextLabel(string,0xAAAAFFFF,pX,pY,pZ+1.0,10.0);
    if(sSpieler[playerid][Krankenhausversicherung] == 0)
    {
    Totentimer[playerid] = SetTimerEx("DeleteTotenkopf",60337,false,"i",playerid);
    }
    else if(sSpieler[playerid][Krankenhausversicherung] == 1)
    {
    Totentimer[playerid] = SetTimerEx("DeleteTotenkopf",30029,false,"i",playerid);
    }
    }
    Injourney[playerid] = 0;
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    DisablePlayerCheckpoint(playerid);
    pizzen[playerid] = 0;
    if(sSpieler[playerid][Auftrag] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(sSpieler[killerid][Member] == 11 || sSpieler[killerid][Leader] == 11)
    {
    if(GoChase[killerid] == playerid)
    {
    //new string[128];
    new killer[MAX_PLAYER_NAME];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = sSpieler[playerid][Auftrag]/2;
    HitmanK += fkasse;
    GivePlayerMoney(killerid, sSpieler[playerid][Auftrag]/2);
    format(string,128,"Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d",killer,name,sSpieler[playerid][Auftrag]/2);
    SendClientMessageToAll(GELB, string);
    sSpieler[playerid][Auftrag] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    if(mission[playerid] != 0)
    {
    GameTextForPlayer(playerid,"~r~Mission Fehlgeschlagen", 2000, 0);
    StartmissionCP[playerid] = 0;
    Startmission[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    mission[playerid] = 0;
    }
    if(sSpieler[playerid][Wanteds] > 0)
    {
    if(IsACop(playerid))
    {
    new killstring[264];//,string[128];
    if(sSpieler[playerid][Leader] == 1 || sSpieler[playerid][Member] == 1)
    {
    format(killstring,sizeof(killstring),"LS-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 2 || sSpieler[playerid][Member] == 2)
    {
    format(killstring,sizeof(killstring),"SFPD-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 3 || sSpieler[playerid][Member] == 3)
    {
    format(killstring,sizeof(killstring),"Soldat %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    sSpieler[playerid][Preamie] += 400;
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 14 || sSpieler[playerid][Member] == 14)
    {
    format(killstring,sizeof(killstring),"LVPD-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    sSpieler[playerid][Preamie] += 400;
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    }
    }
    if(!IsACop(killerid))
    {
    new str[128],str1[128],pname[MAX_PLAYER_NAME];
    new wantedlevel = GetPlayerWantedLevel(killerid);
    GetPlayerName(playerid,pname,sizeof(pname));
    format(str,sizeof(str),"Du hast einen Verbrechen begangen (Vorsätzlicher Mord). Zeuge: Niemand", pname);
    SendClientMessage(killerid,ORANGE,str);
    format(str1,sizeof(str1),"Dein Aktuelles WantedLevel: %d",sSpieler[killerid][Wanteds]);
    SendClientMessage(killerid,GELB,str1);
    SetPlayerWantedLevel(killerid, wantedlevel + 2);
    }
    sSpieler[playerid][Deaths] ++;
    sSpieler[killerid][Kills] ++;
    PaintballKills[killerid]++;
    if(sSpieler[killerid][Paintball] == 1)
    {
    SetPlayerWantedLevel(killerid,0);
    }
    if(sSpieler[playerid][Paintball] >= 1)
    {
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast einen Spieler getötet. Dein Paintballscore beträgt nun: %d",PaintballKills[killerid]);
    SendClientMessage(killerid,GELB,nachricht);
    return 1;
    }
    return 1;
    }

    Mittlerweile habe ich das alles besser angepasst im Script das es keine 1000 Zeilen sind. Sry hatte nicht richtig nach gedacht :(


    Das Problem zu 1 ist, sobald der Spieler stirbt kommt das Fenster zum einloggen, logt man sich ein sind die Daten wie Skin, Geld, Fraktion gelöscht.


    Problem 2: Ich schaue nochmal nach

    new pTot[MAX_PLAYERS];


    forward Tot(playerid);
    public Tot(playerid)
    {
    pTot[playerid] = 0;
    SendClientMessage(playerid,HELLBLAU, "Du bist aus dem Krankenhaus entlassen.");
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid, true);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerMapIcon(playerid, 1, 1544.4790,-1673.6595,13.5585, 30, GELB); // LSPD
    SetPlayerMapIcon(playerid, 2, 1480.9323,-1767.7324,18.7958, 38, GELB); // Stadthalle
    SetPlayerMapIcon(playerid, 3, 1176.0037,-1326.3264,13.9999, 22, GELB); // Krankenhaus
    SetPlayerMapIcon(playerid, 5, 1003.2296,-936.9583,42.3354, 42, GELB); // BSN Tanke
    SetPlayerMapIcon(playerid, 6, -91.6243,-1170.1760,2.4145, 42, GELB); // LS-SF Tanke
    SetPlayerMapIcon(playerid, 7, -2025.4976,156.6423,28.8359, 42, GELB); // SF Hafen Tanke
    SetPlayerMapIcon(playerid, 8, 2115.7598,920.4518,10.8203, 42, GELB); // LV Ammu Tanke
    SetPlayerMapIcon(playerid, 9, 655.1419,-564.7432,16.3359, 42, GELB); // Dillmore Tanke
    SetPlayerMapIcon(playerid, 10, 1596.0321,2198.6726,10.5256, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 11, 1114.9974,-1297.4119,13.7144, 42, GELB); //KH Tanke
    SetPlayerMapIcon(playerid, 12, -1628.0029,651.6329,6.8932, 42, GELB); //SFPD Tanke
    SetPlayerMapIcon(playerid, 13, 1543.9258,-1609.9548,12.9464, 42, GELB); // LSPD Tanke
    SetPlayerMapIcon(playerid, 14, -1327.9417,2677.3276,49.7678, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 15, 1366.3171,-1279.6683,13.5469, 18, GELB); //Waffenladen
    SetPlayerMapIcon(playerid, 16, 1464.0879,-1031.8586,23.8922, 52, GELB); //LS Bank
    SetPlayerMapIcon(playerid, 17, 2061.2505,-1886.8424,16.8752, 36, GELB); //Fahrschule
    SetPlayerMapIcon(playerid, 19, 70.4484,1219.2515,18.5172, 42, GELB); //Tanke außerhalb von LS
    SetPlayerMapIcon(playerid, 20, 1381.8209,462.8659,19.8424, 42, GELB); //Tanke in LV
    SetPlayerMapIcon(playerid, 21, -1347.2850,459.4279,6.7522, 42, GELB); //Army Tanke
    SetPlayerMapIcon(playerid, 22, -1676.1210,412.5870,6.9054, 42, GELB); //Tanke gegenüber von Army
    SetPlayerMapIcon(playerid, 23, 776.3939,-1351.9756,13.2436, 55, GELB); //Billigautohaus
    SetPlayerMapIcon(playerid, 24, 2127.9531,-1127.1896,25.2422, 55, GELB); //Bikeautohaus
    SetPlayerMapIcon(playerid, 25, -1973.4039,284.3802,34.8771, 55, GELB); //Luxusautohaus
    SetPlayerMapIcon(playerid, 26, -2056.6167,454.3479,35.1719, 52, GELB); //SF Bank
    SetPlayerMapIcon(playerid, 27, 2273.7500,2450.3140,46.9766, 30, GELB); //LVPD
    SetPlayerMapIcon(playerid, 28, -1607.9067,681.0796,-5.2422, 30, GELB); //SFPD
    SetPlayerMapIcon(playerid, 29, -2661.3589,622.8655,14.4531, 22, GELB); //SF Krankenhaus
    SetPlayerMapIcon(playerid, 30, -2766.5366,375.5697,6.3347, 38, GELB); //SF Stadthalle
    SetPlayerMapIcon(playerid, 31, -2519.4587,1215.5695,37.4283, 36, GELB); //SF Fahrschule
    SetPlayerMapIcon(playerid, 32, 962.2885,1735.0990,8.6484, 36, GELB); //LV Fahrschule
    SetPlayerMapIcon(playerid, 33, 2375.8191,2308.9973,8.1406, 38, GELB); //LV Stadthalle
    SetPlayerMapIcon(playerid, 34, 2447.6890,2376.0242,12.1635, 52, GELB); //LV Bank
    SetPlayerMapIcon(playerid, 35, 2242.8030,-1663.7587,15.4766, 45, GELB); //Binco LS grove street
    GangZoneShowForPlayer(playerid,NoDMSH,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoob,ROT);
    GangZoneShowForPlayer(playerid,NoDMSHLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobSf,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMSFSH,ROT);
    GangZoneShowForPlayer(playerid,GSZone,GRÜN);
    GangZoneShowForPlayer(playerid,VZone,GELB);
    GangZoneShowForPlayer(playerid,BZone,LILA);
    if(pTot[playerid] == 1)
    {
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291); //Er wird ins Kh teleportiert
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105); //Die Kamera zeigt aufs Kh
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119); // Das Gleiche Nochma
    SetPlayerInterior(playerid, 0);
    SendClientMessage(playerid, HELLBLAU, "Du bist noch im Krankenhaus!");
    SetTimer("Tot", 1000*30, false);
    }
    if(GetPlayerScore(playerid) <= 3 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Knast] == 0)
    {
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPVarInt(playerid, "Spawnkill", 1);
    SpawnKilllabel[playerid] = Create3DTextLabel("SpawnKillSchutz aktiv",0x0C9BCBFF,X,Y,Z-0.4,15.0,0);
    Attach3DTextLabelToPlayer(SpawnKilllabel[playerid], playerid, 0.0, 0.0, 0.8);
    SetPlayerHealth(playerid,999.9);
    SetTimerEx("SpawnKillSchutzende", 15077, false, "d", playerid);
    SendClientMessage(playerid,BLAU,"Dein Spawnkillschutz ist nun für 15 Sekunden aktiv!");
    }
    if(sSpieler[playerid][SpawnChange] == 4 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Fraktion] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerPos(playerid,-1962.4498,138.0814,27.6940);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,89.7789);
    }
    if(sSpieler[playerid][SpawnChange] == 5 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Fraktion] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerPos(playerid,1433.9365,2619.2686,11.3926);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,175.6535);
    }
    if(sSpieler[playerid][Neu] == 0)
    {
    StopAudioStreamForPlayer(playerid);
    SetPlayerPos(playerid,1727.6650,-1912.0194,13.5635);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,86.7942);
    TogglePlayerControllable(playerid, true);
    }
    if(sSpieler[playerid][Paintball] == 1 && PlayerSpieltPaintball[playerid] != 0 && sSpieler[playerid][Tut] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Knast] == 0)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,25,100);
    GivePlayerWeapon(playerid,34,100);
    }
    if(sSpieler[playerid][Gangjail] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -230.5179,1506.8551,75.5625);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, BLAU, " Du befindest dich noch im GangJail!");
    }
    if(sSpieler[playerid][Tut] == 1 || sSpieler[playerid][SpawnChange] == 0 || sSpieler[playerid][Hotel] == 0 || PlayerSpieltPaintball[playerid] == 0 || sSpieler[playerid][Tod] == 0 || sSpieler[playerid][Knast] == 0 ) //Fraktionsspawn und Normaler Spawn
    {
    SetFraktionsSpawn(playerid);
    }
    if(pFirstLog[playerid] == true || sSpieler[playerid][Tut] == 0)
    {
    SetPlayerPos(playerid,839.3776,-2062.0535,12.8672); // Tutorial Position
    SetPlayerCameraPos(playerid,794.2142,-2184.9741,31.8352);
    SetPlayerCameraLookAt(playerid,839.3776,-2062.0535,12.8672);
    SetPlayerFacingAngle(playerid,179.0452);
    TogglePlayerControllable(playerid,false);
    TutTime[playerid] = 1;
    TutTimer[playerid] = SetTimerEx("Tutorial",1000,1,"i",playerid);
    }
    if(Frei[playerid] != -1 && sSpieler[playerid][Knast] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Tut] == 1)
    {
    new rand = random(sizeof(KnastSpawn));
    SetPlayerPos(playerid, KnastSpawn[rand][0], KnastSpawn[rand][1], KnastSpawn[rand][2]);
    SetPlayerFacingAngle(playerid,KnastSpawn[rand][3]);
    SendClientMessage(playerid,ROT,"Haftstrafe noch nicht abgessen!");
    SetPlayerPos(playerid,197.8290,161.8141,1003.0300);
    SetPlayerInterior(playerid,3);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    }
    if(sSpieler[playerid][Prison] == 1 && sSpieler[playerid][Tod] == 0)
    {
    SendClientMessage(playerid,ROT,"Prisonzeit noch nicht abgessen!");
    SetPlayerPos(playerid, 271.1351,1858.3071,8.7578);
    SetPlayerInterior(playerid,0);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Prisonzeit",60000,0,"i",playerid);
    }
    /*if(sSpieler[playerid][Tod] == 0 && GetPVarInt(playerid, "NoTod") == 1)
    {
    SetPVarInt(playerid,"NoTod",0);
    }*/
    if(sSpieler[playerid][Hotel] > 0 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Haus] == -1 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Knast] == 0)
    {
    SetHotelSpawn(playerid);
    }
    if(sSpieler[playerid][SpawnChange] == 1 && sSpieler[playerid][Tod] == 0 && sSpieler[playerid][Haus] != 255 && sSpieler[playerid][Hotel] == 0 && sSpieler[playerid][Tut] == 1 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Prison] == 0)
    {
    new house = sSpieler[playerid][Haus];
    SetPlayerInterior(playerid,HouseInt_Interior[HouseInfo[house][hInteriorID]]);
    SetPlayerPos(playerid, HouseInt_Spawn_X[HouseInfo[house][hInteriorID]],HouseInt_Spawn_Y[HouseInfo[house][hInteriorID]],HouseInt_Spawn_Z[HouseInfo[house][hInteriorID]]);
    SetPlayerVirtualWorld(playerid, house);
    return 1;
    }
    if(sSpieler[playerid][Haus] == 255 && sSpieler[playerid][SpawnChange] == 1 && sSpieler[playerid][Tut] == 1)
    {
    sSpieler[playerid][SpawnChange] = 0;
    }
    if(sSpieler[playerid][Wohnwagen] == 0 && sSpieler[playerid][SpawnChange] == 2 && sSpieler[playerid][Tut] == 1)
    {
    sSpieler[playerid][SpawnChange] = 0;
    }
    return 1;
    }

    Guten Abend,
    Ich hoffe mir kann einer helfen bei meinen Problemen


    Problem 1:
    Nach dem kill kommt direkt das Loginfenster, weiß einer warum ?
    public OnPlayerSpawn(playerid)
    {
    SetPlayerMapIcon(playerid, 1, 1544.4790,-1673.6595,13.5585, 30, GELB); // LSPD
    SetPlayerMapIcon(playerid, 2, 1480.9323,-1767.7324,18.7958, 38, GELB); // Stadthalle
    SetPlayerMapIcon(playerid, 3, 1176.0037,-1326.3264,13.9999, 22, GELB); // Krankenhaus
    SetPlayerMapIcon(playerid, 5, 1003.2296,-936.9583,42.3354, 42, GELB); // BSN Tanke
    SetPlayerMapIcon(playerid, 6, -91.6243,-1170.1760,2.4145, 42, GELB); // LS-SF Tanke
    SetPlayerMapIcon(playerid, 7, -2025.4976,156.6423,28.8359, 42, GELB); // SF Hafen Tanke
    SetPlayerMapIcon(playerid, 8, 2115.7598,920.4518,10.8203, 42, GELB); // LV Ammu Tanke
    SetPlayerMapIcon(playerid, 9, 655.1419,-564.7432,16.3359, 42, GELB); // Dillmore Tanke
    SetPlayerMapIcon(playerid, 10, 1596.0321,2198.6726,10.5256, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 11, 1114.9974,-1297.4119,13.7144, 42, GELB); //KH Tanke
    SetPlayerMapIcon(playerid, 12, -1628.0029,651.6329,6.8932, 42, GELB); //SFPD Tanke
    SetPlayerMapIcon(playerid, 13, 1543.9258,-1609.9548,12.9464, 42, GELB); // LSPD Tanke
    SetPlayerMapIcon(playerid, 14, -1327.9417,2677.3276,49.7678, 42, GELB); // LV Tanke
    SetPlayerMapIcon(playerid, 15, 1366.3171,-1279.6683,13.5469, 18, GELB); //Waffenladen
    SetPlayerMapIcon(playerid, 16, 1464.0879,-1031.8586,23.8922, 52, GELB); //LS Bank
    SetPlayerMapIcon(playerid, 17, 2061.2505,-1886.8424,16.8752, 36, GELB); //Fahrschule
    SetPlayerMapIcon(playerid, 19, 70.4484,1219.2515,18.5172, 42, GELB); //Tanke außerhalb von LS
    SetPlayerMapIcon(playerid, 20, 1381.8209,462.8659,19.8424, 42, GELB); //Tanke in LV
    SetPlayerMapIcon(playerid, 21, -1347.2850,459.4279,6.7522, 42, GELB); //Army Tanke
    SetPlayerMapIcon(playerid, 22, -1676.1210,412.5870,6.9054, 42, GELB); //Tanke gegenüber von Army
    SetPlayerMapIcon(playerid, 23, 776.3939,-1351.9756,13.2436, 55, GELB); //Billigautohaus
    SetPlayerMapIcon(playerid, 24, 2127.9531,-1127.1896,25.2422, 55, GELB); //Bikeautohaus
    SetPlayerMapIcon(playerid, 25, -1973.4039,284.3802,34.8771, 55, GELB); //Luxusautohaus
    SetPlayerMapIcon(playerid, 26, 2796.9365,-1943.7969,13.5469, 27, GELB); //Tüv
    SetPlayerMapIcon(playerid, 27, -2056.6167,454.3479,35.1719, 52, GELB); //SF Bank
    SetPlayerMapIcon(playerid, 28, 2273.7500,2450.3140,46.9766, 30, GELB); //LVPD
    SetPlayerMapIcon(playerid, 29, -1607.9067,681.0796,-5.2422, 30, GELB); //SFPD
    SetPlayerMapIcon(playerid, 30, -2661.3589,622.8655,14.4531, 22, GELB); //SF Krankenhaus
    SetPlayerMapIcon(playerid, 31, -2766.5366,375.5697,6.3347, 38, GELB); //SF Stadthalle
    SetPlayerMapIcon(playerid, 32, -2519.4587,1215.5695,37.4283, 36, GELB); //SF Fahrschule
    SetPlayerMapIcon(playerid, 33, 962.2885,1735.0990,8.6484, 36, GELB); //LV Fahrschule
    SetPlayerMapIcon(playerid, 34, 2375.8191,2308.9973,8.1406, 38, GELB); //LV Stadthalle
    SetPlayerMapIcon(playerid, 35, 2447.6890,2376.0242,12.1635, 52, GELB); //LV Bank
    GangZoneShowForPlayer(playerid,NoDMSH,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoob,ROT);
    GangZoneShowForPlayer(playerid,NoDMSHLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobSf,ROT);
    GangZoneShowForPlayer(playerid,NoDMNoobLV,ROT);
    GangZoneShowForPlayer(playerid,NoDMSFSH,ROT);
    GangZoneShowForPlayer(playerid,GSZone,GRÜN);
    GangZoneShowForPlayer(playerid,VZone,GELB);
    GangZoneShowForPlayer(playerid,BZone,LILA);
    new Spieler[64];
    new Sname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Sname,sizeof(Sname));
    format(Spieler,sizeof(Spieler),"/Accounts/%s.ini",Sname);
    SetPlayerSkin(playerid,dini_Int(Spieler,"Skin"));
    if(sSpieler[playerid][Geschlecht] == 1)
    {
    sSpieler[playerid][Skin] = 29;
    SetPlayerSkin(playerid,29);
    SetPlayerColor(playerid,WEIS);
    }
    else if(sSpieler[playerid][Geschlecht] == 2)
    {
    sSpieler[playerid][Skin] = 211;
    SetPlayerSkin(playerid,211);
    SetPlayerColor(playerid,WEIS);
    }
    if(sSpieler[playerid][Neu] == 0)
    {
    StopAudioStreamForPlayer(playerid);
    SetPlayerPos(playerid,1727.6650,-1912.0194,13.5635);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid,86.7942);
    TogglePlayerControllable(playerid, true);
    }
    if(sSpieler[playerid][Paintball] == 1 && PlayerSpieltPaintball[playerid] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,25,100);
    GivePlayerWeapon(playerid,34,100);
    }
    if(sSpieler[playerid][Gangjail] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -230.5179,1506.8551,75.5625);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, BLAU, " Du befindest dich noch im GangJail!");
    }
    /*if(sSpieler[playerid][Tutorial] == 1 && sSpieler[playerid][Hotel] == 0 && PlayerSpieltPaintball[playerid] == 0 && sSpieler[playerid][Knast] == 0 && sSpieler[playerid][Prison] == 0 )
    {
    SetFraktionsSpawn(playerid);
    }*/
    if(pFirstLog[playerid] == true || sSpieler[playerid][Tut] < 1)
    {
    SetPlayerPos(playerid,839.3776,-2062.0535,12.8672); // Tutorial Position
    SetPlayerCameraPos(playerid,794.2142,-2184.9741,31.8352);
    SetPlayerCameraLookAt(playerid,839.3776,-2062.0535,12.8672);
    SetPlayerFacingAngle(playerid,179.0452);
    TogglePlayerControllable(playerid,false);
    TutTime[playerid] = 1;
    TutTimer[playerid] = SetTimerEx("Tutorial",1000,1,"i",playerid);
    }
    else if(Frei[playerid] != -1)
    {
    new rand = random(sizeof(KnastSpawn));
    SetPlayerPos(playerid, KnastSpawn[rand][0], KnastSpawn[rand][1], KnastSpawn[rand][2]);
    SetPlayerFacingAngle(playerid,KnastSpawn[rand][3]);
    SendClientMessage(playerid,ROT,"Haftstrafe noch nicht abgessen!");
    SetPlayerPos(playerid,197.8290,161.8141,1003.0300);
    SetPlayerInterior(playerid,3);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    }
    if(sSpieler[playerid][Prison] == 1)
    {
    SendClientMessage(playerid,ROT,"Prisonzeit noch nicht abgessen!");
    SetPlayerPos(playerid, 271.1351,1858.3071,8.7578);
    SetPlayerInterior(playerid,0);
    ResetPlayerWeapons(playerid);
    SetTimerEx("Prisonzeit",60000,0,"i",playerid);
    }
    if(sSpieler[playerid][Leader] == 12 || sSpieler[playerid][Member] == 12) //Taxifahrer
    {
    SetPlayerPos(playerid,2581.6182,1062.2375,11.1817);
    SetPlayerFacingAngle(playerid,355.1775);
    SetCameraBehindPlayer(playerid);
    SetPlayerColor(playerid,GELB);
    SetPlayerSkin(playerid,189);
    GivePlayerWeapon(playerid,3,1);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 17) //LVRD
    {
    if(sSpieler[playerid][Rank] == 13 && sSpieler[playerid][Rank] == 12)
    {
    SetPlayerColor(playerid,ROT);
    SetPlayerSkin(playerid,70);
    SetPlayerPos(playerid,1606.6323,1818.2062,10.8203);
    SetPlayerFacingAngle(playerid,358.7478);
    SetCameraBehindPlayer(playerid);
    GivePlayerWeapon(playerid,41,500);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 16) //SFRD
    {
    if(sSpieler[playerid][Rank] == 13 && sSpieler[playerid][Rank] == 12)
    {
    SetPlayerColor(playerid,ROT);
    SetPlayerSkin(playerid,70);
    SetPlayerPos(playerid,-2667.5745,637.6201,14.4531);
    SetPlayerFacingAngle(playerid,178.1983);
    SetCameraBehindPlayer(playerid);
    GivePlayerWeapon(playerid,41,500);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 6) //LSRD
    {
    if(sSpieler[playerid][Rank] == 13 || sSpieler[playerid][Rank] == 12)
    {
    SetPlayerColor(playerid,ROT);
    SetPlayerSkin(playerid,70);
    SetPlayerPos(playerid,1130.8488,-1329.1471,13.6333);
    SetPlayerFacingAngle(playerid,353.6780);
    SetCameraBehindPlayer(playerid);
    GivePlayerWeapon(playerid,41,500);
    return 1;
    }
    }
    if(sSpieler[playerid][Member] == 6) //LSRD
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerSkin(playerid,274);
    SetPlayerColor(playerid,ROT);
    SetPlayerPos(playerid,1130.8488,-1329.1471,13.6333);
    SetPlayerFacingAngle(playerid,353.6780);
    SetCameraBehindPlayer(playerid);
    GivePlayerWeapon(playerid,41,500);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerSkin(playerid,275);
    SetPlayerColor(playerid,ROT);
    SetPlayerPos(playerid,1130.8488,-1329.1471,13.6333);
    SetPlayerFacingAngle(playerid,353.6780);
    SetCameraBehindPlayer(playerid);
    GivePlayerWeapon(playerid,41,500);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 1) //LSPD
    {
    if(sSpieler[playerid][Rank] == 13)
    {
    SetPlayerColor(playerid,BLAU);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,219.0447,69.7077,1005.0391);
    SetPlayerFacingAngle(playerid,268.3077);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,283);
    SetPlayerInterior(playerid,6);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 12)
    {
    SetPlayerSkin(playerid, 288);
    SetPlayerInterior(playerid,6);
    SetPlayerColor(playerid,BLAU);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,219.0447,69.7077,1005.0391);
    SetPlayerFacingAngle(playerid,268.3077);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    }
    if(sSpieler[playerid][Member] == 1) //LSPD
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerSkin(playerid, 281);
    SetPlayerInterior(playerid,6);
    SetPlayerColor(playerid,BLAU);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,219.0447,69.7077,1005.0391);
    SetPlayerFacingAngle(playerid,268.3077);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerSkin(playerid, 280);
    SetPlayerInterior(playerid,6);
    SetPlayerColor(playerid,BLAU);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,219.0447,69.7077,1005.0391);
    SetPlayerFacingAngle(playerid,268.3077);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerSkin(playerid, 267);
    SetPlayerInterior(playerid,6);
    SetPlayerColor(playerid,BLAU);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,219.0447,69.7077,1005.0391);
    SetPlayerFacingAngle(playerid,268.3077);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 5 || sSpieler[playerid][Member] == 5) //San News
    {
    SetPlayerColor(playerid,ORANGE);
    GivePlayerWeapon(playerid,43,9999);
    SetPlayerSkin(playerid,187);
    SetPlayerPos(playerid,996.7645,-1460.3590,13.5469);
    SetPlayerFacingAngle(playerid,276.9659);
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 9 && sSpieler[playerid][Rank] == 13) //Grove Street
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,269);
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 9 && sSpieler[playerid][Rank] == 12) //Grove Street
    {
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid, 270);
    return 1;
    }
    if(sSpieler[playerid][Member] == 9) //Grove Street
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerSkin(playerid, 105);
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerSkin(playerid, 106);
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid, 107);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 4)
    {
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid, 270);
    return 1;
    }
    if(sSpieler[playerid][Geschlecht] == 2)
    {
    SetPlayerPos(playerid,2495.8521,-1709.1996,1014.7422);
    SetPlayerFacingAngle(playerid,4.4102);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    return 1;
    }
    }
    else if(sSpieler[playerid][Leader] == 8 && sSpieler[playerid][Rank] == 13 && sSpieler[playerid][Rank] == 12) //Ballas
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,103);
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    return 1;
    }
    else if(sSpieler[playerid][Member] == 8) //Ballas
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,66);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,102);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerSkin(playerid,104);
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 4)
    {
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid, 176);
    return 1;
    }
    if(sSpieler[playerid][Geschlecht] == 2)
    {
    SetPlayerPos(playerid,2817.0981,-1165.9849,1029.1719);
    SetPlayerFacingAngle(playerid,106.6972);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,103);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 11 && sSpieler[playerid][Rank] == 13) //Hitman
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,165);
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 11 && sSpieler[playerid][Rank] == 12) //Hitman
    {
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,166);
    return 1;
    }
    if(sSpieler[playerid][Member] == 11) //Hitman
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,122);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,117);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,120);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 4)
    {
    SetPlayerPos(playerid,2448.7378,-1689.4907,1013.5078);
    SetPlayerFacingAngle(playerid,180.1451);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    GivePlayerWeapon(playerid,34,150);
    SetPlayerSkin(playerid,164);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 10 && sSpieler[playerid][Rank] == 13) //Los Santos Vagos
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,24,50);
    SetPlayerSkin(playerid,109);
    SetPlayerPos(playerid,322.9197,1119.7819,1083.8828);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 10 && sSpieler[playerid][Rank] == 12) //Los Sanots Vagos
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.2834,-797.2609,1089.9375);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    SetPlayerSkin(playerid,110);
    return 1;
    }
    if(sSpieler[playerid][Member] == 10)
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerSkin(playerid,30);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.2834,-797.2609,1089.9375);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerSkin(playerid,108);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.2834,-797.2609,1089.9375);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerSkin(playerid,292);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.2834,-797.2609,1089.9375);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 4 && sSpieler[playerid][Rank] == 13 && sSpieler[playerid][Rank] == 12) //Präsident
    {
    SetPlayerColor(playerid,WEIS);
    SetPlayerSkin(playerid,295);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.8909,-789.0549,1089.9375);
    SetPlayerFacingAngle(playerid,172.6718);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    if(sSpieler[playerid][Member] == 4)
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.8909,-789.0549,1089.9375);
    SetPlayerFacingAngle(playerid,172.6718);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    SetPlayerSkin(playerid,163);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerSkin(playerid,166);
    SetPlayerColor(playerid,WEIS);
    GivePlayerWeapon(playerid,31,999);
    GivePlayerWeapon(playerid,29,999);
    SetPlayerPos(playerid,1290.8909,-789.0549,1089.9375);
    SetPlayerFacingAngle(playerid,172.6718);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 7 || sSpieler[playerid][Member] == 7) //Oamt
    {
    SetPlayerColor(playerid,HELLBLAU);
    GivePlayerWeapon(playerid,41,2000);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,324.3147,306.2791,999.1484);
    SetPlayerFacingAngle(playerid,91.8310);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,71);
    SetPlayerInterior(playerid,5);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 2 || sSpieler[playerid][Rank] == 13 || sSpieler[playerid][Rank] == 12) //SFPD
    {
    SetPlayerColor(playerid,WEIS);
    SetPlayerSkin(playerid,301);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,216.0463,113.4957,1003.2188);
    SetPlayerFacingAngle(playerid,270.4093);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,10);
    return 1;
    }
    if(sSpieler[playerid][Member] == 2)
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerColor(playerid,WEIS);
    SetPlayerSkin(playerid,267);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,216.0463,113.4957,1003.2188);
    SetPlayerFacingAngle(playerid,270.4093);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,10);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerColor(playerid,WEIS);
    SetPlayerSkin(playerid,266);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,216.0463,113.4957,1003.2188);
    SetPlayerFacingAngle(playerid,270.4093);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,10);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerColor(playerid,WEIS);
    SetPlayerSkin(playerid,265);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerPos(playerid,216.0463,113.4957,1003.2188);
    SetPlayerFacingAngle(playerid,270.4093);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,10);
    return 1;
    }
    }
    if(sSpieler[playerid][Leader] == 3 && sSpieler[playerid][Member] == 3) //Army
    {
    SetPlayerColor(playerid,GRÜN);
    SetCameraBehindPlayer(playerid);
    SetPlayerPos(playerid,-1346.0912,492.1238,11.2027);
    SetPlayerFacingAngle(playerid,359.3823);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,31,500);
    GivePlayerWeapon(playerid,29,500);
    SetPlayerSkin(playerid,287);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 14 || sSpieler[playerid][Member] == 14) //Tuev
    {
    SetPlayerPos(playerid,2785.6055,-1930.2949,13.5469);
    SetPlayerFacingAngle(playerid,270.0651);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,50);
    SetPlayerInterior(playerid,0);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 13 || sSpieler[playerid][Rank] == 13 || sSpieler[playerid][Rank] == 12) //Spedition
    {
    SetPlayerPos(playerid,-49.7469,-270.1691,6.6332);
    SetPlayerFacingAngle(playerid,189.6376);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,34);
    GivePlayerWeapon(playerid,25,30);
    SetPlayerInterior(playerid,0);
    return 1;
    }
    if(sSpieler[playerid][Member] == 13)
    {
    SetPlayerPos(playerid,-49.7469,-270.1691,6.6332);
    SetPlayerFacingAngle(playerid,189.6376);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,44);
    GivePlayerWeapon(playerid,25,30);
    SetPlayerInterior(playerid,0);
    return 1;
    }
    if(sSpieler[playerid][Leader] == 15 && sSpieler[playerid][Rank] == 13 && sSpieler[playerid][Rank] == 12) //LVPD
    {
    SetPlayerPos(playerid,219.0003,184.5267,1003.0313);
    SetPlayerFacingAngle(playerid,180.4584);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,288);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,4);
    SetPlayerColor(playerid,BLAU);
    return 1;
    }
    if(sSpieler[playerid][Member] == 15)
    {
    if(sSpieler[playerid][Rank] == 1)
    {
    SetPlayerPos(playerid,219.0003,184.5267,1003.0313);
    SetPlayerFacingAngle(playerid,180.4584);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,311);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,BLAU);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 2)
    {
    SetPlayerPos(playerid,219.0003,184.5267,1003.0313);
    SetPlayerFacingAngle(playerid,180.4584);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,310);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,BLAU);
    return 1;
    }
    if(sSpieler[playerid][Rank] == 3)
    {
    SetPlayerPos(playerid,219.0003,184.5267,1003.0313);
    SetPlayerFacingAngle(playerid,180.4584);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,302);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,3,0);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerColor(playerid,BLAU);
    return 1;
    }
    }
    if(sSpieler[playerid][Hotel] > 0)
    {
    SetHotelSpawn(playerid);
    }
    if(FirstSpawn[playerid] == 1)
    {
    SetPlayerCameraPos(playerid, 1200.0189,-1349.9330,17.1927);//,24.2789);
    SetPlayerCameraLookAt(playerid,1178.6764,-1324.9622,14.1318);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid,BLAU,"Willkommen im Krankenhaus, deine Wunden werden geheilt!");
    SendClientMessage(playerid,BLAU,"Nach 2 Minuten wirst du aus dem Krankenhaus entlassen.");
    Krankenhaus[playerid] = 1;
    SetTimerEx("KrankenhausSpawn", 120000, false, "i", playerid);
    TogglePlayerControllable(playerid,0);
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    }
    return 1;
    }


    public KrankenhausSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new Spieler[64];
    if(Krankenhaus[playerid] == 1)
    {
    if(sSpieler[playerid][Krankenhausversicherung] == 1)
    {
    SendClientMessage(playerid,BLAU,"Du wurdest aus dem Krankenhaus entlassen.");
    SendClientMessage(playerid,BLAU,"Behandlungskosten: 0$");
    Krankenhaus[playerid] = 0;
    SetPlayerPos(playerid,1178.7200,-1325.1553,14.1340);
    SetPlayerFacingAngle(playerid,266.2853); //hier setzt er die Position am Krankenhaus
    SetPlayerHealth(playerid,100);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    SetPlayerSkin(playerid,dini_Int(Spieler,"Skin"));
    }
    else if(sSpieler[playerid][Krankenhausversicherung] == 0)
    {
    SendClientMessage(playerid,BLAU,"Du wurdest aus dem Krankenhaus entlassen.");
    SendClientMessage(playerid,BLAU,"Behandlungskosten: 500$");
    Krankenhaus[playerid] = 0;
    SetPlayerPos(playerid,1178.7200,-1325.1553,14.1340);
    SetPlayerFacingAngle(playerid,266.2853); //hier setzt er die Position am Krankenhaus
    SetPlayerHealth(playerid,100);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    GivePlayerMoneyEx(playerid, -500);
    SetPlayerSkin(playerid,dini_Int(Spieler,"Skin"));
    }
    }
    }
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    if(FirstSpawn[playerid] == 0 || PlayerSpieltPaintball[playerid] == 0)
    {
    FirstSpawn[playerid] = 1;
    }
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    DisablePlayerCheckpoint(playerid);
    pizzen[playerid] = 0;
    if(sSpieler[playerid][Auftrag] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(sSpieler[killerid][Member] == 11 || sSpieler[killerid][Leader] == 11)
    {
    if(GoChase[killerid] == playerid)
    {
    new string[128];
    new killer[MAX_PLAYER_NAME];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = sSpieler[playerid][Auftrag]/2;
    HitmanK += fkasse;
    GivePlayerMoneyEx(killerid, sSpieler[playerid][Auftrag]/2);
    format(string,128,"Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d",killer,name,sSpieler[playerid][Auftrag]/2);
    SendClientMessageToAll(GELB, string);
    sSpieler[playerid][Auftrag] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(high[playerid] == 1)
    {
    DrugsOff(playerid);
    KillTimer(drugtimer[playerid]);
    }
    if(mission[playerid] != 0)
    {
    GameTextForPlayer(playerid,"~r~Mission Fehlgeschlagen", 2000, 0);
    StartmissionCP[playerid] = 0;
    Startmission[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    mission[playerid] = 0;
    }
    if(sSpieler[playerid][Wanteds] > 0)
    {
    if(IsACop(playerid))
    {
    new killstring[264],string[128];
    if(sSpieler[playerid][Leader] == 1 || sSpieler[playerid][Member] == 1)
    {
    format(killstring,sizeof(killstring),"LS-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 2 || sSpieler[playerid][Member] == 2)
    {
    format(killstring,sizeof(killstring),"SFPD-Officer %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    sSpieler[playerid][Preamie] += 400;
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    if(sSpieler[playerid][Leader] == 3 || sSpieler[playerid][Member] == 3)
    {
    format(killstring,sizeof(killstring),"Soldat %s hat den Verbrecher %s getötet.",SpielerName(killerid),SpielerName(playerid));
    SendClientMessageToAll(GRÜN,killstring);
    format(string, sizeof(string), "Gesuchten getötet! + 400$");
    GameTextForPlayer(killerid, string, 5000, 1);
    sSpieler[playerid][Preamie] += 400;
    SetTimerEx("Gefaengnis",60000,0,"i",playerid);
    SendClientMessage(playerid,GELB,"Am Zahltag bekommst du deine Belohnung!");
    }
    }
    }
    if(!IsACop(killerid))
    {
    new str[128],str1[128],pname[MAX_PLAYER_NAME];
    new wantedlevel = GetPlayerWantedLevel(killerid);
    GetPlayerName(playerid,pname,sizeof(pname));
    format(str,sizeof(str),"Du hast einen Verbrechen begangen (Vorsätzlicher Mord). Zeuge: Niemand", pname);
    SendClientMessage(killerid,ORANGE,str);
    format(str1,sizeof(str1),"Dein Aktuelles WantedLevel: %d",sSpieler[killerid][Wanteds]);
    SendClientMessage(killerid,GELB,str1);
    SetPlayerWantedLevel(killerid, wantedlevel + 2);
    }
    new string[35];
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    SetTimerEx("tot", 90000, false, "d", playerid);
    new Float:x, Float:y, Float:z, nome1[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Float:x, Float:y, Float:z);
    GetPlayerName(playerid, nome1, sizeof(nome1));
    format(string, sizeof(string), "%s", nome1);
    DeathText[playerid] = Create3DTextLabel(string,0xFFFFFFAA, Float:x, Float:y, Float:z, 10.0, 0);
    sSpieler[playerid][Deaths] ++;
    sSpieler[killerid][Kills] ++;
    PaintballKills[killerid]++;
    if(sSpieler[killerid][Paintball] == 1)
    {
    SetPlayerWantedLevel(killerid,0);
    }
    if(sSpieler[playerid][Paintball] >= 1)
    {
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast einen Spieler getötet. Dein Paintballscore beträgt nun: %d",PaintballKills[killerid]);
    SendClientMessage(killerid,GELB,nachricht);
    return 1;
    }
    return 1;
    }



    Problem 2:
    Nach dem Freikaufen beim Ordnungsamt habe ich 2 Fahrzeuge stehen anstatt nur eins ?
    Ich habe mehrere Fotos gemacht.


    if(strcmp(cmdtext,"/opark",true,10)==0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(sSpieler[playerid][Leader] == 7 || sSpieler[playerid][Member] == 7)
    {
    for(new z = 0; z < MAX_PLAYERS;z++)
    {
    for(new i = 0; i < MAX_PLAYER_CARS;i++)
    {
    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid, GRAU, "An deinem Abschleppwagen ist kein Auto angehängt!");
    return 1;
    }
    new vehicle = GetPlayerVehicleID(playerid);
    new Float:xrate, Float:yrate, Float:zrate, Float:arate;
    new Car[128];
    format(Car,sizeof(Car),"/Auto/%s's Auto %d.txt",SpielerName(z),i);
    {
    GetVehiclePos(vehicle,xrate,yrate,zrate);
    GetVehicleZAngle(vehicle, arate);
    Auto[playerid][i][Park_x] = xrate;
    Auto[playerid][i][Park_y] = yrate;
    Auto[playerid][i][Park_z] = zrate;
    Auto[playerid][i][Park_rot] = arate;
    Auto[playerid][i][Abgeschleppt] = 1;
    SendClientMessage(playerid, GRÜN, "Das Fahrzeug wurde erfolgreich auf dem Verwahrplatz geparkt !");
    DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
    sSpieler[playerid][Preamie] += 500;
    SendClientMessage(playerid,GELB,"Du bekommst ein Bonus von 500$ am Payday pro Abgeschlepptes Fahrzeug!");
    return 1;
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid,GRAU,"Du bist kein Oamt Mitglied!");
    }
    }
    return 1;
    }
    if(strcmp(cmdtext,"/freikaufen",true) == 0)
    {
    for(new z = 0; z<MAX_PLAYERS; z++)
    {
    for(new i = 0; i < MAX_PLAYER_CARS;i++)
    {
    if(IsPlayerConnected(playerid))
    {
    new string[128];
    if(IsPlayerInRangeOfPoint(playerid,4.0,1459.0216,-1507.1311,13.5469))
    {
    if(Auto[playerid][i][Abgeschleppt] != 0)
    {
    if(GetPlayerMoney(playerid) < 4000)
    {
    SendClientMessage(playerid,ROT,"Du hast nich genug Geld dabei! (( 4.000$ ))");
    return 1;
    }
    format(string,sizeof(string),"Du hast deinen %s für 4.000$ wieder frei gekauft. Hoffentlich kommt das nicht noch einmal vor.",Fahrzeugnamen[Auto[playerid][i][modelid] -400]);
    SendClientMessage(playerid,HELLBLAU,string);
    SendClientMessage(playerid,GELB,"[Mitarbeiter]: Achja Denk daran dein Privatfahrzeug neu zu parken!");
    if(sSpieler[i][Leader] == 7 || sSpieler[i][Member] == 7)
    {
    format(string,sizeof(string),"%s hat sein Fahrzeug (%s) für 4.000$ freigekauft. Das Geld wurde in die Fraktionskasse überwiesen.",SpielerName(playerid),Fahrzeugnamen[Auto[playerid][i][modelid] -400]);
    SendClientMessage(i,HELLBLAU,string);
    }
    GivePlayerMoneyEx(playerid, -4000);
    OamtK += 4000;
    OamtSpeichern();
    Auto[playerid][i][Abgeschleppt] = 0;
    Auto[playerid][i][Park_x] = 1440.2405;
    Auto[playerid][i][Park_y] = -1494.6765;
    Auto[playerid][i][Park_z] = 13.5469;
    Auto[playerid][i][Park_rot] = 170.4242;
    meinauto[playerid][i] = CreateVehicle(Auto[playerid][i][modelid],Auto[playerid][i][Park_x],Auto[playerid][i][Park_y],Auto[playerid][i][Park_z],Auto[playerid][i][Park_rot],Auto[playerid][i][Farbe1],Auto[playerid][i][Farbe2],-1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,GRAU,"Es ist kein Fahrzeug gesperrt!");
    }
    }
    else
    {
    SendClientMessage(playerid,GRAU,"Du bist nicht in der Nähe!");
    }
    }
    }
    }
    return 1;
    }


    Danke für die Hilfe und Frohe Weihnachten wünsche ich allen!! :)

    @Canna oh dann habe ich es falsch verstanden, sry. Ja die Funktion wird 4mal aufgerufen .


    @Douq Ich habe die tankbefüllung und MAX_VEHICLES entfernt. Ich bin 10 Minuten gefahren und das Label ist nicht verschwunden :), ich stande auch 5 Minuten rum und das Label ist auch nicht verschwunden :D . Ich danke dir vielmals das du mir geholfen hast :).



    Kann geschlossen werden



    //EDIT jetzt verschwindet es wieder -.-