Beiträge von JohnyDream

    Hallo,
    Ich möchte es so machen das Weibliche Spieler Einen Weiblichen skin am Spawn bekommen also beim Reallife Server und die Männlichen einen Männlichen das Login/Register System hab ich fertig und dort wird abgefragt ob der Spieler Männlich oder Weiblich ist. Wie kann ich nun den Skin setzen denn mit:
    public OnPlayerConnect(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pGeschlecht] == 0)
    {
    SetPlayerSkin(playerid,1);
    }
    else
    {
    SetPlayerSkin(playerid,10);
    }
    }
    }
    hat es nicht Funktioniert.

    case DIALOG_LOGIN1:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    new pwlength = strlen(inputtext);
    if(pwlength > 0)
    {
    new pw[50];
    format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
    if(strcmp(inputtext, pw) == 0)
    {
    pInfo[playerid][geschlecht] = dini_Int(path, "geschlecht");
    pInfo[playerid][alter] = dini_Int(path, "alter");
    pInfo[playerid][logged] = 1;
    SpawnPlayer(playerid);
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_WRONGPW, DIALOG_STYLE_MSGBOX, "Login", "Falsches Passwort!", "Wiederholen", "Abbrechen");
    }
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_NOPW2, DIALOG_STYLE_MSGBOX, "Login", "Du musst dein Passwort eingeben!", "Einloggen", "Abbrechen");
    }
    }
    }

    C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(529) : warning 202: number of arguments does not match definition
    C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(632) : error 002: only a single statement (or expression) can follow each "case"
    C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(632) : warning 215: expression has no effect
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.
    /* ///////////////////////////////////////////////////////////////////////////////////////
    /////// Dieser Script wurde von Crazy_Brother und JohnyLetsPlay Editiert! ///////
    /////// Dieser Script gehört ganz alleine ///////
    /////// dem Server [HRL]HashtagRealLife!! ///////
    /////// Die Benutzung unbefugter wird Strafrechtlich ///////
    /////// Verfolgt !! ///////
    /////// Credits gehen an die Entwickler. ///////
    ///////////////////////////////////////////////////////////////////////////////////////







    .________________________________[HRL]HashtagRealLife___________________________.
    |_______________________________________________________________________________|
    | |
    | .----------------. .----------------. .----------------. |
    | | .--------------. || .--------------. || .--------------. | |
    | | | _ _ | || | _____ | || | _ | | |
    | | | | | | | | || | | _ \ | || | | | | | |
    | | | | |__| | | || | | |_| | | || | | | | | |
    | | | | __ | | || | | __ / | || | | | | | |
    | | | | | | | | || | | | \ \ | || | | |____ | | |
    | | | |_| |_| | || | |_| \_\ | || | |______| | | |
    | | | | || | | || | | | |
    | | '--------------' || '--------------' || '--------------' | |
    | '----------------' '----------------' '----------------' | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    |_______________________________________________________________________________|
    |______________________________[HRL]HashtagRealLife_____________________________|



    Dieses Script wurde Editiert von:
    Crazy_Brother und JohnyLetsPlay


    ||||| Version 99999999999999.9 |||||
    ||||| © 2011-2015 |||||



    ***********************************************
    ***** http://Johny-ist-der.GEILSTE.de/ *****
    ***********************************************


    ________________________________________________________________________________________________________
    ________________________________________________________________________________________________________
    */




    //Includes
    #include <a_samp>
    #include <streamer>
    #include <ocmd>
    #include <sscanf>
    #include <dini>
    #include <MD5>



    //Dialoge
    #define DIALOG_REGISTER1 0
    #define DIALOG_REGISTER2 1
    #define DIALOG_REGISTER3 2
    #define DIALOG_REGISTER4 3
    #define DIALOG_LOGIN1 4
    #define DIALOG_NOPW1 5
    #define DIALOG_NOPW2 6
    #define DIALOG_WRONGPW 7






    //Farben
    #define GRUEN 0x37A400FF
    #define ROT 0xFF0005FF
    #define GELB 0xFFFF00FF
    #define BLAU 0x0A00FFFF
    #define PINK 0xFF00C3FF
    #define LILA 0xB400FFFF
    #define SCHWARZ 0x0F0000FF
    #define WEIS 0xFEFEFEFF
    #define ORANGE 0xFF6400FF
    #define TUERKIS 0x00FFFAFF



    //DCMD



    //Defines




    // news




    //Enums
    enum Info
    {
    sex, //0= männlich 1=weiblich
    age, // alter
    logged, // Ob der Spieler connected ist
    }



    //news
    new pInfo[MAX_PLAYERS][Info];



    //forwards
    forward OnPlayerRegister(playerid, password[]);




    main()
    {
    print("\n----------------------------------");
    print(" [HRL]HashtagRealLife");
    print("----------------------------------\n");
    }



    public OnGameModeInit()
    {
    SetGameModeText("[HRL]HashtagRealLife");
    AddPlayerClass(0, 369.6736,-2045.5717,7.6719,359.4333, 0, 0, 0, 0, 0, 0);



    //Pickups


    //NoobspawnPickups
    CreateDynamicPickup(1247,1,369.8690,-2042.5496,7.6719,0); //roller
    CreateDynamicPickup(1247,1,372.1254,-2044.2802,7.6719,0); //einweisung
    CreateDynamicPickup(1247,1,367.4543,-2044.4039,7.6719,0); //serverinfo


    //3DText


    //Noobspawn3DText
    Create3DTextLabel("Mit /roller kanst du dir\nein Neulingsfahrzeug spawnen!",PINK,369.8690,-2042.5496,7.6719,10.0,0);
    Create3DTextLabel("Mit /einweisung kanst du\ndir ein Admin zur hilfe holen!",PINK,372.1254,-2044.2802,7.6719,10.0,0);
    Create3DTextLabel("Mit /serverinfo siehst du Infos über den Server!",PINK,367.4543,-2044.4039,7.6719,10.0,0);


    //Objekte


    //Noobspawn (by Johny)
    CreateDynamicObject(2935, 390.67072, -2017.88794, 8.22203, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.66052, -2018.69678, 11.11556, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.65067, -2019.48816, 14.00723, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.65912, -2015.59338, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.64316, -2020.29407, 16.90061, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.64493, -2021.80945, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.62814, -2021.11658, 19.80088, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.61758, -2021.93567, 22.69443, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.62683, -2018.82288, 22.69443, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60861, -2022.71680, 25.59423, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.61169, -2025.03748, 22.69443, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.64487, -2024.92749, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.62473, -2028.04944, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.59460, -2031.15625, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60962, -2030.44666, 8.22322, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.61270, -2031.95349, 14.01748, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60098, -2032.73328, 16.92595, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60910, -2033.54211, 19.82520, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60910, -2033.54211, 19.82520, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.59982, -2034.34753, 22.72896, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.60703, -2031.22888, 22.72896, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.59918, -2028.16956, 22.72896, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.58752, -2035.13843, 25.62148, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.58206, -2037.45947, 22.72896, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(2935, 390.59024, -2034.25928, 11.12197, 0.00000, 0.00000, -90.12005);
    CreateDynamicObject(1281, 376.35812, -2044.27307, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.37061, -2040.09631, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.28421, -2035.69336, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.29193, -2031.36597, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.17755, -2026.92725, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1255, 372.48398, -2048.08325, 7.40270, 0.00000, 0.00000, 118.97999);
    CreateDynamicObject(1255, 369.56705, -2047.98657, 7.40270, 0.00000, 0.00000, 118.97999);
    CreateDynamicObject(1255, 366.47229, -2048.06055, 7.40270, 0.00000, 0.00000, 118.97999);
    CreateDynamicObject(1281, 362.77582, -2044.10022, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 362.81448, -2039.92603, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 362.96646, -2022.44067, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 362.95715, -2018.17957, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.30298, -2022.37903, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(1281, 376.35724, -2017.89929, 7.61960, 0.00000, 0.00000, -1.44000);
    CreateDynamicObject(3461, 387.19812, -2031.96118, 11.15733, -0.60000, -23.82001, 0.00000);
    CreateDynamicObject(3461, 387.32675, -2019.50134, 11.15733, -0.60000, -23.82001, 0.00000);
    CreateDynamicObject(3461, 387.26779, -2022.71045, 22.72953, -0.60000, -23.82001, 0.00000);
    CreateDynamicObject(3461, 387.32269, -2035.16211, 22.72953, -0.60000, -23.82001, 0.00000);
    CreateDynamicObject(3461, 393.95181, -2035.13696, 22.72953, -0.60000, -23.82001, -174.83997);
    CreateDynamicObject(3461, 394.01260, -2022.78992, 22.72953, -0.60000, -23.82001, -174.83997);
    CreateDynamicObject(3461, 394.01855, -2019.47327, 11.09521, -0.60000, -23.82001, -174.83997);
    CreateDynamicObject(3461, 393.95490, -2031.99329, 11.09521, -0.60000, -23.82001, -174.83997);
    CreateDynamicObject(8397, 369.54935, -2002.48254, 16.84021, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(3461, 374.49994, -1995.91211, 8.82867, -0.60000, -23.82001, -87.95997);
    CreateDynamicObject(3461, 364.56259, -1995.92993, 8.82867, -0.60000, -23.82001, -87.95997);
    CreateDynamicObject(3461, 364.55280, -2009.06921, 8.82867, -0.60000, -23.82001, 93.84001);
    CreateDynamicObject(3461, 374.53442, -2009.09485, 8.82867, -0.60000, -23.82001, 93.84001);
    CreateDynamicObject(1224, 386.25980, -2079.74976, 7.40814, 0.00000, 0.00000, -16.38000);
    CreateDynamicObject(1224, 378.31308, -2075.92163, 7.40814, 0.00000, 0.00000, 22.14000);
    CreateDynamicObject(1224, 391.73706, -2073.26636, 7.40814, 0.00000, 0.00000, 44.28001);
    CreateDynamicObject(3615, 403.31610, -2076.89380, 8.72406, 360.27847, -0.54000, -0.21841);
    CreateDynamicObject(13816, 365.17892, -2070.13574, 4.52228, 0.00000, 0.00000, 0.06000);
    CreateDynamicObject(2395, 373.65802, -2049.27954, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 369.95883, -2049.29346, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 366.23096, -2049.30371, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 374.26096, -2052.57593, 6.82512, 0.00000, 0.00000, -268.80032);
    CreateDynamicObject(2395, 374.34991, -2056.25586, 6.82512, 0.00000, 0.00000, -268.80032);
    CreateDynamicObject(2395, 374.43024, -2059.96240, 6.82512, 0.00000, 0.00000, -268.80032);
    CreateDynamicObject(2395, 362.49854, -2049.32495, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 358.83270, -2049.34082, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 355.11188, -2049.35767, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(2395, 352.73355, -2049.37402, 6.82512, 0.00000, 0.00000, -179.75977);
    CreateDynamicObject(971, 383.92801, -2059.60449, 6.70920, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.19040, -2049.40649, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.50366, -2051.66504, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.74933, -2054.19873, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.97531, -2056.71143, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.98773, -2058.97314, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 377.78244, -2049.38379, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 375.38116, -2049.36328, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 386.69305, -2049.40991, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.55432, -2042.45947, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.41577, -2031.06824, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(1215, 380.46988, -2017.30078, 7.37507, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(627, 374.65802, -2048.32104, 8.62513, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(627, 380.77219, -2025.46716, 8.62513, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(627, 380.64621, -2036.75964, 8.62513, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(627, 365.05206, -2048.09106, 8.62513, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(643, 362.58087, -2027.98596, 7.30582, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(643, 362.48135, -2032.91211, 7.30582, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(3515, 390.59003, -2041.42163, 7.71969, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(9833, 390.11469, -2041.40063, 11.71160, 0.00000, 0.00000, 0.00000);
    CreateDynamicObject(2395, 374.17999, -2057.22461, 6.82512, 0.00000, 0.00000, -448.73920);
    CreateDynamicObject(2395, 374.09607, -2053.51587, 6.82512, 0.00000, 0.00000, -448.73920);
    CreateDynamicObject(2395, 373.99673, -2049.91479, 6.82512, 0.00000, 0.00000, -448.73920);
    CreateDynamicObject(2395, 370.88327, -2049.49390, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 367.17657, -2049.51733, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 363.46524, -2049.53442, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 359.77069, -2049.55151, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 356.08453, -2049.56787, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 352.37076, -2049.57495, 6.82512, 0.00000, 0.00000, -359.75916);
    CreateDynamicObject(2395, 349.97632, -2049.57324, 6.82512, 0.00000, 0.00000, -359.75916);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {


    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    SetPlayerPos(playerid,1380.3833,-2.5368,1000.9191);
    TogglePlayerControllable(playerid,0);
    SetPlayerCameraLookAt(playerid, 154.25195, -2006.77258, 33.36935-10);
    SetPlayerCameraPos(playerid,151.1263,-1873.5780,38.7770);
    new pname[MAX_PLAYER_NAME], path[200];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(path, sizeof(path), "/spieler/%s.ini", pname);


    if(!dini_Exists(path))
    {
    // Wenn der Spieler nicht Registriert ist
    ShowPlayerDialog(playerid, DIALOG_REGISTER1, DIALOG_STYLE_INPUT, "Register", "Your Password:", "OK", "Cancel");
    }
    else
    {
    //Wenn der Spieler Registriert ist
    ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password", "OK", "Cancel");
    }
    SendClientMessage(playerid,GRUEN,"-------------------------------------------------");
    SendClientMessage(playerid,GRUEN,"SERVER: Herzlich Willkommen auf unserem Server :)");
    SendClientMessage(playerid,GRUEN,"SERVER: Euer [HRL] ServerTeam :)");
    SendClientMessage(playerid,GRUEN,"-------------------------------------------------");



    //Objekte Removen (Removecodes)


    //NoobSpawn (by Johny)
    RemoveBuildingForPlayer(playerid, 6463, 389.7734, -2028.4688, 19.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 6464, 379.0625, -2065.0234, 11.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2028.5000, 32.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2021.6406, 29.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2017.4531, 24.0313, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2017.4297, 16.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2021.6328, 10.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2028.5156, 8.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3984, 10.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2039.6406, 16.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2039.6563, 24.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3828, 29.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1529, 399.0078, -2066.8828, 11.2344, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 360.4531, -2086.6719, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 6283, 379.0625, -2065.0234, 11.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2055.1016, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2061.9531, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2042.4922, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2030.3359, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2016.7500, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2049.3516, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2039.6406, 16.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2039.6563, 24.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 6298, 389.7734, -2028.4688, 19.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 6461, 389.7734, -2028.5000, 20.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5000, 32.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2021.6406, 29.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2017.4531, 24.0313, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2017.4297, 16.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2021.6328, 10.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5156, 8.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2035.3984, 10.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2035.3828, 29.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1215, 400.3906, -2086.4219, 7.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 4240, 496.4141, -2012.1953, -15.5469, 0.25);
    RemoveBuildingForPlayer(playerid, 4450, 496.4141, -2012.1953, -15.5469, 0.25);
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    new pname[MAX_PLAYER_NAME], path[200];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(path, sizeof(path), "/spieler/%s.ini", pname);


    dini_IntSet(path, "sex", pInfo[playerid][sex]);
    dini_IntSet(path, "age", pInfo[playerid][age]);


    pInfo[playerid][logged] = 0;
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerPos(playerid,369.6736,-2045.5717,7.6719);
    SetPlayerFacingAngle(playerid,359.4333);
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    SendClientMessage(playerid,GRUEN,"Du bist Tot!");
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    //Komandos
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }



    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new pname[MAX_PLAYER_NAME], path[200];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(path, sizeof(path), "/spieler/%s.ini", pname);


    switch(dialogid)
    {
    case DIALOG_REGISTER1:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    new pwlength = strlen(inputtext);
    if(pwlength > 0)
    {


    dini_Create(path); //i
    dini_Set(path, "password", inputtext);
    ShowPlayerDialog(playerid, DIALOG_REGISTER2, DIALOG_STYLE_LIST, "male\r\female", "OK", "Cancel");
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_NOPW1, DIALOG_STYLE_MSGBOX, "Register", "You have to enter a password!", "OK", "Cancel");
    }
    }
    }
    case DIALOG_REGISTER2:
    {
    if(!response)
    {
    dini_Remove(path);
    Kick(playerid);
    }
    else
    {
    dini_IntSet(path, "sex", listitem);
    ShowPlayerDialog(playerid, DIALOG_REGISTER3, DIALOG_STYLE_INPUT, "Register", "Your Age?", "OK", "Cancel");
    }
    }
    case DIALOG_REGISTER3:
    {
    if(!response)
    {
    dini_Remove(path);
    Kick(playerid);
    }
    else
    {
    dini_Set(path, "age", inputtext);
    ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_MSGBOX, "Register", "Your Register is complete!", "OK", "OK");
    }
    }
    case DIALOG_REGISTER4:
    {
    pInfo[playerid][sex] = dini_Int(path, "sex");
    pInfo[playerid][age] = dini_Int(path, "age");
    pInfo[playerid][logged] = 1;
    }
    case DIALOG_LOGIN1:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    new pwlength = strlen(inputtext);
    if(pwlength > 0)
    {
    new pw[200];
    format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
    if(strcmp(inputtext, pw) == 0)
    {
    pInfo[playerid][sex] = dini_Int(path, "sex");
    pInfo[playerid][age] = dini_Int(path, "age");
    pInfo[playerid][logged] = 1;
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_WRONGPW, DIALOG_STYLE_MSGBOX, "Login", "Wrong Password!", "OK", "Cancel");
    }
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_NOPW2, DIALOG_STYLE_MSGBOX, "Login", "SYou have to enter a password!", "OK", "Cancel");
    }
    }
    }
    case DIALOG_NOPW1:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_REGISTER1, DIALOG_STYLE_INPUT, "Register", "Your Password", "OK", "Cancel");
    }
    }
    case DIALOG_NOPW2:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password:", "OK", "Abbrechen");
    }
    }
    case DIALOG_WRONGPW:
    {
    if(!response)
    {
    Kick(playerid);
    }
    else
    {
    ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password:", "OK", "Cancel");
    }
    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

    Function OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Bus_LS", true))
    {
    Attach3DTextLabelToPlayer(TextBus, playerid, 0.0,0.0,0.0);
    PlayerInfo[playerid][pCarLic] = 1;//Hier muss der Führerschein gegeben werden! (Anpassen!)
    PutPlayerInVehicle(playerid, car_Bus_LS, 0);//car_BulletLS = das Fahrzeug was wir oben erstellt haben, 0 = der Fahrersitz
    SetPlayerSkin(playerid, 144); // your skin choice for NPC
    }
    //GetPlayerName(playerid, botname, sizeof(botname));
    //if(!strcmp(botname, "wave_wave", true))
    //{
    //Attach3DTextLabelToPlayer(TextWave, playerid, 0.0,0.0,0.0);
    //SetPlayerSkin(playerid, 144); // your skin choice for NPC
    //}
    /*GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "BusLV", true))
    {
    Attach3DTextLabelToPlayer(TextBus2, playerid, 0.0,0.0,0.0);
    PlayerInfo[playerid][pCarLic] = 1;//Hier muss der Führerschein gegeben werden! (Anpassen!)
    PutPlayerInVehicle(playerid, car_BusLV, 0);//car_BulletLS = das Fahrzeug was wir oben erstellt haben, 0 = der Fahrersitz
    }*/
    return 1;
    }
    Bekomme ich mal ne antwort :)

    Function OnPlayerDeath(playerid, killerid, reason)
    {
    GW_OnPlayerDeath(playerid, killerid, reason);
    M_OnPlayerDeath(playerid,killerid,reason);
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1275,1, pX, pY, pZ);
    SetTimerEx("tot", 90000, false, "d", playerid);
    new Float:x, Float:y, Float:z, name[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Float:x, Float:y, Float:z);
    GetPlayerName(playerid, name, sizeof(name));
    format(stringz, sizeof(stringz), "%s", name);
    DeathText[playerid] = Create3DTextLabel(stringz,0xFFFFFFAA, Float:x, Float:y, Float:z, 10.0, 0);
    new string[256];
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pInvWeapon2] = 0;
    PlayerInfo[playerid][pInvAmmo2] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    FrakMatsHolding[playerid] = 0;
    //Death
    if(PlayerInfo[playerid][pKrankenkasse] == 0)
    {
    GivePlayerMoney(playerid, -1500);
    SetPlayerHealth(playerid,150);
    FraktionsKasse[4] += 1500;
    }
    if(PlayerInfo[playerid][pKrankenkasse] == 1)
    {
    FraktionsKasse[4] += 1500;
    }
    //Death
    new playercash;
    new victimteam;
    new killerteam;
    /*if(!IsACop(killerid))
    {
    WantedPoints[killerid]+=2;
    SetPlayerCriminal(killerid,255,"Vorsätzlicher Mord");
    }*/
    if(PlayerInfo[playerid][pLevel] > 2 && KHSperre[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pCPP] == 0 && PlayerInfo[playerid][pwJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    }
    if(gPlayerUsingLoopingAnim[playerid])
    {
    gPlayerUsingLoopingAnim[playerid] = 0;
    TextDrawHideForPlayer(playerid,txtAnimHelper);
    }
    if(PlayerOnFire[playerid])
    {
    SendClientMessage(playerid, 0xff000000, "Du bist verbrannt!"); StopPlayerBurning(playerid);
    }
    if(BlindFold[playerid] == 1)
    {
    BlindFold[playerid] = 0;
    }
    if(PlayerInfo[playerid][pMauled] == 1)
    {
    PlayerInfo[playerid][pMauled] = 0;
    }
    InCargo[playerid] = 0; InLevi[playerid] = 0; InEnfo[playerid] = 0;
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }
    if(TakeOverTime[playerid] > 0)
    {
    for(new idd; idd<GangZones_Index;idd++)
    {
    if(idd == TakeOver[playerid])
    {
    GangZoneStopFlashForAll(GangZones[idd][gzID]);
    }
    }
    new job, job2;
    if(PlayerInfo[playerid][pMember] >0)
    {
    job = PlayerInfo[playerid][pMember];
    }
    else if(PlayerInfo[playerid][pLeader] >0)
    {
    job = PlayerInfo[playerid][pLeader];
    }
    format(ALLSTRING, sizeof(ALLSTRING), "Der Angreifer ist gestorben, Angriff fehlgeschlagen.");
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] >0)
    {
    job2 = PlayerInfo[i][pMember];
    }
    else if(PlayerInfo[i][pLeader] >0)
    {
    job2 = PlayerInfo[i][pLeader];
    }
    if(job2 == job)
    {
    SendClientMessage(i, COLOR_RED, string);
    }
    }
    format(string, sizeof(string), "Dieses Gebiet bleibt in eurem Besitz, der Angreifer ist gestorben!");
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] >0)
    {
    job2 = PlayerInfo[i][pMember];
    }
    else if(PlayerInfo[i][pLeader] >0)
    {
    job2 = PlayerInfo[i][pLeader];
    }
    if(GangZones[TakeOver[playerid]][owner] == job2)
    {
    SendClientMessage(i, COLOR_GREEN, string);
    }
    }
    TakeOver[playerid] = 255;
    TakeOverTime[playerid] = 0;
    }
    //=======================
    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    if(killerid != 255)
    if(reason == 38)
    {
    new kstring[128];
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
    ABroadCast(COLOR_YELLOW,string,1);
    printf("%s", kstring);
    }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = PlayerInfo[playerid][pHeadValue];
    FraktionsKasse[7] += fkasse;
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(gTeam[killerid] != 2 && PlayerInfo[killerid][pMember] != 7) { WantedPoints[killerid] += 2; } //+ 2 wanted points
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pDeaths]++;
    }
    }
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
    {
    slice = 0;
    }
    if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
    {
    slice = 0;
    }
    if (playercash > 0)
    {
    GivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    GivePlayerMoney(killerid, slice);
    WantedPoints[killerid] ++; //+ 2 wanted points
    WantedPoints[killerid] ++;
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason != 49 && PlayerInfo[killerid][pJailed] == 0 && !IsPlayerInArea(killerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    if(IsPlayerInArea(playerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    GameTextForPlayer(playerid, "~r~Gangfightdeath", 5000, 3);
    PlayerInfo[playerid][pGDeaths]++;
    GameTextForPlayer(killerid, "~g~Gangfightkill", 5000, 3);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    PlayerInfo[killerid][pGKills]++;
    GivePlayerMoney(killerid, 1500);
    GivePlayerMoney(playerid, -1500);
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }

    Ja dort hatte ich keine Antwort bekommen und ich kenne mich hier nicht wirklich aus aber ist ja auch egal.
    Ich benutze ein Script von einem Freund Das ich mit ihm bearbeite ich weis nicht wo er es her hat es ist ein Pawno script logischerweise und Joa.

    Hallo liebe Breadfishcomunity,
    Was bei meinem Server Falsch läuft:
    Beim Respawnen meist nach dem Tod crasht bei dem jeweiligen der gerade respawnt das Spiel.
    Manchmal fliegt man einfach so vom Server da steht dann man wurde gebannt kann aber nach 2 versuchen wieder drauf joinen und der Ban kommt übrigenz von ganz alleine !
    Wenn der server ne Zeit lang läuft funkionieren auf einmal so befehle wie /navi oder /cpp (checkpointprison) nichtemhr
    BITTE HELFT MIR :(

    Function OnPlayerDeath(playerid, killerid, reason)
    {
    GW_OnPlayerDeath(playerid, killerid, reason);
    M_OnPlayerDeath(playerid,killerid,reason);
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1275,1, pX, pY, pZ);
    SetTimerEx("tot", 90000, false, "d", playerid);
    new Float:x, Float:y, Float:z, name[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Float:x, Float:y, Float:z);
    GetPlayerName(playerid, name, sizeof(name));
    format(stringz, sizeof(stringz), "%s", name);
    DeathText[playerid] = Create3DTextLabel(stringz,0xFFFFFFAA, Float:x, Float:y, Float:z, 10.0, 0);
    new string[256];
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pInvWeapon2] = 0;
    PlayerInfo[playerid][pInvAmmo2] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    FrakMatsHolding[playerid] = 0;
    //Death
    if(PlayerInfo[playerid][pKrankenkasse] == 0)
    {
    GivePlayerMoney(playerid, -1500);
    SetPlayerHealth(playerid,150);
    FraktionsKasse[4] += 1500;
    }
    if(PlayerInfo[playerid][pKrankenkasse] == 1)
    {
    FraktionsKasse[4] += 1500;
    }
    //Death
    new playercash;
    new victimteam;
    new killerteam;
    /*if(!IsACop(killerid))
    {
    WantedPoints[killerid]+=2;
    SetPlayerCriminal(killerid,255,"Vorsätzlicher Mord");
    }*/
    if(PlayerInfo[playerid][pLevel] > 2 && KHSperre[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pCPP] == 0 && PlayerInfo[playerid][pwJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    }
    if(gPlayerUsingLoopingAnim[playerid])
    {
    gPlayerUsingLoopingAnim[playerid] = 0;
    TextDrawHideForPlayer(playerid,txtAnimHelper);
    }
    if(PlayerOnFire[playerid])
    {
    SendClientMessage(playerid, 0xff000000, "Du bist verbrannt!"); StopPlayerBurning(playerid);
    }
    if(BlindFold[playerid] == 1)
    {
    BlindFold[playerid] = 0;
    }
    if(PlayerInfo[playerid][pMauled] == 1)
    {
    PlayerInfo[playerid][pMauled] = 0;
    }
    InCargo[playerid] = 0; InLevi[playerid] = 0; InEnfo[playerid] = 0;
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }
    if(TakeOverTime[playerid] > 0)
    {
    for(new idd; idd<GangZones_Index;idd++)
    {
    if(idd == TakeOver[playerid])
    {
    GangZoneStopFlashForAll(GangZones[idd][gzID]);
    }
    }
    new job, job2;
    if(PlayerInfo[playerid][pMember] >0)
    {
    job = PlayerInfo[playerid][pMember];
    }
    else if(PlayerInfo[playerid][pLeader] >0)
    {
    job = PlayerInfo[playerid][pLeader];
    }
    format(ALLSTRING, sizeof(ALLSTRING), "Der Angreifer ist gestorben, Angriff fehlgeschlagen.");
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] >0)
    {
    job2 = PlayerInfo[i][pMember];
    }
    else if(PlayerInfo[i][pLeader] >0)
    {
    job2 = PlayerInfo[i][pLeader];
    }
    if(job2 == job)
    {
    SendClientMessage(i, COLOR_RED, string);
    }
    }
    format(string, sizeof(string), "Dieses Gebiet bleibt in eurem Besitz, der Angreifer ist gestorben!");
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] >0)
    {
    job2 = PlayerInfo[i][pMember];
    }
    else if(PlayerInfo[i][pLeader] >0)
    {
    job2 = PlayerInfo[i][pLeader];
    }
    if(GangZones[TakeOver[playerid]][owner] == job2)
    {
    SendClientMessage(i, COLOR_GREEN, string);
    }
    }
    TakeOver[playerid] = 255;
    TakeOverTime[playerid] = 0;
    }
    //=======================
    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    if(killerid != 255)
    if(reason == 38)
    {
    new kstring[128];
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
    ABroadCast(COLOR_YELLOW,string,1);
    printf("%s", kstring);
    }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = PlayerInfo[playerid][pHeadValue];
    FraktionsKasse[7] += fkasse;
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(gTeam[killerid] != 2 && PlayerInfo[killerid][pMember] != 7) { WantedPoints[killerid] += 2; } //+ 2 wanted points
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pDeaths]++;
    }
    }
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
    {
    slice = 0;
    }
    if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
    {
    slice = 0;
    }
    if (playercash > 0)
    {
    GivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    GivePlayerMoney(killerid, slice);
    WantedPoints[killerid] ++; //+ 2 wanted points
    WantedPoints[killerid] ++;
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason != 49 && PlayerInfo[killerid][pJailed] == 0 && !IsPlayerInArea(killerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    if(IsPlayerInArea(playerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    GameTextForPlayer(playerid, "~r~Gangfightdeath", 5000, 3);
    PlayerInfo[playerid][pGDeaths]++;
    GameTextForPlayer(killerid, "~g~Gangfightkill", 5000, 3);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    PlayerInfo[killerid][pGKills]++;
    GivePlayerMoney(killerid, 1500);
    GivePlayerMoney(playerid, -1500);
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }

    Fast Jedesmal wenn ich oder ein anderer User Stirbt bekommt man einen Crash also der der gestorben ist bekommt einen Crash und das auch eigentlich nur beim Respawnen wo könnte der Fehler liegen also es liegt auf jedenfall am script aber wo soll ich nach dem fehler suchen ?