Iґll try to make it easier, here is full code:
Код:
enum pInfo
{
pKey[24],
pCorreo[64],
pLevel,
pAdminZC,
pLvlAdminZC,
pBanAppealer,
pFactionModerator,
pModStaff,
pGangModerator,
pHelper,
pPublicista,
pConnectTime,
pReg,
pSex,
pAge,
pHalloween,
pOrigin,
pExp,
pCash,
pTarjetaCredito,
pAccount,
pCheques,
pIP[32],
pKills,
pDeaths,
pArrested,
pJailAdmin,
pLottoNr,
pJob,
pNMute,
pNMuteTotal,
pWarn,
pWRestricted,
pJailed,
pJailTime,
pMats,
pPackages,
pDrugs,
pCosecha,
pCrack,
pPot,
pCrates,
pAdiccion,
pLeader,
pMember,
pDivision,
pFMember,
pRank,
pChar,
Float:pHealth,
Float:pArmour,
pInt,
pTeam,
pModel,
pPnumber,
pSprunk,
pSpeedo,
pPhoneBook,
pPhousekey,
pPhousekey2,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Float:pPos_r,
pCarLic,
pFlyLic,
pBoatLic,
pGunLic,
pReanimador,
pSaldo,
pPlan,
pGafas,
pTut,
pTestTut,
pVW,
pLighter,
pCigarettes,
pPapel,
pMask,
pGanzuas,
pMaskuse,
pUniformeP,
pPusoChaleco,
pPusoEscudo,
pSacoBidon,
pPusoEstado,
pHideNumber,
pSpeaker,
pBannedZC,
pDisabledZC,
pBlockBug,
pDNI,
pArmsSkill,
pTruckSkill,
pSmugSkill,
pDrugsSkill,
pRequestingBackup,
pSIDA,
pCancer,
pEpilepsia,
pDengue,
pFStyle,
pWantedLevel,
pAntiSIDA,
pAntiCancer,
pAntiEpilepsia,
pRenting,
p_Pr_Money,
pRob,
pVIP,
pPTR,
pCarKey2,
pBanDuda,
pPasaporte,
pRMuted,
pRMutedTotal,
pRMutedTime,
pRadio,
pRadioFreq,
pIpadMusic,
pGiftTime,
pWeapons[13],
pAccent,
pUndercover,
pHead,
pCHits,
pFHits,
pMarried,
pPaintTeam,
pPaintTokens,
pVehicleKeysFrom,
pVehicleKeys,
pLockCar,
pLock,
pSpraycan,
pMarriedTo[128],
pContractBy[32],
pContractDetail[64],
pServiceTime,
pTaxiLicense,
pHospital,
pTriageTime,
pWExists,
Float:pWX,
Float:pWY,
Float:pWZ,
pWVW,
pWInt,
pWValue,
pWObject,
pWTimer,
pWSeeds,
YaCobre,
pADMute,
pADMuteTotal,
pWarrant[128],
pJudgeJailTime,
pJudgeJailType,
pBeingSentenced,
pProbationTime,
pBiggestFish,
pRHours,
pADTime,
pOther,
pGTokens,
pDobleExp,
pAdverID,
pDPHours,
pDPTime,
pDPTotal,
pOrder,
pTempVIP,
pVIPInviteDay,
pBuddyInvited,
pVTokens,
pJob2,
pVIPCHAT,
pTypeSpawn,
pAutoTextReply[64],
pShopTech,
pEstado,
pVIPDateD,
pVIPDateM,
pRegalo,
pSavedTime,
pScrewdriver,
pFirstaid,
pSurveillance,
pPbizzkey,
pgskin,
pAntecedente1[32],
pAntecedente2[32],
pAntecedente3[32],
pAntecedenteID1,
pAntecedenteID2,
pAntecedenteID3,
probita,
pDNIFalse,
pDNIName[32],
pMuebles[11],
pBoombox,
pNormalName[MAX_PLAYER_NAME],
};
Код:
function LoadUser_data(playerid,name[],value[])
{
INI_Int("TarjetaCredito",Info[playerid][pTarjetaCredito]);
INI_Int("Level",Info[playerid][pLevel]);
INI_Int("AdminNivelZC",Info[playerid][pAdminZC]);
INI_Int("AdminZC",Info[playerid][pLvlAdminZC]);
INI_Int("BanAppealer",Info[playerid][pBanAppealer]);
INI_Int("FactionModerator",Info[playerid][pFactionModerator]);
INI_Int("ModStaff",Info[playerid][pModStaff]);
INI_Int("GangModerator",Info[playerid][pGangModerator]);
INI_Int("Helper",Info[playerid][pHelper]);
INI_Int("Publicista",Info[playerid][pPublicista]);
INI_Int("ConnectedTime",Info[playerid][pConnectTime]);
INI_Int("Registered",Info[playerid][pReg]);
INI_Int("Sex",Info[playerid][pSex]);
INI_Int("Age",Info[playerid][pAge]);
INI_Int("Origin",Info[playerid][pOrigin]);
INI_Int("Respect",Info[playerid][pExp]);
INI_Int("Money",Info[playerid][pCash]);
SetPVarInt(playerid, "Cash",Info[playerid][pCash]);
INI_Int("Bank",Info[playerid][pAccount]);
INI_String("IP", Info[playerid][pIP], 32);
INI_Int("Kills",Info[playerid][pKills]);
INI_Int("Deaths",Info[playerid][pDeaths]);
INI_Int("Arrested",Info[playerid][pArrested]);
INI_Int("JailAdmin",Info[playerid][pJailAdmin]);
INI_Int("LottoNr",Info[playerid][pLottoNr]);
INI_Int( "Negocio",Info[playerid][pPbizzkey]);
INI_Int( "Skinn",Info[playerid][pgskin]);
INI_Int( "Ganzuas",Info[playerid][pGanzuas]);
INI_Int( "robita",Info[playerid][probita]);
INI_String( "DNIName",Info[playerid][pDNIName], 32);
INI_Int( "DNIFalse",Info[playerid][pDNIFalse]);
INI_Int("Job",Info[playerid][pJob]);
INI_Int("NewMuted",Info[playerid][pNMute]);
INI_Int("NewMutedTotal",Info[playerid][pNMuteTotal]);
INI_Int("Warn",Info[playerid][pWarn]);
INI_Int("WRestricted",Info[playerid][pWRestricted]);
INI_Int("Jailed",Info[playerid][pJailed]);
INI_Int("JailTime",Info[playerid][pJailTime]);
INI_Int("Materials",Info[playerid][pMats]);
INI_Int("Packages",Info[playerid][pPackages]);
SetPVarInt(playerid, "Packages",Info[playerid][pPackages]);
INI_Int("Drugs",Info[playerid][pDrugs]);
INI_Int("Cosecha",Info[playerid][pCosecha]);
INI_Int("Crack",Info[playerid][pCrack]);
INI_Int("Pot",Info[playerid][pPot]);
INI_Int("Crates",Info[playerid][pCrates]);
INI_Int("Adic",Info[playerid][pAdiccion]);
INI_Int("Leader",Info[playerid][pLeader]);
INI_Int("Member",Info[playerid][pMember]);
INI_Int("FMember",Info[playerid][pFMember]);
INI_Int("Division",Info[playerid][pDivision]);
INI_Int("Rank",Info[playerid][pRank]);
INI_Int("Char",Info[playerid][pChar]);
INI_Float("pHealth",Info[playerid][pHealth]);
INI_Float("pArmour",Info[playerid][pArmour]);
INI_Int("Team",Info[playerid][pTeam]);
INI_Int("Model",Info[playerid][pModel]);
INI_Int("PhoneNr",Info[playerid][pPnumber]);
INI_Int("Sprunk",Info[playerid][pSprunk]);
INI_Int("Phonebook",Info[playerid][pPhoneBook]);
INI_Int("House",Info[playerid][pPhousekey]);
INI_Int("House2",Info[playerid][pPhousekey2]);
INI_Int("Int", Info[playerid][pInt]);
INI_Float("Pos_x",Info[playerid][pPos_x]);
INI_Float("Pos_y",Info[playerid][pPos_y]);
INI_Float("Pos_z",Info[playerid][pPos_z]);
INI_Float("SPos_r",Info[playerid][pPos_r]);
INI_Int("CarLic",Info[playerid][pCarLic]);
INI_Int("FlyLic",Info[playerid][pFlyLic]);
INI_Int("BoatLic",Info[playerid][pBoatLic]);
INI_Int("GunLic",Info[playerid][pGunLic]);
INI_Int("Reanimador",Info[playerid][pReanimador]);
INI_Int("Saldo",Info[playerid][pSaldo]);
INI_Int("Plan",Info[playerid][pPlan]);
INI_Int("Gafas",Info[playerid][pGafas]);
INI_Int("Tutorial",Info[playerid][pTut]);
INI_Int("Test",Info[playerid][pTestTut]);
INI_Int("VWorld",Info[playerid][pVW]);
INI_Int("Lighter",Info[playerid][pLighter]);
INI_Int("Cigarettes",Info[playerid][pCigarettes]);
INI_Int("BanZC",Info[playerid][pBannedZC]);
INI_Int("DisabledZC",Info[playerid][pDisabledZC]);
INI_Int("BlockBug",Info[playerid][pBlockBug]);
INI_Int("DNI",Info[playerid][pDNI]);
INI_Int("VSkill",Info[playerid][pArmsSkill]);
INI_Int("TSkill",Info[playerid][pTruckSkill]);
INI_Int("SmugglerSkill",Info[playerid][pSmugSkill]);
INI_Int("DrugsSkill",Info[playerid][pDrugsSkill]);
INI_Int("SIDA",Info[playerid][pSIDA]);
INI_Int("Cancer" ,Info[playerid][pCancer]);
INI_Int("Epilepsia",Info[playerid][pEpilepsia]);
INI_Int("Dengue",Info[playerid][pDengue]);
INI_Int("FStyle",Info[playerid][pFStyle]);
INI_Int("Busqueda",Info[playerid][pWantedLevel]);
INI_Int("AntiSIDA",Info[playerid][pAntiSIDA]);
INI_Int("AntiCancer",Info[playerid][pAntiCancer]);
INI_Int("AntiEpilepsia",Info[playerid][pAntiEpilepsia]);
INI_Int("Rent",Info[playerid][pRenting]);
INI_Int("prMoney",Info[playerid][p_Pr_Money]);
INI_Int("Rob",Info[playerid][pRob]);
INI_Int("Premium",Info[playerid][pVIP]);
INI_Int("FichasCash",Info[playerid][pPTR]);
INI_Int("CarPremium",Info[playerid][pCarKey2]);
INI_Int("BanDuda",Info[playerid][pBanDuda]);
INI_Int("ReportMuted",Info[playerid][pRMuted]);
INI_Int("ReportMutedTotal",Info[playerid][pRMutedTotal]);
INI_Int("ReportMutedTime",Info[playerid][pRMutedTime]);
INI_Int("Pasaporte",Info[playerid][pPasaporte]);
INI_Int("RadioP", Info[playerid][pRadio]);
INI_Int("KHZ",Info[playerid][pRadioFreq]);
INI_Int("Ipad",Info[playerid][pIpadMusic]);
INI_Int("GiftTime",Info[playerid][pGiftTime]);
INI_Int("Boombox", Info[playerid][pBoombox]);
INI_String( "Antecedente1",Info[playerid][pAntecedente1], 32);
INI_String( "Antecedente2",Info[playerid][pAntecedente2], 32);
INI_String( "Antecedente3",Info[playerid][pAntecedente3], 32);
INI_Int("AntecedenteID1", Info[playerid][pAntecedenteID1]);
INI_Int("AntecedenteID2", Info[playerid][pAntecedenteID2]);
INI_Int("AntecedenteID3", Info[playerid][pAntecedenteID3]);
Код:
TotalConnect++;
resetPlayerVariables(playerid);
MapsRemoveForPlayer(playerid);
ClearMarriage(playerid);
SyncPlayerTime(playerid);
ClearChatbox(playerid);
//SafeLogin(playerid);
if(Iter_Count(Player) > MaxPlayersConnected)
{
MaxPlayersConnected = Iter_Count(Player);
gettime(MPHour,MPMinute);
getdate(MPYear,MPMonth,MPDay);
}
if(Info[playerid][pPbizzkey] == 0)
{
Info[playerid][pPbizzkey] = 9999;
}
if(MaxPlayersConnected > 200) MaxPlayersConnected = 200;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(!INI_Exist(playername))
{
if(doesAccountExist(playername))
{
ConvertAccount(playerid);
return 1;
}
}
SetTimerEx("SafeLogin", 4000, 0, "d", playerid);
//GameTextForPlayer(playerid, "~w~Cargando datos de tu cuenta", 1500, 3);
Код:
Info[playerid][pSaldo] = 0; Info[playerid][pPlan] = 0;
Info[playerid][pCheques] = 0; Info[playerid][pPublicista] = 0;
Info[playerid][pTarjetaCredito] = 0; Info[playerid][pBoombox] = 0;
Info[playerid][pLevel] = 0; Info[playerid][pAdminZC] = 0;
Info[playerid][pFactionModerator] = 0; Info[playerid][pGangModerator] = 0;
Info[playerid][pLvlAdminZC] = 0; Info[playerid][pHelper] = 0;
Info[playerid][pBanAppealer] = 0; Info[playerid][pConnectTime] = 0;
Info[playerid][pReg] = 0; Info[playerid][pSex] = 0;
Info[playerid][pAge] = 0; Info[playerid][pOrigin] = 0;
Info[playerid][pExp] = 0; Info[playerid][pAccount] = 0;
Info[playerid][pDeaths] = 0; Info[playerid][pArrested] = 0;
Info[playerid][pJailAdmin] = 0; Info[playerid][pOrder] = 0;
Info[playerid][pTempVIP] = 0; Info[playerid][pBuddyInvited] = 0;
Info[playerid][pVIPInviteDay] = 0; Info[playerid][pVTokens] = 0;
Info[playerid][pJob2] = 0; Info[playerid][pTypeSpawn] = 0;
Info[playerid][pShopTech] = 0; Info[playerid][pEstado] = 0;
Info[playerid][pVIPDateM] = -1; Info[playerid][pVIPDateD] = -1;
Info[playerid][pRegalo] = -1; Info[playerid][pLottoNr] = 0;
Info[playerid][pJob] = 0; Info[playerid][pNMute] = 0;
Info[playerid][pNMuteTotal] = 0; Info[playerid][pWarn] = 0;
Info[playerid][pWRestricted] = 0; Info[playerid][pJailed] = 0;
Info[playerid][pJailTime] = 0; Info[playerid][pMats] = 0;
Info[playerid][pDrugs] = 0; Info[playerid][pCosecha] = 0;
Info[playerid][pCrack] = 0; Info[playerid][pPot] = 0;
Info[playerid][pAdiccion] = 0; Info[playerid][pPackages] = 0;
Info[playerid][pLeader] = 0; Info[playerid][pMember] = 0;
Info[playerid][pDivision] = 0; Info[playerid][pFMember] = 255;
Info[playerid][pDPHours] = 0; Info[playerid][pDPTime] = -1;
Info[playerid][pDPTotal] = 0; Info[playerid][pRank] = 0;
Info[playerid][pChar] = 0; Info[playerid][pHealth] = 100.0;
Info[playerid][pArmour] = 0.0; Info[playerid][pPos_x] = 1612.3240;
Info[playerid][pPos_y] = -2330.1670; Info[playerid][pPos_z] = 13.5469;
Info[playerid][pInt] = 0; Info[playerid][pTeam] = 3;
Info[playerid][pModel] = 7; Info[playerid][pSprunk] = 0;
Info[playerid][pPnumber] = 0; Info[playerid][pPhoneBook] = 0;
Info[playerid][pPhousekey]=INVALID_HOUSE_ID;Info[playerid][pPhousekey2] = INVALID_HOUSE_ID;
Info[playerid][pCarLic] = 0; Info[playerid][pFlyLic] = 0;
Info[playerid][pBoatLic] = 0; Info[playerid][pGunLic] = 0;
Info[playerid][pReanimador] = 0; Info[playerid][pGanzuas] = 0;
Info[playerid][pGafas] = 0; Info[playerid][pTut] = 0;
Info[playerid][pTestTut] = 0; Info[playerid][pLighter] = 0;
Info[playerid][pCigarettes] = 0; Info[playerid][pHideNumber] = 0;
Info[playerid][pSpeaker] = 0; Info[playerid][pBannedZC] = 0;
Info[playerid][pDisabledZC] = 0; Info[playerid][pBlockBug] = 0;
new dni = 100000 + random(899999); Info[playerid][pDNI] = dni;
Info[playerid][pArmsSkill] = 0; Info[playerid][pTruckSkill] = 0;
Info[playerid][pSmugSkill] = 0; Info[playerid][pDrugsSkill] = 0;
Info[playerid][pRequestingBackup] = 0; Info[playerid][pSIDA] = 0;
Info[playerid][pCancer] = 0; Info[playerid][pEpilepsia] = 0;
Info[playerid][pDengue] = 0; Info[playerid][pWantedLevel] = 0;
Info[playerid][pAntiSIDA] = 0; Info[playerid][pAntiCancer] = 0;
Info[playerid][pAntiEpilepsia] = 0; Info[playerid][pRenting] = INVALID_HOUSE_ID;
Info[playerid][p_Pr_Money] = 0; Info[playerid][pRHours] = 0;
Info[playerid][pRob] = 0; Info[playerid][pVIP] = 0;
Info[playerid][pBanDuda] = 0; Info[playerid][pRMuted] = 0;
Info[playerid][pRMutedTotal] = 0; Info[playerid][pRMutedTime] = 0;
Info[playerid][pPasaporte] = 0; Info[playerid][pRadio] = 0;
Info[playerid][pRadioFreq] = 0; Info[playerid][pIpadMusic] = 0;
Info[playerid][pGiftTime] = 0; Info[playerid][pAccent] = 0;
Info[playerid][pPaintTeam] = 0; Info[playerid][pPaintTokens] = 0;
Info[playerid][pUndercover] = 0; Info[playerid][pVehicleKeysFrom] = INVALID_PLAYER_ID;
Info[playerid][pVIPCHAT] = 0; Info[playerid][pLockCar] = INVALID_VEHICLE_ID;
Info[playerid][pSpraycan] = 0; Info[playerid][pCarKey2]=INVALID_PLAYER_VEHICLE_ID;
Info[playerid][pServiceTime] = 0; Info[playerid][pTriageTime] = 0;
Info[playerid][pTaxiLicense] = 0; Info[playerid][pLock] = 0;
Info[playerid][pHead] = 0; Info[playerid][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
Info[playerid][pCHits] = 0; Info[playerid][pFHits] = 0;
Info[playerid][pJudgeJailTime] = 0; Info[playerid][pJudgeJailType] = 0;
Info[playerid][pBeingSentenced] = 0; Info[playerid][pProbationTime] = 0;
Info[playerid][pWExists] = 0; Info[playerid][pWX] = 0;
Info[playerid][pWY] = 0; Info[playerid][pWZ] = 0;
Info[playerid][pWVW] = 0; Info[playerid][pWInt] = 0;
Info[playerid][pWValue] = -1; Info[playerid][pWTimer] = -1;
Info[playerid][pWSeeds] = 0; Info[playerid][YaCobre] = 0;
Info[playerid][pADMute] = 0; Info[playerid][pADMuteTotal] = 0;
Info[playerid][pADTime] = 0; Info[playerid][pOther] = 5;
Info[playerid][pGTokens] = 0; Info[playerid][pDobleExp] = 0;
Info[playerid][pAdverID] = -1; Info[playerid][pFirstaid] = 0;
Info[playerid][pScrewdriver] = 0; Info[playerid][pPTR] = 0;
Info[playerid][pSurveillance] = 0; Info[playerid][pHalloween] = 0;
Info[playerid][pModStaff] = 0; Info[playerid][pPbizzkey] = -1;
Код:
function ConvertAccount(playerid)
{
new string2[64], string[128];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), USERFILEOLD, playername2);
new File: UserFile = fopen(string2, io_read);
if(UserFile)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "TarjetaCredito" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTarjetaCredito] = strval( val ); }
if( strcmp( key , "Key" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(Info[playerid][pKey], val, 0, strlen(val)-1, 24); }
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLevel] = strval( val ); }
if( strcmp( key , "AdminNivelZC" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAdminZC] = strval( val ); }
if( strcmp( key , "AdminZC" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLvlAdminZC] = strval( val ); }
if( strcmp( key , "BanAppealer" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBanAppealer] = strval( val ); }
if( strcmp( key , "FactionModerator" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFactionModerator] = strval( val ); }
if( strcmp( key , "ModStaff" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pModStaff] = strval( val ); }
if( strcmp( key , "GangModerator" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGangModerator] = strval( val ); }
if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pHelper] = strval( val ); }
if( strcmp( key , "Publicista" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPublicista] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pSex] = strval( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAge] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pExp] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Cash", strval( val )); }
if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAccount] = strval( val ); }
if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(Info[playerid][pIP], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pArrested] = strval( val ); }
if( strcmp( key , "JailAdmin" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJailAdmin] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJob] = strval( val ); }
if( strcmp( key , "NewMuted" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pNMute] = strval( val ); }
if( strcmp( key , "NewMutedTotal" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pNMuteTotal] = strval( val ); }
if( strcmp( key , "Warn" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWarn] = strval( val ); }
if( strcmp( key , "WRestricted" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWRestricted] = strval( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJailed] = strval( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJailTime] = strval( val ); }
if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pMats] = strval( val ); }
if( strcmp( key , "Packages" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, key, strval( val )); }
if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDrugs] = strval( val ); }
if( strcmp( key , "Cosecha" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCosecha] = strval( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCrack] = strval( val ); }
if( strcmp( key , "Pot" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPot] = strval( val ); }
if( strcmp( key , "Crates" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCrates] = strval( val ); }
if( strcmp( key , "Adic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAdiccion] = strval( val ); }
if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLeader] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pMember] = strval( val ); }
if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFMember] = strval( val ); }
if( strcmp( key , "Division" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDivision] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRank] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pChar] = strval( val ); }
if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pHealth] = floatstr( val ); }
if( strcmp( key , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pArmour] = floatstr( val ); }
if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTeam] = strval( val ); }
if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pModel] = strval( val ); }
if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "Sprunk" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pSprunk] = strval( val ); }
if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPhousekey] = strval( val ); }
if( strcmp( key , "House2" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPhousekey2] = strval( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pInt] = strval( val ); }
if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPos_x] = floatstr( val ); }
if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPos_y] = floatstr( val ); }
if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPos_z] = floatstr( val ); }
if( strcmp( key , "SPos_r" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPos_r] = floatstr( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCarLic] = strval( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBoatLic] = strval( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGunLic] = strval( val ); }
if( strcmp( key , "Reanimador" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pReanimador] = strval( val ); }
if( strcmp( key , "Gafas" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGafas] = strval( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTut] = strval( val ); }
if( strcmp( key , "Test" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTestTut] = strval( val ); }
if( strcmp( key , "VWorld" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pVW] = strval( val ); }
if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLighter] = strval( val ); }
if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCigarettes] = strval( val ); }
if( strcmp( key , "BanZC" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBannedZC] = strval( val ); }
if( strcmp( key , "Ganzuas" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGanzuas] = strval( val ); }
if( strcmp( key , "DisabledZC" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDisabledZC] = strval( val ); }
if( strcmp( key , "BlockBug" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBlockBug] = strval( val ); }
if( strcmp( key , "DNI" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDNI] = strval( val ); }
if( strcmp( key , "VSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pArmsSkill] = strval( val ); }
if( strcmp( key , "TSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTruckSkill] = strval( val ); }
if( strcmp( key , "SmugglerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pSmugSkill] = strval( val ); }
if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDrugsSkill] = strval( val ); }
if( strcmp( key , "SIDA" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pSIDA] = strval( val ); }
if( strcmp( key , "Cancer" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCancer] = strval( val ); }
if( strcmp( key , "Epilepsia" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pEpilepsia] = strval( val ); }
if( strcmp( key , "Dengue" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDengue] = strval( val ); }
if( strcmp( key , "FStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFStyle] = strval( val ); }
if( strcmp( key , "Busqueda" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWantedLevel] = strval( val ); }
if( strcmp( key , "AntiSIDA" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAntiSIDA] = strval( val ); }
if( strcmp( key , "AntiCancer" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAntiCancer] = strval( val ); }
if( strcmp( key , "AntiEpilepsia" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAntiEpilepsia] = strval( val ); }
if( strcmp( key , "Rent" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRenting] = strval( val ); }
if( strcmp( key , "prMoney" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][p_Pr_Money] = strval( val ); }
if( strcmp( key , "Rob" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRob] = strval( val ); }
if( strcmp( key , "Premium" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pVIP] = strval( val ); }
if( strcmp( key , "FichasCash" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPTR] = strval( val ); }
if( strcmp( key , "CarPremium" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCarKey2] = strval( val ); }
if( strcmp( key , "BanDuda" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBanDuda] = strval( val ); }
if( strcmp( key , "ReportMuted" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRMuted] = strval( val ); }
if( strcmp( key , "ReportMutedTotal" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRMutedTotal] = strval( val ); }
if( strcmp( key , "ReportMutedTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRMutedTime] = strval( val ); }
if( strcmp( key , "Pasaporte" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPasaporte] = strval( val ); }
if( strcmp( key , "RadioP" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRadio] = strval( val ); }
if( strcmp( key , "KHZ" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRadioFreq] = strval( val ); }
if( strcmp( key , "Ipad" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pIpadMusic] = strval( val ); }
if( strcmp( key , "GiftTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGiftTime] = strval( val ); }
if( strcmp( key , "Negocio" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPbizzkey] = strval( val ); }
if( strcmp( key , "skinn" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pgskin] = strval( val ); }
if( strcmp( key , "robita" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][probita] = strval( val ); }
Код:
if(!INI_Exist(playername2))
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(Info[playerid][pKey]));
INI_WriteInt(File,"Level",Info[playerid][pLevel]);
INI_WriteInt(File,"AdminNivelZC",Info[playerid][pAdminZC]);
INI_WriteInt(File,"AdminZC",Info[playerid][pLvlAdminZC]);
INI_WriteInt(File,"BanAppealer",Info[playerid][pBanAppealer]);
INI_WriteInt(File,"FactionModerator",Info[playerid][pFactionModerator]);
INI_WriteInt(File,"ModStaff",Info[playerid][pModStaff]);
INI_WriteInt(File,"GangModerator",Info[playerid][pGangModerator]);
INI_WriteInt(File,"Helper",Info[playerid][pHelper]);
INI_WriteInt(File,"Publicista",Info[playerid][pPublicista]);
INI_WriteInt(File,"ConnectedTime",Info[playerid][pConnectTime]);
INI_WriteInt(File,"Registered",Info[playerid][pReg]);
INI_WriteInt(File,"Sex",Info[playerid][pSex]);
INI_WriteInt(File,"Age",Info[playerid][pAge]);
INI_WriteInt(File,"Origin",Info[playerid][pOrigin]);
INI_WriteInt(File,"Respect",Info[playerid][pExp]);
INI_WriteInt(File,"Money",GetPVarInt(playerid, "Cash"));
INI_WriteInt(File,"Bank",Info[playerid][pAccount]);
INI_WriteString(File,"IP", Info[playerid][pIP]);
INI_WriteInt(File,"DNIFalse",Info[playerid][pDNIFalse]);
INI_WriteString( File, "DNIName",Info[playerid][pDNIName]);
INI_WriteInt(File,"Kills",Info[playerid][pKills]);
INI_WriteInt(File,"Ganzuas",Info[playerid][pGanzuas]);
INI_WriteInt(File,"Deaths",Info[playerid][pDeaths]);
INI_WriteInt(File,"Arrested",Info[playerid][pArrested]);
INI_WriteInt(File,"JailAdmin",Info[playerid][pJailAdmin]);
INI_WriteInt(File,"LottoNr",Info[playerid][pLottoNr]);
INI_WriteInt(File,"Job",Info[playerid][pJob]);
INI_WriteInt(File,"NewMuted",Info[playerid][pNMute]);
INI_WriteInt(File,"NewMutedTotal",Info[playerid][pNMuteTotal]);
INI_WriteInt(File,"Warn",Info[playerid][pWarn]);
INI_WriteInt(File,"WRestricted",Info[playerid][pWRestricted]);
INI_WriteInt(File,"Jailed",Info[playerid][pJailed]);
INI_WriteInt(File,"JailTime",Info[playerid][pJailTime]);
INI_WriteInt(File,"Materials",Info[playerid][pMats]);
INI_WriteInt(File,"Packages",GetPVarInt(playerid, "Packages"));
INI_WriteInt(File,"Drugs",Info[playerid][pDrugs]);
INI_WriteInt(File,"Cosecha",Info[playerid][pCosecha]);
INI_WriteInt(File,"Crack",Info[playerid][pCrack]);
INI_WriteInt(File,"Pot",Info[playerid][pPot]);
INI_WriteInt(File,"Crates",Info[playerid][pCrates]);
INI_WriteInt(File,"Adic",Info[playerid][pAdiccion]);
INI_WriteInt(File,"Leader",Info[playerid][pLeader]);
INI_WriteInt(File,"Member",Info[playerid][pMember]);
INI_WriteInt(File,"FMember",Info[playerid][pFMember]);
INI_WriteInt(File,"Division",Info[playerid][pDivision]);
INI_WriteInt(File,"Rank",Info[playerid][pRank]);
INI_WriteInt(File,"Char",Info[playerid][pChar]);
INI_WriteFloat(File,"pHealth",Info[playerid][pHealth]);
INI_WriteFloat(File,"pArmour",Info[playerid][pArmour]);
INI_WriteInt(File,"Team",Info[playerid][pTeam]);
INI_WriteInt(File,"Model",Info[playerid][pModel]);
INI_WriteInt(File,"PhoneNr",Info[playerid][pPnumber]);
INI_WriteInt(File,"Sprunk",Info[playerid][pSprunk]);
INI_WriteInt(File,"Phonebook",Info[playerid][pPhoneBook]);
INI_WriteInt(File,"House",Info[playerid][pPhousekey]);
INI_WriteInt(File,"House2",Info[playerid][pPhousekey2]);
INI_WriteInt(File,"Int", Info[playerid][pInt]);
INI_WriteFloat(File,"Pos_x",Info[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",Info[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",Info[playerid][pPos_z]);
INI_WriteFloat(File,"SPos_r",Info[playerid][pPos_r]);
INI_WriteInt(File,"CarLic",Info[playerid][pCarLic]);
INI_WriteInt(File,"FlyLic",Info[playerid][pFlyLic]);
INI_WriteInt(File,"BoatLic",Info[playerid][pBoatLic]);
INI_WriteInt(File,"GunLic",Info[playerid][pGunLic]);
INI_WriteInt(File,"Saldo",Info[playerid][pSaldo]);
INI_WriteInt(File,"Plan",Info[playerid][pPlan]);
INI_WriteInt(File,"Reanimador",Info[playerid][pReanimador]);
INI_WriteInt(File,"Gafas",Info[playerid][pGafas]);
INI_WriteInt(File,"Tutorial",Info[playerid][pTut]);
INI_WriteInt(File,"Test",Info[playerid][pTestTut]);
INI_WriteInt(File,"VWorld",Info[playerid][pVW]);
INI_WriteInt(File,"Lighter",Info[playerid][pLighter]);
INI_WriteInt(File,"Cigarettes",Info[playerid][pCigarettes]);
INI_WriteInt(File,"BanZC",Info[playerid][pBannedZC]);
INI_WriteInt(File,"DisabledZC",Info[playerid][pDisabledZC]);
INI_WriteInt(File,"BlockBug",Info[playerid][pBlockBug]);
INI_WriteInt(File,"DNI",Info[playerid][pDNI]);
INI_WriteInt(File,"VSkill",Info[playerid][pArmsSkill]);
INI_WriteInt(File,"TSkill",Info[playerid][pTruckSkill]);
INI_WriteInt(File,"SmugglerSkill",Info[playerid][pSmugSkill]);
INI_WriteInt(File,"DrugsSkill",Info[playerid][pDrugsSkill]);
INI_WriteInt(File,"SIDA",Info[playerid][pSIDA]);
INI_WriteInt(File,"Cancer" ,Info[playerid][pCancer]);
INI_WriteInt(File,"Epilepsia",Info[playerid][pEpilepsia]);
INI_WriteInt(File,"Dengue",Info[playerid][pDengue]);
INI_WriteInt(File,"FStyle",Info[playerid][pFStyle]);
INI_WriteInt(File,"Busqueda",Info[playerid][pWantedLevel]);
INI_WriteInt(File,"AntiSIDA",Info[playerid][pAntiSIDA]);
INI_WriteInt(File,"AntiCancer",Info[playerid][pAntiCancer]);
INI_WriteInt(File,"AntiEpilepsia",Info[playerid][pAntiEpilepsia]);
INI_WriteInt(File,"Rent",Info[playerid][pRenting]);
INI_WriteInt(File,"prMoney",Info[playerid][p_Pr_Money]);
INI_WriteInt(File,"Rob",Info[playerid][pRob]);
INI_WriteInt(File,"Premium",Info[playerid][pVIP]);
INI_WriteInt(File,"FichasCash",Info[playerid][pPTR]);
INI_WriteInt(File,"CarPremium",Info[playerid][pCarKey2]);
INI_WriteInt(File,"BanDuda",Info[playerid][pBanDuda]);
INI_WriteInt(File,"ReportMuted",Info[playerid][pRMuted]);
INI_WriteInt(File,"ReportMutedTotal",Info[playerid][pRMutedTotal]);
INI_WriteInt(File,"ReportMutedTime",Info[playerid][pRMutedTime]);
INI_WriteInt(File,"Pasaporte",Info[playerid][pPasaporte]);
INI_WriteInt(File,"RadioP", Info[playerid][pRadio]);
INI_WriteInt(File,"KHZ",Info[playerid][pRadioFreq]);
INI_WriteInt(File,"Ipad",Info[playerid][pIpadMusic]);
INI_WriteInt(File,"GiftTime",Info[playerid][pGiftTime]);
INI_WriteInt(File,"Negocio",Info[playerid][pPbizzkey]);
Код:
for( new m = 0; m < 13; m++ )
{
new mStr[24];
format(mStr,sizeof(mStr), "Gun%d", m);
INI_WriteInt(File,mStr, Info[playerid][pWeapons][m]);
}
INI_WriteInt(File,"Acento",Info[playerid][pAccent]);
INI_WriteInt(File,"PTokens",Info[playerid][pPaintTokens]);
INI_WriteInt(File,"Undercover",Info[playerid][pUndercover]);
INI_WriteInt(File,"Head",Info[playerid][pHead]);
INI_WriteInt(File,"TaxiLicense", Info[playerid][pTaxiLicense]);
INI_WriteInt(File,"Hospital",Info[playerid][pHospital]);
INI_WriteInt(File,"CHits",Info[playerid][pCHits]);
INI_WriteInt(File,"FHits",Info[playerid][pFHits]);
INI_WriteInt(File,"Spraycan",Info[playerid][pSpraycan]);
INI_WriteInt(File,"Married",Info[playerid][pMarried]);
INI_WriteString(File,"MarriedTo",Info[playerid][pMarriedTo]);
INI_WriteString(File,"ContractBy",Info[playerid][pContractBy]);
INI_WriteString(File,"ContractDetail",Info[playerid][pContractDetail]);
INI_WriteString(File,"Correo",Info[playerid][pCorreo]);
INI_WriteInt(File,"pWExists",Info[playerid][pWExists]);
INI_WriteFloat(File,"pWX",Info[playerid][pWX]);
INI_WriteFloat(File,"pWY",Info[playerid][pWY]);
INI_WriteFloat(File,"pWZ",Info[playerid][pWZ]);
INI_WriteInt(File,"pWVW",Info[playerid][pWVW]);
INI_WriteInt(File,"pWInt",Info[playerid][pWInt]);
INI_WriteInt(File,"pWValue",Info[playerid][pWValue]);
INI_WriteInt(File,"pWSeeds",Info[playerid][pWSeeds]);
INI_WriteInt(File,"pHalloween",Info[playerid][pHalloween]);
INI_WriteInt(File,"PayEx",Info[playerid][YaCobre]);
INI_WriteInt(File,"AdMuted",Info[playerid][pADMute]);
INI_WriteInt(File,"AdMutedTotal",Info[playerid][pADMuteTotal]);
INI_WriteString(File,"Warrants",Info[playerid][pWarrant]);
INI_WriteInt(File,"JudgeJailTime",Info[playerid][pJudgeJailTime]);
INI_WriteInt(File,"JudgeJailType",Info[playerid][pJudgeJailType]);
INI_WriteInt(File,"BeingSentenced",Info[playerid][pBeingSentenced]);
INI_WriteInt(File,"ProbationTime",Info[playerid][pProbationTime]);
INI_WriteInt(File,"RewardsHours",Info[playerid][pRHours]);
INI_WriteInt(File,"ADTime",Info[playerid][pADTime]);
INI_WriteInt(File,"Otros",Info[playerid][pOther]);
INI_WriteInt(File,"GGTokens",Info[playerid][pGTokens]);
INI_WriteInt(File,"HDExp",Info[playerid][pDobleExp]);
INI_WriteInt(File,"DPHoras",Info[playerid][pDPHours]);
INI_WriteInt(File,"DPTiempo",Info[playerid][pDPTime]);
INI_WriteInt(File,"DPTotal",Info[playerid][pDPTotal]);
INI_WriteInt(File,"Order",Info[playerid][pOrder]);
INI_WriteInt(File,"TempVIP",Info[playerid][pTempVIP]);
INI_WriteInt(File,"VIPInviteDay",Info[playerid][pVIPInviteDay]);
INI_WriteInt(File,"BuddyInvite",Info[playerid][pBuddyInvited]);
INI_WriteInt(File,"VTokens",Info[playerid][pVTokens]);
INI_WriteInt(File,"Job2",Info[playerid][pJob2]);
INI_WriteInt(File,"TypeSpawn",Info[playerid][pTypeSpawn]);
INI_WriteInt(File,"ShopTech",Info[playerid][pShopTech]);
INI_WriteInt(File,"Status",Info[playerid][pEstado]);
INI_WriteInt(File,"DayVIP",Info[playerid][pVIPDateD]);
INI_WriteInt(File,"MonthVIP",Info[playerid][pVIPDateM]);
INI_WriteInt(File,"IDRegalo",Info[playerid][pRegalo]);
INI_WriteInt(File,"Negocio",Info[playerid][pPbizzkey]);
INI_WriteInt(File,"skinn",Info[playerid][pgskin]);
INI_WriteInt(File,"robita",Info[playerid][probita]);
Код:
new pto = Info[targetid][pPbizzkey],
ptr = Info[targetid][pPTR],
admutes = Info[targetid][pADMuteTotal],
xH = Info[targetid][pDobleExp],
married[20];
strmid(married, Info[targetid][pMarriedTo], 0, strlen(Info[targetid][pMarriedTo]), 255);
format(fMatriz,sizeof(fMatriz),"(Negocio: %d) - (Casado(a) con %s) - (Puntos de rol: %d) - (AD Mutes %d) - (Horas 2x %d)", pto, married, ptr, admutes, xH);
Код:
OnPlayerSavedStats(playerid)
{
if(GetPVarInt(playerid, "TempName") == 1) return 1;
if(!gPlayerLogged{playerid}) return 1;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(INI_Exist(playername))
{
new PlayerFile[ 13 + MAX_PLAYER_NAME + 1];
format( PlayerFile , sizeof PlayerFile, USERFILE, playername);
new INI:File = INI_Open(PlayerFile);
INI_SetTag(File,"data");
INI_WriteInt(File,"TarjetaCredito",Info[playerid][pTarjetaCredito]);
INI_WriteInt(File,"Level",Info[playerid][pLevel]);
INI_WriteInt(File,"AdminNivelZC",Info[playerid][pAdminZC]);
INI_WriteInt(File,"AdminZC",Info[playerid][pLvlAdminZC]);
INI_WriteInt(File,"BanAppealer",Info[playerid][pBanAppealer]);
INI_WriteInt(File,"FactionModerator",Info[playerid][pFactionModerator]);
INI_WriteInt(File,"ModStaff",Info[playerid][pModStaff]);
INI_WriteInt(File,"GangModerator",Info[playerid][pGangModerator]);
INI_WriteInt(File,"Helper",Info[playerid][pHelper]);
INI_WriteInt(File,"ConnectedTime",Info[playerid][pConnectTime]);
INI_WriteInt(File,"Registered",Info[playerid][pReg]);
INI_WriteInt(File,"Sex",Info[playerid][pSex]);
INI_WriteInt(File,"Age",Info[playerid][pAge]);
INI_WriteInt(File,"Origin",Info[playerid][pOrigin]);
INI_WriteInt(File,"Respect",Info[playerid][pExp]);
INI_WriteInt(File,"Money",GetPVarInt(playerid, "Cash"));
INI_WriteInt(File,"Bank",Info[playerid][pAccount]);
INI_WriteString(File,"IP", Info[playerid][pIP]);
INI_WriteInt(File,"Kills",Info[playerid][pKills]);
INI_WriteInt(File,"Deaths",Info[playerid][pDeaths]);
INI_WriteInt(File,"Arrested",Info[playerid][pArrested]);
INI_WriteInt(File,"JailAdmin",Info[playerid][pJailAdmin]);
INI_WriteInt(File,"LottoNr",Info[playerid][pLottoNr]);
INI_WriteInt(File,"Job",Info[playerid][pJob]);
INI_WriteInt(File,"NewMuted",Info[playerid][pNMute]);
INI_WriteInt(File,"NewMutedTotal",Info[playerid][pNMuteTotal]);
INI_WriteInt(File,"Warn",Info[playerid][pWarn]);
INI_WriteInt(File,"WRestricted",Info[playerid][pWRestricted]);
INI_WriteInt(File,"Jailed",Info[playerid][pJailed]);
INI_WriteInt(File,"JailTime",Info[playerid][pJailTime]);
INI_WriteInt(File,"Materials",Info[playerid][pMats]);
INI_WriteInt(File,"Packages",GetPVarInt(playerid, "Packages"));
INI_WriteInt(File,"Drugs",Info[playerid][pDrugs]);
INI_WriteInt(File,"Cosecha",Info[playerid][pCosecha]);
INI_WriteInt(File,"Crack",Info[playerid][pCrack]);
INI_WriteInt(File,"Pot",Info[playerid][pPot]);
INI_WriteInt(File,"Crates",Info[playerid][pCrates]);
INI_WriteInt(File,"Adic",Info[playerid][pAdiccion]);
INI_WriteInt(File,"Leader",Info[playerid][pLeader]);
INI_WriteInt(File,"Member",Info[playerid][pMember]);
INI_WriteInt(File,"FMember",Info[playerid][pFMember]);
INI_WriteInt(File,"Division",Info[playerid][pDivision]);
INI_WriteInt(File,"Rank",Info[playerid][pRank]);
INI_WriteInt(File,"Char",Info[playerid][pChar]);
if(GetPVarInt(playerid, "EventToken") == 0 && GetPVarInt(playerid, "IsInArena") == 0){
GetPlayerHealth(playerid,Info[playerid][pHealth]);
}
INI_WriteFloat(File,"pHealth",Info[playerid][pHealth]);
if(GetPVarInt(playerid, "EventToken") == 0 && GetPVarInt(playerid, "IsInArena") == 0){
GetPlayerArmour(playerid,Info[playerid][pArmour]);
}
INI_WriteFloat(File,"pArmour",Info[playerid][pArmour]);
INI_WriteInt(File,"Team",Info[playerid][pTeam]);
INI_WriteInt(File,"Model",Info[playerid][pModel]);
INI_WriteInt(File,"PhoneNr",Info[playerid][pPnumber]);
INI_WriteInt(File,"Sprunk",Info[playerid][pSprunk]);
INI_WriteInt(File,"Phonebook",Info[playerid][pPhoneBook]);
INI_WriteInt(File,"House",Info[playerid][pPhousekey]);
INI_WriteInt(File,"House2",Info[playerid][pPhousekey2]);
INI_WriteInt(File,"Negocio",Info[playerid][pPbizzkey]);
INI_WriteInt(File,"Int", Info[playerid][pInt]);
INI_WriteFloat(File,"Pos_x",Info[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",Info[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",Info[playerid][pPos_z]);
INI_WriteFloat(File,"SPos_r",Info[playerid][pPos_r]);
INI_WriteInt(File,"CarLic",Info[playerid][pCarLic]);
INI_WriteInt(File,"FlyLic",Info[playerid][pFlyLic]);
INI_WriteInt(File,"BoatLic",Info[playerid][pBoatLic]);
INI_WriteInt(File,"GunLic",Info[playerid][pGunLic]);
INI_WriteInt(File,"Gafas",Info[playerid][pGafas]);
INI_WriteInt(File,"Tutorial",Info[playerid][pTut]);
INI_WriteInt(File,"Test",Info[playerid][pTestTut]);
INI_WriteInt(File,"VWorld",Info[playerid][pVW]);
INI_WriteInt(File,"Lighter",Info[playerid][pLighter]);
INI_WriteInt(File,"Cigarettes",Info[playerid][pCigarettes]);
INI_WriteInt(File,"BanZC",Info[playerid][pBannedZC]);
INI_WriteInt(File,"DisabledZC",Info[playerid][pDisabledZC]);
INI_WriteInt(File,"BlockBug",Info[playerid][pBlockBug]);
INI_WriteInt(File,"DNI",Info[playerid][pDNI]);
INI_WriteInt(File,"VSkill",Info[playerid][pArmsSkill]);
INI_WriteInt(File,"TSkill",Info[playerid][pTruckSkill]);
INI_WriteInt(File,"SmugglerSkill",Info[playerid][pSmugSkill]);
INI_WriteInt(File,"DrugsSkill",Info[playerid][pDrugsSkill]);
INI_WriteInt(File,"SIDA",Info[playerid][pSIDA]);
INI_WriteInt(File,"Cancer" ,Info[playerid][pCancer]);
INI_WriteInt(File,"Epilepsia",Info[playerid][pEpilepsia]);
INI_WriteInt(File,"Dengue",Info[playerid][pDengue]);
INI_WriteInt(File,"FStyle",Info[playerid][pFStyle]);
INI_WriteInt(File,"Busqueda",Info[playerid][pWantedLevel]);
INI_WriteInt(File,"AntiSIDA",Info[playerid][pAntiSIDA]);
INI_WriteInt(File,"AntiCancer",Info[playerid][pAntiCancer]);
INI_WriteInt(File,"AntiEpilepsia",Info[playerid][pAntiEpilepsia]);
INI_WriteInt(File,"Rent",Info[playerid][pRenting]);
INI_WriteInt(File,"prMoney",Info[playerid][p_Pr_Money]);
INI_WriteInt(File,"Rob",Info[playerid][pRob]);
INI_WriteInt(File,"Premium",Info[playerid][pVIP]);
INI_WriteInt(File,"FichasCash",Info[playerid][pPTR]);
INI_WriteInt(File,"CarPremium",Info[playerid][pCarKey2]);
INI_WriteInt(File,"BanDuda",Info[playerid][pBanDuda]);
INI_WriteInt(File,"ReportMuted",Info[playerid][pRMuted]);
INI_WriteInt(File,"ReportMutedTotal",Info[playerid][pRMutedTotal]);
INI_WriteInt(File,"ReportMutedTime",Info[playerid][pRMutedTime]);
INI_WriteInt(File,"Pasaporte",Info[playerid][pPasaporte]);
INI_WriteInt(File,"RadioP", Info[playerid][pRadio]);
INI_WriteInt(File,"KHZ",Info[playerid][pRadioFreq]);
INI_WriteInt(File,"Ipad",Info[playerid][pIpadMusic]);
INI_WriteInt(File,"GiftTime",Info[playerid][pGiftTime]);
Код:
for( new m = 0; m < 11; m++ )
{
new mStr[24];
format(mStr,sizeof(mStr), "Mueble%d", m);
INI_WriteInt(File,mStr, Info[playerid][pMuebles][m]);
}
INI_WriteInt(File,"Screwdrivers", Info[playerid][pScrewdriver]);
INI_WriteInt(File,"Firstaid", Info[playerid][pFirstaid]);
INI_WriteInt(File,"CamOculta", Info[playerid][pSurveillance]);
INI_WriteInt(File,"Negocio",Info[playerid][pPbizzkey]);
INI_WriteInt(File,"skinn",Info[playerid][pgskin]);
INI_WriteInt(File,"robita",Info[playerid][probita]);
INI_WriteInt(File,"DNIFalse",Info[playerid][pDNIFalse]);
INI_WriteString( File, "DNIName",Info[playerid][pDNIName]);
INI_WriteInt(File,"Boombox",Info[playerid][pBoombox]);
Код:
function PlayerLogin(playerid)
{
new string [128];
TotalLogin++;
ClearChatbox(playerid);
ResetPlayerMoney(playerid);
//more code here and then
if(Info[playerid][pWRestricted] >= 1) ResetPlayerWeaponsEx(playerid);
GetPlayerIp(playerid, Info[playerid][pIP], 32);
SetPlayerScore(playerid, Info[playerid][pLevel]);
if(Info[playerid][pReg] == 0){
Info[playerid][pLevel] = 0;
Info[playerid][pHealth] = 100.0;
Info[playerid][pPos_x] = 1612.3240;
Info[playerid][pPos_y] = -2330.1670;
Info[playerid][pPos_z] = 13.5469;
Info[playerid][pInt] = 0;
Info[playerid][pTeam] = 3;
Info[playerid][pChar] = 299;
Info[playerid][pPnumber] = 0;
Info[playerid][pPhousekey] = INVALID_HOUSE_ID;
Info[playerid][pPhousekey2] = INVALID_HOUSE_ID;
Info[playerid][pAccount] = 0;
Info[playerid][pPbizzkey] = 9999;
Код:
public OnPlayerConnect(playerid)
{
AntiCmdSpamTimer[playerid] = SetTimerEx("AntiCommandSpam", 5000, 1, "i", playerid);
FPS[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
//***SISTEMA AFK***
//Afk[playerid]=0;
/////////text banco
Tdinero[playerid] = CreatePlayerTextDraw(playerid,499.000000, 99.000000, "$00000000");
PlayerTextDrawBackgroundColor(playerid, Tdinero[playerid], 255);
PlayerTextDrawFont(playerid, Tdinero[playerid], 3);
PlayerTextDrawLetterSize(playerid, Tdinero[playerid], 0.580000, 2.100000);
PlayerTextDrawColor(playerid, Tdinero[playerid], -1);
PlayerTextDrawSetOutline(playerid, Tdinero[playerid], 1);
PlayerTextDrawSetProportional(playerid, Tdinero[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Tdinero[playerid], 0);
//***sistema de fire***
Apagandofire[playerid] = 0;
llegarf[playerid] = false;
//**security**
#if defined AntiJoin 1
new Texto[256];
new Nombre[MAX_PLAYER_NAME];
new Entradas = 0;
new RegistroIP[20];
new Cuenta = GetTickCount();
new Nick[MAX_PLAYER_NAME];
new Codigo;
new Jugador;
new Menu[1024];
if(DetectarIP(ObtenerIP(playerid)) >= 10) return BanearBots(playerid), 0;
Jugadores = playerid > Jugadores ? playerid : IDMayor(),
BotServidor[playerid] = bool:IsPlayerNPC(playerid),
Advertencias[playerid] = 0;
Muertes[playerid] = 0;
MuerteReciente[playerid] = 0;
GetPlayerIp(playerid, RegistroIP, 19);
GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
for(Codigo = 0; Codigo < 10; Codigo++)
{
if(strlen(EntrarIP[Codigo]) < 10) continue;
if(strcmp(RegistroIP, EntrarIP[Codigo], true) == 0)
{
if((Cuenta - MenorTiempo) < EntrarCuenta[Codigo])
{
Entradas++;
}
}
}
if (Entradas >= Logueos)
{
Menu[0]='\0';
strcat(Menu, "{FFFFFF} Expulsado por Hack. \n", 1024);
ShowPlayerDialog(playerid, 9046, DIALOG_STYLE_MSGBOX, " {FF0000}Advertencia - FireSecurity: ", Menu, "Aceptar", "Cerrar") ;
GetPlayerName(playerid, Nombre, sizeof(Nombre));
format(Texto, sizeof(Texto), "[<!>] %s ha sido expulsado. Razуn: Posible intento de Score Hack.", Nombre);
SendClientMessageToAll(Gris, Texto);
Kick(playerid);
}
for (Codigo = 9; Codigo > 0; Codigo--)
{
Jugador = Codigo - 1;
format(EntrarIP[Codigo], 19, "%s", EntrarIP[Jugador]);
EntrarCuenta[Codigo] = EntrarCuenta[Jugador];
}
format(EntrarIP[0], 19, "%s", RegistroIP);
EntrarCuenta[0] = Cuenta;
#endif
//************
if(IsPlayerNPC(playerid)) return 1;
new playerIP[16];
//FPS[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
GetPlayerIp(playerid, playerIP, sizeof(playerIP));
SetPlayerColor(playerid,COLOR_GRAD2);
//PlayAudioStreamForPlayer(playerid, "http://d.mimp3.me/d/921932471_39545944-/skrillex-ft-damian-jr-gong-marley-make-it-bun-dem.mp3", 1, 1, 1, 1, 0);
//PlayAudioStreamForPlayer(playerid, "http://junglevibe2.net/track/7677052/76366310/Michael_Hunter-Soviet_Connection_OST_GTA4_.mp3?dl=2", 1, 1, 1, 1, 0);
//SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bienvenido !");
if (CheckBan(playerIP) == 1)
{
SetPlayerName(playerid, "BannedPlayer");
SendClientMessage(playerid, COLOR_RED, "{00B500}:{FFFFFF} Lo sentimos, te encuentras baneado de este servidor - Puedes pedir ser Desbaneado en el Foro: ");
Kick(playerid);
return 1;
}
TotalConnect++;
resetPlayerVariables(playerid);
MapsRemoveForPlayer(playerid);
ClearMarriage(playerid);
SyncPlayerTime(playerid);
ClearChatbox(playerid);
//SafeLogin(playerid);
if(Iter_Count(Player) > MaxPlayersConnected)
{
MaxPlayersConnected = Iter_Count(Player);
gettime(MPHour,MPMinute);
getdate(MPYear,MPMonth,MPDay);
}
if(Info[playerid][pPbizzkey] == 0)
{
Info[playerid][pPbizzkey] = 9999;
}
if(MaxPlayersConnected > 200) MaxPlayersConnected = 200;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(!INI_Exist(playername))
{
if(doesAccountExist(playername))
{
ConvertAccount(playerid);
return 1;
}
}
SetTimerEx("SafeLogin", 4000, 0, "d", playerid);
//GameTextForPlayer(playerid, "~w~Cargando datos de tu cuenta", 1500, 3);