[Ajuda] flood ant xiter
#5

Код HTML:
forward OnPlayerSave(playerid);
public OnPlayerSave(playerid)
{
    if(IsPlayerConnected(playerid) && gPlayerLogged[playerid])
	{
	    new Float:He_Alth, Float:Ar_Mour;
		GetPlayerArmour(playerid, Ar_Mour);
		GetPlayerHealth(playerid, He_Alth);
		PlayerInfo[playerid][pSArmour] = Ar_Mour;
		PlayerInfo[playerid][pSHealth] = He_Alth;
		new string3[64];
		new playername3[MAX_PLAYER_NAME];
		GetPlayerName(playerid, playername3, sizeof(playername3));
		format(string3, sizeof(string3), "Contas/%s.ini", playername3);
		PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
		DOF2_SetInt(string3,"Level",PlayerInfo[playerid][pLevel]);
		DOF2_SetString(string3,"Key",PlayerInfo[playerid][pKey]);
		DOF2_SetInt(string3,"AdminLevel",PlayerInfo[playerid][pAdmin]);
		DOF2_SetInt(string3,"HelperLevel",PlayerInfo[playerid][pHelper]);
		DOF2_SetInt(string3,"DonateRank",PlayerInfo[playerid][pVIP]);
		DOF2_SetInt(string3,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
		DOF2_SetInt(string3,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
		DOF2_SetInt(string3,"Registered",PlayerInfo[playerid][pReg]);
		DOF2_SetInt(string3,"Sex",PlayerInfo[playerid][pSex]);
		DOF2_SetInt(string3,"Muted",PlayerInfo[playerid][pMuted]);
		DOF2_SetInt(string3,"Respect",PlayerInfo[playerid][pExp]);
		DOF2_SetInt(string3,"Money",PlayerInfo[playerid][pCash]);
		DOF2_SetInt(string3,"Bank",PlayerInfo[playerid][pConta]);
		DOF2_SetInt(string3,"Crimes",PlayerInfo[playerid][pCrimes]);
		DOF2_SetInt(string3,"Kills",PlayerInfo[playerid][pKills]);
		DOF2_SetInt(string3,"Deaths",PlayerInfo[playerid][pDeaths]);
		DOF2_SetInt(string3,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
		DOF2_SetInt(string3,"LottoNr",PlayerInfo[playerid][pLottoNr]);
		DOF2_SetInt(string3,"Emprego",PlayerInfo[playerid][pEmprego]);
		DOF2_SetInt(string3,"Paycheck",PlayerInfo[playerid][pSalario]);
		DOF2_SetInt(string3,"HeadValue",PlayerInfo[playerid][pHeadValue]);
		DOF2_SetInt(string3,"HeadValueT",PlayerInfo[playerid][pHeadValueT]);
		DOF2_SetInt(string3,"Jailed",PlayerInfo[playerid][pJailed]);
		DOF2_SetInt(string3,"JailTime",PlayerInfo[playerid][pJailTime]);
		DOF2_SetInt(string3,"Materiais",PlayerInfo[playerid][pMats]);
		DOF2_SetInt(string3,"Maconha",PlayerInfo[playerid][pDrogas]);
		DOF2_SetInt(string3,"Cocaina",PlayerInfo[playerid][pDrogas2]);
		DOF2_SetInt(string3,"Crack",PlayerInfo[playerid][pDrogas3]);
		DOF2_SetInt(string3,"Lider",PlayerInfo[playerid][pLider]);
		DOF2_SetInt(string3,"Member",PlayerInfo[playerid][pMembro]);
		DOF2_SetInt(string3,"Rank",PlayerInfo[playerid][pCargo]);
		DOF2_SetInt(string3,"Char",PlayerInfo[playerid][pSkin]);
		DOF2_SetInt(string3,"origin",PlayerInfo[playerid][pOrigem]);
		DOF2_SetInt(string3,"ContractTime",PlayerInfo[playerid][pContractTime]);
		DOF2_SetInt(string3,"DetSkill",PlayerInfo[playerid][pDetSkill]);
		DOF2_SetInt(string3,"SexSkill",PlayerInfo[playerid][pSexSkill]);
		DOF2_SetInt(string3,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
		DOF2_SetInt(string3,"LawSkill",PlayerInfo[playerid][pLawSkill]);
		DOF2_SetInt(string3,"MechSkill",PlayerInfo[playerid][pMechSkill]);
		DOF2_SetInt(string3,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
		DOF2_SetInt(string3,"DrogasSkill",PlayerInfo[playerid][pDrogasSkill]);
		DOF2_SetInt(string3,"CookSkill",PlayerInfo[playerid][pCookSkill]);
		DOF2_SetFloat(string3,"pSHealth",PlayerInfo[playerid][pSHealth]);
		DOF2_SetFloat(string3,"pSArmour",PlayerInfo[playerid][pSArmour]);
		DOF2_SetInt(string3,"Team",PlayerInfo[playerid][pTeam]);
		DOF2_SetInt(string3,"PhoneNr",PlayerInfo[playerid][pPnumber]);
		DOF2_SetInt(string3,"House",PlayerInfo[playerid][pPHousekey]);
		DOF2_SetInt(string3,"Bizz",PlayerInfo[playerid][pPbiskey]);
		DOF2_SetInt(string3,"Spawn",PlayerInfo[playerid][pSpawn]);
		DOF2_SetInt(string3,"SafeMaconha",PlayerInfo[playerid][pSafeDrogas]);
		DOF2_SetInt(string3,"SafeCocaina",PlayerInfo[playerid][pSafeDrogas2]);
		DOF2_SetInt(string3,"SafeCrack",PlayerInfo[playerid][pSafeDrogas3]);
		DOF2_SetInt(string3,"NivelProcurado",WantedPoints[playerid]);
		DOF2_SetInt(string3,"SafeMateriais",PlayerInfo[playerid][psMats]);
		DOF2_SetInt(string3,"TestVip",PlayerInfo[playerid][pTimeVIP]);
		DOF2_SetInt(string3,"Age",PlayerInfo[playerid][pAge]);
		DOF2_SetInt(string3,"GoldBar",PlayerInfo[playerid][pGoldBar]);
		DOF2_SetInt(string3,"Avisado",PlayerInfo[playerid][pAviso]);
		DOF2_SetInt(string3,"Fome",PlayerInfo[playerid][pFome]);
		DOF2_SetInt(string3,"PegouVIP",PlayerInfo[playerid][pPVIP]);
		DOF2_SetInt(string3,"DiasBanTemp",PlayerInfo[playerid][pDiaBanTemp]);
		DOF2_SetInt(string3,"MesBanTemp",PlayerInfo[playerid][pMesBanTemp]);
		DOF2_SetInt(string3,"AnoBanTemp",PlayerInfo[playerid][pAnoBanTemp]);
		DOF2_SetInt(string3,"DiasVIP",PlayerInfo[playerid][pDiaVIP]);
		DOF2_SetInt(string3,"MesVIP",PlayerInfo[playerid][pMesVIP]);
		DOF2_SetInt(string3,"AnoVIP",PlayerInfo[playerid][pAnoVIP]);
		DOF2_SetInt(string3,"CarLic",PlayerInfo[playerid][pCarLic]);
		DOF2_SetInt(string3,"FlyLic",PlayerInfo[playerid][pFlyLic]);
		DOF2_SetInt(string3,"BoatLic",PlayerInfo[playerid][pBoatLic]);
		DOF2_SetInt(string3,"GunLic",PlayerInfo[playerid][pGunLic]);
		DOF2_SetInt(string3,"PayDay",PlayerInfo[playerid][pPayDay]);
		DOF2_SetInt(string3,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
		DOF2_SetInt(string3,"Wins",PlayerInfo[playerid][pWins]);
		DOF2_SetInt(string3,"Loses",PlayerInfo[playerid][pLoses]);
		DOF2_SetInt(string3,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
		DOF2_SetInt(string3,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
		DOF2_SetInt(string3,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
		DOF2_SetInt(string3,"PainPerk",PlayerInfo[playerid][pPainPerk]);
		DOF2_SetInt(string3,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
		DOF2_SetInt(string3,"Tutorial",PlayerInfo[playerid][pTut]);
		DOF2_SetInt(string3,"Avisos",PlayerInfo[playerid][pWarns]);
		DOF2_SetString(string3,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
		DOF2_SetInt(string3,"Married",PlayerInfo[playerid][pMarried]);
		DOF2_SetInt(string3,"Luta",PlayerInfo[playerid][pLuta]);
		DOF2_SetInt(string3,"Dorgado",PlayerInfo[playerid][pDorgado]);
		DOF2_SetInt(string3,"Dorgado2",PlayerInfo[playerid][pDorgado]);
		DOF2_SetInt(string3,"Doenca",PlayerInfo[playerid][pDoenca]);
		DOF2_SetString(string3,"LU",PlayerInfo[playerid][pLastLogin]);
		DOF2_SetInt(string3,"Ban",PlayerInfo[playerid][pBan]);
		DOF2_SetInt(string3,"TempoHospital",PlayerInfo[playerid][pTempoHospitalizado]);
		DOF2_SetInt(string3,"HospitalID",PlayerInfo[playerid][pHospitalID]);
		GetPlayerWeaponData(playerid,1,PlayerInfo[playerid][pGun1],PlayerInfo[playerid][pAmmo1]);
		GetPlayerWeaponData(playerid,2,PlayerInfo[playerid][pGun2],PlayerInfo[playerid][pAmmo2]);
		GetPlayerWeaponData(playerid,3,PlayerInfo[playerid][pGun3],PlayerInfo[playerid][pAmmo3]);
		GetPlayerWeaponData(playerid,4,PlayerInfo[playerid][pGun4],PlayerInfo[playerid][pAmmo4]);
		GetPlayerWeaponData(playerid,5,PlayerInfo[playerid][pGun5],PlayerInfo[playerid][pAmmo5]);
		GetPlayerWeaponData(playerid,6,PlayerInfo[playerid][pGun6],PlayerInfo[playerid][pAmmo6]);
		GetPlayerWeaponData(playerid,7,PlayerInfo[playerid][pGun7],PlayerInfo[playerid][pAmmo7]);
		GetPlayerWeaponData(playerid,8,PlayerInfo[playerid][pGun8],PlayerInfo[playerid][pAmmo8]);
		GetPlayerWeaponData(playerid,9,PlayerInfo[playerid][pGun9],PlayerInfo[playerid][pAmmo9]);
		GetPlayerWeaponData(playerid,10,PlayerInfo[playerid][pGun10],PlayerInfo[playerid][pAmmo10]);
		GetPlayerWeaponData(playerid,11,PlayerInfo[playerid][pGun11],PlayerInfo[playerid][pAmmo11]);
		GetPlayerWeaponData(playerid,12,PlayerInfo[playerid][pGun12],PlayerInfo[playerid][pAmmo12]);
		DOF2_SetInt(string3,"Armas1",PlayerInfo[playerid][pGun1]);
		DOF2_SetInt(string3,"Armas2",PlayerInfo[playerid][pGun2]);
		DOF2_SetInt(string3,"Armas3",PlayerInfo[playerid][pGun3]);
		DOF2_SetInt(string3,"Armas4",PlayerInfo[playerid][pGun4]);
		DOF2_SetInt(string3,"Armas5",PlayerInfo[playerid][pGun5]);
		DOF2_SetInt(string3,"Armas6",PlayerInfo[playerid][pGun6]);
		DOF2_SetInt(string3,"Armas7",PlayerInfo[playerid][pGun7]);
		DOF2_SetInt(string3,"Armas8",PlayerInfo[playerid][pGun8]);
		DOF2_SetInt(string3,"Armas9",PlayerInfo[playerid][pGun9]);
		DOF2_SetInt(string3,"Armas10",PlayerInfo[playerid][pGun10]);
		DOF2_SetInt(string3,"Armas11",PlayerInfo[playerid][pGun11]);
		DOF2_SetInt(string3,"Armas12",PlayerInfo[playerid][pGun12]);
		DOF2_SetInt(string3,"Balas1",PlayerInfo[playerid][pAmmo1]);
		DOF2_SetInt(string3,"Balas2",PlayerInfo[playerid][pAmmo2]);
		DOF2_SetInt(string3,"Balas3",PlayerInfo[playerid][pAmmo3]);
		DOF2_SetInt(string3,"Balas4",PlayerInfo[playerid][pAmmo4]);
		DOF2_SetInt(string3,"Balas5",PlayerInfo[playerid][pAmmo5]);
		DOF2_SetInt(string3,"Balas6",PlayerInfo[playerid][pAmmo6]);
		DOF2_SetInt(string3,"Balas7",PlayerInfo[playerid][pAmmo7]);
		DOF2_SetInt(string3,"Balas8",PlayerInfo[playerid][pAmmo8]);
		DOF2_SetInt(string3,"Balas9",PlayerInfo[playerid][pAmmo9]);
		DOF2_SetInt(string3,"Balas10",PlayerInfo[playerid][pAmmo10]);
		DOF2_SetInt(string3,"Balas11",PlayerInfo[playerid][pAmmo11]);
		DOF2_SetInt(string3,"Balas12",PlayerInfo[playerid][pAmmo12]);
		DOF2_SaveFile();
	}
	return true;
}
Reply


Messages In This Thread
flood ant xiter - by Farley - 22.02.2014, 23:31
Re: flood ant xiter - by ViniBorn - 23.02.2014, 02:00
Re: flood ant xiter - by Farley - 23.02.2014, 10:08
Re: flood ant xiter - by ViniBorn - 23.02.2014, 12:04
Re: flood ant xiter - by Farley - 23.02.2014, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)