Beiträge von Narushi

    Guten Tag Community,


    Ich veröffentlich nun meine 1. Map, und es ist eine Base in Las Venturas. Es ist keine
    bestimmte Base, aber ich persönlich würde sie als Autobahnpolizei oder als
    Ordnungsamt-Base nutzen. O-Amt wäre auch sinnvoll, da die Verwahrstelle meistens
    in Las Venturas ist ..


    Schonmal im vorraus: Ich finde auch, dass sie sehr leer ist. Ich bin kein so guter Mapper
    und mit fiel nichts ein, was ich einfügen könnte..


    Objekte: 162
    Mappingzeit: ca. 60 Minuten
    Pastebin : http://pastebin.com/ewDcLC0B
    Also hier sind nun die Screens dazu:


    Spoiler anzeigen
    //EDIT : Pastebin eingefügt!


    //EDIT: PasteBin eingefügt
    //EDIT: Neues Bild vom Heli-Landeplatz! + Neues Pastebin mit Rocky's "RemoveObjectForPlayer"

    Ja mach einfach, dass das geld für eine bestimmte zeit weg ist (payday's)


    dann iwo, wenn er das geld zurückbekommt.



    GivePlayerMoney(playerid,kapital*1,03);
    //1 = 100%


    //EDIT: Ach ne sorry, geht ja nicht mit Nachkommastellen...
    Dann ist das was ch geschrieben habe völliger blödsinn sry ;)

    Ich zeigs dir mal ;P



    enum SpielerDaten
    {
    pLevel,
    pGeld,
    pLeben,
    pArmor,
    pKills,
    pDeaths,
    pLogins
    };
    new Spieler[MAX_PLAYERS][SpielerDaten];



    stock SavePlayer(playerid)
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    if(dini_Exists(Player))
    {
    dini_IntSet(Player,"Level",Spieler[playerid][pLevel]);
    dini_IntSet(Player,"Bargeld",Spieler[playerid][pGeld]);
    dini_IntSet(Player,"Leben",Spieler[playerid][pLeben]);
    dini_IntSet(Player,"Armor",Spieler[playerid][pArmor]);
    dini_IntSet(Player,"Tode",Spieler[playerid][pDeaths]);
    dini_IntSet(Player,"Kills",Spieler[playerid][pKills]);
    dini_IntSet(Player,"Logins",Spieler[playerid][pLogins]);
    }
    }



    stock LoadPlayer(playerid)
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    if(dini_Exists(Player))
    {
    Spieler[playerid][pLevel] = dini_Int(Player,"Level");
    Spieler[playerid][pGeld] = dini_Int(Player,"Bargeld");
    Spieler[playerid][pLeben] = dini_Int(Player,"Leben");
    Spieler[playerid][pArmor] = dini_Int(Player,"Armor");
    Spieler[playerid][pKills] = dini_Int(Player,"Kills");
    Spieler[playerid][pDeaths] = dini_Int(Player,"Tode");
    Spieler[playerid][pLogins] = dini_Int(Player,"Logins");
    }
    return 1;
    }


    dann iwo Spieler speicher/laden:



    public OnPlayerConnect(playerid)
    {
    LoadPlayer(playerid);
    return 1;
    }
    public OnPlayerDisconnect(playerid)
    {
    SavePlayer(playerid);
    return 1;
    }

    Hey habe ein Problem..
    ich wollte mir einen Stats Befehl erstellen, aber jetzt wo ich einige Sachen in ein Dialog getan habe
    ist der string nichtmehr lang genug ^^ .. new string[255];


    was kann ich jetzt machen?


    .::Der Befehl::.
    ocmd:stats(playerid,params[])
    {
    new string[255],status[128], geschlecht[10], frakname[20], jobname[20];
    switch(PlayerInfo[playerid][pSex])
    {
    case 0:{geschlecht="Anonym";}
    case 1:{geschlecht="Männlich";}
    case 2:{geschlecht="Weiblich";}
    }
    strcat(string,"{335CD6}[=========={FFFFFF}[ Dein Status ]{335CD6}==========]");
    format(string, sizeof(string),"%s{335CD6}\nGeschlecht: {FFFFFF}%s",string,geschlecht);
    switch(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader])
    {
    case 0:{frakname="Zivilist";}
    case 1:{frakname="LSPD";}
    case 2:{frakname="FBI";}
    case 3:{frakname="Army";}
    case 4:{frakname="Medic";}
    }
    format(string, sizeof(string),"%s{335CD6}\nFraktion: {FFFFFF}%s - Rang: %i",string,frakname,PlayerInfo[playerid][pRank]);
    switch(PlayerInfo[playerid][pJob])
    {
    case 0:{jobname="Arbeitslos";}
    }
    format(string, sizeof(string),"%s{335CD6}\nNebenjob: {FFFFFF}%s",string,jobname);
    format(string, sizeof(string),"%s{335CD6}\nGeld: {FFFFFF}%i$",string,GetPlayerMoney(playerid));
    format(string, sizeof(string),"%s{335CD6}\nLevel: {FFFFFF}%i",string,GetPlayerScore(playerid));
    format(string, sizeof(string),"%s{335CD6}\nMorde: {FFFFFF}%i",string,PlayerInfo[playerid][pKills]);
    format(string, sizeof(string),"%s{335CD6}\nGestorben: {FFFFFF}%i",string,PlayerInfo[playerid][pDeaths]);
    format(string, sizeof(string),"%s{335CD6}\nVerbrechen: {FFFFFF}%i",string,PlayerInfo[playerid][pCrimes]);
    format(string, sizeof(string),"%s{335CD6}\nAdminlevel: {FFFFFF}%i",string,PlayerInfo[playerid][pAdmin]);
    format(string, sizeof(string),"%s{335CD6}\nSupportlevel: {FFFFFF}%i",string,PlayerInfo[playerid][pSupporter]);
    format(status, sizeof(status),"%s",GetName(playerid));
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,status,string,"OK","Abbrechen");
    return 1;
    }

    Hey Leute,


    ich habe ein Register Login System gemacht und es ging immer wunderbar..
    Doch dann scripte ich ein bisschen und auf einmal wenn ich mich einlogge::
    "Du hast ein Falsches Passwort eingegeben!"
    Woran liegt das? Ich habe alles was ich machte mit "undo" entfernt aber es geht immernoch nicht.


    Bsp:
    /Spieler/Narushi.txd


    passwort=test123


    Ingame mach ich per Copy/Paste passwort rein und das steht da trotzdem, was mache ich
    falsch? ..



    stock Register(playerid,key[])
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    dini_Create(Player);
    dini_Set(Player,"Passwort",key);
    dini_IntSet(Player,"Fraktion",0);
    printf("Passwort: %s", key);
    SendClientMessage(playerid,0xFEFEFEFE,"Du hast dich erfolgreich registriert.");
    GivePlayerMoney(playerid,10000);
    SetPlayerSkin(playerid,2);
    return 1;
    }


    stock Login(playerid, key[])
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    if(strcmp(key,dini_Get(Player,"Passwort"),false))
    {
    SendClientMessage(playerid,0xFEFEFEFE,"Du hast dich eingeloggt!");
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du hast ein Falsches Passwort eingegeben!");
    Kick(playerid);
    return 1;
    }
    if(BanInfo[playerid][Banned] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist vom Server gebannt und kannst dich daher nicht einloggen");
    Kick(playerid);
    }
    LoadPlayer(playerid);
    return 1;
    }

    meinst du das vllt so? ^^


    public OnPlayerDeath(playerid, killerid, reason)
    {
    new frakname1[15], frakname2[15];
    PlayerInfo[playerid][pDeaths] += 1;
    PlayerInfo[killerid][pKills] += 1;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    switch(PlayerInfo[i][pMember])
    {
    case 0:{frakname1="Zivilist";}
    case 1:{frakname1="LSPD";}
    }
    switch(PlayerInfo[killerid][pMember])
    {
    case 0:{frakname2="Zivilist";}
    case 1:{frakname2="LSPD";}
    }
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
    if(PlayerInfo[i][pMember] == 1 && PlayerInfo[i][pMember] == 0)
    {
    new dml[128];
    format(dml,sizeof(dml),"%s(%s) wurde von %s (%s) gekillt!",GetName(i),frakname1,GetName(killerid),frakname2);
    SendClientMessage(playerid,ERROR,dml);
    }
    }
    }
    return 1;
    }


    //EDIT: Kleine Fehler drinnen gehabt xP

    Ja SDM falscher Ausdruck. Ich meine nur, dass iwelche Leute einfach Leute killen und ich eine Nachricht bekomme.
    Später werd ich noch machen, dass da zB erstmal die Frak des Spieler steht. Wenn es ein Zivi wäre, ist es auf jeden Fall SDM.


    Ich werde es bald verbessern, ich wollte ja erstmal nur wissen ob es so klappt^^


    Aber: Danke

    Hey,


    ist es möglich eine Nachricht wegen SDM an einen Admin zu schicken, wenn einer gekillt wird?
    Ich habe versucht so eine zu erstellen und die sieht so aus:



    public OnPlayerDeath(playerid, killerid, reason)
    {
    PlayerInfo[playerid][pDeaths] += 1;
    PlayerInfo[killerid][pKills] += 1;
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    new dm[128];
    format(dm,sizeof(dm),"%s wurde von %s gekillt!",GetName(i),GetName(killerid));
    SendClientMessage(playerid,ERROR,dm);
    return 1;
    }
    }
    SendClientMessage(playerid,COLOR_RED,"Du bist gestorben!");
    return 1;
    }


    Also könnte das so funktionieren?


    Ich bin ja noch am scripten und habe keine User, deswegen kann ich das leider nicht selber austesten..

    Weiß nicht ob es hierzu passt aber:
    Wie kann man die Signatur so erstellen, wie es so viele machen mit den Verschiedenen Buttons?
    Also::


    Meine Maps | Meine Sciptfiles | Tutorials usw.


    wo sie sowas schreiben wie: Selfmade Server: 54%


    Hoffe ihr versteht was ich meine und könnt mir helfen.^^



    Narushi

    new pID, geld, str[128];


    format(str,sizeof(str),"%s gibt %i",pID,geld);


    SendClientMessage(playerid,FARBE,str)


    %s = string (Text/Name usw)
    %i = Integer (Zahl)

    Was soll ich tun? Mein Server speichert die Daten nicht ab: Adminlevel usw.
    Hab ich etwas falsche gemacht?


    Enum + SavePlayer + LoadPlayer



    enum pInfo
    {
    pKey[255],
    pLevel,
    pAdmin,
    pSupporter,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pNeuling,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pCK,
    pMuted,
    pKnast,
    pExp,
    pCash,
    pAccount,
    pPlayerKreditDauer,
    pPlayerKredit,
    pCrimes,
    pKills,
    pJailed,
    pJailTime,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pLottoNr,
    pFishes,
    pBiggestFish,
    pJob,
    pPayCheck,
    pRest,
    pHeadValue,
    pGangJailed,
    pMauled,
    pMats,
    pDrugs,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pChar,
    pContractTime,
    pDetSkill,
    pSexSkill,
    pBoxSkill,
    pLawSkill,
    pMechSkill,
    pJackSkill,
    pCarSkill,
    pNewsSkill,
    pDrugsSkill,
    pCookSkill,
    pFishSkill,
    Float:pHealth,
    Float:pSHealth,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pPbiskey,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    pCarLic,
    pNewLic,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic, //Definition des Scheines zb die Aufgabe später
    pLKWLic,
    pRollerLic,
    pMotoLic,
    pZig,
    pKekse,
    pZigSucht,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo1,
    pAmmo2,
    pAmmo3,
    pAmmo4,
    pCarTime,
    pMulltime,
    pPayDay,
    pPayDayHad,
    pCDPlayer,
    pWins,
    pLoses,
    pAlcoholPerk,
    pDrugPerk,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pRadio,
    pWarns,
    Float:pGWD,
    pAdjustable,
    pFuel,
    pMarried,
    pMarriedTo[128],
    pInvWeapon,
    pInvAmmo,
    pInvWeapon2,
    pInvAmmo2,
    pInvDrugs,
    pInvMats,
    pFlugTime,
    pRoadblock,
    pPlayMinutes,
    pGesamtMinutes,
    pMinutesSinceLogin,
    pMinutesSinceAn,
    pSFPASS,
    pLVPASS,
    pHandyGeld,
    pHandyVer,
    pUhrID,
    pHandyID,
    pOwnPerso,
    pOwnAntrag,
    pPersoStop,
    pGehalt,
    pFrakSperre,
    pBoxMats,
    pBoxDrugs,
    pban,
    Text:LetterboxTop,Text:LetterboxBottom2, Text:LetterboxBottom,
    pTot,
    pFarmTime,
    pGDeaths,
    pGKills,
    pMeldung,
    pHouseKey,
    pRentHouseKey,
    pLoggedIn
    };
    new PlayerInfo[MAX_PLAYERS][pInfo];


    stock SavePlayer(playerid)
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    if(dini_Exists(Player))
    {
    dini_IntSet(Player,"Banned",BanInfo[playerid][Banned]);
    dini_IntSet(Player,"TimeBanned",BanInfo[playerid][TBanned]);
    dini_IntSet(Player,"Level",PlayerInfo[playerid][pLevel]);
    dini_IntSet(Player,"Adminlevel",PlayerInfo[playerid][pAdmin]);
    dini_IntSet(Player,"Supporter",PlayerInfo[playerid][pSupporter]);
    dini_IntSet(Player,"DonateRang",PlayerInfo[playerid][pDonateRank]);
    dini_IntSet(Player,"UpgradePunkte",PlayerInfo[playerid][gPupgrade]);
    dini_IntSet(Player,"ConnectTime",PlayerInfo[playerid][pConnectTime]);
    dini_IntSet(Player,"Neuling",PlayerInfo[playerid][pNeuling]);
    dini_IntSet(Player,"pReg",PlayerInfo[playerid][pReg]);
    dini_IntSet(Player,"Geschlecht",PlayerInfo[playerid][pSex]);
    dini_IntSet(Player,"Alter",PlayerInfo[playerid][pAge]);
    dini_IntSet(Player,"Herkunft",PlayerInfo[playerid][pOrigin]);
    dini_IntSet(Player,"pCK",PlayerInfo[playerid][pCK]);
    dini_IntSet(Player,"Account",PlayerInfo[playerid][pAccount]);
    dini_IntSet(Player,"KreditkartenDauer",PlayerInfo[playerid][pPlayerKreditDauer]);
    dini_IntSet(Player,"Kredit",PlayerInfo[playerid][pPlayerKredit]);
    dini_IntSet(Player,"Kills",PlayerInfo[playerid][pKills]);
    dini_IntSet(Player,"Jailed",PlayerInfo[playerid][pJailed]);
    dini_IntSet(Player,"Jailtime",PlayerInfo[playerid][pJailTime]);
    dini_IntSet(Player,"Tode",PlayerInfo[playerid][pDeaths]);
    dini_IntSet(Player,"Arrest",PlayerInfo[playerid][pArrested]);
    dini_IntSet(Player,"Wantedtode",PlayerInfo[playerid][pWantedDeaths]);
    dini_IntSet(Player,"Telefonbuch",PlayerInfo[playerid][pPhoneBook]);
    dini_IntSet(Player,"Lottonummer",PlayerInfo[playerid][pLottoNr]);
    dini_IntSet(Player,"Fische",PlayerInfo[playerid][pFishes]);
    dini_IntSet(Player,"GrosterFang",PlayerInfo[playerid][pBiggestFish]);
    dini_IntSet(Player,"Job",PlayerInfo[playerid][pJob]);
    dini_IntSet(Player,"PayCheck",PlayerInfo[playerid][pPayCheck]);
    dini_IntSet(Player,"Rest",PlayerInfo[playerid][pRest]);
    dini_IntSet(Player,"Kopfgeld",PlayerInfo[playerid][pHeadValue]);
    dini_IntSet(Player,"Gangjail",PlayerInfo[playerid][pGangJailed]);
    dini_IntSet(Player,"Mundtape",PlayerInfo[playerid][pMauled]);
    dini_IntSet(Player,"Materialien",PlayerInfo[playerid][pMats]);
    dini_IntSet(Player,"Drogen",PlayerInfo[playerid][pDrugs]);
    dini_IntSet(Player,"FraktionsLeader",PlayerInfo[playerid][pLeader]);
    dini_IntSet(Player,"FraktionsMember",PlayerInfo[playerid][pMember]);
    dini_IntSet(Player,"FraktionsRang",PlayerInfo[playerid][pRank]);
    dini_IntSet(Player,"Charakter",PlayerInfo[playerid][pChar]);
    dini_IntSet(Player,"Contracts",PlayerInfo[playerid][pContractTime]);
    dini_IntSet(Player,"DetektivSkill",PlayerInfo[playerid][pDetSkill]);
    dini_IntSet(Player,"SexSkill",PlayerInfo[playerid][pSexSkill]);
    dini_IntSet(Player,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
    dini_IntSet(Player,"AnwaltsSkill",PlayerInfo[playerid][pLawSkill]);
    dini_IntSet(Player,"MechanikerSkill",PlayerInfo[playerid][pMechSkill]);
    dini_IntSet(Player,"AutodiebSkill",PlayerInfo[playerid][pJackSkill]);
    dini_IntSet(Player,"CarSkill",PlayerInfo[playerid][pCarSkill]);
    dini_IntSet(Player,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
    dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
    dini_IntSet(Player,"KochSkill",PlayerInfo[playerid][pCookSkill]);
    dini_IntSet(Player,"FischSkill",PlayerInfo[playerid][pFishSkill]);
    dini_IntSet(Player,"Interior",PlayerInfo[playerid][pInt]);
    dini_IntSet(Player,"Local",PlayerInfo[playerid][pLocal]);
    dini_IntSet(Player,"Team",PlayerInfo[playerid][pTeam]);
    dini_IntSet(Player,"Model",PlayerInfo[playerid][pModel]);
    dini_IntSet(Player,"Telefonnummer",PlayerInfo[playerid][pPnumber]);
    dini_IntSet(Player,"Hausschlüssel",PlayerInfo[playerid][pPhousekey]);
    dini_IntSet(Player,"BizSchlüssel",PlayerInfo[playerid][pPbiskey]);
    dini_IntSet(Player,"Fahrschein",PlayerInfo[playerid][pCarLic]);
    dini_IntSet(Player,"NewLic",PlayerInfo[playerid][pNewLic]);
    dini_IntSet(Player,"Flugschein",PlayerInfo[playerid][pFlyLic]);
    dini_IntSet(Player,"Bootschein",PlayerInfo[playerid][pBoatLic]);
    dini_IntSet(Player,"Fischerschein",PlayerInfo[playerid][pFishLic]);
    dini_IntSet(Player,"Waffenschein",PlayerInfo[playerid][pGunLic]);
    dini_IntSet(Player,"LKWSchein",PlayerInfo[playerid][pLKWLic]);
    dini_IntSet(Player,"Rollerschein",PlayerInfo[playerid][pRollerLic]);
    dini_IntSet(Player,"MotorradSchein",PlayerInfo[playerid][pMotoLic]);
    dini_IntSet(Player,"Zigaretten",PlayerInfo[playerid][pZig]);
    dini_IntSet(Player,"Kekse",PlayerInfo[playerid][pKekse]);
    dini_IntSet(Player,"ZigarettenSucht",PlayerInfo[playerid][pZigSucht]);
    dini_IntSet(Player,"Waffe1",PlayerInfo[playerid][pGun1]);
    dini_IntSet(Player,"Waffe2",PlayerInfo[playerid][pGun2]);
    dini_IntSet(Player,"Waffe3",PlayerInfo[playerid][pGun3]);
    dini_IntSet(Player,"Waffe4",PlayerInfo[playerid][pGun4]);
    dini_IntSet(Player,"Mun1",PlayerInfo[playerid][pAmmo1]);
    dini_IntSet(Player,"Mun2",PlayerInfo[playerid][pAmmo2]);
    dini_IntSet(Player,"Mun3",PlayerInfo[playerid][pAmmo3]);
    dini_IntSet(Player,"Mun4",PlayerInfo[playerid][pAmmo4]);
    dini_IntSet(Player,"Fahrzeit",PlayerInfo[playerid][pCarTime]);
    dini_IntSet(Player,"Mulltime",PlayerInfo[playerid][pMulltime]);
    dini_IntSet(Player,"PayDay",PlayerInfo[playerid][pPayDay]);
    dini_IntSet(Player,"GehabtePayDay",PlayerInfo[playerid][pPayDayHad]);
    dini_IntSet(Player,"CDSpieler",PlayerInfo[playerid][pCDPlayer]);
    dini_IntSet(Player,"Siege",PlayerInfo[playerid][pWins]);
    dini_IntSet(Player,"Niederlagen",PlayerInfo[playerid][pLoses]);
    dini_IntSet(Player,"PromilleAlk",PlayerInfo[playerid][pAlcoholPerk]);
    dini_IntSet(Player,"PromilleDrug",PlayerInfo[playerid][pDrugPerk]);
    dini_IntSet(Player,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
    dini_IntSet(Player,"PainPerk",PlayerInfo[playerid][pPainPerk]);
    dini_IntSet(Player,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
    dini_IntSet(Player,"Tutorial",PlayerInfo[playerid][pTut]);
    dini_IntSet(Player,"Radio",PlayerInfo[playerid][pRadio]);
    dini_IntSet(Player,"Warns",PlayerInfo[playerid][pWarns]);
    dini_IntSet(Player,"Verheiratet",PlayerInfo[playerid][pMarried]);
    dini_IntSet(Player,"VeheiratetMit",PlayerInfo[playerid][pMarriedTo]);
    dini_IntSet(Player,"SpielMinuten",PlayerInfo[playerid][pPlayMinutes]);
    dini_IntSet(Player,"SpielMinutenGesamt",PlayerInfo[playerid][pGesamtMinutes]);
    dini_IntSet(Player,"SFPass",PlayerInfo[playerid][pSFPASS]);
    dini_IntSet(Player,"DrogenSkill",PlayerInfo[playerid][pDrugsSkill]);
    dini_IntSet(Player,"HandyGuthaben",PlayerInfo[playerid][pHandyGeld]);
    dini_IntSet(Player,"HandyVersion",PlayerInfo[playerid][pHandyVer]);
    dini_IntSet(Player,"UhrID",PlayerInfo[playerid][pUhrID]);
    dini_IntSet(Player,"HandyID",PlayerInfo[playerid][pHandyID]);
    dini_IntSet(Player,"Personalausweis",PlayerInfo[playerid][pOwnPerso]);
    dini_IntSet(Player,"Antrag",PlayerInfo[playerid][pOwnAntrag]);
    dini_IntSet(Player,"PersoStop",PlayerInfo[playerid][pPersoStop]);
    dini_IntSet(Player,"Gehalt",PlayerInfo[playerid][pGehalt]);
    dini_IntSet(Player,"Fraktionssperre",PlayerInfo[playerid][pFrakSperre]);
    dini_IntSet(Player,"SafeMats",PlayerInfo[playerid][pBoxMats]);
    dini_IntSet(Player,"SafeDrugs",PlayerInfo[playerid][pBoxDrugs]);
    dini_IntSet(Player,"Banned",PlayerInfo[playerid][pban]);
    dini_IntSet(Player,"pTot",PlayerInfo[playerid][pTot]);
    dini_IntSet(Player,"FarmZeit",PlayerInfo[playerid][pFarmTime]);
    dini_IntSet(Player,"GDeaths",PlayerInfo[playerid][pGDeaths]);
    dini_IntSet(Player,"GKills",PlayerInfo[playerid][pGKills]);
    dini_IntSet(Player,"Meldungen",PlayerInfo[playerid][pMeldung]);
    dini_IntSet(Player,"HouseKey",PlayerInfo[playerid][pHouseKey]);
    dini_IntSet(Player,"RentHouseKey",PlayerInfo[playerid][pRentHouseKey]);
    }
    }


    stock LoadPlayer(playerid)
    {
    new Player[64], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Player,sizeof(Player),"/Spieler/%s.txt",Name);
    if(dini_Exists(Player))
    {
    BanInfo[playerid][Banned] = dini_Int(Player,"Banned");
    BanInfo[playerid][TBanned] = dini_Int(Player,"TimeBanned");
    PlayerInfo[playerid][pLevel] = dini_Int(Player,"Level");
    PlayerInfo[playerid][pAdmin] = dini_Int(Player,"Adminlevel");
    PlayerInfo[playerid][pSupporter] = dini_Int(Player,"Supporter");
    PlayerInfo[playerid][pDonateRank] = dini_Int(Player,"DonateRang");
    PlayerInfo[playerid][gPupgrade] = dini_Int(Player,"UpgradePunkte");
    PlayerInfo[playerid][pConnectTime] = dini_Int(Player,"ConnectTime");
    PlayerInfo[playerid][pNeuling] = dini_Int(Player,"Neuling");
    PlayerInfo[playerid][pReg] = dini_Int(Player,"pReg");
    PlayerInfo[playerid][pSex] = dini_Int(Player,"Geschlecht");
    PlayerInfo[playerid][pAge] = dini_Int(Player,"Alter");
    PlayerInfo[playerid][pOrigin] = dini_Int(Player,"Herkunft");
    PlayerInfo[playerid][pCK] = dini_Int(Player,"pCK");
    PlayerInfo[playerid][pAccount] = dini_Int(Player,"Account");
    PlayerInfo[playerid][pPlayerKreditDauer] = dini_Int(Player,"KreditkartenDauer");
    PlayerInfo[playerid][pPlayerKredit] = dini_Int(Player,"Kredit");
    PlayerInfo[playerid][pKills] = dini_Int(Player,"Kills");
    PlayerInfo[playerid][pJailed] = dini_Int(Player,"Jailed");
    PlayerInfo[playerid][pJailTime] = dini_Int(Player,"Jailtime");
    PlayerInfo[playerid][pDeaths] = dini_Int(Player,"Tode");
    PlayerInfo[playerid][pArrested] = dini_Int(Player,"Arrest");
    PlayerInfo[playerid][pWantedDeaths] = dini_Int(Player,"Wantedtode");
    PlayerInfo[playerid][pPhoneBook] = dini_Int(Player,"Telefonbuch");
    PlayerInfo[playerid][pLottoNr] = dini_Int(Player,"Lottonummer");
    PlayerInfo[playerid][pFishes] = dini_Int(Player,"Fische");
    PlayerInfo[playerid][pBiggestFish] = dini_Int(Player,"GrosterFang");
    PlayerInfo[playerid][pJob] = dini_Int(Player,"Job");
    PlayerInfo[playerid][pPayCheck] = dini_Int(Player,"PayCheck");
    PlayerInfo[playerid][pRest] = dini_Int(Player,"Rest");
    PlayerInfo[playerid][pHeadValue] = dini_Int(Player,"Kopfgeld");
    PlayerInfo[playerid][pGangJailed] = dini_Int(Player,"Gangjail");
    PlayerInfo[playerid][pMauled] = dini_Int(Player,"Mundtape");
    PlayerInfo[playerid][pMats] = dini_Int(Player,"Materialien");
    PlayerInfo[playerid][pDrugs] = dini_Int(Player,"Drogen");
    PlayerInfo[playerid][pLeader] = dini_Int(Player,"FraktionsLeader");
    PlayerInfo[playerid][pMember] = dini_Int(Player,"FraktionsMember");
    PlayerInfo[playerid][pRank] = dini_Int(Player,"FraktionsRang");
    PlayerInfo[playerid][pChar] = dini_Int(Player,"Charakter");
    PlayerInfo[playerid][pContractTime] = dini_Int(Player,"Contracts");
    PlayerInfo[playerid][pDetSkill] = dini_Int(Player,"DetektivSkill");
    PlayerInfo[playerid][pSexSkill] = dini_Int(Player,"SexSkill");
    PlayerInfo[playerid][pBoxSkill] = dini_Int(Player,"BoxSkill");
    PlayerInfo[playerid][pLawSkill] = dini_Int(Player,"AnwaltsSkill");
    PlayerInfo[playerid][pMechSkill] = dini_Int(Player,"MechanikerSkill");
    PlayerInfo[playerid][pJackSkill] = dini_Int(Player,"AutodiebSkill");
    PlayerInfo[playerid][pCarSkill] = dini_Int(Player,"CarSkill");
    PlayerInfo[playerid][pNewsSkill] = dini_Int(Player,"NewsSkill");
    PlayerInfo[playerid][pDrugsSkill] = dini_Int(Player,"DrogenSkill");
    PlayerInfo[playerid][pCookSkill] = dini_Int(Player,"KochSkill");
    PlayerInfo[playerid][pFishSkill] = dini_Int(Player,"FischSkill");
    PlayerInfo[playerid][pInt] = dini_Int(Player,"Interior");
    PlayerInfo[playerid][pLocal] = dini_Int(Player,"Local");
    PlayerInfo[playerid][pTeam] = dini_Int(Player,"Team");
    PlayerInfo[playerid][pModel] = dini_Int(Player,"Model");
    PlayerInfo[playerid][pPnumber] = dini_Int(Player,"Telefonnummer");
    PlayerInfo[playerid][pPhousekey] = dini_Int(Player,"Hausschlüssel");
    PlayerInfo[playerid][pPbiskey] = dini_Int(Player,"BizSchlüssel");
    PlayerInfo[playerid][pCarLic] = dini_Int(Player,"Fahrschein");
    PlayerInfo[playerid][pNewLic] = dini_Int(Player,"NewLic");
    PlayerInfo[playerid][pFlyLic] = dini_Int(Player,"Flugschein");
    PlayerInfo[playerid][pBoatLic] = dini_Int(Player,"Bootschein");
    PlayerInfo[playerid][pFishLic] = dini_Int(Player,"Fischerschein");
    PlayerInfo[playerid][pGunLic] = dini_Int(Player,"Waffenschein");
    PlayerInfo[playerid][pLKWLic] = dini_Int(Player,"LKWSchein");
    PlayerInfo[playerid][pRollerLic] = dini_Int(Player,"Rollerschein");
    PlayerInfo[playerid][pMotoLic] = dini_Int(Player,"MotorradSchein");
    PlayerInfo[playerid][pZig] = dini_Int(Player,"Zigaretten");
    PlayerInfo[playerid][pKekse] = dini_Int(Player,"Kekse");
    PlayerInfo[playerid][pZigSucht] = dini_Int(Player,"ZigarettenSucht");
    PlayerInfo[playerid][pGun1] = dini_Int(Player,"Waffe1");
    PlayerInfo[playerid][pGun2] = dini_Int(Player,"Waffe2");
    PlayerInfo[playerid][pGun3] = dini_Int(Player,"Waffe3");
    PlayerInfo[playerid][pGun4] = dini_Int(Player,"Waffe4");
    PlayerInfo[playerid][pAmmo1] = dini_Int(Player,"Mun1");
    PlayerInfo[playerid][pAmmo2] = dini_Int(Player,"Mun2");
    PlayerInfo[playerid][pAmmo3] = dini_Int(Player,"Mun3");
    PlayerInfo[playerid][pAmmo4] = dini_Int(Player,"Mun4");
    PlayerInfo[playerid][pCarTime] = dini_Int(Player,"Fahrzeit");
    PlayerInfo[playerid][pMulltime] = dini_Int(Player,"Mulltime");
    PlayerInfo[playerid][pPayDay] = dini_Int(Player,"PayDay");
    PlayerInfo[playerid][pPayDayHad] = dini_Int(Player,"GehabtePayDay");
    PlayerInfo[playerid][pCDPlayer] = dini_Int(Player,"CDSpieler");
    PlayerInfo[playerid][pWins] = dini_Int(Player,"Siege");
    PlayerInfo[playerid][pLoses] = dini_Int(Player,"Niederlagen");
    PlayerInfo[playerid][pAlcoholPerk] = dini_Int(Player,"PromilleAlk");
    PlayerInfo[playerid][pDrugPerk] = dini_Int(Player,"PromilleDrug");
    PlayerInfo[playerid][pMiserPerk] = dini_Int(Player,"MiserPerk");
    PlayerInfo[playerid][pPainPerk] = dini_Int(Player,"PainPerk");
    PlayerInfo[playerid][pTraderPerk] = dini_Int(Player,"TraderPerk");
    PlayerInfo[playerid][pTut] = dini_Int(Player,"Tutorial");
    PlayerInfo[playerid][pRadio] = dini_Int(Player,"Radio");
    PlayerInfo[playerid][pWarns] = dini_Int(Player,"Warns");
    PlayerInfo[playerid][pMarried] = dini_Int(Player,"Verheiratet");
    PlayerInfo[playerid][pMarriedTo] = dini_Int(Player,"VeheiratetMit");
    PlayerInfo[playerid][pPlayMinutes] = dini_Int(Player,"SpielMinuten");
    PlayerInfo[playerid][pGesamtMinutes] = dini_Int(Player,"SpielMinutenGesamt");
    PlayerInfo[playerid][pSFPASS] = dini_Int(Player,"SFPass");
    PlayerInfo[playerid][pDrugsSkill] = dini_Int(Player,"DrogenSkill");
    PlayerInfo[playerid][pHandyGeld] = dini_Int(Player,"HandyGuthaben");
    PlayerInfo[playerid][pHandyVer] = dini_Int(Player,"HandyVersion");
    PlayerInfo[playerid][pUhrID] = dini_Int(Player,"UhrID");
    PlayerInfo[playerid][pHandyID] = dini_Int(Player,"HandyID");
    PlayerInfo[playerid][pOwnPerso] = dini_Int(Player,"Personalausweis");
    PlayerInfo[playerid][pOwnAntrag] = dini_Int(Player,"Antrag");
    PlayerInfo[playerid][pPersoStop] = dini_Int(Player,"PersoStop");
    PlayerInfo[playerid][pGehalt] = dini_Int(Player,"Gehalt");
    PlayerInfo[playerid][pFrakSperre] = dini_Int(Player,"Fraktionssperre");
    PlayerInfo[playerid][pBoxMats] = dini_Int(Player,"SafeMats");
    PlayerInfo[playerid][pBoxDrugs] = dini_Int(Player,"SafeDrugs");
    PlayerInfo[playerid][pban] = dini_Int(Player,"Banned");
    PlayerInfo[playerid][pTot] = dini_Int(Player,"pTot");
    PlayerInfo[playerid][pFarmTime] = dini_Int(Player,"FarmZeit");
    PlayerInfo[playerid][pGDeaths] = dini_Int(Player,"GDeaths");
    PlayerInfo[playerid][pGKills] = dini_Int(Player,"GKills");
    PlayerInfo[playerid][pMeldung] = dini_Int(Player,"Meldungen");
    PlayerInfo[playerid][pHouseKey] = dini_Int(Player,"HouseKey");
    PlayerInfo[playerid][pRentHouseKey] = dini_Int(Player,"RentHouseKey");
    }
    return 1;
    }