Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LoadPlayer(playerid, name[], value[])
- {
- INI_String("Password", PlayerInfo[playerid][pPassword], 24);
- INI_String("Account", PlayerInfo[playerid][pAccount], 20);
- INI_Int("Pol", PlayerInfo[playerid][pPol]);
- INI_Int("Drzava", PlayerInfo[playerid][pDrzava]);
- INI_Int("Godine", PlayerInfo[playerid][pGodine]);
- INI_String("Email", PlayerInfo[playerid][pEmail], 32);
- INI_Int("Registration", PlayerInfo[playerid][pRegistration]);
- INI_Int("Skin", PlayerInfo[playerid][pSkin]);
- INI_Int("Security", PlayerInfo[playerid][pSecurity]);
- INI_Int("Money", PlayerInfo[playerid][pMoney]);
- INI_Int("Level", PlayerInfo[playerid][pLevel]);
- INI_Int("Hours", PlayerInfo[playerid][pHours]);
- INI_Int("Time", PlayerInfo[playerid][pTime]);
- INI_Int("Respekt", PlayerInfo[playerid][pRespekt]);
- INI_Int("Pay", PlayerInfo[playerid][pPay]);
- INI_Int("Day", PlayerInfo[playerid][pDay]);
- INI_Int("Robot", PlayerInfo[playerid][pRobot]);
- INI_Int("Energy", PlayerInfo[playerid][pEnergy]);
- INI_Int("Bull", PlayerInfo[playerid][pBull]);
- INI_Int("Banka", PlayerInfo[playerid][pBanka]);
- INI_Int("BankaNovac", PlayerInfo[playerid][pBankaNovac]);
- INI_String("JMBG", PlayerInfo[playerid][pJMBG], 16);
- INI_Int("Bankomat", PlayerInfo[playerid][pBankomat]);
- INI_String("Register", PlayerInfo[playerid][pRegister], 48);
- INI_Int("Crash", PlayerInfo[playerid][pCrash]);
- INI_Float("CrashPosition1", PlayerInfo[playerid][pCrashPosition][0]);
- INI_Float("CrashPosition2", PlayerInfo[playerid][pCrashPosition][1]);
- INI_Float("CrashPosition3", PlayerInfo[playerid][pCrashPosition][2]);
- INI_Float("SpawnPosition1", PlayerInfo[playerid][pSpawnPosition][0]);
- INI_Float("SpawnPosition2", PlayerInfo[playerid][pSpawnPosition][1]);
- INI_Float("SpawnPosition3", PlayerInfo[playerid][pSpawnPosition][2]);
- INI_Int("Admin", PlayerInfo[playerid][pGSA]);
- INI_Int("Slot", PlayerInfo[playerid][pSlot]);
- INI_Int("AdminLock", PlayerInfo[playerid][pAdminLock]);
- INI_Int("AdminCode", PlayerInfo[playerid][pAdminCode]);
- INI_Int("Vehicle", PlayerInfo[playerid][pVehicle]);
- INI_Int("Ban", PlayerInfo[playerid][pBan]);
- INI_Int("Jail", PlayerInfo[playerid][pJail]);
- INI_Int("Points", PlayerInfo[playerid][pPoints]);
- INI_Int("Wanted", PlayerInfo[playerid][pWanted]);
- INI_Int("Breaked", PlayerInfo[playerid][pBreaked]);
- INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
- INI_Int("Kills", PlayerInfo[playerid][pKills]);
- return 1;
- }
- //=======================================
- stock SavePlayer(playerid)
- {
- if(LoginPlayer[playerid] == 1)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File, "DATA");
- INI_WriteString(File, "Password", PlayerInfo[playerid][pPassword]);
- INI_WriteString(File, "Account", PlayerInfo[playerid][pAccount]);
- INI_WriteInt(File, "Pol", PlayerInfo[playerid][pPol]);
- INI_WriteInt(File, "Drzava", PlayerInfo[playerid][pDrzava]);
- INI_WriteInt(File, "Godine", PlayerInfo[playerid][pGodine]);
- INI_WriteString(File, "Email", PlayerInfo[playerid][pEmail]);
- INI_WriteInt(File, "Registration", PlayerInfo[playerid][pRegistration]);
- INI_WriteInt(File, "Skin", PlayerInfo[playerid][pSkin]);
- INI_WriteInt(File, "Security", PlayerInfo[playerid][pSecurity]);
- INI_WriteInt(File, "Money", PlayerInfo[playerid][pMoney]);
- INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]);
- INI_WriteInt(File, "Hours", PlayerInfo[playerid][pHours]);
- INI_WriteInt(File, "Time", PlayerInfo[playerid][pTime]);
- INI_WriteInt(File, "Respekt", PlayerInfo[playerid][pRespekt]);
- INI_WriteInt(File, "Pay", PlayerInfo[playerid][pPay]);
- INI_WriteInt(File, "Day", PlayerInfo[playerid][pDay]);
- INI_WriteInt(File, "Robot", PlayerInfo[playerid][pRobot]);
- INI_WriteInt(File, "Energy", PlayerInfo[playerid][pEnergy]);
- INI_WriteInt(File, "Bull", PlayerInfo[playerid][pBull]);
- INI_WriteInt(File, "Banka", PlayerInfo[playerid][pBanka]);
- INI_WriteInt(File, "BankaNovac", PlayerInfo[playerid][pBankaNovac]);
- INI_WriteString(File, "JMBG", PlayerInfo[playerid][pJMBG]);
- INI_WriteInt(File, "Bankomat", PlayerInfo[playerid][pBankomat]);
- INI_WriteString(File, "Register", PlayerInfo[playerid][pRegister]);
- INI_WriteInt(File, "Crash", PlayerInfo[playerid][pCrash]);
- INI_WriteFloat(File, "CrashPosition1", PlayerInfo[playerid][pCrashPosition][0]);
- INI_WriteFloat(File, "CrashPosition2", PlayerInfo[playerid][pCrashPosition][1]);
- INI_WriteFloat(File, "CrashPosition3", PlayerInfo[playerid][pCrashPosition][2]);
- INI_WriteFloat(File, "SpawnPosition1", PlayerInfo[playerid][pSpawnPosition][0]);
- INI_WriteFloat(File, "SpawnPosition2", PlayerInfo[playerid][pSpawnPosition][1]);
- INI_WriteFloat(File, "SpawnPosition3", PlayerInfo[playerid][pSpawnPosition][2]);
- INI_WriteInt(File, "Admin", PlayerInfo[playerid][pGSA]);
- INI_WriteInt(File, "Slot", PlayerInfo[playerid][pSlot]);
- INI_WriteInt(File, "AdminLock", PlayerInfo[playerid][pAdminLock]);
- INI_WriteInt(File, "AdminCode", PlayerInfo[playerid][pAdminCode]);
- INI_WriteInt(File, "Vehicle", PlayerInfo[playerid][pVehicle]);
- INI_WriteInt(File, "Ban", PlayerInfo[playerid][pBan]);
- INI_WriteInt(File, "Jail", PlayerInfo[playerid][pJail]);
- INI_WriteInt(File, "Points", PlayerInfo[playerid][pPoints]);
- INI_WriteInt(File, "Wanted", PlayerInfo[playerid][pWanted]);
- INI_WriteInt(File, "Breaked", PlayerInfo[playerid][pBreaked]);
- INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills]);
- INI_Close(File);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment