onplayerdead fehler wichtig

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link

  • public OnPlayerDeath(playerid, killerid, reason)
    {
    Spieler[playerid][Gestorben] ++;
    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,1000);
    GivePlayerWeapon(playerid,29,1000);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SpawnPlayer(playerid);
    }
    if(killerid != INVALID_PLAYER_ID)Spieler[killerid][Morde] ++;
    TextDrawHideForPlayer(playerid,lebensanzeige[playerid]);
    new string[128];
    new caller = CurrentPhone[playerid];
    if(killerid != INVALID_PLAYER_ID)
    {
    if(caller != 999)
    {
    if(caller < 999)
    {
    SendClientMessage(caller, ROT, "Die Verbindung wurde Unterbrochen ...");
    CurrentPhone[caller] = 999;
    }
    CurrentPhone[playerid] = 999;
    }
    else if(Spieler[playerid][JailType] == 0 || Spieler[playerid][JailType] == 0 || Spieler[playerid][Paintball] == 0)
    {
    Spieler[playerid][KH] = 1;
    }
    else if(Spieler[playerid][JailType] == 1 || Spieler[playerid][JailType] == 2)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    }
    else if(Spieler[playerid][JailType] == 3)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 1);
    }
    else if(Spieler[killerid][Team] == 1 || Spieler[killerid][Team] == 2)
    {
    if(Spieler[playerid][Team] != 1 || Spieler[playerid][Team] != 2 || Spieler[playerid][Team] != 14)
    {
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 2;
    GivePlayerCash(playerid, -5000);
    GivePlayerCash(killerid, 5000);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_GRAD2, "");
    format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    SendClientMessage(playerid, BLAU, string);
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    }
    }
    if(Spieler[playerid][Wanteds] < 0 && IsACop(killerid))
    {
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 2;
    GivePlayerCash(playerid, -5000);
    GivePlayerCash(killerid, 5000);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_GRAD2, "");
    format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    SendClientMessage(playerid, BLAU, string);
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    //ClearChat(playerid);
    // PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    // SendClientMessage(killerid,0xFFFFFF00,"Du hast den gesuchten Verbrecher geschnappt!");
    // SendClientMessage(killerid,0xFFFFFF00,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    // SendClientMessage(playerid,0xFFFFFF00,"Du wurdest von der Polizei gestoppt!");
    //der eingespäter wird nicht als killerid sndern als playerid definirt
    SetPlayerWantedLevel(playerid,0);
    //format(string, sizeof(string), "%s hat den Verbrecher %s geschnappt!", GetName(killerid), GetName(playerid));
    //SendFamilyMessage(1, BLAU, string);
    //SendFamilyMessage(2, BLAU, string);
    }
    if(Spieler[playerid][Team] == 8 || Spieler[playerid][Team] == 9 || Spieler[playerid][Team] == 10 || Spieler[playerid][Team] == 11 || Spieler[playerid][Team] == 12 || Spieler[playerid][Team] == 16 || Spieler[playerid][Team] == 17 || Spieler[playerid][Team] == 18 || Spieler[playerid][Team] == 19 || Spieler[playerid][Team] == 20)//Abfrage ob "playerid" (der wo gekillt wurde) in einer Gang ist muss hier hin
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Gang Member gekillt (+2 Wanteds)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+2);
    }
    else if(Spieler[killerid][Team] == 1 || Spieler[killerid][Team] == 2 || Spieler[killerid][Team] == 14 || Spieler[killerid][Team] == 15)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Verbrecher gekillt");
    return 1;
    }
    else if(Spieler[playerid][Team] == 0)
    {
    if(Spieler[playerid][Paintball] == 0)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Zivi gekillt (+1 Wanted)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
    Spieler[playerid][Wanteds] += 1;
    }
    return 1;
    }
    else if(Spieler[playerid][Wanteds] < 1)
    {
    GetPlayerPos(playerid, Spieler[playerid][dx], Spieler[playerid][dy], Spieler[playerid][dz]);
    }
    if(Spieler[playerid][ContractGeld] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(Spieler[killerid][Team] == 4)
    {
    if(CurrentHit[killerid] == playerid)
    {
    format(string, sizeof(string), "* Hitman %s hat den Auftrag an %s erfüllt. Er erhält $%d.", SpielerName(killerid), SpielerName(playerid), Spieler[playerid][ContractGeld]);
    SendFamilyMessage(4, BLAU, string);
    GameTextForPlayer(playerid, "~r~Auftragskill", 3000, 1);
    Spieler[playerid][ContractGeld] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    CurrentHit[killerid] = 999;
    }
    }
    }
    }
    }
    return 1;
    }



    wenn der andere wanteds hat und ich bin cop und kille ihn landet er im kranken haus


    wenn ich ein spieler bin er auch und ihn kille krige ich keine wanteds wieso?

    Einmal editiert, zuletzt von seegras () aus folgendem Grund: Code schön eingerückt

  • Guck mal genau....
    Du hast abgefrag in Zeile eins, ob das Wantedlevel kleiner (<) oder gleich null ist also mach mal ein ">" dahin und versuche es nochmal.



    [list=1][*]if(Spieler[playerid][Wanteds] < 0 && IsACop(killerid))
    [*] {
    [*] Spieler[playerid][Jailed] = 1;
    [*] Spieler[playerid][JailType] = 2;
    [*] GivePlayerCash(playerid, -5000);
    [*] GivePlayerCash(killerid, 5000);
    [*] ResetPlayerWeapons(playerid);
    [*] SendClientMessage(playerid, COLOR_GRAD2, "");
    [*] format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    [*] SendClientMessage(playerid, BLAU, string);
    [*] SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    [*] SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    [*] SetPlayerInterior(playerid, 6);
    [*] //ClearChat(playerid);
    [*] // PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    [*] // SendClientMessage(killerid,0xFFFFFF00,"Du hast den gesuchten Verbrecher geschnappt!");
    [*] // SendClientMessage(killerid,0xFFFFFF00,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    [*] // SendClientMessage(playerid,0xFFFFFF00,"Du wurdest von der Polizei gestoppt!");
    [*] //der eingespäter wird nicht als killerid sndern als playerid definirt
    [*] SetPlayerWantedLevel(playerid,0);
    [*] //format(string, sizeof(string), "%s hat den Verbrecher %s geschnappt!", GetName(killerid), GetName(playerid));
    [*] //SendFamilyMessage(1, BLAU, string);
    [*] //SendFamilyMessage(2, BLAU, string);
    [*] }
    [/list]

  • danke


    aber wieso wenn beide in frak 0 sind krigt der killer kein wanted?


    else if(Spieler[playerid][Team] == 0)
    {
    if(Spieler[playerid][Paintball] == 0)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Zivi gekillt (+1 Wanted)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
    Spieler[playerid][Wanteds] += 1;
    }
    return 1;
    }

  • Versuche es so:
    printf("Team playerid: %d / paintball: %d", Spieler[playerid][Team], Spieler[playerid][Paintball]);
    if(Spieler[playerid][Team] == 8 || Spieler[playerid][Team] == 9 || Spieler[playerid][Team] == 10 || Spieler[playerid][Team] == 11 || Spieler[playerid][Team] == 12 || Spieler[playerid][Team] == 16 || Spieler[playerid][Team] == 17 || Spieler[playerid][Team] == 18 || Spieler[playerid][Team] == 19 || Spieler[playerid][Team] == 20)//Abfrage ob "playerid" (der wo gekillt wurde) in einer Gang ist muss hier hin
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Gang Member gekillt (+2 Wanteds)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+2);
    }
    else if(Spieler[playerid][Team] == 1 || Spieler[playerid][Team] == 2 || Spieler[playerid][Team] == 14 || Spieler[playerid][Team] == 15)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Verbrecher gekillt");
    }
    else if(Spieler[playerid][Team] == 0)
    {
    if(Spieler[playerid][Paintball] == 0)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Zivi gekillt (+1 Wanted)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
    Spieler[playerid][Wanteds] += 1;
    printf("Zivi getötet.");
    }
    }
    else if(Spieler[playerid][Wanteds] < 1)
    {
    GetPlayerPos(playerid, Spieler[playerid][dx], Spieler[playerid][dy], Spieler[playerid][dz]);
    }
    Falls es nicht klappt, poste bitte was im Server Log steht.

  • public OnPlayerDeath(playerid, killerid, reason)
    {
    Spieler[playerid][Gestorben] ++;
    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,1000);
    GivePlayerWeapon(playerid,29,1000);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SpawnPlayer(playerid);
    }
    if(killerid != INVALID_PLAYER_ID)Spieler[killerid][Morde] ++;
    TextDrawHideForPlayer(playerid,lebensanzeige[playerid]);
    new string[128];
    new caller = CurrentPhone[playerid];
    if(killerid != INVALID_PLAYER_ID)
    {
    if(caller != 999)
    {
    if(caller < 999)
    {
    SendClientMessage(caller, ROT, "Die Verbindung wurde Unterbrochen ...");
    CurrentPhone[caller] = 999;
    }
    CurrentPhone[playerid] = 999;
    }
    else if(Spieler[playerid][JailType] == 0 || Spieler[playerid][JailType] == 0 || Spieler[playerid][Paintball] == 0)
    {
    Spieler[playerid][KH] = 1;
    }
    else if(Spieler[playerid][JailType] == 1 || Spieler[playerid][JailType] == 2)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    }
    else if(Spieler[playerid][JailType] == 3)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 1);
    }
    else if(Spieler[killerid][Team] == 1 || Spieler[killerid][Team] == 2)
    {
    if(Spieler[playerid][Team] != 1 || Spieler[playerid][Team] != 2 || Spieler[playerid][Team] != 14)
    {
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 2;
    GivePlayerCash(playerid, -5000);
    GivePlayerCash(killerid, 5000);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_GRAD2, "");
    format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    SendClientMessage(playerid, BLAU, string);
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    SpawnPlayer(playerid);
    }
    }
    if(Spieler[playerid][Wanteds] > 0 && IsACop(killerid))
    {
    SetPlayerHealth(playerid,100);
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 2;
    GivePlayerCash(playerid, -5000);
    GivePlayerCash(killerid, 5000);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_GRAD2, "");
    format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    SendClientMessage(playerid, BLAU, string);
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    //ClearChat(playerid);
    // PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    // SendClientMessage(killerid,0xFFFFFF00,"Du hast den gesuchten Verbrecher geschnappt!");
    // SendClientMessage(killerid,0xFFFFFF00,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    // SendClientMessage(playerid,0xFFFFFF00,"Du wurdest von der Polizei gestoppt!");
    //der eingespäter wird nicht als killerid sndern als playerid definirt
    SetPlayerWantedLevel(playerid,0);
    SpawnPlayer(playerid);
    //format(string, sizeof(string), "%s hat den Verbrecher %s geschnappt!", GetName(killerid), GetName(playerid));
    //SendFamilyMessage(1, BLAU, string);
    //SendFamilyMessage(2, BLAU, string);
    }
    if(Spieler[playerid][Team] == 8 || Spieler[playerid][Team] == 9 || Spieler[playerid][Team] == 10 || Spieler[playerid][Team] == 11 || Spieler[playerid][Team] == 12 || Spieler[playerid][Team] == 16 || Spieler[playerid][Team] == 17 || Spieler[playerid][Team] == 18 || Spieler[playerid][Team] == 19 || Spieler[playerid][Team] == 20)//Abfrage ob "playerid" (der wo gekillt wurde) in einer Gang ist muss hier hin
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Gang Member gekillt (+2 Wanteds)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+2);
    }
    else if(Spieler[killerid][Team] == 1 || Spieler[killerid][Team] == 2 || Spieler[killerid][Team] == 14 || Spieler[killerid][Team] == 15)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Verbrecher gekillt");
    return 1;
    }
    else if(Spieler[playerid][Team] == 0)
    {
    if(Spieler[playerid][Paintball] == 0)
    {
    SendClientMessage(killerid,0xFFFFFF00,"Du hast einen Zivi gekillt (+1 Wanted)");
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
    Spieler[playerid][Wanteds] += 1;
    }
    return 1;
    }
    else if(Spieler[playerid][Wanteds] < 1)
    {
    GetPlayerPos(playerid, Spieler[playerid][dx], Spieler[playerid][dy], Spieler[playerid][dz]);
    }
    if(Spieler[playerid][ContractGeld] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(Spieler[killerid][Team] == 4)
    {
    if(CurrentHit[killerid] == playerid)
    {
    format(string, sizeof(string), "* Hitman %s hat den Auftrag an %s erfüllt. Er erhält $%d.", SpielerName(killerid), SpielerName(playerid), Spieler[playerid][ContractGeld]);
    SendFamilyMessage(4, BLAU, string);
    GameTextForPlayer(playerid, "~r~Auftragskill", 3000, 1);
    Spieler[playerid][ContractGeld] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    CurrentHit[killerid] = 999;
    }
    }
    }
    }
    }
    return 1;
    }

  • Ändere den Teil zu:
    if(Spieler[playerid][Wanteds] > 0 && IsACop(killerid))
    {
    SetPlayerHealth(playerid,100);
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 2;
    GivePlayerCash(playerid, -5000);
    GivePlayerCash(killerid, 5000);
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_GRAD2, "");
    format(string, sizeof(string), "Du bist nun für %d Minuten im Knast. (Nicht Gestellt, -5000$)",Spieler[playerid][Wanteds]*4);
    SendClientMessage(playerid, BLAU, string);
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    //SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    //SetPlayerInterior(playerid, 6);
    //ClearChat(playerid);
    // PlayerPlaySound(killerid, 1139, 0.0, 0.0, 0.0);
    // SendClientMessage(killerid,0xFFFFFF00,"Du hast den gesuchten Verbrecher geschnappt!");
    // SendClientMessage(killerid,0xFFFFFF00,"Dir wird eine Prämie für den nächsten Zahltag gutgeschrieben.");
    // SendClientMessage(playerid,0xFFFFFF00,"Du wurdest von der Polizei gestoppt!");
    //der eingespäter wird nicht als killerid sndern als playerid definirt
    SetPlayerWantedLevel(playerid,0);
    //SpawnPlayer(playerid);
    //format(string, sizeof(string), "%s hat den Verbrecher %s geschnappt!", GetName(killerid), GetName(playerid));
    //SendFamilyMessage(1, BLAU, string);
    //SendFamilyMessage(2, BLAU, string);
    }


    Und füge bei OnPlayerSpawn ein:
    if(Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    }


    Poste nächstes mal bitte den Quellcode im PWN/Code Tag.

  • muss auf kollegen warten dan teste ich das


    public OnPlayerSpawn(playerid)
    {
    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,1000);
    GivePlayerWeapon(playerid,29,1000);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SetPlayerSkin(playerid, Spieler[playerid][Skin]);
    SendClientMessage(GetChased[playerid], ROT, "Mit /pbexit kans du das match verlassen");
    Spieler[playerid][KH] = 0;
    }
    else if(Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    else if(Spieler[playerid][JailType] == 1 && Spieler[playerid][Jailed] == 1)
    {
    Spieler[playerid][JailType] = 1;
    Spieler[playerid][Jailed] = 1;
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    new jstr[500];
    ResetPlayerWeapons(playerid);
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    if(Spieler[playerid][JailType] == 2 || Spieler[playerid][JailType] == 2 || Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    ResetPlayerWeapons(playerid);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    else if(Spieler[playerid][JailType] == 3 && Spieler[playerid][Jailed] == 1)
    {
    Spieler[playerid][JailType] = 3;
    SetPlayerInterior(playerid, 1);
    Spieler[playerid][Jailed] = 1;
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Prison.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Prison", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    }
    else
    {
    if(Icon)
    {
    SetPlayerMapIcon(playerid, 0, mx, my, mz, 20, 0, MAPICON_GLOBAL);
    }
    if(Spieler[playerid][Premium] >0 && Spieler[playerid][GunLic] == 1)GivePlayerWeapon(playerid, 24, 50);//noch da? xD
    StopAudioStreamForPlayer(playerid);
    TextDrawShowForPlayer(playerid,lebensanzeige[playerid]);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SetPlayerColor(playerid, COLOR_WHITE);
    if(Spieler[playerid][Team] == 7)
    {
    SetPlayerColor(playerid, GANGCHAT);
    }
    TaxiCallTime[playerid] = 0; TaxiAccepted[playerid] = 0;
    pFS[playerid] = 0; ErsteHilfeID[playerid] = 999;
    Cuffed[playerid] = 0;
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetTimerEx("UpdateWanteds", 5000, 1, "i", playerid);
    SetPlayerSkin(playerid, Spieler[playerid][Skin]);
    UnfreezePlayer(playerid);
    if(Spieler[playerid][KH] == 1)
    {
    SetPlayerPos(playerid, 1160.4548,-1323.7255,31.4977-10);
    SetPlayerCameraPos(playerid,1219.6372,-1345.0306,13.4939);
    SetPlayerCameraLookAt(playerid,1160.4548,-1323.7255,31.4977-10);
    FreezePlayer(playerid);
    khtimer[playerid] = SetTimerEx("Hosp", 18000, 0, "%i", playerid);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Arzt: Du bist nun 30 Sekunden im Krankenhaus. Bitte gehe nicht Offline.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Arzt: Wenn du Offline gehst, wird die Zeit wieder auf 30 Sekunden gesetzt!");
    GivePlayerCash(playerid, -600);
    Spieler[playerid][KH] = 0;
    }
    else if(Spieler[playerid][Spawnchange] == 0)
    {
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    }
    else if(Spieler[playerid][Spawnchange] == 1)//Haus
    {
    new id = Spieler[playerid][Houseid];
    if(id == 999)
    {
    Spieler[playerid][Spawnchange] = 0;
    SendClientMessage(playerid, BLAU, "Da du kein Haus besitzt, wurde dein Spawn auf \"Hauptbahnhof LS\" gesetzt.");
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    return 1;
    }
    else
    {
    SetPlayerPos(playerid,House[id][ExitX],House[id][ExitY],House[id][ExitZ]);
    SetPlayerInterior(playerid, House[id][IntID]);
    SetPlayerVirtualWorld(playerid, House[id][VW]);
    }
    }
    /*else if(Spieler[playerid][JailType] == 1 && Spieler[playerid][Jailed] == 1)
    {
    {
    Spieler[playerid][JailType] = 1;
    Spieler[playerid][Jailed] = 1;
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    new jstr[500];
    ResetPlayerWeapons(playerid);
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    if(Spieler[playerid][JailType] == 2 || Spieler[playerid][JailType] == 2 || Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    ResetPlayerWeapons(playerid);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    else if(Spieler[playerid][JailType] == 3 && Spieler[playerid][Jailed] == 1)
    {
    Spieler[playerid][JailType] = 3;
    SetPlayerInterior(playerid, 1);
    Spieler[playerid][Jailed] = 1;
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Prison.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter http://www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Prison", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    }*/
    else if(Spieler[playerid][Spawnchange] == 2)
    {
    if(Spieler[playerid][Team] == 0)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    Spieler[playerid][Spawnchange] = 0;
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    }
    else if(Spieler[playerid][Team] == 1)
    {
    SetPlayerColor(playerid, TEAM_BLUE_COLOR);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 219.0475,69.5715,1005.0391);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 2)
    {
    SetPlayerColor(playerid, COLOR_DARKBLUE);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 211.0776,184.8059,1003.0313);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 3)
    {
    SetPlayerColor(playerid, 0xFF80FF96);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1152.9703,-1324.0155,13.9652);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 4)
    {
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1900.8679,664.5999,10.8203);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 5)
    {
    SetPlayerColor(playerid, ORANGE);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1571.6544,-1330.3082,16.4844);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 6)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2813.4739,-1420.1172,16.2500);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 7)
    {
    SetPlayerColor(playerid, grün);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 557.7264,-1267.2856,16.7518);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 8)
    {
    SetPlayerColor(playerid, rmm);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1030.0466,-1432.5565,13.5546);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 9)
    {
    SetPlayerColor(playerid, 0xFF80FF96);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 689.0106,-1265.3777,13.5589);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 10)
    {
    SetPlayerColor(playerid, COLOR_PURPLE);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1996.3877,-1121.6752,26.7893);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 11)
    {
    SetPlayerColor(playerid, gs);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 2522.6238,-1678.6715,15.4970);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 12)
    {
    SetPlayerColor(playerid, 0x6C132196);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 2131.4612,1447.3704,10.8203);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 13)
    {
    SetPlayerColor(playerid, ROT);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1788.0490,-1124.3311,24.0859);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 14)
    {
    SetPlayerColor(playerid, arm);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 218.6769,1854.8187,12.9103);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 15)
    {
    SetPlayerPos(playerid,1800.4078,-1305.5071,27.6719);
    SetPlayerFacingAngle(playerid,51.5939);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 16)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid, -2140.6372,-247.7452,36.5156);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 17)
    {
    SetPlayerColor(playerid,0x00FFFF96);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1751.8983,-2054.6108,14.0468);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 18)
    {
    SetPlayerColor(playerid,gelb);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1751.8983,-2054.6108,14.0468);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 19)
    {
    SetPlayerColor(playerid,braun);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1654.3676,-1657.3077,22.5156);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    SetPlayerInterior(playerid,0);
    }
    else if(Spieler[playerid][Team] == 20)
    {
    SetPlayerColor(playerid, 0x40808096);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, 2601.4529,-2170.5239,-0.2188);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 21)
    {
    SetPlayerColor(playerid, 0x674F00FF);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, 2601.4529,-2170.5239,-0.2188);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    }
    if(Spieler[playerid][Tut] == 1)
    {
    FreezePlayer(playerid);
    SetPlayerPos(playerid,1415.3909,-1626.0238,54.6056-20);
    SetPlayerCameraPos(playerid,1418.9369,-1629.8965,54.6056);
    SetPlayerCameraLookAt(playerid,1521.6505,-1706.4551,13.5469);
    ShowPlayerDialog(playerid, DIALOG_TUT1, DIALOG_STYLE_MSGBOX, "Infos zur Person", "Der Account wurde erfolgreich Angelegt.\nBitte fülle nun einige Informationen über deine Person aus.\n \nBist du Männlich oder Weiblich?", "Männlich", "Weiblich");
    }
    if(Spieler[playerid][JailTime]>0)
    {
    SetPlayerInterior(playerid, 1);
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 3;
    ResetPlayerWeapons(playerid);
    Spieler[playerid][pInt] = 1;
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    }
    }
    return 1;
    }

  • meinst du denn?



    C:\Users\steven\Desktop\Script 1\Script 1\gamemodes\LDL13kmy.pwn(9773) : warning 204: symbol is assigned a value that is never used: "tmp"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 12160 bytes
    Code size: 1056600 bytes
    Data size: 4893408 bytes
    Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements: 5978552 bytes


    1 Warning.



    tmp ist nur als warning weil ich das nie benutzt habe

  • dan seiht das so aus:




    public OnPlayerSpawn(playerid)
    {
    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,1000);
    GivePlayerWeapon(playerid,29,1000);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SetPlayerSkin(playerid, Spieler[playerid][Skin]);
    SendClientMessage(GetChased[playerid], ROT, "Mit /pbexit kans du das match verlassen");
    Spieler[playerid][KH] = 0;
    }
    else if(Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    if(Spieler[playerid][JailType] == 1 && Spieler[playerid][Jailed] == 1)
    {
    Spieler[playerid][JailType] = 1;
    Spieler[playerid][Jailed] = 1;
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    new jstr[500];
    ResetPlayerWeapons(playerid);
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    else if(Spieler[playerid][JailType] == 2 || Spieler[playerid][JailType] == 2 || Spieler[playerid][Jailed] == 1)
    {
    SetPlayerPos(playerid, 264.0500,77.8530,1001.0391);
    SetPlayerInterior(playerid, 6);
    ResetPlayerWeapons(playerid);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Knast.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Knastinfo", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    else if(Spieler[playerid][JailType] == 3 && Spieler[playerid][Jailed] == 1)
    {
    Spieler[playerid][JailType] = 3;
    SetPlayerInterior(playerid, 1);
    Spieler[playerid][Jailed] = 1;
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    new jstr[500];
    format(jstr, sizeof(jstr), "Da Du ausgeloggt hast bist du wieder für %d Minuten im Prison.\n \nBitte schaue im Forum nach ob Beschwerde\ngegen dich existieren.\nEin anderer Grund für die Strafe könnte auch Offline Flucht sein.\n \nDas Regelwerk mit den aktuellen Regeln findest du unter www.Selfmade-Recordz.tk", Spieler[playerid][JailTime]);
    ShowPlayerDialog(playerid, DIALOG_JAIL, DIALOG_STYLE_MSGBOX, "{810302}Prison", jstr, "Schließen", "");
    SetTimerEx("Unjail",Spieler[playerid][Wanteds]*4*1000*60,false,"i",playerid);
    }
    }
    else
    {
    if(Icon)
    {
    SetPlayerMapIcon(playerid, 0, mx, my, mz, 20, 0, MAPICON_GLOBAL);
    }
    if(Spieler[playerid][Premium] >0 && Spieler[playerid][GunLic] == 1)GivePlayerWeapon(playerid, 24, 50);//noch da? xD
    StopAudioStreamForPlayer(playerid);
    TextDrawShowForPlayer(playerid,lebensanzeige[playerid]);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SetPlayerColor(playerid, COLOR_WHITE);
    if(Spieler[playerid][Team] == 7)
    {
    SetPlayerColor(playerid, GANGCHAT);
    }
    TaxiCallTime[playerid] = 0; TaxiAccepted[playerid] = 0;
    pFS[playerid] = 0; ErsteHilfeID[playerid] = 999;
    Cuffed[playerid] = 0;
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetTimerEx("UpdateWanteds", 5000, 1, "i", playerid);
    SetPlayerSkin(playerid, Spieler[playerid][Skin]);
    UnfreezePlayer(playerid);
    if(Spieler[playerid][KH] == 1)
    {
    SetPlayerPos(playerid, 1160.4548,-1323.7255,31.4977-10);
    SetPlayerCameraPos(playerid,1219.6372,-1345.0306,13.4939);
    SetPlayerCameraLookAt(playerid,1160.4548,-1323.7255,31.4977-10);
    FreezePlayer(playerid);
    khtimer[playerid] = SetTimerEx("Hosp", 18000, 0, "%i", playerid);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Arzt: Du bist nun 30 Sekunden im Krankenhaus. Bitte gehe nicht Offline.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Arzt: Wenn du Offline gehst, wird die Zeit wieder auf 30 Sekunden gesetzt!");
    GivePlayerCash(playerid, -600);
    Spieler[playerid][KH] = 0;
    }
    else if(Spieler[playerid][Spawnchange] == 0)
    {
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    }
    else if(Spieler[playerid][Spawnchange] == 1)//Haus
    {
    new id = Spieler[playerid][Houseid];
    if(id == 999)
    {
    Spieler[playerid][Spawnchange] = 0;
    SendClientMessage(playerid, BLAU, "Da du kein Haus besitzt, wurde dein Spawn auf \"Hauptbahnhof LS\" gesetzt.");
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    return 1;
    }
    else
    {
    SetPlayerPos(playerid,House[id][ExitX],House[id][ExitY],House[id][ExitZ]);
    SetPlayerInterior(playerid, House[id][IntID]);
    SetPlayerVirtualWorld(playerid, House[id][VW]);
    }
    }
    else if(Spieler[playerid][Spawnchange] == 2)
    {
    if(Spieler[playerid][Team] == 0)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    Spieler[playerid][Spawnchange] = 0;
    SetPlayerPos(playerid, 1763.2972,-1895.9244,13.5622);
    }
    else if(Spieler[playerid][Team] == 1)
    {
    SetPlayerColor(playerid, TEAM_BLUE_COLOR);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 219.0475,69.5715,1005.0391);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 2)
    {
    SetPlayerColor(playerid, COLOR_DARKBLUE);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 211.0776,184.8059,1003.0313);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 3)
    {
    SetPlayerColor(playerid, 0xFF80FF96);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1152.9703,-1324.0155,13.9652);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 4)
    {
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1900.8679,664.5999,10.8203);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 5)
    {
    SetPlayerColor(playerid, ORANGE);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1571.6544,-1330.3082,16.4844);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 6)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2813.4739,-1420.1172,16.2500);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 7)
    {
    SetPlayerColor(playerid, grün);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 557.7264,-1267.2856,16.7518);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 8)
    {
    SetPlayerColor(playerid, rmm);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1030.0466,-1432.5565,13.5546);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 9)
    {
    SetPlayerColor(playerid, 0xFF80FF96);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 689.0106,-1265.3777,13.5589);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 10)
    {
    SetPlayerColor(playerid, COLOR_PURPLE);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1996.3877,-1121.6752,26.7893);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 11)
    {
    SetPlayerColor(playerid, gs);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 2522.6238,-1678.6715,15.4970);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 12)
    {
    SetPlayerColor(playerid, 0x6C132196);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 2131.4612,1447.3704,10.8203);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 13)
    {
    SetPlayerColor(playerid, ROT);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1788.0490,-1124.3311,24.0859);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 14)
    {
    SetPlayerColor(playerid, arm);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 218.6769,1854.8187,12.9103);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 15)
    {
    SetPlayerPos(playerid,1800.4078,-1305.5071,27.6719);
    SetPlayerFacingAngle(playerid,51.5939);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 16)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid, -2140.6372,-247.7452,36.5156);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 17)
    {
    SetPlayerColor(playerid,0x00FFFF96);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1751.8983,-2054.6108,14.0468);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 18)
    {
    SetPlayerColor(playerid,gelb);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1751.8983,-2054.6108,14.0468);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 19)
    {
    SetPlayerColor(playerid,braun);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1654.3676,-1657.3077,22.5156);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    SetPlayerInterior(playerid,0);
    }
    else if(Spieler[playerid][Team] == 20)
    {
    SetPlayerColor(playerid, 0x40808096);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, 2601.4529,-2170.5239,-0.2188);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    else if(Spieler[playerid][Team] == 21)
    {
    SetPlayerColor(playerid, 0x674F00FF);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, 2601.4529,-2170.5239,-0.2188);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    }
    }
    if(Spieler[playerid][Tut] == 1)
    {
    FreezePlayer(playerid);
    SetPlayerPos(playerid,1415.3909,-1626.0238,54.6056-20);
    SetPlayerCameraPos(playerid,1418.9369,-1629.8965,54.6056);
    SetPlayerCameraLookAt(playerid,1521.6505,-1706.4551,13.5469);
    ShowPlayerDialog(playerid, DIALOG_TUT1, DIALOG_STYLE_MSGBOX, "Infos zur Person", "Der Account wurde erfolgreich Angelegt.\nBitte fülle nun einige Informationen über deine Person aus.\n \nBist du Männlich oder Weiblich?", "Männlich", "Weiblich");
    }
    if(Spieler[playerid][JailTime]>0)
    {
    SetPlayerInterior(playerid, 1);
    Spieler[playerid][Jailed] = 1;
    Spieler[playerid][JailType] = 3;
    ResetPlayerWeapons(playerid);
    Spieler[playerid][pInt] = 1;
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    }
    }
    return 1;
    }