[Ajuda] flood ant xiter
#1

eu queria tirar o sistema de qnd a pessoa reloga no server as armas dela salva. e isso ta flodaando meu ant xiter alguem sabe como tira ?
Reply
#2

Procura algo em OnPlayerDisconnect
Reply
#3

Код HTML:
public OnPlayerDisconnect(playerid, reason)
{
	new nome[24], str[50];
 	GetPlayerName(playerid, nome, 24);
  	format(str, sizeof str, "%s - Arara", nome);
   	DOF2_SetBool("Araras.txt", str, AraraInfo[playerid][Arara]);
   	format(str, sizeof str, "%s - Racao", nome);
    DOF2_SetBool("Araras.txt", str, AraraInfo[playerid][Racao]);
    format(str, sizeof str, "%s - Grande", nome);
    DOF2_SetInt("Araras.txt", str, AraraInfo[playerid][Grande]);
    RemovePlayerAttachedObject(playerid, 4);
	if(DonoBalao[playerid] == 1)
	{
		StopObject(Balao);
		SetObjectPos( Balao,2904.8999,-1096.9142,11.1487-1);
		BalaoOcupado1 = 0;
		KillTimer(TempoBalao1);
		Update3DTextLabelText(TextBalao1, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	if(DonoBalao[playerid] == 2)
	{
		StopObject(Balao2);
		SetObjectPos( Balao2,2906.4272,-1056.2058,11.0407-1);
		BalaoOcupado2 = 0;
		KillTimer(TempoBalao2);
		Update3DTextLabelText(TextBalao2, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	if(DonoBalao[playerid] == 3)
	{
		StopObject(Balao3);
		SetObjectPos( Balao3,2906.4272,-1056.2058,11.0407-1);
		BalaoOcupado3 = 0;
		KillTimer(TempoBalao3);
		Update3DTextLabelText(TextBalao3, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}

	if(DonoBalao[playerid] == 4)
	{
		StopObject(Balao4);
		SetObjectPos( Balao4,2908.6658,-969.0612,11.0407-1);
		BalaoOcupado4 = 0;
		KillTimer(TempoBalao4);
		Update3DTextLabelText(TextBalao4, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	if(DonoBalao[playerid] == 5)
	{
		StopObject(Balao5);
		SetObjectPos( Balao5,2910.4563,-925.4816,11.0469-1);
		BalaoOcupado5 = 0;
		KillTimer(TempoBalao5);
 		Update3DTextLabelText(TextBalao5, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	if(DonoBalao[playerid] == 6)
	{
		StopObject(Balao6);
		SetObjectPos( Balao6,2912.0115,-882.0604,11.0469-1);
		BalaoOcupado6 = 0;
		KillTimer(TempoBalao6);
		Update3DTextLabelText(TextBalao6, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	if(DonoBalao[playerid] == 7)
	{
		StopObject(Balao7);
		SetObjectPos( Balao7,2913.2729,-839.3149,11.0469-1);
		BalaoOcupado7 = 0;
		KillTimer(TempoBalao7);
		Update3DTextLabelText(TextBalao7, 0xE800A6FF, "Para alugar o balгo\nAperte a letra 'F'\n{00CC00}(DESOCUPADO)");
	}
	new sstring[256];
	EstaNoEvento[playerid] = 0;
	SetPlayerSkin(playerid, SkinDoCara[playerid]);
	KillTimer(TempoCheckAmmo[playerid]);
	KillTimer(TempoCheckTudo[playerid]);
	KillTimer(TempoTimerEvento[playerid]);
	CheatPlayerInfo[playerid][aAntiTeleportHack]=0;
	NaoPodeDigitar[playerid] = 0;
	if(NomeTopKills1 == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Kills) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    KillsTop1 = 0;
	    NomeTopKills1 = 999;
	}
	if(NomeTopCrimes == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Crimes) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    CrimesTop = 0;
	    NomeTopCrimes = 999;
	}
	if(NomeTopGrana == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Grana) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    GranaTop = 0;
	    NomeTopGrana = 999;
	}
	if(NomeTopHoras == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Horas jogadas) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    HorasTop = 0;
	    NomeTopHoras = 999;
	}
	if(NomeTopNoob == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Noob) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    NoobTop = 0;
	    NomeTopNoob = 999;
	}
	if(NomeTopRespeito == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Respeito) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    RespeitoTop = 0;
	    NomeTopRespeito = 999;
	}
	if(NomeTopNivel == playerid && gPlayerLogged[playerid] == 1)
	{
	    format(sstring, sizeof(sstring), "** %s (Top Nivel) deslogou do servidor.",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_YELLOW, sstring);
	    printf(sstring);
	    NivelTop = 0;
	    NomeTopNivel = 999;
	}
	if(MensagemDesligou == 1)
	{
	    return true;
	}
	CheatPlayerInfo[playerid][aX] = 0;
	CheatPlayerInfo[playerid][aY] = 0;
	CheatPlayerInfo[playerid][aZ] = 0;
	DisablePlayerCheckpoint(playerid);
 	TextDrawDestroy(Text:FilaAtendimentoText[playerid]);
    TextDrawDestroy(Text:TempoAtendimento2Text[playerid]);
	KillTimer(TimerSS[playerid]);
 	FilaAtendimento[playerid] = 999;
    TempoAtendimento2[playerid] = 0;
	OnPlayerSave(playerid);
	KillTimer(tempotd[playerid]);
    new caller = Mobile[playerid];
    OnPlayerSave(playerid);
	if(VozDePrisao[playerid] == 1)
	{
		PlayerInfo[playerid][pJailed] = 1;
		PlayerInfo[playerid][pJailTime] = 8 * 60;
		format(sstring, sizeof(sstring), "* %s saiu do servidor com voz de prisao, e foi preso automaticamente!", PlayerName(playerid));
		ProxDetector(50.0, playerid, sstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		VozDePrisao[playerid] = 0;
	}
    if(caller != 255)
	{
		if(caller < 255)
		{
			SendClientMessage(caller,  COLOR_GRAD2, "A ligaзгo caiu..");
			CellTime[caller] = 0;
			CellTime[playerid] = 0;
			Mobile[caller] = 255;
		}
		Mobile[playerid] = 255;
		CellTime[playerid] = 0;
	}
	if(HireCar[playerid] > 0)
	{
		VTrancado[HireCar[playerid]] = 0;
		UnLockCar(HireCar[playerid]);
		SetVehicleToRespawn(HireCar[playerid]);
		HireCar[playerid] = 0;
	}
	if (gLastCar[playerid] > 0)
	{
		gLastDriver[gLastCar[playerid]] = 300;
		if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)
		{
			gCarLock[gLastCar[playerid]] = 0;
			UnLockCar(gLastCar[playerid]);
		}
	}
	if(pRoadblock[playerid] != 0)
	{
		RemoveRoadblock(playerid);
	}
	if(pRoadblock2[playerid] != 0)
	{
		RemoveRoadblock2(playerid);
	}
    if(SpikeInfo[playerid][sCreated] != 0)
	{
		RemoveRoadPregos(playerid);
	}
	if(pRoadCones[playerid] != 0)
	{
		RemoveRoadCones(playerid);
	}
   	switch(reason)
   	{
	   	case 0: format(gstring, sizeof(gstring), "***%s saiu do servidor por erro de conexгo ou crash.", PlayerName(playerid));
       	case 1: format(gstring, sizeof(gstring), "***%s saiu do servidor por vontade propria.", PlayerName(playerid));
       	case 2: format(gstring, sizeof(gstring), "***%s Saiu do servidor kickado ou banido.", PlayerName(playerid));
	}
   	ProxDetector(30.0, playerid, gstring,0xDFB595FF,0xDFB595FF,0xDFB595FF,0xDFB595FF,0xDFB595FF);
   	printf("%s", gstring);
	gActivePlayers[playerid]--;
	numplayers--;
	if(ProvocoCasarao[playerid] == 1)
	{
		GangZoneStopFlashForAll(GZCasarao);
		GangZoneShowForAll(GZCasarao, 0xFFFFFF96);
		GuerranoCasarao = 0;
		ProvocoCasarao[playerid] = 0;
		donocasarao = 0;
		Dominando[playerid] = 0;
		KillTimer(TempoGuerraCasarao);
	}
	if(ProvocoEstacao[playerid] == 1)
	{
		GangZoneStopFlashForAll(GZEstacao);
		GangZoneShowForAll(GZEstacao, 0xFFFFFF96);
		GuerranaEstacao = 0;
		ProvocoEstacao[playerid] = 0;
		donoestacao = 0;
		Dominando[playerid] = 0;
		KillTimer(TempoGuerraEstacao);
	}
	if(ProvocoMorro[playerid] == 1)
	{
		GangZoneStopFlashForAll(GZMorro);
		GangZoneShowForAll(GZMorro, 0xFFFFFF96);
		GuerranoMorro = 0;
		ProvocoMorro[playerid] = 0;
		donomorro = 0;
		Dominando[playerid] = 0;
		KillTimer(TempoGuerraMorro);
	}

	if(ProvocoAero[playerid] == 1)
	{
		GangZoneStopFlashForAll(GZMaddDogg);
		GangZoneShowForAll(GZMaddDogg, 0xFFFFFF96);
		GuerranoAero = 0;
		ProvocoAero[playerid] = 0;
		donoaero = 0;
		Dominando[playerid] = 0;
		KillTimer(TempoGuerraAero);
	}
	if(ProvocoPark[playerid] == 1)
	{
		GangZoneStopFlashForAll(GZPark);
		GangZoneShowForAll(GZPark, 0xFFFFFF96);
		GuerranoPark = 0;
		ProvocoPark[playerid] = 0;
		donopark = 0;
		Dominando[playerid] = 0;
		KillTimer(TempoGuerraPark);
	}

	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(TaxiAccepted[i] < 999)
	        {
		        if(TaxiAccepted[i] == playerid)
		        {
		            TaxiAccepted[i] = 999;
		            GameTextForPlayer(i, "~w~O Cliente~n~~r~Saiu do jogo", 5000, 1);
		            TaxiCallTime[i] = 0;
		            DisablePlayerCheckpoint(i);
		        }
	        }
	        else if(CopsrondaAccepted[i] < 999)
	        {
		        if(CopsrondaAccepted[i] == playerid)
		        {
		            CopsrondaAccepted[i] = 999;
		            GameTextForPlayer(i, "~w~Policial o player~n~~r~Deixou o jogo", 5000, 1);
		            CopsrondaCallTime[i] = 0;
		            DisablePlayerCheckpoint(i);
		        }
	        }
	        else if(MedicAccepted[i] < 999)
	        {
		        if(MedicAccepted[i] == playerid)
		        {
		            MedicAccepted[i] = 999;
		            GameTextForPlayer(i, "~w~O Cliente~n~~r~Saiu do jogo", 5000, 1);
		            MedicCallTime[i] = 0;
		            DisablePlayerCheckpoint(i);
		        }
	        }
	        else if(MechanicAccepted[i] < 999)
	        {
		        if(MechanicAccepted[i] == playerid)
		        {
		            MechanicAccepted[i] = 999;
		            GameTextForPlayer(i, "~w~O Cliente~n~~r~Saiu do jogo", 5000, 1);
		            MechanicCallTime[i] = 0;
		            DisablePlayerCheckpoint(i);
		        }
	        }
	        else if(BusAccepted[i] < 999)
	        {
		        if(BusAccepted[i] == playerid)
		        {
		            BusAccepted[i] = 999;
		            GameTextForPlayer(i, "~w~O Cliente~n~~r~Saiu do jogo", 5000, 1);
		            BusCallTime[i] = 0;
		            DisablePlayerCheckpoint(i);
		        }
	        }
	    }
	}
	if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
	{
	    if(IsPlayerConnected(TransportDriver[playerid]))
		{
		    TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
		    TransportTime[TransportDriver[playerid]] = 0;
		    TransportCost[TransportDriver[playerid]] = 0;
		    format(gstring, sizeof(gstring), "~w~Passageiro saiu~n~~g~ganhou R$%d",TransportCost[playerid]);
		    GameTextForPlayer(TransportDriver[playerid], gstring, 5000, 1);
		}
	}
	if(GotHit[playerid] > 0)
	{
	    if(GetChased[playerid] < 999)
	    {
	        if(IsPlayerConnected(GetChased[playerid]))
	        {
	        	SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Seu contrato saiu do servidor.");
	            GoChase[GetChased[playerid]] = 999;
			}
	    }
	}

	if(HireCar[playerid] != 299)
	{
		gLastDriver[HireCar[playerid]] = 300;
		VTrancado[HireCar[playerid]] = 0;
		UnLockCar(HireCar[playerid]);
	}
	if (gLastCar[playerid] > 0)
	{
		gLastDriver[gLastCar[playerid]] = 300;
		if(PlayerInfo[playerid][pPHousekey] != gLastCar[playerid]-1)
		{
			VTrancado[gLastCar[playerid]] = 0;
			UnLockCar(gLastCar[playerid]);
		}
	}
	if(PlayerBoxing[playerid] > 0)
	{
	    if(Boxer1 == playerid)
	    {
	        if(IsPlayerConnected(Boxer2))
	        {
	        	PlayerBoxing[Boxer2] = 0;
	        	SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
	        	SetPlayerInterior(Boxer2, 5);
	        	GameTextForPlayer(Boxer2, "~r~Luta interrompida", 5000, 1);
			}
	    }
	    else if(Boxer2 == playerid)
	    {
	        if(IsPlayerConnected(Boxer1))
	        {
	        	PlayerBoxing[Boxer1] = 0;
	        	SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
	        	SetPlayerInterior(Boxer1, 5);
	        	GameTextForPlayer(Boxer1, "~r~Luta interrompida", 5000, 1);
			}
	    }
	    InRing = 0;
     	RorndStarted = 0;
		Boxer1 = 255;
		Boxer2 = 255;
		TBoxer = 255;
	}
    if(TransportDuty[playerid] == 1)
	{
		TaxiDrivers -= 1;
	}
    else if(TransportDuty[playerid] == 2)
	{
		BusDrivers -= 1;
	}
	if(IsACop(playerid))
	{
	    if(EmpregoDuty[playerid] == 2) { Copsronda -= 1; }
	}
	if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//1 daki pr baixo os 3
	{
	    if(EmpregoDuty[playerid] == 2) { Medics -= 1; }
	}
	else if(IsAMec(playerid))
	{
	    if(EmpregoDuty[playerid] == 2) { Mechanics -= 1; }
	}
	OnPlayerSave(playerid);
	BusrouteEast[playerid][0] = 0;
	BusrouteWest[playerid][0] = 0;
	if((PlayerInfo[playerid][pAdmin] >= 1) && (PlayerInfo[playerid][pAdmin] <= 1338))
	{
		new string[128];
		new AdminName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, AdminName, sizeof(AdminName));
		format(string, sizeof(string), "~y~%s: ~r~OFF", AdminName);
		for(new i=0; i<MAX_PLAYERS; i++)
		{
			GameTextForPlayer(i, string , 5000, 1);
		}
	}
	return 0;
}
Reply
#4

O que tem em OnPlayerSave?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)