Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(fexist(Path(playerid)))
- {
- new INI:file = INI_Open(Path(playerid));
- INI_SetTag(file,"Informacije");
- INI_WriteInt(file,"Level",PlayerInfo[playerid][pLevel]);
- INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(file,"DonateRank",PlayerInfo[playerid][pDonateRank]);
- INI_WriteInt(file,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
- INI_WriteInt(file,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
- INI_WriteInt(file,"Registered",PlayerInfo[playerid][pReg]);
- INI_WriteInt(file,"Sex",PlayerInfo[playerid][pSex]);
- INI_WriteInt(file,"Age",PlayerInfo[playerid][pAge]);
- INI_WriteInt(file,"Origin",PlayerInfo[playerid][pOrigin]);
- INI_WriteInt(file,"CK",PlayerInfo[playerid][pCK]);
- INI_WriteInt(file,"Muted",PlayerInfo[playerid][pMuted]);
- INI_WriteInt(file,"Respect",PlayerInfo[playerid][pExp]);
- INI_WriteInt(file,"Money",PlayerInfo[playerid][pCash]);
- INI_WriteInt(file,"Bank",PlayerInfo[playerid][pAccount]);
- INI_WriteInt(file,"Crimes",PlayerInfo[playerid][pCrimes]);
- INI_WriteInt(file,"Kills",PlayerInfo[playerid][pKills]);
- INI_WriteInt(file,"Deaths",PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(file,"Arrested",PlayerInfo[playerid][pArrested]);
- INI_WriteInt(file,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
- INI_WriteInt(file,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
- INI_WriteInt(file,"Job",PlayerInfo[playerid][pJob]);
- INI_WriteInt(file,"Paycheck",PlayerInfo[playerid][pPayCheck]);
- INI_WriteInt(file,"HeadValue",PlayerInfo[playerid][pHeadValue]);
- INI_WriteInt(file,"Jailed",PlayerInfo[playerid][pJailed]);
- INI_WriteInt(file,"JailTime",PlayerInfo[playerid][pJailTime]);
- INI_WriteInt(file,"Materials",PlayerInfo[playerid][pMats]);
- INI_WriteInt(file,"Drugs",PlayerInfo[playerid][pDrugs]);
- INI_WriteInt(file,"Leader",PlayerInfo[playerid][pLeader]);
- INI_WriteInt(file,"Member",PlayerInfo[playerid][pMember]);
- INI_WriteInt(file,"Rank",PlayerInfo[playerid][pRank]);
- INI_WriteInt(file,"Char",PlayerInfo[playerid][pChar]);
- INI_WriteInt(file,"ContractTime",PlayerInfo[playerid][pContractTime]);
- INI_WriteInt(file,"DetSkill",PlayerInfo[playerid][pDetSkill]);
- INI_WriteInt(file,"SexSkill",PlayerInfo[playerid][pSexSkill]);
- INI_WriteInt(file,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
- INI_WriteInt(file,"LawSkill",PlayerInfo[playerid][pLawSkill]);
- INI_WriteInt(file,"MechSkill",PlayerInfo[playerid][pMechSkill]);
- INI_WriteInt(file,"JackSkill",PlayerInfo[playerid][pJackSkill]);
- INI_WriteInt(file,"CarSkill",PlayerInfo[playerid][pCarSkill]);
- INI_WriteInt(file,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
- INI_WriteInt(file,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]);
- INI_WriteFloat(file,"SHealth%.1f",PlayerInfo[playerid][pSHealth]);
- INI_WriteInt(file,"Int",PlayerInfo[playerid][pInt]);
- INI_WriteInt(file,"Local",PlayerInfo[playerid][pLocal]);
- INI_WriteInt(file,"Team",PlayerInfo[playerid][pTeam]);
- INI_WriteInt(file,"Model",PlayerInfo[playerid][pModel]);
- INI_WriteInt(file,"PhoneNr",PlayerInfo[playerid][pPnumber]);
- INI_WriteInt(file,"Car",PlayerInfo[playerid][pPcarkey]);
- INI_WriteInt(file,"Car2",PlayerInfo[playerid][pPcarkey2]);
- INI_WriteInt(file,"Car3",PlayerInfo[playerid][pPcarkey3]);
- INI_WriteInt(file,"House",PlayerInfo[playerid][pPhousekey]);
- INI_WriteInt(file,"Bizz",PlayerInfo[playerid][pPbiskey]);
- if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
- {
- PlayerInfo[playerid][pPos_x] = 1684.9;
- PlayerInfo[playerid][pPos_y] = -2244.5;
- PlayerInfo[playerid][pPos_z] = 13.5;
- }
- if(Spectate[playerid] != 255)
- {
- PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
- PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
- PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
- PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
- PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- PlayerInfo[playerid][pPos_x] = x;
- PlayerInfo[playerid][pPos_y] = y;
- PlayerInfo[playerid][pPos_z] = z;
- INI_WriteFloat(file,"Pos_x%.1f",PlayerInfo[playerid][pPos_x]);
- INI_WriteFloat(file,"Pos_y%.1f",PlayerInfo[playerid][pPos_y]);
- INI_WriteFloat(file,"Pos_z%.1f",PlayerInfo[playerid][pPos_z]);
- INI_WriteInt(file,"CarLic",PlayerInfo[playerid][pCarLic]);
- INI_WriteInt(file,"FlyLic",PlayerInfo[playerid][pFlyLic]);
- INI_WriteInt(file,"BoatLic",PlayerInfo[playerid][pBoatLic]);
- INI_WriteInt(file,"GunLic",PlayerInfo[playerid][pGunLic]);
- INI_WriteInt(file,"Gun1",PlayerInfo[playerid][pGun1]);
- INI_WriteInt(file,"Gun2",PlayerInfo[playerid][pGun2]);
- INI_WriteInt(file,"Gun3",PlayerInfo[playerid][pGun3]);
- INI_WriteInt(file,"Gun4",PlayerInfo[playerid][pGun4]);
- INI_WriteInt(file,"Ammo1",PlayerInfo[playerid][pAmmo1]);
- INI_WriteInt(file,"Ammo2",PlayerInfo[playerid][pAmmo2]);
- INI_WriteInt(file,"Ammo3",PlayerInfo[playerid][pAmmo3]);
- INI_WriteInt(file,"Ammo4",PlayerInfo[playerid][pAmmo4]);
- INI_WriteInt(file,"CarTime",PlayerInfo[playerid][pCarTime]);
- INI_WriteInt(file,"PayDay",PlayerInfo[playerid][pPayDay]);
- INI_WriteInt(file,"PayDayHad",PlayerInfo[playerid][pPayDayHad]);
- INI_WriteInt(file,"Watch",PlayerInfo[playerid][pWatch]);
- INI_WriteInt(file,"Crashed",PlayerInfo[playerid][pCrashed]);
- INI_WriteInt(file,"Wins",PlayerInfo[playerid][pWins]);
- INI_WriteInt(file,"Loses",PlayerInfo[playerid][pLoses]);
- INI_WriteInt(file,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
- INI_WriteInt(file,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
- INI_WriteInt(file,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
- INI_WriteInt(file,"PainPerk",PlayerInfo[playerid][pPainPerk]);
- INI_WriteInt(file,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
- INI_WriteInt(file,"Mission",PlayerInfo[playerid][pMissionNr]);
- INI_WriteInt(file,"Warnings",PlayerInfo[playerid][pWarns]);
- INI_WriteInt(file,"VirWorld",PlayerInfo[playerid][pVirWorld]);
- if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
- INI_WriteInt(file,"Fuel",PlayerInfo[playerid][pFuel]);
- INI_WriteInt(file,"InvWeapon",PlayerInfo[playerid][pInvWeapon]);
- INI_WriteInt(file,"InvAmmo",PlayerInfo[playerid][pInvAmmo]);
- INI_WriteInt(file,"Lighter",PlayerInfo[playerid][pLighter]);
- INI_WriteInt(file,"Cigarettes",PlayerInfo[playerid][pCigarettes]);
- PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
- INI_Close(file);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment