Доступ к архиву

Переход в группу "Пользователь"

300.00
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

[Вопрос]Как убрать шифровку пароля с мода?

Статус
В этой теме нельзя размещать новые ответы.

ivanp00

Изучающий
Пользователь
Регистрация
20 Дек 2012
Сообщения
308
Лучшие ответы
0
Репутация
59
Вот public OnPlayerLogin(playerid,password[])
PHP:
public OnPlayerLogin(playerid,password[])
{
	new tmp2[256];
    new string2[64];
	new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
	format(string2, sizeof(string2), "%s.ini", playername2);
	new File: UserFile = fopen(string2, io_read);
	if ( UserFile )
	{
	    new PassData[256];
	    new keytmp[256], valtmp[256];
	    fread( UserFile , PassData , sizeof( PassData ) );
	    keytmp = ini_GetKey( PassData );
	    if( strcmp( keytmp , "Key" , true ) == 0 )
		{
			valtmp = ini_GetValue( PassData );
			strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);

		}
		if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
		{
			    new key[ 256 ] , val[ 256 ];
			    new Data[ 256 ];
			    while ( fread( UserFile , Data , sizeof( Data ) ) )
				{
					key = ini_GetKey( Data );
					if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
			    	if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
			        if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
			        if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
			        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
			        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
			        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
			        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
                    if( strcmp( key , "AgeTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAgeTime] = strval( val ); }
					if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
			        if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
			        if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
			        if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
			        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
			        if( strcmp( key , "Roliki" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRoliki] = strval( val ); }
			        if( strcmp( key , "NarcoZavisimost" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNarcoZavisimost] = strval( val ); }
			        if( strcmp( key , "AlcoZavisimost" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoZavisimost] = strval( val ); }
			        if( strcmp( key , "LangEng", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLangEng] = strval( val ); }
					if( strcmp( key , "LangJap", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLangJap] = strval( val ); }
					if( strcmp( key , "LangIta", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLangIta] = strval( val ); }
					if( strcmp( key , "LangRus", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLangRus] = strval( val ); }
					if( strcmp( key , "LangFra", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLangFra] = strval( val ); }
					if( strcmp( key , "JobTime", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJobTime] = strval( val ); }
             	    if( strcmp( key , "NarcoLomka" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNarcoLomka] = strval( val ); }
			        if( strcmp( key , "AlcoLomka" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoLomka] = strval( val ); }
			        if( strcmp( key , "UnworkingTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUnworkingTime] = strval( val ); }
			        if( strcmp( key , "RabotalLopatoy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRabotalLopatoy] = strval( val ); }
			        if( strcmp( key , "BankAcc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBankAcc] = strval( val ); }
			        if( strcmp( key , "BankPass" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBankPass] = strval( val ); }
			        if( strcmp( key , "OtkRabota1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota1] = strval( val ); }
			        if( strcmp( key , "OtkRabota2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota2] = strval( val ); }
			        if( strcmp( key , "OtkRabota3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota3] = strval( val ); }
			        if( strcmp( key , "OtkRabota7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota7] = strval( val ); }
			        if( strcmp( key , "OtkRabota" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota8] = strval( val ); }
			        if( strcmp( key , "OtkRabota12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota12] = strval( val ); }
			        if( strcmp( key , "OtkRabota14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota14] = strval( val ); }
			        if( strcmp( key , "OtkRabota15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota15] = strval( val ); }
			        if( strcmp( key , "OtkRabota16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota16] = strval( val ); }
			        if( strcmp( key , "OtkRabota22" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota22] = strval( val ); }
			        if( strcmp( key , "OtkRabota24" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOtkRabota24] = strval( val ); }
			        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
			        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
			        if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
			        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
			        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
			        if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
			        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
			        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
                    if( strcmp( key , "RobbedHouse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobbedHouse] = strval( val ); }
				    if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
			        if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
			        if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
			        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
			        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
			        if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
			        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
			        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
			        if( strcmp( key , "MedicTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMedicTime] = strval( val ); }
			        if( strcmp( key , "NeedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNeedTime] = strval( val ); }
			        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
			        if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
			        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
			        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
			        if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
			        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
			        if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
			        if( strcmp( key , "pRace" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRace] = strval( val ); }
			        if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
			        if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
			        if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
			        if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
			        if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
			        if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
			        if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
			        if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
			        if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
			        if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
			        if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
			        if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
			        if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
			        if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
			        if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
		         	if( strcmp( key , "Virtual" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirtual] = strval( val ); }
			        if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
			        if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
			        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
			        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
			        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
			        if( strcmp( key , "Apart" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPapptkey] = strval( val ); }
			        if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
			        if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
			        if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
			        if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
			        if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
			        if( strcmp( key , "Deputy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeputy] = strval( val ); }
			        if( strcmp( key , "MotoLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMotoLic] = strval( val ); }
			        if( strcmp( key , "TruckLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTruckLic] = strval( val ); }
			        if( strcmp( key , "BusLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBusLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
					if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
			        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
			        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
                    if( strcmp( key , "GunLicAllow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLicAllow] = strval( val ); }
				    if( strcmp( key , "Gun0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun0] = strval( val ); }
					if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
			        if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
			        if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
			        if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
					if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strval( val ); }
					if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strval( val ); }
					if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strval( val ); }
					if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strval( val ); }
					if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strval( val ); }
					if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strval( val ); }
					if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strval( val ); }
					if( strcmp( key , "Ammo0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo0] = strval( val ); }
				    if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
			        if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
			        if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
			        if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
			        if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
			        if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
			        if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
			        if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
			        if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
			        if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
			        if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
			        if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
  			        if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
			        if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
			        if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
			        if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
			        if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
			        if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
			        if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
			        if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
			        if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
			        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val );	 }
			        if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
			        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
			        if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
			        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
			        if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
			        if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "TA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTA] = strval( val ); }
			        if( strcmp( key , "Rope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRope] = strval( val ); }
			        if( strcmp( key , "SK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSK] = strval( val ); }
			        if( strcmp( key , "SD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSD] = strval( val ); }
	          		if( strcmp( key , "STD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSTD] = strval( val ); }
			        if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
			        if( strcmp( key , "Clock" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClock] = strval( val ); }
			        if( strcmp( key , "Sigs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSigs] = strval( val ); }
			        if( strcmp( key , "BageNum" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBageNum] = strval( val ); }
                    if( strcmp( key , "CashCredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCashCredit] = strval( val ); }
			        if( strcmp( key , "Credit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCredit] = strval( val ); }
			        if( strcmp( key , "CreditTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCreditTime] = strval( val ); }
					if( strcmp( key , "Lang" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLang] = strval( val ); }
			        if( strcmp( key , "RPD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRPD] = strval( val ); }
			        if( strcmp( key , "Alarm" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSignaliz] = strval( val ); }
			        if( strcmp( key , "Zoloto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZoloto] = strval( val ); }
			        if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
			        if( strcmp( key , "Lom" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLom] = strval( val ); }
                    if( strcmp( key , "Pasport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPasport] = strval( val ); }
                    if( strcmp( key , "NeSdal" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNeSdal] = strval( val ); }
					if( strcmp( key , "Radio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRadio] = strval( val ); }
                    if( strcmp( key , "RobbedBank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobbedBank] = strval( val ); }//êîë-âî ãðàáèòü áàíê çà ÷àñ
                    if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); }//àíòè ñìàéëèê
                    if( strcmp( key , "BoxFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxing] = strval( val ); }
                    if( strcmp( key , "KunfuFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKunfu] = strval( val ); }
                    if( strcmp( key , "KneeheadFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneehead] = strval( val ); }
                    if( strcmp( key , "GrabkickFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabkick] = strval( val ); }
                    if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
			        if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
			        if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
			        if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
			        if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
			        if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = strval( val ); }
                    if( strcmp( key , "ICQ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQ] = strval( val ); }
                    if( strcmp( key , "Garage" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPgaragekey] = strval( val ); }
   /*    	            //Êîíòàêòû ÀéÑèÊüþ
                    if( strcmp( key , "ICQc1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc1] = strval( val ); }
                    if( strcmp( key , "ICQc2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc2] = strval( val ); }
                    if( strcmp( key , "ICQc3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc3] = strval( val ); }
                    if( strcmp( key , "ICQc4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc4] = strval( val ); }
                    if( strcmp( key , "ICQc5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc5] = strval( val ); }
                    if( strcmp( key , "ICQc6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc6] = strval( val ); }
                    if( strcmp( key , "ICQc7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc7] = strval( val ); }
                    if( strcmp( key , "ICQc8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc8] = strval( val ); }
                    if( strcmp( key , "ICQc9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc9] = strval( val ); }
                    if( strcmp( key , "ICQc10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc10] = strval( val ); }
                    if( strcmp( key , "ICQc11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc11] = strval( val ); }
                    if( strcmp( key , "ICQc12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc12] = strval( val ); }
                    if( strcmp( key , "ICQc13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc13] = strval( val ); }
                    if( strcmp( key , "ICQc14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc14] = strval( val ); }
                    if( strcmp( key , "ICQc15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pICQc15] = strval( val ); }
					//Èìåíà ÀéÑèÊüþ
					if( strcmp( key , "ICQn1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn1],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn2],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn3],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn4],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn5],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn6],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn7],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn8],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn9" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn9],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn10" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn10],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn11" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn11],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn12" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn12],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn13" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn13],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn14" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn14],val,0,strlen(val),MAX_STRING); }
					if( strcmp( key , "ICQn15" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pICQn15],val,0,strlen(val),MAX_STRING); }
*/
		  		}
                fclose(UserFile);
                new gotit = 0;
                for(new i = 0; i < ACCOUNTS; i ++)
                {
                    if(!strcmp(playername2,AccountInfo[i][aPlayerName],false))
                    {
                        gotit = 1;
                    }
                }
                if(gotit == 0)
                {
                    ACCOUNTS ++;
					strmid(AccountInfo[ACCOUNTS-1][aPlayerName], playername2, 0, strlen(playername2), 255);
					new ip[32];
					GetPlayerIp(playerid,ip,sizeof(ip));
					strmid(AccountInfo[ACCOUNTS-1][aPlayerIP], ip, 0, strlen(ip), 255);
					SaveAcs();
					SaveStuff();
                }
  		}
		else
    	{
		    SendClientMessage(playerid, COLOR_WHITE, "*Ïàðîëü íåâåðíûé.");
		    new loginstring[128];
		    new loginname[64];
		    GetPlayerName(playerid,loginname,sizeof(loginname));
		    format(loginstring,sizeof(loginstring),"Îøèáêà\nÂâåäè âåðíûé ïàðîëü:",loginname);
		    ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Âõîä [Cream Life]",loginstring,"Âîéòè","Âûõîä");
		    fclose(UserFile);
		    gPlayerLogTries[playerid] += 1;
		    if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
		    return 1;
    	}
		Camera[playerid] = 0;
		PlayerInfo[playerid][pAdjustable] = 0;
		ResetPlayerMoney(playerid);
		ConsumingMoney[playerid] = 1;
		GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
		CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
		if(PlayerInfo[playerid][pReg] == 0)
		{
		    PlayerInfo[playerid][pPgaragekey] = 255;
      		PlayerInfo[playerid][pMuteTime]=0; //àíòè ñìàéëèê
			PlayerInfo[playerid][pLevel] = 1;
			PlayerInfo[playerid][pSHealth] = 0.0;
			PlayerInfo[playerid][pHealth] = 50.0;
			PlayerInfo[playerid][pPos_x] = 2246.6;
			PlayerInfo[playerid][pPos_y] = -1161.9;
			PlayerInfo[playerid][pPos_z] = 1029.7;
			PlayerInfo[playerid][pInt] = 15;
			PlayerInfo[playerid][pVirtual] = 0;
			PlayerInfo[playerid][pLocal] = 255;
			PlayerInfo[playerid][pTeam] = 3;
			PlayerInfo[playerid][pModel] = 7;
  			new randphone = 89000000000 + random(89010000000);
			PlayerInfo[playerid][pPnumber] = randphone;
			PlayerInfo[playerid][pPhousekey] = 255;
			PlayerInfo[playerid][pPapptkey] = 255;
			PlayerInfo[playerid][pPbiskey] = 255;
			PlayerInfo[playerid][pAccount] = 400;
			ServerGivePlayerMoney(playerid, 100);
			PlayerInfo[playerid][pReg] = 1;
		}
		if(PlayerInfo[playerid][pLevel] == -999) //autoban
		{
			Ban(playerid);
		}
		else if(PlayerInfo[playerid][pCK] > 0)
		{
		    Kick(playerid);
		}
		else if(PlayerInfo[playerid][pRPD] == 1)
		{
		    SendClientMessage(playerid,COLOR_WHITE,"Ýòîò ïåðñîíàæ óìåð Rp ñìåðòüþ. Âû íå ìîæåòå èãðàòü ïîä ýòèì èìåíåì");
            Kick(playerid);
			return 1;
		}
		new playerIP[15];
	 	GetPlayerIp(playerid, playerIP, sizeof(playerIP));
   		if(PlayerInfo[playerid][pLang] == 0)
		{
			format(string2, sizeof(string2), "*Èãðîê %s çàø¸ë â èãðó.",playername2);
   			ABroadCast(COLOR_GRAD2,string2, 1);
			format(string2, sizeof(string2), "IP: %s", playerIP);
			ABroadCast(COLOR_GRAD2,string2, 1);
		}
		printf("%s has logged in. IP:%s",playername2, playerIP);
		if (PlayerInfo[playerid][pDonateRank] > 0)
		{
            if(PlayerInfo[playerid][pLang] == 0)
            {
				SendClientMessage(playerid, COLOR_WHITE,"*Âû VIP èãðîê.");
  			}
		}
		if (PlayerInfo[playerid][pAdmin] > 0)
		{
		    if(PlayerInfo[playerid][pLang] == 0)
	  		{
		    	SendClientMessage(playerid, COLOR_GREEN,"*Çàãðóçêà àêêàóíòà.");
  			}
		    if (PlayerInfo[playerid][pAdmin] == 1)
			{
			    if(PlayerInfo[playerid][pLang] == 0)
			    {
    				SendClientMessage(playerid, COLOR_WHITE,"*Âû ìîäåðàòîð íà èñïûòàòåëüíîì ñðîêå.");
	   			}
  			}
  			if (PlayerInfo[playerid][pAdmin] == 2)
			{
			    if(PlayerInfo[playerid][pLang] == 0)
			    {
    				SendClientMessage(playerid, COLOR_WHITE,"*Âû ïîìîøíèê ìîäåðàòîðà.");
	   			}
  			}
  			if (PlayerInfo[playerid][pAdmin] == 3)
			{
                if(PlayerInfo[playerid][pLang] == 0)
			    {
    				SendClientMessage(playerid, COLOR_WHITE,"*Âû ìîäåðàòîð ñåðâåðà.");
	   			}
  			}
  			if (PlayerInfo[playerid][pAdmin] == 4)
			{
			    if(PlayerInfo[playerid][pLang] == 0)
			    {
    				SendClientMessage(playerid, COLOR_WHITE,"*Âû Ñòàðøèé ìîäåðàòîð ñåðâåðà.");
	   			}
  			}
  			if (PlayerInfo[playerid][pAdmin] == 7)
			{
			    if(PlayerInfo[playerid][pLang] == 0)
			    {
    				SendClientMessage(playerid, COLOR_WHITE,"*Âû ïîìîøíèê àäìèíèñòðàòîðà.");
	   			}
  			}
		    if (PlayerInfo[playerid][pAdmin] == 8)
			{
			    if(PlayerInfo[playerid][pLang] == 0)
			    {
    				format(string2, sizeof(string2), "Âû ñòàðøèé ïîìîøíèê àäìèíèñòðàòîðà.");
					SendClientMessage(playerid, COLOR_WHITE,string2);
   				}
  			}
		}
		SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
		if(gTeam[playerid] == 0)
		{
			gTeam[playerid] = 3;
		}
		else
		{
			gTeam[playerid] = PlayerInfo[playerid][pTeam];
		}
		gPlayerLogged[playerid] = 1;
		LocalTemp[playerid] = "Free";
		format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
		SpawnPlayer(playerid);
		GameTextForPlayer(playerid, tmp2, 5000, 1);
		SendClientMessage(playerid, COLOR_YELLOW, motd);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	    	if(IsPlayerConnected(i))
	    	{
	        	if(PlayerInfo[i][pMask] == 1)
	        	{
	            	ShowPlayerNameTagForPlayer(playerid, i, 0);
	        	}
	    	}
		}
		if(PlayerInfo[playerid][pFMember] < 255)
		{
		    format(tmp2, sizeof(tmp2), "Ñîîáùåíèå ñåìüè: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
		    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
		}
	}
	return 1;
}

stock ini_GetKey( line[] )
{
	new keyRes[256];
	keyRes[0] = 0;
    if ( strfind( line , "=" , true ) == -1 ) return keyRes;
    strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
    return keyRes;
}

stock ini_GetValue( line[] )
{
	new valRes[256];
	valRes[0]=0;
	if ( strfind( line , "=" , true ) == -1 ) return valRes;
	strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
	return valRes;
}

public OnPropUpdate()
{
	new idx;
	new File: file2;
	while (idx < sizeof(HouseInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
		HouseInfo[idx][hEntrancex],
		HouseInfo[idx][hEntrancey],
		HouseInfo[idx][hEntrancez],
		HouseInfo[idx][hExitx],
		HouseInfo[idx][hExity],
		HouseInfo[idx][hExitz],
		HouseInfo[idx][hHealthx],
		HouseInfo[idx][hHealthy],
		HouseInfo[idx][hHealthz],
		HouseInfo[idx][hArmourx],
		HouseInfo[idx][hArmoury],
		HouseInfo[idx][hArmourz],
		HouseInfo[idx][hOwner],
		HouseInfo[idx][hDiscription],
		HouseInfo[idx][hValue],
		HouseInfo[idx][hHel],
		HouseInfo[idx][hArm],
		HouseInfo[idx][hInt],
		HouseInfo[idx][hLock],
		HouseInfo[idx][hOwned],
		HouseInfo[idx][hRooms],
		HouseInfo[idx][hRent],
		HouseInfo[idx][hRentabil],
		HouseInfo[idx][hTakings],
		HouseInfo[idx][hDate],
		HouseInfo[idx][hLevel],
		HouseInfo[idx][hVirtual],
		HouseInfo[idx][hGun1],
		HouseInfo[idx][hGun2],
		HouseInfo[idx][hGun3],
		HouseInfo[idx][hGun4],
		HouseInfo[idx][hGun5],
		HouseInfo[idx][hAmmo1],
		HouseInfo[idx][hAmmo2],
		HouseInfo[idx][hAmmo3],
		HouseInfo[idx][hAmmo4],
		HouseInfo[idx][hAmmo5],
		HouseInfo[idx][hMoney],
		HouseInfo[idx][hDrugs],
		HouseInfo[idx][hMats],
		HouseInfo[idx][hWardrobe],
		HouseInfo[idx][hDrslot1],
		HouseInfo[idx][hDrslot2],
		HouseInfo[idx][hDrslot3],
		HouseInfo[idx][hDrslot4],
        HouseInfo[idx][hPhone]);
		if(idx == 0)
		{
			file2 = fopen("property.cfg", io_write);
		}
		else
		{
			file2 = fopen("property.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	idx = 0;
	while (idx < sizeof(BizzInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
		BizzInfo[idx][bOwned],
		BizzInfo[idx][bOwner],
		BizzInfo[idx][bMessage],
		BizzInfo[idx][bExtortion],
		BizzInfo[idx][bEntranceX],
		BizzInfo[idx][bEntranceY],
		BizzInfo[idx][bEntranceZ],
		BizzInfo[idx][bExitX],
		BizzInfo[idx][bExitY],
		BizzInfo[idx][bExitZ],
		BizzInfo[idx][bLevelNeeded],
		BizzInfo[idx][bBuyPrice],
		BizzInfo[idx][bEntranceCost],
		BizzInfo[idx][bTill],
		BizzInfo[idx][bLocked],
		BizzInfo[idx][bInterior],
		BizzInfo[idx][bProducts],
		BizzInfo[idx][bMaxProducts],
		BizzInfo[idx][bPriceProd]);
		if(idx == 0)
		{
			file2 = fopen("bizz.cfg", io_write);
		}
		else
		{
			file2 = fopen("bizz.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	idx = 0;
	while (idx < sizeof(SBizzInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
		SBizzInfo[idx][sbOwned],
		SBizzInfo[idx][sbOwner],
		SBizzInfo[idx][sbMessage],
		SBizzInfo[idx][sbExtortion],
		SBizzInfo[idx][sbEntranceX],
		SBizzInfo[idx][sbEntranceY],
		SBizzInfo[idx][sbEntranceZ],
		SBizzInfo[idx][sbLevelNeeded],
		SBizzInfo[idx][sbBuyPrice],
		SBizzInfo[idx][sbEntranceCost],
		SBizzInfo[idx][sbTill],
		SBizzInfo[idx][sbLocked],
		SBizzInfo[idx][sbInterior],
		SBizzInfo[idx][sbProducts],
		SBizzInfo[idx][sbMaxProducts],
		SBizzInfo[idx][sbPriceProd]);
		if(idx == 0)
		{
			file2 = fopen("sbizz.cfg", io_write);
		}
		else
		{
			file2 = fopen("sbizz.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
    idx = 0;
	return 1;
}
Если ещё что-нибудь надо, напишите.
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу