Код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new PlayerName3[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName3, sizeof(PlayerName3));
format(string3, sizeof(string3), "/users/%s.ini", PlayerName3);
dini_Create(string3);
gPlayerLogged[playerid] = 1;
new File: hFile = fopen(string3, io_write);
if(hFile)
{
new var[32];
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBand]);fwrite(hFile, var);
format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermBand]);fwrite(hFile, var);
format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 32, "VIPJoinDate=%s\n",PlayerInfo[playerid][pVIPJoinDate]);fwrite(hFile, var);
format(var, 32, "VIPExpDate=%s\n",PlayerInfo[playerid][pVIPExpDate]);fwrite(hFile, var);
format(var, 32, "FactionBanned=%d\n",PlayerInfo[playerid][pFactionBanned]);fwrite(hFile, var);
format(var, 32, "LaserOwner=%d\n",PlayerInfo[playerid][pLaserOwner]);fwrite(hFile, var);
format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "ATMID=%d\n",PlayerInfo[playerid][ATMID]);fwrite(hFile, var);
format(var, 32, "ATMExterior=%d\n", PlayerInfo[playerid][ATMExterior]);fwrite(hFile, var);
format(var, 32, "MAPBExterior=%d\n", PlayerInfo[playerid][MAPBExterior]);fwrite(hFile, var);
format(var, 32, "MAPBID=%d\n",PlayerInfo[playerid][MAPBID]);fwrite(hFile, var);
format(var, 32, "GSTATIONExterior=%d\n", PlayerInfo[playerid][GSTATIONExterior]);fwrite(hFile, var);
format(var, 32, "GSTATIONID=%d\n",PlayerInfo[playerid][GSTATIONID]);fwrite(hFile, var);
format(var, 32, "HSSignExterior=%d\n", PlayerInfo[playerid][HSSignExterior]);fwrite(hFile, var);
format(var, 32, "HSSignID=%d\n",PlayerInfo[playerid][HSSignID]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 32, "RPBoost=%d\n",PlayerInfo[playerid][pRPBoost]);fwrite(hFile, var);
format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "RobberTime=%d\n",PlayerInfo[playerid][pRobberTime]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "CasinoWinnings=%d\n",PlayerInfo[playerid][pCasinoWinnings]);fwrite(hFile, var);
format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 32, "Accent=%s\n",Accent[playerid]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
format(var, 32, "ATMcard=%d\n",PlayerInfo[playerid][pATMcard]);fwrite(hFile, var);
format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
format(var, 32, "Developer=%d\n",PlayerInfo[playerid][pDeveloper]);fwrite(hFile, var);
format(var, 32, "Mapper=%d\n",PlayerInfo[playerid][pMapper]);fwrite(hFile, var);
format(var, 32, "Tester=%d\n",PlayerInfo[playerid][pTester]);fwrite(hFile, var);
format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "HouseTicket=%d\n",PlayerInfo[playerid][pHouseTicket]);fwrite(hFile, var);
format(var, 32, "BusinessTicket=%d\n",PlayerInfo[playerid][pBusinessTicket]);fwrite(hFile, var);
format(var, 32, "VehicleTicket=%d\n",PlayerInfo[playerid][pVehicleTicket]);fwrite(hFile, var);
format(var, 32, "BoomBox=%d\n",PlayerInfo[playerid][pBoomBox]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 32, "Job2=%d\n",PlayerInfo[playerid][pJob2]);fwrite(hFile, var);
format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
format(var, 32, "InHouse=%d\n",PlayerInfo[playerid][InHouse]);fwrite(hFile, var);
format(var, 32, "InGarage=%d\n",PlayerInfo[playerid][InGarage]);fwrite(hFile, var);
format(var, 32, "Inmotel=%d\n",PlayerInfo[playerid][Inmotel]);fwrite(hFile, var);
format(var, 32, "motelInterior=%d\n", PlayerInfo[playerid][motelInterior]);fwrite(hFile, var);
format(var, 32, "motelExterior=%d\n", PlayerInfo[playerid][motelExterior]);fwrite(hFile, var);
format(var, 32, "mExtX=%.1f\n", PlayerInfo[playerid][mExtX]);fwrite(hFile, var);
format(var, 32, "mExtY=%.1f\n", PlayerInfo[playerid][mExtY]);fwrite(hFile, var);
format(var, 32, "mExtZ=%.1f\n", PlayerInfo[playerid][mExtZ]);fwrite(hFile, var);
format(var, 32, "mIntX=%.1f\n", PlayerInfo[playerid][mIntX]);fwrite(hFile, var);
format(var, 32, "mIntY=%.1f\n", PlayerInfo[playerid][mIntY]);fwrite(hFile, var);
format(var, 32, "mIntZ=%.1f\n", PlayerInfo[playerid][mIntZ]);fwrite(hFile, var);
format(var, 32, "HouseExterior=%d\n", PlayerInfo[playerid][HouseInterior]);fwrite(hFile, var);
format(var, 32, "HouseInterior=%d\n", PlayerInfo[playerid][HouseInterior]);fwrite(hFile, var);
format(var, 32, "FCard=%d\n",PlayerInfo[playerid][pFcard]);fwrite(hFile, var);
format(var, 32, "hExtX=%.1f\n", PlayerInfo[playerid][hExtX]);fwrite(hFile, var);
format(var, 32, "hExtY=%.1f\n", PlayerInfo[playerid][hExtY]);fwrite(hFile, var);
format(var, 32, "hExtZ=%.1f\n", PlayerInfo[playerid][hExtZ]);fwrite(hFile, var);
format(var, 32, "BriefCase=%d\n",PlayerInfo[playerid][pBriefCase]);fwrite(hFile, var);
format(var, 32, "BCash=%d\n",PlayerInfo[playerid][pBCash]);fwrite(hFile, var);
format(var, 32, "BCrack=%d\n",PlayerInfo[playerid][pBCrack]);fwrite(hFile, var);
format(var, 32, "BPot=%d\n",PlayerInfo[playerid][pBPot]);fwrite(hFile, var);
format(var, 32, "TrashSkill=%d\n",PlayerInfo[playerid][pTrashSkill]);fwrite(hFile, var); // Trashman
format(var, 32, "hIntX=%.1f\n", PlayerInfo[playerid][hIntX]);fwrite(hFile, var);
format(var, 32, "hIntY=%.1f\n", PlayerInfo[playerid][hIntY]);fwrite(hFile, var);
format(var, 32, "hIntZ=%.1f\n", PlayerInfo[playerid][hIntZ]);fwrite(hFile, var);
format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 32, "BHHeadValue=%d\n",PlayerInfo[playerid][pBHHeadValue]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailedReason=%s\n",PlayerInfo[playerid][pJailedReason]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Gun parts=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
format(var, 32, "Garage=%d\n",PlayerInfo[playerid][pGarageKey]);fwrite(hFile, var);
format(var, 32, "GarageII=%d\n",PlayerInfo[playerid][pGarageKey2]);fwrite(hFile, var);
format(var, 32, "GateKey=%d\n",PlayerInfo[playerid][pGateKey]);fwrite(hFile, var);
format(var, 32, "GateKeyIA=%d\n",PlayerInfo[playerid][pGateKey2]);fwrite(hFile, var);
format(var, 32, "GateKeyIB=%d\n",PlayerInfo[playerid][pGateKey3]);fwrite(hFile, var);
format(var, 32, "GateKeyIC=%d\n",PlayerInfo[playerid][pGateKey4]);fwrite(hFile, var);
format(var, 32, "GateKeyID=%d\n",PlayerInfo[playerid][pGateKey5]);fwrite(hFile, var);
format(var, 32, "GateKeyIE=%d\n",PlayerInfo[playerid][pGateKey6]);fwrite(hFile, var);
format(var, 32, "GateKeyIF=%d\n",PlayerInfo[playerid][pGateKey7]);fwrite(hFile, var);
format(var, 32, "GateKeyIG=%d\n",PlayerInfo[playerid][pGateKey8]);fwrite(hFile, var);
format(var, 32, "GateKeyIH=%d\n",PlayerInfo[playerid][pGateKey9]);fwrite(hFile, var);
format(var, 32, "GateKeyII=%d\n",PlayerInfo[playerid][pGateKey10]);fwrite(hFile, var);
format(var, 32, "AKbarrel=%d\n",PlayerInfo[playerid][pAKbarrel]);fwrite(hFile, var);
format(var, 32, "Debarrel=%d\n",PlayerInfo[playerid][pDebarrel]);fwrite(hFile, var);
format(var, 32, "CSGbarrel=%d\n",PlayerInfo[playerid][pCSGbarrel]);fwrite(hFile, var);
format(var, 32, "AKstock=%d\n",PlayerInfo[playerid][pAKstock]);fwrite(hFile, var);
format(var, 32, "Destock=%d\n",PlayerInfo[playerid][pDestock]);fwrite(hFile, var);
format(var, 32, "CSGstock=%d\n",PlayerInfo[playerid][pCSGstock]);fwrite(hFile, var);
format(var, 32, "InBusiness=%d\n",PlayerInfo[playerid][InBusiness]);fwrite(hFile, var);
format(var, 32, "BusinessInterior=%d\n", PlayerInfo[playerid][BusinessInterior]);fwrite(hFile, var);
format(var, 32, "BusinessExterior=%d\n", PlayerInfo[playerid][BusinessExterior]);fwrite(hFile, var);
format(var, 32, "bExtX=%.1f\n", PlayerInfo[playerid][bExtX]);fwrite(hFile, var);
format(var, 32, "bExtY=%.1f\n", PlayerInfo[playerid][bExtY]);fwrite(hFile, var);
format(var, 32, "bExtZ=%.1f\n", PlayerInfo[playerid][bExtZ]);fwrite(hFile, var);
format(var, 32, "bIntX=%.1f\n", PlayerInfo[playerid][bIntX]);fwrite(hFile, var);
format(var, 32, "bIntY=%.1f\n", PlayerInfo[playerid][bIntY]);fwrite(hFile, var);
format(var, 32, "bIntZ=%.1f\n", PlayerInfo[playerid][bIntZ]);fwrite(hFile, var);
format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugglerSkill]);fwrite(hFile, var);
format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var);
format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
format(var, 32, "pArmor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
format(var, 32, "pSHealth=%d\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVirtualWorld]);fwrite(hFile, var);
format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 32, "Tikis=%d\n",PlayerInfo[playerid][pTikis]);fwrite(hFile, var);
format(var, 32, "Clothes=%d\n",PlayerInfo[playerid][pClothes]);fwrite(hFile, var);
format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "Apartment=%d\n",PlayerInfo[playerid][pPaptkey]);fwrite(hFile, var);
format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 32, "Gun0=%d\n",PlayerInfo[playerid][pGun0]);fwrite(hFile, var);
format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
format(var, 32, "dExtX=%.1f\n", PlayerInfo[playerid][dExtX]);fwrite(hFile, var);
format(var, 32, "dExtY=%.1f\n", PlayerInfo[playerid][dExtY]);fwrite(hFile, var);
format(var, 32, "dExtZ=%.1f\n", PlayerInfo[playerid][dExtZ]);fwrite(hFile, var);
format(var, 32, "dAngle=%.1f\n", PlayerInfo[playerid][dAngle]);fwrite(hFile, var);
format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
format(var, 32, "Gun5=%d\n",PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
format(var, 32, "Gun6=%d\n",PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
format(var, 32, "Gun7=%d\n",PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
format(var, 32, "Gun8=%d\n",PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
format(var, 32, "Gun9=%d\n",PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
format(var, 32, "Gun10=%d\n",PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
format(var, 32, "Gun11=%d\n",PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
format(var, 32, "Gun12=%d\n",PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
format(var, 32, "Screw=%d\n",PlayerInfo[playerid][pScrew]);fwrite(hFile, var);
format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigars]);fwrite(hFile, var);
format(var, 32, "GoldBars=%d\n",PlayerInfo[playerid][pGoldBars]);fwrite(hFile, var);
format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
format(var, 32, "WT=%d\n",PlayerInfo[playerid][pWT]);fwrite(hFile, var);
format(var, 32, "WTc=%d\n",PlayerInfo[playerid][pWTc]);fwrite(hFile, var);
format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
format(var, 32, "Scope=%d\n",PlayerInfo[playerid][pScope]);fwrite(hFile, var);
format(var, 32, "OwnsMask=%d\n",PlayerInfo[playerid][pOwnsMask]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);