Beiträge von LordHit

    Nach dem einloggen crasht das game ich zeig euch mal alles wie von fraktions system ausfgebaut ist.



    enum fcinfo
    {
    v_t_ID,
    carvehid,
    Float:fcx,
    Float:fcy,
    Float:fcz,
    Float:fca,
    fcc1,
    fcc2,
    Frakid,
    open,
    Opark,
    Paintjob,
    spoiler,
    Wheels,
    Nitro,
    Roof,
    Hood,
    Sideskirt,
    Lamps,
    Exhaust,
    Stereo,
    Hydraulics,
    VentRight,
    VentLeft,
    FrontBumper,
    RearBumper,
    }
    new FCInfo[MAX_CARS][fcinfo];
    new Frakcar[MAX_CARS];



    mysql_pquery(handle, "SELECT * FROM `fracvehicles`;", "LFC", "");





    stock CFC(model,Float:fx,Float:fy,Float:fz,Float:fa,farbe1,farbe2,frak) //erstelle fraktions autos
    {
    //new SDatei[64];
    //new m = model;
    for(new carid=1;carid<MAX_CARS;carid++)
    {
    new query[256];
    mysql_format(handle, query, sizeof(query), "INSERT INTO fracvehicles (ID, Model, X, Y, Z, A, Farbe1, Farbe2, Fraktion) VALUES ('%d','%d','%f','%f','%f','%d','%d','%d','%d')",carid,model,fx,fy,fz,fa,farbe1,farbe2,frak);


    //Das Query wird abgesendet und die playerid an OnUserRegister übergeben
    mysql_pquery(handle, query, "CFC1", "d", carid);
    Frakcar[carid] = CreateVehicle(model,fx,fy,fz,fa,farbe1,farbe2,-1);


    FCInfo[carid][carvehid] = model;
    FCInfo[carid][fcx] = fx;
    FCInfo[carid][fcy] = fy;
    FCInfo[carid][fcz] = fz;
    FCInfo[carid][fca] = fa;
    FCInfo[carid][Frakid] = frak;
    FCInfo[carid][fcc1] = farbe1;
    FCInfo[carid][fcc2] = farbe2;
    FCInfo[carid][open] = 0;
    FCInfo[carid][Opark] = 0;


    /* dini_IntSet(SDatei,"Opark",FCInfo[carid][Opark]);
    dini_IntSet(SDatei,"Paintjob",FCInfo[carid][Paintjob]);
    dini_IntSet(SDatei,"spoiler",GetVehicleComponentInSlot(Frakcar[carid],0));
    dini_IntSet(SDatei,"Hood",GetVehicleComponentInSlot(Frakcar[carid],1));
    dini_IntSet(SDatei,"Roof",GetVehicleComponentInSlot(Frakcar[carid],2));
    dini_IntSet(SDatei,"Sideskirt",GetVehicleComponentInSlot(Frakcar[carid],3));
    dini_IntSet(SDatei,"Lamps",GetVehicleComponentInSlot(Frakcar[carid],4));
    dini_IntSet(SDatei,"Nitro",GetVehicleComponentInSlot(Frakcar[carid],5));
    dini_IntSet(SDatei,"Exhaust",GetVehicleComponentInSlot(Frakcar[carid],6));
    dini_IntSet(SDatei,"Wheels",GetVehicleComponentInSlot(Frakcar[carid],7));
    dini_IntSet(SDatei,"Stereo",GetVehicleComponentInSlot(Frakcar[carid],8));
    dini_IntSet(SDatei,"Hydraulics",GetVehicleComponentInSlot(Frakcar[carid],9));
    dini_IntSet(SDatei,"FrontBumper",GetVehicleComponentInSlot(Frakcar[carid],10));
    dini_IntSet(SDatei,"RearBumper",GetVehicleComponentInSlot(Frakcar[carid],11));
    dini_IntSet(SDatei,"VentRight",GetVehicleComponentInSlot(Frakcar[carid],12));
    dini_IntSet(SDatei,"VentLeft",GetVehicleComponentInSlot(Frakcar[carid],13));*/
    return 1;
    }
    return 1;
    }






    public LFC() //lade fraktions autos
    {
    new rows;
    cache_get_row_count(rows);
    for(new autoid; autoid < rows; autoid++) {
    cache_get_value_name_int(autoid, "ID",FCInfo[autoid][v_t_ID]);
    cache_get_value_name_int(autoid, "Model", FCInfo[autoid][carvehid]/*das dürfte auch nicht ganz stimmen, oder?*/);
    cache_get_value_name_float(autoid, "X", FCInfo[autoid][fcx]);
    cache_get_value_name_float(autoid, "Y", FCInfo[autoid][fcy]);
    cache_get_value_name_float(autoid, "Z", FCInfo[autoid][fcz]);
    cache_get_value_name_float(autoid, "A", FCInfo[autoid][fca]);
    cache_get_value_name_int(autoid, "Fraktion", FCInfo[autoid][Frakid]);
    cache_get_value_name_int(autoid, "Farbe1", FCInfo[autoid][fcc1]);
    cache_get_value_name_int(autoid, "Farbe2", FCInfo[autoid][fcc2]);
    cache_get_value_name_int(autoid, "Opark", FCInfo[autoid][Opark]);
    cache_get_value_name_int(autoid, "Paintjob", FCInfo[autoid][Paintjob]);
    cache_get_value_name_int(autoid, "spoiler", FCInfo[autoid][spoiler]);
    cache_get_value_name_int(autoid, "Wheels", FCInfo[autoid][Wheels]);
    cache_get_value_name_int(autoid, "Nitro", FCInfo[autoid][Nitro]);
    cache_get_value_name_int(autoid, "Roof", FCInfo[autoid][Roof]);
    cache_get_value_name_int(autoid, "Hood", FCInfo[autoid][Hood]);
    cache_get_value_name_int(autoid, "Sideskirt", FCInfo[autoid][Sideskirt]);
    cache_get_value_name_int(autoid, "Lamps", FCInfo[autoid][Lamps]);
    cache_get_value_name_int(autoid, "Exhaust", FCInfo[autoid][Exhaust]);
    cache_get_value_name_int(autoid, "Stereo", FCInfo[autoid][Stereo]);
    cache_get_value_name_int(autoid, "Hydraulics", FCInfo[autoid][Hydraulics]);
    cache_get_value_name_int(autoid, "VentRight", FCInfo[autoid][VentRight]);
    cache_get_value_name_int(autoid, "VentLeft", FCInfo[autoid][VentLeft]);
    cache_get_value_name_int(autoid, "FrontBumper", FCInfo[autoid][FrontBumper]);
    cache_get_value_name_int(autoid, "RearBumper", FCInfo[autoid][RearBumper]);
    FCInfo[autoid][open] = 1;
    Frakcar[autoid] = CreateVehicle(FCInfo[autoid][carvehid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
    //ab hier errors
    if(FCInfo[autoid][Paintjob] >= 0) //zeile 49702
    {
    ChangeVehiclePaintjob(FCInfo[autoid][v_t_ID],FCInfo[autoid][Paintjob]);
    }
    if(FCInfo[autoid][spoiler] >= 999){ AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][spoiler]); }
    if(FCInfo[autoid][Hood] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hood]); }
    if(FCInfo[autoid][Roof] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Roof]); }
    if(FCInfo[autoid][Sideskirt] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Sideskirt]); }
    if(FCInfo[autoid][Lamps] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Lamps]); }
    if(FCInfo[autoid][Nitro] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Nitro]); }
    if(FCInfo[autoid][Exhaust] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Exhaust]); }
    if(FCInfo[autoid][Wheels] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Wheels]); }
    if(FCInfo[autoid][Stereo] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Stereo]); }
    if(FCInfo[autoid][Hydraulics] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hydraulics]); }
    if(FCInfo[autoid][FrontBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][FrontBumper]); }
    if(FCInfo[autoid][RearBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][RearBumper]); }
    if(FCInfo[autoid][VentRight] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentRight]); }
    if(FCInfo[autoid][VentLeft] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentLeft]); }
    if(FCInfo[autoid][Frakid] == 1) {SetVehicleNumberPlate(Frakcar[autoid], "LSPD"); }
    if(FCInfo[autoid][Frakid] == 2) {SetVehicleNumberPlate(Frakcar[autoid], "FBI"); }
    if(FCInfo[autoid][Frakid] == 3) {SetVehicleNumberPlate(Frakcar[autoid], "Medic"); }
    if(FCInfo[autoid][Frakid] == 4) {SetVehicleNumberPlate(Frakcar[autoid], "Unknown"); }
    if(FCInfo[autoid][Frakid] == 5) {SetVehicleNumberPlate(Frakcar[autoid], "News"); }
    if(FCInfo[autoid][Frakid] == 6) {SetVehicleNumberPlate(Frakcar[autoid], "Penner"); }
    if(FCInfo[autoid][Frakid] == 7) {SetVehicleNumberPlate(Frakcar[autoid], "Oamt"); }
    if(FCInfo[autoid][Frakid] == 8) {SetVehicleNumberPlate(Frakcar[autoid], "Russen"); }
    if(FCInfo[autoid][Frakid] == 9) {SetVehicleNumberPlate(Frakcar[autoid], "Yakuza"); }
    if(FCInfo[autoid][Frakid] == 10) {SetVehicleNumberPlate(Frakcar[autoid], "Ballas"); }
    if(FCInfo[autoid][Frakid] == 11) {SetVehicleNumberPlate(Frakcar[autoid], "Grove"); }
    if(FCInfo[autoid][Frakid] == 12) {SetVehicleNumberPlate(Frakcar[autoid], "LCM"); }
    if(FCInfo[autoid][Frakid] == 13) {SetVehicleNumberPlate(Frakcar[autoid], "Feuerwehr"); }
    if(FCInfo[autoid][Frakid] == 14) {SetVehicleNumberPlate(Frakcar[autoid], "Army"); }
    if(FCInfo[autoid][Frakid] == 15) {SetVehicleNumberPlate(Frakcar[autoid], "SWAT"); }
    if(FCInfo[autoid][Frakid] == 16) {SetVehicleNumberPlate(Frakcar[autoid], "Biker"); }
    if(FCInfo[autoid][Frakid] == 17) {SetVehicleNumberPlate(Frakcar[autoid], "Aztecas"); }
    if(FCInfo[autoid][Frakid] == 18) {SetVehicleNumberPlate(Frakcar[autoid], "Vagos"); }
    if(FCInfo[autoid][Frakid] == 19) {SetVehicleNumberPlate(Frakcar[autoid], "WestCoast"); }
    if(FCInfo[autoid][Frakid] == 20) {SetVehicleNumberPlate(Frakcar[autoid], "2F2F"); }
    if(FCInfo[autoid][Frakid] == 21) {SetVehicleNumberPlate(Frakcar[autoid], "Al quaida"); }
    }
    return 1;
    }


    Erstellen speichern alles funktioniert nur beim laden hat er Probleme ich schreibe euch kurz wie ich das im Script vermerkt habe.


    Benutze MySQL R41-4



    public OnGameModeInit()
    {


    for(new l=0;l<MAX_CARS;l++)
    {
    new query[2000];
    mysql_format(handle, query, sizeof(query), "SELECT * FROM fracvehicles WHERE ID = '%e'", l);
    mysql_pquery(handle, query, "LFC", "d", l);


    //LFC(l);
    }



    stock LFC(autoid)
    {
    new rows;
    cache_get_row_count(rows);
    cache_get_value_name_int(0, "ID", autoid);
    cache_get_value_name_int(0, "Model", FCInfo[autoid][carvehid]);
    cache_get_value_name_float(0, "X", FCInfo[autoid][fcx]);
    cache_get_value_name_float(0, "Y", FCInfo[autoid][fcy]);
    cache_get_value_name_float(0, "Z", FCInfo[autoid][fcz]);
    cache_get_value_name_float(0, "A", FCInfo[autoid][fca]);
    cache_get_value_name_int(0, "Fraktion", FCInfo[autoid][Frakid]);
    cache_get_value_name_int(0, "Farbe1", FCInfo[autoid][fcc1]);
    cache_get_value_name_int(0, "Farbe2", FCInfo[autoid][fcc2]);



    cache_get_value_name_int(0, "Opark", FCInfo[autoid][Opark]);
    cache_get_value_name_int(0, "Paintjob", FCInfo[autoid][Paintjob]);



    cache_get_value_name_int(0, "spoiler", FCInfo[autoid][spoiler]);
    cache_get_value_name_int(0, "Wheels", FCInfo[autoid][Wheels]);
    cache_get_value_name_int(0, "Nitro", FCInfo[autoid][Nitro]);



    cache_get_value_name_int(0, "Roof", FCInfo[autoid][Roof]);
    cache_get_value_name_int(0, "Hood", FCInfo[autoid][Hood]);
    cache_get_value_name_int(0, "Sideskirt", FCInfo[autoid][Sideskirt]);
    cache_get_value_name_int(0, "Lamps", FCInfo[autoid][Lamps]);
    cache_get_value_name_int(0, "Exhaust", FCInfo[autoid][Exhaust]);


    cache_get_value_name_int(0, "Stereo", FCInfo[autoid][Stereo]);
    cache_get_value_name_int(0, "Hydraulics", FCInfo[autoid][Hydraulics]);
    cache_get_value_name_int(0, "VentRight", FCInfo[autoid][VentRight]);


    cache_get_value_name_int(0, "VentLeft", FCInfo[autoid][VentLeft]);
    cache_get_value_name_int(0, "FrontBumper", FCInfo[autoid][FrontBumper]);
    cache_get_value_name_int(0, "RearBumper", FCInfo[autoid][RearBumper]);
    FCInfo[autoid][open] = 1;
    Frakcar[autoid] = CreateVehicle(FCInfo[autoid][carvehid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
    //ab hier errors
    if(FCInfo[autoid][Paintjob] >= 0) //zeile 49702
    {
    ChangeVehiclePaintjob(FCInfo[autoid],FCInfo[autoid][Paintjob]);
    }
    if(FCInfo[autoid][spoiler] >= 999){ AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][spoiler]); }
    if(FCInfo[autoid][Hood] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hood]); }
    if(FCInfo[autoid][Roof] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Roof]); }
    if(FCInfo[autoid][Sideskirt] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Sideskirt]); }
    if(FCInfo[autoid][Lamps] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Lamps]); }
    if(FCInfo[autoid][Nitro] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Nitro]); }
    if(FCInfo[autoid][Exhaust] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Exhaust]); }
    if(FCInfo[autoid][Wheels] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Wheels]); }
    if(FCInfo[autoid][Stereo] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Stereo]); }
    if(FCInfo[autoid][Hydraulics] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][Hydraulics]); }
    if(FCInfo[autoid][FrontBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][FrontBumper]); }
    if(FCInfo[autoid][RearBumper] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][RearBumper]); }
    if(FCInfo[autoid][VentRight] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentRight]); }
    if(FCInfo[autoid][VentLeft] >= 999) { AddVehicleComponent(Frakcar[autoid],FCInfo[autoid][VentLeft]); }
    if(FCInfo[autoid][Frakid] == 1) {SetVehicleNumberPlate(Frakcar[autoid], "LSPD"); }
    if(FCInfo[autoid][Frakid] == 2) {SetVehicleNumberPlate(Frakcar[autoid], "FBI"); }
    if(FCInfo[autoid][Frakid] == 3) {SetVehicleNumberPlate(Frakcar[autoid], "Medic"); }
    if(FCInfo[autoid][Frakid] == 4) {SetVehicleNumberPlate(Frakcar[autoid], "Unknown"); }
    if(FCInfo[autoid][Frakid] == 5) {SetVehicleNumberPlate(Frakcar[autoid], "News"); }
    if(FCInfo[autoid][Frakid] == 6) {SetVehicleNumberPlate(Frakcar[autoid], "Penner"); }
    if(FCInfo[autoid][Frakid] == 7) {SetVehicleNumberPlate(Frakcar[autoid], "Oamt"); }
    if(FCInfo[autoid][Frakid] == 8) {SetVehicleNumberPlate(Frakcar[autoid], "Russen"); }
    if(FCInfo[autoid][Frakid] == 9) {SetVehicleNumberPlate(Frakcar[autoid], "Yakuza"); }
    if(FCInfo[autoid][Frakid] == 10) {SetVehicleNumberPlate(Frakcar[autoid], "Ballas"); }
    if(FCInfo[autoid][Frakid] == 11) {SetVehicleNumberPlate(Frakcar[autoid], "Grove"); }
    if(FCInfo[autoid][Frakid] == 12) {SetVehicleNumberPlate(Frakcar[autoid], "LCM"); }
    if(FCInfo[autoid][Frakid] == 13) {SetVehicleNumberPlate(Frakcar[autoid], "Feuerwehr"); }
    if(FCInfo[autoid][Frakid] == 14) {SetVehicleNumberPlate(Frakcar[autoid], "Army"); }
    if(FCInfo[autoid][Frakid] == 15) {SetVehicleNumberPlate(Frakcar[autoid], "SWAT"); }
    if(FCInfo[autoid][Frakid] == 16) {SetVehicleNumberPlate(Frakcar[autoid], "Biker"); }
    if(FCInfo[autoid][Frakid] == 17) {SetVehicleNumberPlate(Frakcar[autoid], "Aztecas"); }
    if(FCInfo[autoid][Frakid] == 18) {SetVehicleNumberPlate(Frakcar[autoid], "Vagos"); }
    if(FCInfo[autoid][Frakid] == 19) {SetVehicleNumberPlate(Frakcar[autoid], "WestCoast"); }
    if(FCInfo[autoid][Frakid] == 20) {SetVehicleNumberPlate(Frakcar[autoid], "2F2F"); }
    if(FCInfo[autoid][Frakid] == 21) {SetVehicleNumberPlate(Frakcar[autoid], "Al quaida"); }
    return 1;
    }




    Wenn mir jemand helfen könnte wäre mega nett danke



    Mit Freundlichen Grüßen


    Steven

    passirt sogar bei befehle die es nicht gibt /hallo




    kann mir vielicht jemand helfen per anydesk oder teamvewer oder ts3?


    Lag an ocmd:


    if(GetPVarInt(playerid,"cmduse") > 2)return SendClientMessage(playerid,0x33CCFFAA,"Du darfst pro Sekunde nur 2 Befehle nutzen!");
    SetPVarInt(playerid,"cmduse",GetPVarInt(playerid,"cmduse") + 1);

    ocmd:veh(playerid,params[])
    {
    new Float:vehx,Float:vehy,Float:vehz;
    new vehid,cc1,cc2,string[128];
    if(Spieler[playerid][Admin] < 1)return SendClientMessage(playerid,ROT,"Du bist kein Admin!");
    if(sscanf(params,"iii",vehid,cc1,cc2))return SendClientMessage(playerid, rot,"Benutzung: /veh [Vehicle ID] [Farbe 1] [Farbe 2]");
    GetPlayerPos(playerid,vehx,vehy,vehz);
    -----------> new carid = CreateVehicle(vehid,vehx,vehy,vehz,3,cc1,cc2,-1);
    -------------> SetVehicleNumberPlate(carid,"~>Admin<~");
    PutPlayerInVehicle(playerid, carid, 0);
    format(string,sizeof(string),"[AdmCmd] Du hast ein Admincar gespawnt! (FahrzeugID :%d)",GetVehicleModel(GetPlayerVehicleID(playerid)));
    SendClientMessage(playerid,rot,string);
    return 1;


    }


    das funktioniert so bei mir

    wenn spieler disconectet speichert der spieler sich nicht hier ist einer quell code:




    public OnPlayerDisconnect(playerid, reason)
    {


    //Interview
    SavePlayer(playerid);
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999;
    //
    SetTimer("HideDiscInfo", TIME_to_HIDE, false);
    KillTimer(khtimer[playerid]);
    KillTimer(pilottimer[playerid]);
    DestroyVehicle(startbmx[playerid]);
    DestroyVehicle(SupCar[playerid]);
    OnPlayerCarUpdate(playerid);
    KillTimer(jetpack_timer[playerid]);
    KillTimer(armor_timer[playerid]);
    KillTimer(health_timer[playerid]);
    KillTimer(check_timer[playerid]);
    Spieler[playerid][Eingeloggt] = 0;
    if(GotHit[playerid] > 0)
    {
    if(GetChased[playerid] < 999)
    {
    if(IsPlayerConnected(GetChased[playerid]))
    {
    SendClientMessage(GetChased[playerid], ROT, "Auftragsperson hat den Server verlassen.");
    }
    }
    }
    SavePlayer(playerid);
    //hzaus system
    TextDrawDestroy(LockTD0[playerid]);
    TextDrawDestroy(LockTD1[playerid]);
    TextDrawDestroy(LockTD2[playerid]);
    TextDrawDestroy(LockTD3[playerid]);
    TextDrawDestroy(LockTD4[playerid]);
    TextDrawDestroy(LockTD5[playerid]);
    TextDrawDestroy(LockTD6[playerid]);
    TextDrawDestroy(hUp[playerid]);
    TextDrawDestroy(Phone0[playerid]);
    TextDrawDestroy(Phone1[playerid]);
    TextDrawDestroy(Phone2[playerid]);
    TextDrawDestroy(Phone3[playerid]);
    TextDrawDestroy(Phone4[playerid]);
    TextDrawDestroy(Phone5[playerid]);
    new
    pFile[35];


    format(pFile, 35, FILE_FOR_PLAYER, GetName(playerid));
    new
    INI:UserFile = INI_Open(pFile);
    INI_WriteFloat(UserFile, "pSpawnX", Spieler[playerid][SpawnX]);
    INI_WriteFloat(UserFile, "pSpawnY", Spieler[playerid][SpawnY]);
    INI_WriteFloat(UserFile, "pSpawnZ", Spieler[playerid][SpawnZ]);
    INI_WriteInt(UserFile, "pSpawn", Spieler[playerid][Spawn]);
    INI_WriteInt(UserFile, "pSpawnInt", Spieler[playerid][SpawnInt]);
    INI_WriteInt(UserFile, "pVW", Spieler[playerid][SpawnVW]);
    INI_WriteInt(UserFile, "RobHouse", Spieler[playerid][RobHouse]);
    INI_WriteInt(UserFile, "HouseID", Spieler[playerid][Houseid]);
    INI_WriteInt(UserFile, "Bill", Spieler[playerid][Min]);
    INI_Close(UserFile);
    //ende
    SavePlayer(playerid);
    return 1;
    }


    aber wenn ich /saveme machen schon quell code:




    ocmd:saveme(playerid, params[])
    {
    if(IsPlayerConnected(playerid))
    {
    OnPlayerCarUpdagrade(playerid);
    SavePlayer(playerid);
    //SpielerSpeichern(playerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Der Account wurde gespeichert");
    return 1;
    }
    return 1;
    }






    Danke im voraus



    Mit Freundlischen Grüßen



    riesensika

    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;
    }

    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

    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;
    }

    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;
    }