pawn Код:
orward OnPlayerUpdateTime(playerid);
public OnPlayerUpdateTime(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
if(JugadorInfo[playerid][jHabilidadBoxeo] == 100) { JugadorInfo[playerid][pFStyle] = 4; }
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "cuentas/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[32],string[328];
format(var, 32, "Key=%s\n", JugadorInfo[playerid][pKey]);fwrite(hFile, var);
JugadorInfo[playerid][jDinero] = GetPlayerMoney(playerid);
format(var, 32, "Level=%d\n",JugadorInfo[playerid][jNivel]);fwrite(hFile, var);
format(var, 32, "PuntosRol=%d\n",JugadorInfo[playerid][jPuntosRol]);fwrite(hFile, var);
format(var, 32, "JDS=%d\n",JugadorInfo[playerid][pJDS]);fwrite(hFile, var);
format(var, 32, "Ayudante=%d\n",JugadorInfo[playerid][pAyudante]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",JugadorInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",JugadorInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",JugadorInfo[playerid][jSexo]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",JugadorInfo[playerid][jEdad]);fwrite(hFile, var);
format(var, 32, "Origin=%d\n",JugadorInfo[playerid][jOrigen]);fwrite(hFile, var);
format(var, 32, "Sangre=%d\n",JugadorInfo[playerid][jSangre]);fwrite(hFile, var);
format(var, 32, "Walk=%d\n",JugadorInfo[playerid][jECaminar]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",JugadorInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",JugadorInfo[playerid][jDinero]);fwrite(hFile, var);
format(var, 32, "Bank=%d\n",JugadorInfo[playerid][jCuenta]);fwrite(hFile, var);
format(var, 32, "Asesinatos=%d\n",JugadorInfo[playerid][jAsesinatos]);fwrite(hFile, var);
format(var, 32, "Muertes=%d\n",JugadorInfo[playerid][jMuertes]);fwrite(hFile, var);
format(var, 32, "Arrested=%d\n",JugadorInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",JugadorInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Job=%d\n",JugadorInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 32, "Contract=%d\n",JugadorInfo[playerid][pContract]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",JugadorInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",JugadorInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Materials=%d\n",JugadorInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Drugs=%d\n",JugadorInfo[playerid][pDrugs]);fwrite(hFile, var);
format(var, 32, "Anfetamina=%d\n",JugadorInfo[playerid][jAnfetamina]);fwrite(hFile, var);
format(var, 32, "Extasis=%d\n",JugadorInfo[playerid][pExtasis]);fwrite(hFile, var);
format(var, 32, "Ritalin=%d\n",JugadorInfo[playerid][pRitalin]);fwrite(hFile, var);
format(var, 32, "Heroina=%d\n",JugadorInfo[playerid][pHeroina]);fwrite(hFile, var);
format(var, 32, "Marihuana=%d\n",JugadorInfo[playerid][pMarihuana]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",JugadorInfo[playerid][jLider]);fwrite(hFile, var);
format(var, 32, "Miembro=%d\n",JugadorInfo[playerid][jMiembro]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",JugadorInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",JugadorInfo[playerid][pChar]);fwrite(hFile, var);
GetPlayerHealth(playerid, JugadorInfo[playerid][jVida]);
format(var, 32, "Vida=%.1f\n",JugadorInfo[playerid][jVida]);fwrite(hFile, var);
GetPlayerArmour(playerid, JugadorInfo[playerid][jChaleco]);
format(var, 32, "Chaleco=%.1f\n",JugadorInfo[playerid][jChaleco]);fwrite(hFile, var);
JugadorInfo[playerid][pInt] = GetPlayerInterior(playerid);
format(var, 32, "Int=%d\n",JugadorInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 32, "Team=%d\n",JugadorInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 32, "Model=%d\n",JugadorInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 32, "PhoneNr=%d\n",JugadorInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "Car=%d\n",JugadorInfo[playerid][pPcarkey]);fwrite(hFile, var);
format(var, 32, "Car2=%d\n",JugadorInfo[playerid][pPcarkey2]);fwrite(hFile, var);
format(var, 32, "House=%d\n",JugadorInfo[playerid][pPhousekey]);fwrite(hFile, var);
format(var, 32, "Bizz=%d\n",JugadorInfo[playerid][pPbiskey]);fwrite(hFile, var);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
JugadorInfo[playerid][pPos_x] = x;
JugadorInfo[playerid][pPos_y] = y;
JugadorInfo[playerid][pPos_z] = z;
format(var, 32, "Pos_x=%.1f\n",JugadorInfo[playerid][pPos_x]);fwrite(hFile, var);
format(var, 32, "Pos_y=%.1f\n",JugadorInfo[playerid][pPos_y]);fwrite(hFile, var);
format(var, 32, "Pos_z=%.1f\n",JugadorInfo[playerid][pPos_z]);fwrite(hFile, var);
format(var, 32, "CarLic=%d\n",JugadorInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",JugadorInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",JugadorInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",JugadorInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 32, "Gafas=%d\n",JugadorInfo[playerid][pGafas]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",JugadorInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "pMonths=%.1f\n", JugadorInfo[playerid][pMonths]);fwrite(hFile, var);
JugadorInfo[playerid][pVirWorld] = GetPlayerVirtualWorld(playerid);
format(string, 64, "Antecedente1=%s\n",JugadorInfo[playerid][pAntecedente1]);fwrite(hFile, string);
format(string, 64, "Antecedente2=%s\n",JugadorInfo[playerid][pAntecedente2]);fwrite(hFile, string);
format(string, 64, "Antecedente3=%s\n",JugadorInfo[playerid][pAntecedente3]);fwrite(hFile, string);
format(string, 64, "Note1=%s\n",JugadorInfo[playerid][pNote1]);fwrite(hFile, string);
format(var, 32, "Note1s=%d\n",JugadorInfo[playerid][pNote1s]);fwrite(hFile, var);
format(string, 64, "Note2=%s\n",JugadorInfo[playerid][pNote2]);fwrite(hFile, string);
format(var, 64, "Note2s=%d\n",JugadorInfo[playerid][pNote2s]);fwrite(hFile, var);
format(string, 64, "Note3=%s\n",JugadorInfo[playerid][pNote3]);fwrite(hFile, string);
format(var, 64, "Note3s=%d\n",JugadorInfo[playerid][pNote3s]);fwrite(hFile, var);
format(string, 128, "SMS1=%s\n",JugadorInfo[playerid][pSMS_1]);fwrite(hFile, string);
format(string, 128, "SMS2=%s\n",JugadorInfo[playerid][pSMS_2]);fwrite(hFile, string);
format(string, 128, "SMS3=%s\n",JugadorInfo[playerid][pSMS_3]);fwrite(hFile, string);
format(string, 128, "SMS4=%s\n",JugadorInfo[playerid][pSMS_4]);fwrite(hFile, string);
format(string, 128, "SMS5=%s\n",JugadorInfo[playerid][pSMS_5]);fwrite(hFile, string);
format(var, 32, "InvWeapon=%d\n",JugadorInfo[playerid][pInvWeapon]);fwrite(hFile, var);
format(var, 32, "InvAmmo=%d\n",JugadorInfo[playerid][pInvAmmo]);fwrite(hFile, var);
format(var, 32, "Lighter=%d\n",JugadorInfo[playerid][pLighter]);fwrite(hFile, var);
format(var, 32, "Cigarettes=%d\n",JugadorInfo[playerid][pCigarettes]);fwrite(hFile, var);
format(var, 32, "Hachis=%d\n",JugadorInfo[playerid][pHachis]);fwrite(hFile, var);
format(var, 32, "Papel=%d\n",JugadorInfo[playerid][pPapel]);fwrite(hFile, var);
format(var, 32, "Locked=%d\n",JugadorInfo[playerid][pLocked]);fwrite(hFile, var);
format(string, 32, "DNI=%d\n",JugadorInfo[playerid][pDNI]);fwrite(hFile, var);
format(var, 32, "DNIFalso=%d\n",JugadorInfo[playerid][jDNIFalso]);fwrite(hFile, var);
format(var, 32, "DNIFNombre=%d\n",JugadorInfo[playerid][jDNIFNombre]);fwrite(hFile, var);
format(string, 32, "MSN=%s\n",JugadorInfo[playerid][pMSN]);fwrite(hFile, var);
format(var, 64, "Weapon=%d\n",JugadorInfo[playerid][pWeapon]);fwrite(hFile, var);
format(var, 64, "Ammo=%d\n",JugadorInfo[playerid][pAmmo]);fwrite(hFile, var);
format(var, 64, "Weapon2=%d\n",JugadorInfo[playerid][pWeapon2]);fwrite(hFile, var);
format(var, 64, "Ammo2=%d\n",JugadorInfo[playerid][pAmmo2]);fwrite(hFile, var);
format(var, 64, "Weapon3=%d\n",JugadorInfo[playerid][pWeapon3]);fwrite(hFile, var);
format(var, 64, "Ammo3=%d\n",JugadorInfo[playerid][pAmmo3]);fwrite(hFile, var);
format(var, 64, "Weapon4=%d\n",JugadorInfo[playerid][pWeapon4]);fwrite(hFile, var);
format(var, 64, "Ammo4=%d\n",JugadorInfo[playerid][pAmmo4]);fwrite(hFile, var);
format(var, 64, "Weapon5=%d\n",JugadorInfo[playerid][pWeapon5]);fwrite(hFile, var);
format(var, 64, "Ammo5=%d\n",JugadorInfo[playerid][pAmmo5]);fwrite(hFile, var);
format(var, 64, "Weapon6=%d\n",JugadorInfo[playerid][pWeapon6]);fwrite(hFile, var);
format(var, 64, "Ammo6=%d\n",JugadorInfo[playerid][pAmmo6]);fwrite(hFile, var);
format(var, 64, "Weapon7=%d\n",JugadorInfo[playerid][pWeapon7]);fwrite(hFile, var);
format(var, 64, "Ammo7=%d\n",JugadorInfo[playerid][pAmmo7]);fwrite(hFile, var);
format(var, 64, "Weapon8=%d\n",JugadorInfo[playerid][pWeapon8]);fwrite(hFile, var);
format(var, 64, "Ammo8=%d\n",JugadorInfo[playerid][pAmmo8]);fwrite(hFile, var);
format(var, 64, "Weapon9=%d\n",JugadorInfo[playerid][pWeapon9]);fwrite(hFile, var);
format(var, 64, "Ammo9=%d\n",JugadorInfo[playerid][pAmmo9]);fwrite(hFile, var);
format(var, 64, "Weapon10=%d\n",JugadorInfo[playerid][pWeapon10]);fwrite(hFile, var);
format(var, 64, "Ammo10=%d\n",JugadorInfo[playerid][pAmmo10]);fwrite(hFile, var);
format(var, 64, "Weapon11=%d\n",JugadorInfo[playerid][pWeapon11]);fwrite(hFile, var);
format(var, 64, "Ammo11=%d\n",JugadorInfo[playerid][pAmmo11]);fwrite(hFile, var);
format(var, 64, "Weapon12=%d\n",JugadorInfo[playerid][pWeapon12]);fwrite(hFile, var);
format(var, 64, "Ammo12=%d\n",JugadorInfo[playerid][pAmmo12]);fwrite(hFile, var);
format(var, 64, "CargadorPL=%d\n",JugadorInfo[playerid][jCargadorPL]);fwrite(hFile, var);
format(var, 64, "CargadorEN=%d\n",JugadorInfo[playerid][jCargadorEN]);fwrite(hFile, var);
format(var, 64, "CargadorRC=%d\n",JugadorInfo[playerid][jCargadorRC]);fwrite(hFile, var);
format(var, 64, "CargadorRF=%d\n",JugadorInfo[playerid][jCargadorRF]);fwrite(hFile, var);
format(var, 64, "CargadorPP=%d\n",JugadorInfo[playerid][jCargadorPP]);fwrite(hFile, var);
format(var, 64, "CargadorMSF=%d\n",JugadorInfo[playerid][jCargadorMSF]);fwrite(hFile, var);
format(var, 64, "CargadorSF=%d\n",JugadorInfo[playerid][jCargadorSF]);fwrite(hFile, var);
format(var, 64, "Corredera=%d\n",JugadorInfo[playerid][jCorredera]);fwrite(hFile, var);
format(var, 64, "CanonCorto=%d\n",JugadorInfo[playerid][jCanonCorto]);fwrite(hFile, var);
format(var, 64, "MuelleRecuperador=%d\n",JugadorInfo[playerid][jMuelleRecuperador]);fwrite(hFile, var);
format(var, 64, "Armazon=%d\n",JugadorInfo[playerid][jArmazon]);fwrite(hFile, var);
format(var, 64, "CuerpoMetal=%d\n",JugadorInfo[playerid][jCuerpoMetal]);fwrite(hFile, var);
format(var, 64, "Culata=%d\n",JugadorInfo[playerid][jCulata]);fwrite(hFile, var);
format(var, 64, "GuardamanosMetal=%d\n",JugadorInfo[playerid][jGuardamanosMetal]);fwrite(hFile, var);
format(var, 64, "MiraPosterior=%d\n",JugadorInfo[playerid][jMiraPosterior]);fwrite(hFile, var);
format(var, 64, "RailSuperior=%d\n",JugadorInfo[playerid][jRailSuperior]);fwrite(hFile, var);
format(var, 64, "AsaMetalica=%d\n",JugadorInfo[playerid][jAsaMetalica]);fwrite(hFile, var);
format(var, 64, "Alza=%d\n",JugadorInfo[playerid][jAlza]);fwrite(hFile, var);
format(var, 64, "MiraCaza=%d\n",JugadorInfo[playerid][jMiraCaza]);fwrite(hFile, var);
format(var, 64, "MiraSniper=%d\n",JugadorInfo[playerid][jMiraSniper]);fwrite(hFile, var);
format(var, 64, "MuellePropulsor=%d\n",JugadorInfo[playerid][jMuellePropulsor]);fwrite(hFile, var);
format(var, 64, "CanonFino=%d\n",JugadorInfo[playerid][jCanonFino]);fwrite(hFile, var);
format(var, 64, "PalancaAbatible=%d\n",JugadorInfo[playerid][jPalancaAbatible]);fwrite(hFile, var);
format(var, 64, "Gatillo=%d\n",JugadorInfo[playerid][jGatillo]);fwrite(hFile, var);
format(var, 64, "BarraPlomo=%d\n",JugadorInfo[playerid][jBarraPlomo]);fwrite(hFile, var);
format(var, 64, "Polvora=%d\n",JugadorInfo[playerid][jPolvora]);fwrite(hFile, var);
format(var, 64, "Silenciador=%d\n",JugadorInfo[playerid][jSilenciador]);fwrite(hFile, var);
format(var, 64, "Cianuro=%d\n",JugadorInfo[playerid][jCianuro]);fwrite(hFile, var);
format(var, 64, "SemillaMarihuana=%d\n",JugadorInfo[playerid][jSemillaMarihuana]);fwrite(hFile, var);
format(var, 32, "GPS=%d\n",JugadorInfo[playerid][pGPS]);fwrite(hFile, var);
format(var, 32, "Maleta=%d\n",JugadorInfo[playerid][pMaleta]);fwrite(hFile, var);
format(var, 32, "Mochila=%d\n",JugadorInfo[playerid][pMochila]);fwrite(hFile, var);
format(var, 32, "Casco=%d\n",JugadorInfo[playerid][pCasco]);fwrite(hFile, var);
format(var, 32, "SIDA=%d\n",JugadorInfo[playerid][pSIDA]);fwrite(hFile, var);
format(var, 32, "Cancer=%d\n",JugadorInfo[playerid][pCancer]);fwrite(hFile, var);
format(var, 32, "Epilepsia=%d\n",JugadorInfo[playerid][pEpilepsia]);fwrite(hFile, var);
format(var, 32, "Dengue=%d\n",JugadorInfo[playerid][pDengue]);fwrite(hFile, var);
format(var, 32, "DEagle=%d\n",JugadorInfo[playerid][jDesertEagle]);fwrite(hFile, var);
format(var, 32, "Shotgun=%d\n",JugadorInfo[playerid][jEscopeta]);fwrite(hFile, var);
format(var, 32, "MP5=%d\n",JugadorInfo[playerid][jMP5]);fwrite(hFile, var);
format(var, 32, "AK47=%d\n",JugadorInfo[playerid][jAK47]);fwrite(hFile, var);
format(var, 32, "M4=%d\n",JugadorInfo[playerid][jMP5]);fwrite(hFile, var);
format(var, 32, "Sniper=%d\n",JugadorInfo[playerid][jSniper]);fwrite(hFile, var);
format(var, 32, "Pistola=%d\n",JugadorInfo[playerid][jPistola]);fwrite(hFile, var);
format(var, 32, "Uzi=%d\n",JugadorInfo[playerid][jUzi]);fwrite(hFile, var);
format(var, 32, "EscopetaCombate=%d\n",JugadorInfo[playerid][jEscopetaCombate]);fwrite(hFile, var);
format(var, 32, "FStyle=%d\n",JugadorInfo[playerid][pFStyle]);fwrite(hFile, var);
format(var, 32, "HabilidadBoxeo=%d\n",JugadorInfo[playerid][jHabilidadBoxeo]);fwrite(hFile, var);
format(var, 32, "Leccion=%d\n",JugadorInfo[playerid][pLeccion]);fwrite(hFile, var);
format(var, 32, "Busqueda=%d\n",JugadorInfo[playerid][jNivelBusqueda]);fwrite(hFile, var);
format(var, 32, "AntiSIDA=%d\n",JugadorInfo[playerid][pAntiSIDA]);fwrite(hFile, var);
format(var, 32, "AntiCancer=%d\n",JugadorInfo[playerid][pAntiCancer]);fwrite(hFile, var);
format(var, 32, "AntiEpilepsia=%d\n",JugadorInfo[playerid][pAntiEpilepsia]);fwrite(hFile, var);
format(var, 32, "Rent=%d\n",JugadorInfo[playerid][pRent]);fwrite(hFile, var);
format(var, 32, "prMoney=%d\n",JugadorInfo[playerid][p_Pr_Money]);fwrite(hFile, var);
format(var, 32, "prTime=%d\n",JugadorInfo[playerid][p_Pr_Time]);fwrite(hFile, var);
format(var, 32, "prPay=%d\n",JugadorInfo[playerid][p_Pr_Pay]);fwrite(hFile, var);
format(var, 32, "Rob=%d\n",JugadorInfo[playerid][pRob]);fwrite(hFile, var);
format(var, 32, "Clothes1=%d\n",JugadorInfo[playerid][pClothes1]);fwrite(hFile, var);
format(var, 32, "Clothes2=%d\n",JugadorInfo[playerid][pClothes2]);fwrite(hFile, var);
format(var, 32, "Clothes3=%d\n",JugadorInfo[playerid][pClothes3]);fwrite(hFile, var);
format(var, 32, "Clothes4=%d\n",JugadorInfo[playerid][pClothes4]);fwrite(hFile, var);
format(var, 32, "Clothes5=%d\n",JugadorInfo[playerid][pClothes5]);fwrite(hFile, var);
format(var, 32, "Donate=%d\n",JugadorInfo[playerid][pDonateT]);fwrite(hFile, var);
format(var, 32, "CarPremium=%d\n",JugadorInfo[playerid][pCarPremium]);fwrite(hFile, var);
format(var, 32, "BanDuda=%d\n",JugadorInfo[playerid][pBanDuda]);fwrite(hFile, var);
format(var, 32, "Pasaporte=%d\n",JugadorInfo[playerid][pPasaporte]);fwrite(hFile, var);
format(var, 32, "Seguro=%d\n",JugadorInfo[playerid][pSeguro]);fwrite(hFile, var);
format(var, 32, "Walkie=%d\n",JugadorInfo[playerid][pWalkie]);fwrite(hFile, var);
format(var, 32, "Hizo=%d\n",JugadorInfo[playerid][pHizo]);fwrite(hFile, var);
format(var, 32, "Head=%d\n",JugadorInfo[playerid][pHead]);fwrite(hFile, var);
fclose(hFile);
}
}
}
return 1;
}