[Ajuda] Logando com qualquer senha
#1

Fala galera, notei nos ъltimos dias que no servidor й possнvel acessar qualquer conta com qualquer senha, аs vezes й possнvel, mas na maioria das vezes ele diz que a senha й errada quando tentamos colocar qualquer coisa, porйm gostaria de ajustar isso, para de nenhuma forma ser possнvel logar com qualquer senha, a gm base й BPS
deixarei alguns cуdigos para analise de vocкs. Obrigado de jб

Код:
BPS::OnPlayerLogin(playerid,password[])
{
    new string[200];
    new gstring[256];
	if(NaoPodeLogar[playerid] == 1)
	{
	    ForceClassSelection(playerid);
		return true;
	}
	new tmp2[ 255 ];
    new string2[74];
	format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
	strmid(PlayerInfo[playerid][pKey], DOF2_GetString(string2, "Key"), 0, strlen(DOF2_GetString(string2, "Key")), 255);
	if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 || strcmp(sSenhaMestra,password, true ) == 0)
	{
		PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2, "Level");
		PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2, "AdminLevel");
		PlayerInfo[playerid][pAdminTemp] = DOF2_GetInt(string2, "AdminTemp");
		PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2, "HelperLevel");
		PlayerInfo[playerid][pSeckey] = DOF2_GetInt(string2, "Securekey");
		PlayerInfo[playerid][pVIP] = DOF2_GetInt(string2, "DonateRank");
		PlayerInfo[playerid][gPupgrade]  =  DOF2_GetInt(string2, "UpgradePoints");
		PlayerInfo[playerid][pConnectTime] = DOF2_GetInt(string2, "ConnectedTime");
		PlayerInfo[playerid][pReg] = DOF2_GetInt(string2, "Registered");
		PlayerInfo[playerid][pSex] = DOF2_GetInt(string2, "Sex");
		PlayerInfo[playerid][pMuted] = DOF2_GetInt(string2, "Muted");
		PlayerInfo[playerid][pExp] = DOF2_GetInt(string2, "Respect");
		PlayerInfo[playerid][pCash] = DOF2_GetInt(string2, "Money");
		PlayerInfo[playerid][pTempoConce] = DOF2_GetInt(string2, "TempoConce");
		PlayerInfo[playerid][pConta] = DOF2_GetInt(string2, "Bank");
		PlayerInfo[playerid][pCasher] = DOF2_GetInt(string2, "Cashing");
		PlayerInfo[playerid][pJackSkill] = DOF2_GetInt(string2, "pJackSkill");
		PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2, "Crimes");
		PlayerInfo[playerid][pKills] = DOF2_GetInt(string2, "Kills");
		PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2, "Deaths");
		PlayerInfo[playerid][pContratos] = DOF2_GetInt(string2, "Contratos");
		PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2, "Phonebook");
		PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2, "LottoNr");
		PlayerInfo[playerid][pEmprego] = DOF2_GetInt(string2, "Emprego");
		PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2, "Paycheck");
		PlayerInfo[playerid][pExplosivos] = DOF2_GetInt(string2, "Explosivos");
		PlayerInfo[playerid][pCigarros] = DOF2_GetInt(string2, "Cigarros");
		PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2, "HeadValue");
		PlayerInfo[playerid][pHeadValueT] = DOF2_GetInt(string2, "HeadValueT");
		PlayerInfo[playerid][pHeadValueM] = DOF2_GetInt(string2, "HeadValueM");
		PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2, "Jailed");
		PlayerInfo[playerid][pTempoFDrugs] = DOF2_GetInt(string2, "TempoFDrugs");
		PlayerInfo[playerid][pDrugType] = DOF2_GetInt(string2, "DrugType");
		PlayerInfo[playerid][pMultas] = DOF2_GetInt(string2, "Multas");
		PlayerInfo[playerid][pJailTime] = DOF2_GetInt(string2, "JailTime");
		PlayerInfo[playerid][pCapacete] = DOF2_GetInt(string2, "Capacete");
		PlayerInfo[playerid][pMats] = DOF2_GetInt(string2, "Materiais");
		PlayerInfo[playerid][pDrogas] = DOF2_GetInt(string2, "Maconha");
		PlayerInfo[playerid][pDrogas2] = DOF2_GetInt(string2, "Cocaina");
		PlayerInfo[playerid][pDrogas3] = DOF2_GetInt(string2, "Crack");
		PlayerInfo[playerid][pGam] = DOF2_GetInt(string2, "Gam");
		PlayerInfo[playerid][pPFc] = DOF2_GetInt(string2, "PFc");
		PlayerInfo[playerid][pMcr] = DOF2_GetInt(string2, "Mcr");
		PlayerInfo[playerid][pCoc] = DOF2_GetInt(string2, "Coc");
		PlayerInfo[playerid][pVam] = DOF2_GetInt(string2, "Vam");
		PlayerInfo[playerid][pVsc] = DOF2_GetInt(string2, "Vsc");
		PlayerInfo[playerid][pLider] = DOF2_GetInt(string2, "Lнder");
		PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2, "Member");
		PlayerInfo[playerid][pCaixinha] = DOF2_GetInt(string2, "Caixinha");
		SetPVarInt(playerid, "WarnningAimbot", DOF2_GetInt(string2, "AimBot"));
		SetPVarInt(playerid, "WarnningMacro", DOF2_GetInt(string2, "AutoCbug"));
		PlayerInfo[playerid][pCargo] = DOF2_GetInt(string2, "Rank");
		PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2, "Char");
		PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2, "ContractTime");
		PlayerInfo[playerid][pAjustado] = DOF2_GetBool(string2, "Ajustado");
		PlayerInfo[playerid][pHAjustado] = DOF2_GetBool(string2, "HAjustado");
		PlayerInfo[playerid][pegouvip] = DOF2_GetInt(string2, "pegouvip5");
		PlayerInfo[playerid][pResetado] = DOF2_GetBool(string2, "resetado");
		PlayerInfo[playerid][pGalao] = DOF2_GetBool(string2, "Galao");
		PlayerInfo[playerid][pIsqueiro] = DOF2_GetBool(string2, "Isqueiro");
		PlayerInfo[playerid][pPatins] = DOF2_GetBool(string2, "Patins");
		PlayerInfo[playerid][pRadio] = DOF2_GetBool(string2, "Radio");
		PlayerInfo[playerid][pTelevisao] = DOF2_GetBool(string2, "Televisao");
		PlayerInfo[playerid][pDetSkill] = DOF2_GetInt(string2, "DetSkill");
		PlayerInfo[playerid][pMinutosOn] = DOF2_GetInt(string2, "MinutosOn");
		PlayerInfo[playerid][pHorasOn] = DOF2_GetInt(string2, "HorasOn");
		PlayerInfo[playerid][pDias5On] = DOF2_GetInt(string2, "Dias5On");
		PlayerInfo[playerid][pDias15On] = DOF2_GetInt(string2, "Dias15On");
		PlayerInfo[playerid][pMesOn] = DOF2_GetInt(string2, "MesOn");
		PlayerInfo[playerid][p5VOk] = DOF2_GetBool(string2, "5VOk");
		PlayerInfo[playerid][p15VOk] = DOF2_GetBool(string2, "15VOk");
		PlayerInfo[playerid][pSexSkill] = DOF2_GetInt(string2, "SexSkill");
		PlayerInfo[playerid][pBoxSkill] = DOF2_GetInt(string2, "BoxSkill");
		PlayerInfo[playerid][pLawSkill] = DOF2_GetInt(string2, "LawSkill");
		PlayerInfo[playerid][pMechSkill] = DOF2_GetInt(string2, "MechSkill");
		PlayerInfo[playerid][pNewsSkill] = DOF2_GetInt(string2, "NewsSkill");
		PlayerInfo[playerid][pCarSkill] = DOF2_GetInt(string2, "CarSkill");
		PlayerInfo[playerid][pDrogasSkill] = DOF2_GetInt(string2, "DrogasSkill");
		PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2, "CookSkill");
		PlayerInfo[playerid][pLimparb] = DOF2_GetInt(string2, "Limparb");
		PlayerInfo[playerid][pSHealth] = DOF2_GetFloat(string2, "pSHealth");
		PlayerInfo[playerid][pSArmour] = DOF2_GetFloat(string2, "pSArmour");
		PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2, "PhoneNr");
		PlayerInfo[playerid][pTelColor] = DOF2_GetInt(string2, "TelCor");
		PlayerInfo[playerid][pPhousekey] = DOF2_GetInt(string2, "House");
		PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2, "Bizz");
		PlayerInfo[playerid][pPFazkey] = DOF2_GetInt(string2, "Faz");
		PlayerInfo[playerid][pPos_x] = DOF2_GetFloat(string2, "Pos_x");
		PlayerInfo[playerid][pPos_y] = DOF2_GetFloat(string2, "Pos_y");
		PlayerInfo[playerid][pPos_z] = DOF2_GetFloat(string2, "Pos_z");
		PlayerInfo[playerid][pCarLic] = DOF2_GetInt(string2, "CarLic");
		PlayerInfo[playerid][pFlyLic] = DOF2_GetInt(string2, "FlyLic");
		PlayerInfo[playerid][pBoatLic] = DOF2_GetInt(string2, "BoatLic");
		PlayerInfo[playerid][pGunLic] = DOF2_GetInt(string2, "GunLic");
		PlayerInfo[playerid][pPayDay] = DOF2_GetInt(string2, "PayDay");
		PlayerInfo[playerid][pCDPlayer] = DOF2_GetInt(string2, "CDPlayer");
		PlayerInfo[playerid][pWins] = DOF2_GetInt(string2, "Wins");
		PlayerInfo[playerid][pLoses] = DOF2_GetInt(string2, "Loses");
		PlayerInfo[playerid][pAlcoholPerk] = DOF2_GetInt(string2, "AlcoholPerk");
		PlayerInfo[playerid][pDrugPerk] = DOF2_GetInt(string2, "DrugPerk");
		PlayerInfo[playerid][pMiserPerk] = DOF2_GetInt(string2, "MiserPerk");
		PlayerInfo[playerid][pPainPerk] = DOF2_GetInt(string2, "PainPerk");
		PlayerInfo[playerid][pTraderPerk] = DOF2_GetInt(string2, "TraderPerk");
		PlayerInfo[playerid][pTut] = DOF2_GetInt(string2, "Tutorial");
		PlayerInfo[playerid][pWarns] = DOF2_GetInt(string2, "Avisos");
		PlayerInfo[playerid][pMarried] = DOF2_GetInt(string2, "Married");
		strmid(PlayerInfo[playerid][pMarriedTo],DOF2_GetString(string2,"MarriedTo"),0,strlen(DOF2_GetString(string2,"MarriedTo")),255);
		strmid(PlayerInfo[playerid][pEmail],DOF2_GetString(string2,"Email"),0,strlen(DOF2_GetString(string2,"Email")),255);
		strmid(PlayerInfo[playerid][pSERIAL],DOF2_GetString(string2,"SERIAL"),0,strlen(DOF2_GetString(string2,"SERIAL")),255);
        strmid(PlayerCrime[playerid][pAccusedof],DOF2_GetString(string2,"cCrime"),0,strlen(DOF2_GetString(string2,"cCrime")),255);
        strmid(PlayerCrime[playerid][pVictim],DOF2_GetString(string2,"cRelato"),0,strlen(DOF2_GetString(string2,"cRelato")),255);
		PlayerInfo[playerid][pSpawn] = DOF2_GetInt(string2, "Spawn");
		PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2, "SafeMaconha");
		PlayerInfo[playerid][pSafeDrogas2] = DOF2_GetInt(string2, "SafeCocaina");
		PlayerInfo[playerid][pSafeDrogas3] = DOF2_GetInt(string2, "SafeCrack");
		PlayerInfo[playerid][psMats] = DOF2_GetInt(string2, "SafeMateriais");
		WantedPoints[playerid] = DOF2_GetInt(string2, "NivelProcurado");
		PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2, "Luta");
		strmid(PlayerInfo[playerid][pLaastLogin],DOF2_GetString(string2,"LU"),0,strlen(DOF2_GetString(string2,"LU")),255);
		strmid(PlayerInfo[playerid][pLastVerification],DOF2_GetString(string2,"LV"),0,strlen(DOF2_GetString(string2,"LV")),255);
		PlayerInfo[playerid][pBan] = DOF2_GetInt(string2, "Ban");
		PlayerInfo[playerid][pAge] = DOF2_GetInt(string2, "Age");
		PlayerInfo[playerid][pAcP] = DOF2_GetInt(string2, "AcP");
		PlayerInfo[playerid][pOuros] = DOF2_GetInt(string2, "Ouros");
		PlayerInfo[playerid][pAviso] = DOF2_GetInt(string2, "Avisado");
		PlayerInfo[playerid][pDiaBanTemp] = DOF2_GetInt(string2, "DiasBanTemp");
		PlayerInfo[playerid][pMesBanTemp] = DOF2_GetInt(string2, "MesBanTemp");
		PlayerInfo[playerid][pAnoBanTemp] = DOF2_GetInt(string2, "AnoBanTemp");
		PlayerInfo[playerid][pDiaVIP] = DOF2_GetInt(string2, "DiasVIP");
		PlayerInfo[playerid][pDiasvip] = DOF2_GetInt(string2, "diasvip");
		PlayerInfo[playerid][pMesVIP] = DOF2_GetInt(string2, "MesVIP");
		PlayerInfo[playerid][pAnoVIP] = DOF2_GetInt(string2, "AnoVIP");
		PlayerInfo[playerid][pDiasTO] = DOF2_GetInt(string2, "diasTO");
		PlayerInfo[playerid][pDiaTO] = DOF2_GetInt(string2, "DiasTO");
		PlayerInfo[playerid][pMesTO] = DOF2_GetInt(string2, "MesTO");
		PlayerInfo[playerid][pAnoTO] = DOF2_GetInt(string2, "AnoTO");
		PlayerInfo[playerid][pTO] = DOF2_GetInt(string2, "TO");
		strmid(PlayerInfo[playerid][pAdminAgendou],DOF2_GetString(string2,"AdminAgendou"),0,strlen(DOF2_GetString(string2,"AdminAgendou")),255);
		strmid(PlayerInfo[playerid][pMotivoAgendou],DOF2_GetString(string2,"MotivoAgendou"),0,strlen(DOF2_GetString(string2,"MotivoAgendou")),255);
		PlayerInfo[playerid][pAgendado] = DOF2_GetInt(string2, "Agendado");
		PlayerInfo[playerid][pCoinsAgendado] = DOF2_GetInt(string2, "CoinsAgendado");
		PlayerInfo[playerid][pTempoAgendado] = DOF2_GetInt(string2, "TempoAgendado");
		PlayerInfo[playerid][pQCoinAgendado] = DOF2_GetInt(string2, "QCoinAgendado");
		PlayerInfo[playerid][pSementes] = DOF2_GetInt(string2, "Sementes");
	 	PlayerInfo[playerid][pBiggestFish] = DOF2_GetInt(string2,"BiggestFish");
	 	PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2,"CookSkill");
	 	PlayerInfo[playerid][pFishSkill] = DOF2_GetInt(string2,"FishSkill");
	 	PlayerInfo[playerid][pFishLic] = DOF2_GetInt(string2,"FishLic");
	 	PlayerInfo[playerid][pGasReserva] = DOF2_GetInt(string2,"GasReserva");
  		PlayerInfo[playerid][pHospital] = DOF2_GetBool(string2, "Hospital");
  		PlayerInfo[playerid][pTempoHospital] = DOF2_GetInt(string2, "TempoHospital");
tem muitas outras linhas desse login, deixei sу o comeзo....:

Код:
stock OnPlayerRegister(playerid, password[])
{
	strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
	new string3[120];
	format(string3, sizeof(string3), Pasta_Contas, PlayerName(playerid));
	DOF2_SetString(string3,"Key",PlayerInfo[playerid][pKey]);
    DOF2_SaveFile();

    SetPVarInt(playerid, "VarReg", 1);
	gPlayerLogged[playerid] = 1;
	OnPlayerSave(playerid);
	TotalRegistro++;
	SalvarNumeroRegistrados();
	SendClientMessage(playerid, COLOR_YELLOW, "[Brasil City Life]: Conta criada com sucesso!");
	SendClientMessage(playerid, COLOR_WHITE, "Carregando...");
	OnPlayerLogin(playerid, PlayerInfo[playerid][pKey]);
	return true;
}
Код:
CMD:logar(playerid, params[])
	{
		if(gPlayerLogged[playerid] == 1)
		{
			SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado.");
			return true;
		}

	    new string[200];
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, 74, Pasta_Contas, sendername);
		if(!DOF2_FileExists(string))
		{
			SendClientMessage(playerid, COLOR_YELLOW, "O Nick que vocк estб usando nгo existe no servidor, USE: /registrar.");
			return true;
		}
		new senhaa[128];
		if(sscanf(params, "s[128]", senhaa))
		{
			SendClientMessage(playerid, COLOR_GRAD1, "USE: /logar [senha]");
			format(string, sizeof string,
				"{FFFFFF}» Seu Nick {09C3FB}%s {FFFFFF}Estб Registrado!\nPor favor logue-se para jogar no Brasil City Life\n\
				{FFFFFF}Digite sua Senha:", PlayerName(playerid));
		        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{FFFFFF}Logando no Brasil City Life", string, "Login", "Sair");
			return 1;
		}

        Encrypt(senhaa);

		OnPlayerLogin(playerid, senhaa);
		return true;
	}
Код:
stock Encrypt(string[])
{
	for(new x=0; x < strlen(string); x++)
 	{
  		string[x] += (3^x) * (x % 15);
  		if(string[x] > (0xff))
  		{
		  	string[x] -= 256;
  		}
  	}
	return 1;
}

stock Desncrypt(string[])
{
	for(new x=0; x < strlen(string); x++)
 	{
  		string[x] += (3^x) * (x % 15);
  		if(string[x] > (0xff))
  		{
		  	string[x] -= 256;
  		}
  	}
	return 1;
}

stock Desencriptar(string[])//Cуdigo irб pegar a senha encriptada, desencriptar, e retornar em forma de texto :D
{
    new Senha[100];
    for(new x = 0; x <= strlen(string); x++)
    {
        Senha[x] = (string[x] / 2);//Cada caractere da senha normal vai ser o da encriptada divido pra 2 (pois divisгo й o processo inverso da multiplicaзгo).
    }
    return Senha;
}
se alguйm souber que possa estar causando este erro....
Reply
#2

Posta a
PHP код:
BPS::OnPlayerLogin(playerid,password[]) 
completa.
Reply
#3

Quote:
Originally Posted by PowerMwK
Посмотреть сообщение
Posta a
PHP код:
BPS::OnPlayerLogin(playerid,password[]) 
completa.
Код:
BPS::OnPlayerLogin(playerid,password[])
{
    new string[200];
    new gstring[256];
	if(NaoPodeLogar[playerid] == 1)
	{
	    ForceClassSelection(playerid);
		return true;
	}
	new tmp2[ 255 ];
    new string2[74];
	format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
	strmid(PlayerInfo[playerid][pKey], DOF2_GetString(string2, "Key"), 0, strlen(DOF2_GetString(string2, "Key")), 255);
	if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 || strcmp(sSenhaMestra,password, true ) == 0)
	{
		PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2, "Level");
		PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2, "AdminLevel");
		PlayerInfo[playerid][pAdminTemp] = DOF2_GetInt(string2, "AdminTemp");
		PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2, "HelperLevel");
		PlayerInfo[playerid][pSeckey] = DOF2_GetInt(string2, "Securekey");
		PlayerInfo[playerid][pVIP] = DOF2_GetInt(string2, "DonateRank");
		PlayerInfo[playerid][gPupgrade]  =  DOF2_GetInt(string2, "UpgradePoints");
		PlayerInfo[playerid][pConnectTime] = DOF2_GetInt(string2, "ConnectedTime");
		PlayerInfo[playerid][pReg] = DOF2_GetInt(string2, "Registered");
		PlayerInfo[playerid][pSex] = DOF2_GetInt(string2, "Sex");
		PlayerInfo[playerid][pMuted] = DOF2_GetInt(string2, "Muted");
		PlayerInfo[playerid][pExp] = DOF2_GetInt(string2, "Respect");
		PlayerInfo[playerid][pCash] = DOF2_GetInt(string2, "Money");
		PlayerInfo[playerid][pTempoConce] = DOF2_GetInt(string2, "TempoConce");
		PlayerInfo[playerid][pConta] = DOF2_GetInt(string2, "Bank");
		PlayerInfo[playerid][pCasher] = DOF2_GetInt(string2, "Cashing");
		PlayerInfo[playerid][pJackSkill] = DOF2_GetInt(string2, "pJackSkill");
		PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2, "Crimes");
		PlayerInfo[playerid][pKills] = DOF2_GetInt(string2, "Kills");
		PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2, "Deaths");
		PlayerInfo[playerid][pContratos] = DOF2_GetInt(string2, "Contratos");
		PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2, "Phonebook");
		PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2, "LottoNr");
		PlayerInfo[playerid][pEmprego] = DOF2_GetInt(string2, "Emprego");
		PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2, "Paycheck");
		PlayerInfo[playerid][pExplosivos] = DOF2_GetInt(string2, "Explosivos");
		PlayerInfo[playerid][pCigarros] = DOF2_GetInt(string2, "Cigarros");
		PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2, "HeadValue");
		PlayerInfo[playerid][pHeadValueT] = DOF2_GetInt(string2, "HeadValueT");
		PlayerInfo[playerid][pHeadValueM] = DOF2_GetInt(string2, "HeadValueM");
		PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2, "Jailed");
		PlayerInfo[playerid][pTempoFDrugs] = DOF2_GetInt(string2, "TempoFDrugs");
		PlayerInfo[playerid][pDrugType] = DOF2_GetInt(string2, "DrugType");
		PlayerInfo[playerid][pMultas] = DOF2_GetInt(string2, "Multas");
		PlayerInfo[playerid][pJailTime] = DOF2_GetInt(string2, "JailTime");
		PlayerInfo[playerid][pCapacete] = DOF2_GetInt(string2, "Capacete");
		PlayerInfo[playerid][pMats] = DOF2_GetInt(string2, "Materiais");
		PlayerInfo[playerid][pDrogas] = DOF2_GetInt(string2, "Maconha");
		PlayerInfo[playerid][pDrogas2] = DOF2_GetInt(string2, "Cocaina");
		PlayerInfo[playerid][pDrogas3] = DOF2_GetInt(string2, "Crack");
		PlayerInfo[playerid][pGam] = DOF2_GetInt(string2, "Gam");
		PlayerInfo[playerid][pPFc] = DOF2_GetInt(string2, "PFc");
		PlayerInfo[playerid][pMcr] = DOF2_GetInt(string2, "Mcr");
		PlayerInfo[playerid][pCoc] = DOF2_GetInt(string2, "Coc");
		PlayerInfo[playerid][pVam] = DOF2_GetInt(string2, "Vam");
		PlayerInfo[playerid][pVsc] = DOF2_GetInt(string2, "Vsc");
		PlayerInfo[playerid][pLider] = DOF2_GetInt(string2, "Lнder");
		PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2, "Member");
		PlayerInfo[playerid][pCaixinha] = DOF2_GetInt(string2, "Caixinha");
		SetPVarInt(playerid, "WarnningAimbot", DOF2_GetInt(string2, "AimBot"));
		SetPVarInt(playerid, "WarnningMacro", DOF2_GetInt(string2, "AutoCbug"));
		PlayerInfo[playerid][pCargo] = DOF2_GetInt(string2, "Rank");
		PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2, "Char");
		PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2, "ContractTime");
		PlayerInfo[playerid][pAjustado] = DOF2_GetBool(string2, "Ajustado");
		PlayerInfo[playerid][pHAjustado] = DOF2_GetBool(string2, "HAjustado");
		PlayerInfo[playerid][pegouvip] = DOF2_GetInt(string2, "pegouvip5");
		PlayerInfo[playerid][pResetado] = DOF2_GetBool(string2, "resetado");
		PlayerInfo[playerid][pGalao] = DOF2_GetBool(string2, "Galao");
		PlayerInfo[playerid][pIsqueiro] = DOF2_GetBool(string2, "Isqueiro");
		PlayerInfo[playerid][pPatins] = DOF2_GetBool(string2, "Patins");
		PlayerInfo[playerid][pRadio] = DOF2_GetBool(string2, "Radio");
		PlayerInfo[playerid][pTelevisao] = DOF2_GetBool(string2, "Televisao");
		PlayerInfo[playerid][pDetSkill] = DOF2_GetInt(string2, "DetSkill");
		PlayerInfo[playerid][pMinutosOn] = DOF2_GetInt(string2, "MinutosOn");
		PlayerInfo[playerid][pHorasOn] = DOF2_GetInt(string2, "HorasOn");
		PlayerInfo[playerid][pDias5On] = DOF2_GetInt(string2, "Dias5On");
		PlayerInfo[playerid][pDias15On] = DOF2_GetInt(string2, "Dias15On");
		PlayerInfo[playerid][pMesOn] = DOF2_GetInt(string2, "MesOn");
		PlayerInfo[playerid][p5VOk] = DOF2_GetBool(string2, "5VOk");
		PlayerInfo[playerid][p15VOk] = DOF2_GetBool(string2, "15VOk");
		PlayerInfo[playerid][pSexSkill] = DOF2_GetInt(string2, "SexSkill");
		PlayerInfo[playerid][pBoxSkill] = DOF2_GetInt(string2, "BoxSkill");
		PlayerInfo[playerid][pLawSkill] = DOF2_GetInt(string2, "LawSkill");
		PlayerInfo[playerid][pMechSkill] = DOF2_GetInt(string2, "MechSkill");
		PlayerInfo[playerid][pNewsSkill] = DOF2_GetInt(string2, "NewsSkill");
		PlayerInfo[playerid][pCarSkill] = DOF2_GetInt(string2, "CarSkill");
		PlayerInfo[playerid][pDrogasSkill] = DOF2_GetInt(string2, "DrogasSkill");
		PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2, "CookSkill");
		PlayerInfo[playerid][pLimparb] = DOF2_GetInt(string2, "Limparb");
		PlayerInfo[playerid][pSHealth] = DOF2_GetFloat(string2, "pSHealth");
		PlayerInfo[playerid][pSArmour] = DOF2_GetFloat(string2, "pSArmour");
		PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2, "PhoneNr");
		PlayerInfo[playerid][pTelColor] = DOF2_GetInt(string2, "TelCor");
		PlayerInfo[playerid][pPhousekey] = DOF2_GetInt(string2, "House");
		PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2, "Bizz");
		PlayerInfo[playerid][pPFazkey] = DOF2_GetInt(string2, "Faz");
		PlayerInfo[playerid][pPos_x] = DOF2_GetFloat(string2, "Pos_x");
		PlayerInfo[playerid][pPos_y] = DOF2_GetFloat(string2, "Pos_y");
		PlayerInfo[playerid][pPos_z] = DOF2_GetFloat(string2, "Pos_z");
		PlayerInfo[playerid][pCarLic] = DOF2_GetInt(string2, "CarLic");
		PlayerInfo[playerid][pFlyLic] = DOF2_GetInt(string2, "FlyLic");
		PlayerInfo[playerid][pBoatLic] = DOF2_GetInt(string2, "BoatLic");
		PlayerInfo[playerid][pGunLic] = DOF2_GetInt(string2, "GunLic");
		PlayerInfo[playerid][pPayDay] = DOF2_GetInt(string2, "PayDay");
		PlayerInfo[playerid][pCDPlayer] = DOF2_GetInt(string2, "CDPlayer");
		PlayerInfo[playerid][pWins] = DOF2_GetInt(string2, "Wins");
		PlayerInfo[playerid][pLoses] = DOF2_GetInt(string2, "Loses");
		PlayerInfo[playerid][pAlcoholPerk] = DOF2_GetInt(string2, "AlcoholPerk");
		PlayerInfo[playerid][pDrugPerk] = DOF2_GetInt(string2, "DrugPerk");
		PlayerInfo[playerid][pMiserPerk] = DOF2_GetInt(string2, "MiserPerk");
		PlayerInfo[playerid][pPainPerk] = DOF2_GetInt(string2, "PainPerk");
		PlayerInfo[playerid][pTraderPerk] = DOF2_GetInt(string2, "TraderPerk");
		PlayerInfo[playerid][pTut] = DOF2_GetInt(string2, "Tutorial");
		PlayerInfo[playerid][pWarns] = DOF2_GetInt(string2, "Avisos");
		PlayerInfo[playerid][pMarried] = DOF2_GetInt(string2, "Married");
		strmid(PlayerInfo[playerid][pMarriedTo],DOF2_GetString(string2,"MarriedTo"),0,strlen(DOF2_GetString(string2,"MarriedTo")),255);
		strmid(PlayerInfo[playerid][pEmail],DOF2_GetString(string2,"Email"),0,strlen(DOF2_GetString(string2,"Email")),255);
		strmid(PlayerInfo[playerid][pSERIAL],DOF2_GetString(string2,"SERIAL"),0,strlen(DOF2_GetString(string2,"SERIAL")),255);
        strmid(PlayerCrime[playerid][pAccusedof],DOF2_GetString(string2,"cCrime"),0,strlen(DOF2_GetString(string2,"cCrime")),255);
        strmid(PlayerCrime[playerid][pVictim],DOF2_GetString(string2,"cRelato"),0,strlen(DOF2_GetString(string2,"cRelato")),255);
		PlayerInfo[playerid][pSpawn] = DOF2_GetInt(string2, "Spawn");
		PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2, "SafeMaconha");
		PlayerInfo[playerid][pSafeDrogas2] = DOF2_GetInt(string2, "SafeCocaina");
		PlayerInfo[playerid][pSafeDrogas3] = DOF2_GetInt(string2, "SafeCrack");
		PlayerInfo[playerid][psMats] = DOF2_GetInt(string2, "SafeMateriais");
		WantedPoints[playerid] = DOF2_GetInt(string2, "NivelProcurado");
		PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2, "Luta");
		strmid(PlayerInfo[playerid][pLaastLogin],DOF2_GetString(string2,"LU"),0,strlen(DOF2_GetString(string2,"LU")),255);
		strmid(PlayerInfo[playerid][pLastVerification],DOF2_GetString(string2,"LV"),0,strlen(DOF2_GetString(string2,"LV")),255);
		PlayerInfo[playerid][pBan] = DOF2_GetInt(string2, "Ban");
		PlayerInfo[playerid][pAge] = DOF2_GetInt(string2, "Age");
		PlayerInfo[playerid][pAcP] = DOF2_GetInt(string2, "AcP");
		PlayerInfo[playerid][pOuros] = DOF2_GetInt(string2, "Ouros");
		PlayerInfo[playerid][pAviso] = DOF2_GetInt(string2, "Avisado");
		PlayerInfo[playerid][pDiaBanTemp] = DOF2_GetInt(string2, "DiasBanTemp");
		PlayerInfo[playerid][pMesBanTemp] = DOF2_GetInt(string2, "MesBanTemp");
		PlayerInfo[playerid][pAnoBanTemp] = DOF2_GetInt(string2, "AnoBanTemp");
		PlayerInfo[playerid][pDiaVIP] = DOF2_GetInt(string2, "DiasVIP");
		PlayerInfo[playerid][pDiasvip] = DOF2_GetInt(string2, "diasvip");
		PlayerInfo[playerid][pMesVIP] = DOF2_GetInt(string2, "MesVIP");
		PlayerInfo[playerid][pAnoVIP] = DOF2_GetInt(string2, "AnoVIP");
		PlayerInfo[playerid][pDiasTO] = DOF2_GetInt(string2, "diasTO");
		PlayerInfo[playerid][pDiaTO] = DOF2_GetInt(string2, "DiasTO");
		PlayerInfo[playerid][pMesTO] = DOF2_GetInt(string2, "MesTO");
		PlayerInfo[playerid][pAnoTO] = DOF2_GetInt(string2, "AnoTO");
		PlayerInfo[playerid][pTO] = DOF2_GetInt(string2, "TO");
		strmid(PlayerInfo[playerid][pAdminAgendou],DOF2_GetString(string2,"AdminAgendou"),0,strlen(DOF2_GetString(string2,"AdminAgendou")),255);
		strmid(PlayerInfo[playerid][pMotivoAgendou],DOF2_GetString(string2,"MotivoAgendou"),0,strlen(DOF2_GetString(string2,"MotivoAgendou")),255);
		PlayerInfo[playerid][pAgendado] = DOF2_GetInt(string2, "Agendado");
		PlayerInfo[playerid][pCoinsAgendado] = DOF2_GetInt(string2, "CoinsAgendado");
		PlayerInfo[playerid][pTempoAgendado] = DOF2_GetInt(string2, "TempoAgendado");
		PlayerInfo[playerid][pQCoinAgendado] = DOF2_GetInt(string2, "QCoinAgendado");
		PlayerInfo[playerid][pSementes] = DOF2_GetInt(string2, "Sementes");
	 	PlayerInfo[playerid][pBiggestFish] = DOF2_GetInt(string2,"BiggestFish");
	 	PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2,"CookSkill");
	 	PlayerInfo[playerid][pFishSkill] = DOF2_GetInt(string2,"FishSkill");
	 	PlayerInfo[playerid][pFishLic] = DOF2_GetInt(string2,"FishLic");
	 	PlayerInfo[playerid][pGasReserva] = DOF2_GetInt(string2,"GasReserva");
  		PlayerInfo[playerid][pHospital] = DOF2_GetBool(string2, "Hospital");
  		PlayerInfo[playerid][pTempoHospital] = DOF2_GetInt(string2, "TempoHospital");

	 	new str[28];
	 	for(new i = 1; i < 10; i++)
	 	{
	 	    format(str, sizeof str, "ArmasGuardada%d", i);
			ArmasGuardadas[playerid][i] = DOF2_GetInt(string2,str);

	 	    format(str, sizeof str, "BalasGuardada%d", i);
			BalasGuardadas[playerid][i] = DOF2_GetInt(string2,str);
  		}
		if(PlayerInfo[playerid][pLastVerification] == 0) {
		getdate(year, month, day);
		format(string, sizeof(string),"%02d/%02d/%d",day,month,year);
  		strmid(PlayerInfo[playerid][pLastVerification],string,0,strlen(string),255); }
		logouagora[playerid] = 1;
    	CheckOwner(playerid);
     	CheckOwnerb(playerid);
     	CheckOwnerf(playerid);
		CheckOwnerh(playerid);
	}
	else
	{
	    strmid(PlayerInfo[playerid][pEmail],DOF2_GetString(string2,"Email"),0,strlen(DOF2_GetString(string2,"Email")),255);
	    new plrIP[16];
	    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
	   	getdate(Ano, Mes, Dia);
	   	format(string, sizeof string,
		"Vocк digitou sua senha incorretamente. [%d/5]", ErrouSenha[playerid]);
		SendClientMessage(playerid, COLOR_WHITE, string);
		ErrouSenha[playerid]++;
		if(ErrouSenha[playerid] >= 6)
		{
		    ErrouSenha[playerid] = 0;
     		format(string, sizeof string, "{00B9F6}Olб {FFFFFF}%s, {00B9F6}digite seu email corretamente\n\
			 Serб Enviado um E-mail com sua Senha Correta!", NomePlayer(playerid));
	        ShowPlayerDialog(playerid, 2829, DIALOG_STYLE_INPUT, "Recuperaзгo de Senha", string, "Validar", "");
		    return 1;
		}

		format(gstring, sizeof gstring,
				"{FFFFFF}» Seu Nick {09C3FB}%s {FFFFFF}Estб Registrado!\nPor favor logue-se para jogar no Brasil City Life\n\
				{FFFFFF}Digite sua Senha:", PlayerName(playerid));
		        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{FFFFFF}Logando no Brasil City Life", gstring, "Login", "Sair");

		return true;
	}

	ResetPlayerMoney(playerid);
	GiveDinheiro(playerid,PlayerInfo[playerid][pCash]);
	SetPlayerWantedLevelEx(playerid, WantedPoints[playerid]);
    LoadPlayerVehicle(playerid);
	if(PlayerInfo[playerid][pReg] == 0)
	{
		PlayerInfo[playerid][pLevel] = 2;
		PlayerInfo[playerid][pCasher] = 0;
		PlayerInfo[playerid][pAge] = 15;
		PlayerInfo[playerid][pSHealth] = 50.0;
		PlayerInfo[playerid][pPos_x] = 2246.6;
		PlayerInfo[playerid][pPos_y] = -1161.9;
		PlayerInfo[playerid][pPos_z] = 1029.7;
		PlayerInfo[playerid][pInt] = 0;
		PlayerInfo[playerid][pLocal] = 255;
		if(PlayerInfo[playerid][pSex] == 1)
		{
			SetPlayerSkin(playerid, 188);
		}
		else
		{
			SetPlayerSkin(playerid, 150);
		}
        new randphone = 10000 + random(89999);
		PlayerInfo[playerid][pPnumber] = randphone;
		PlayerInfo[playerid][pTelColor] = 18874;
		PlayerInfo[playerid][pCapacete] = 18978;
		PlayerInfo[playerid][pPHousekey] = 500;
		PlayerInfo[playerid][pPbiskey] = 255;
		PlayerInfo[playerid][pPFazkey] = 255;
	    PlayerInfo[playerid][pCash] = 5000;
	    PlayerInfo[playerid][pConta] = 100000;
	    PlayerInfo[playerid][pCasher] = 0;
		PlayerInfo[playerid][pReg] = 1;
		PlayerInfo[playerid][pEmprego] = 0;
		PlayerInfo[playerid][pKills] = 0;
		PlayerInfo[playerid][pDeaths] = 0;
		ResetPlayerMoney(playerid);
  		SendClientMessage(playerid, 0xFF0000FF, "***********************************************************************");
		SendClientMessage(playerid, 0xFF0000FF, "*Dono: Adm_Japis ");
		SendClientMessage(playerid, 0xFF0000FF, "*Use /creditos para ver os creditos do gamemode");
	    SendClientMessage(playerid, 0xFF0000FF, "*Use /relatorio se tiver alguma dъvida!");
		SendClientMessage(playerid, 0xFF0000FF, "***********************************************************************");

	}
	SalvarNumeroRegistrados();
	if(PlayerInfo[playerid][pWarns] == 1) //1 aviso
	{
	    SendClientMessage(playerid, COLOR_LIGHTRED, "Sua Conta Jб tem 1 Aviso!");
	    SendClientMessage(playerid, COLOR_LIGHTRED, "Se Vocк tiver 3 avisos serб banido automaticamente!");
	}
	if(PlayerInfo[playerid][pWarns] == 2) //2 avisos
	{
	    SendClientMessage(playerid, COLOR_LIGHTRED, "Sua Conta Jб tem 2 Avisos!");
	    SendClientMessage(playerid, COLOR_LIGHTRED, "Se Vocк tiver mais de 3 avisos serб banido automaticamente!");
	}
	PlayerPlaySound(playerid, 1191, 0.0, 0.0, 0.0);
	format(string, sizeof string, "Seja bem vindo %s.", NomePlayer(playerid));
	TextDrawShowForPlayer(playerid, Reloginho1);
    TextDrawShowForPlayer(playerid, Reloginho2);
    TextDrawShowForPlayer(playerid, Reloginho3);
	TextDrawShowForPlayer(playerid, Textdraw2);
	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  	SendClientMessage(playerid, COLOR_LIGHTBLUE, "{FFFFFF}Bem vindo ao: {33CCFF}Brasil City Life [RPG v3.0c]");
	printf("%s logou no server.",PlayerName(playerid));
	ChatKill[playerid] = true;
  	DateProp(playerid);
  	new dia,mes,ano,hora,mins,seg;
  	getdate(ano,mes,dia);
    gettime(hora,mins,seg);

  	entrousv++;
	format(gstring,sizeof(gstring),"{09C3FB}» {FFFFFF}%s[ID: %d]: entrou no servidor {09C3FB}", PlayerName(playerid), playerid);
   	SendMessageToOthersAdmins(playerid, COLOR_WHITE, gstring); //SendClientMessageToAll(0xA204C9FF, gstring);
	StopAudioStreamForPlayer(playerid);
    //SendClientMessage(playerid, 0xA204C9FF, "===========================================================================================");
	format(string, sizeof string, "{FFFFFF}Olб {FFFF00}%s{FFFFFF}, seu ъltimo login no servidor foi no dia:{09C3FB} [%s], {FFFFFF}tenha um bom jogo!", NomePlayer(playerid), PlayerInfo[playerid][pLaastLogin]);
	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	//SendClientMessage(playerid, 0xA204C9FF, "===========================================================================================");
  	format(string, sizeof(string),"%02d/%02d/%d as %02d:%02d:%02d",dia,mes,ano,hora,mins,seg);
  	strmid(PlayerInfo[playerid][pLaastLogin],string,0,strlen(string),255);
  	//format(string, sizeof(string),"00/00/0000");
  	//strmid(PlayerInfo[playerid][pLastVerification],string,0,strlen(string),255);
  	new Info[3][10];
	split(PlayerInfo[playerid][pLastVerification],Info,'/');
	if(ano > strval(Info[2]))
	{
	    mes = 13;
	}
  	if(mes > strval(Info[1]))
  	{
  	    if(mes == 13) mes = 1;
  	    format(string, sizeof string, "               Jogador: %s [%d]Horas no Ultimo Mes.", NomePlayer(playerid), PlayerInfo[playerid][pMesOn]);
  	    BPSLogs("Atividade", string);
  	    format(string, sizeof(string),"%02d/%02d/%d",dia,mes,ano);
  		strmid(PlayerInfo[playerid][pLastVerification],string,0,strlen(string),255);
  		PlayerInfo[playerid][pMesOn] = PlayerInfo[playerid][pHorasOn];
	   	PlayerInfo[playerid][pMinutosOn] = 0;
		PlayerInfo[playerid][pHorasOn] = 0;
		PlayerInfo[playerid][pDias5On] = 0;
		PlayerInfo[playerid][pDias15On] = 0;
		PlayerInfo[playerid][p15VOk] = false;
		PlayerInfo[playerid][p5VOk] = false;
  	}
  	format(string, sizeof(string),"%d%d%d",dia,mes,ano);
  	format(string2, sizeof(string2),"%d%d%d",strval(Info[0]),strval(Info[1]),strval(Info[2]));
  	if(strval(string) > strval(string2)+15000000 && PlayerInfo[playerid][p15VOk] == false)
  	{
  	    PlayerInfo[playerid][pDias15On] = PlayerInfo[playerid][pHorasOn];
  	    PlayerInfo[playerid][p15VOk] = true;
  	}
  	if(strval(string) > strval(string2)+5000000 && PlayerInfo[playerid][p5VOk] == false)
  	{
  	    PlayerInfo[playerid][pDias5On] = PlayerInfo[playerid][pHorasOn];
  	    PlayerInfo[playerid][p5VOk] = true;

  	}
  	SpawnDebug(playerid);
	//SetSpawnInfo(playerid, playerid+1, PlayerInfo[playerid][pSkin],1569.1657,-1901.5937,27.1460,90.5313,-1, -1, -1, -1, -1, -1);
    UltimoLoginOrg(playerid);
	new strcheck[50];
	if(PlayerInfo[playerid][pAdmin] > 0)
	{
		format(strcheck, sizeof strcheck, Pasta_Admins, NomePlayer(playerid));
		if(DOF2_FileExists(strcheck))
		{
		    PlayerInfo[playerid][pAdmin] = DOF2_GetInt(strcheck, "AdminNivel");
			format(gstring, sizeof(gstring), "SERVER: Vocк logou com nнvel [{33CCFF}%d{FFFFFF}] de Admin.",PlayerInfo[playerid][pAdmin]);
			SendClientMessage(playerid, COLOR_WHITE,gstring);
			SetPlayerHealth(playerid,99999);
			admtrampando[playerid] = 1;
			TempoAdministrador = SetTimerEx("Administrador", 100, true, "i", playerid);
			cAdminHelperc[playerid] = 0;
			Ocupado[playerid] = 0;
			SendClientMessage(playerid, COLOR_GRAD1, "Vocк logou como administrador, por isto seu celular foi desligado automaticamente!");
			PhoneOnline[playerid] = 1;

		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Vocк nгo й mais um administrador do servidor");
            PlayerInfo[playerid][pAdmin] = 0;
            KillTimer(TempoAdministrador);
		}
	}
	if(PlayerInfo[playerid][pAdminTemp] > 0)
	{
		format(strcheck, sizeof strcheck, Pasta_AdminsTemp, NomePlayer(playerid));
		if(DOF2_FileExists(strcheck))
		{
		    PlayerInfo[playerid][pAdminTemp] = DOF2_GetInt(strcheck, "AdminTemp");
			format(gstring, sizeof(gstring), "SERVER: Vocк logou como {33CCFF}Admin Temporбrio.");
			SendClientMessage(playerid, COLOR_WHITE,gstring);
			SetPlayerHealth(playerid,99999);
			admtrampando[playerid] = 1;
			TempoAdministrador = SetTimerEx("Administrador", 100, true, "i", playerid);
			cAdminHelperc[playerid] = 0;
			Ocupado[playerid] = 0;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Vocк nгo й mais um administrador Temporбrio do servidor");
            PlayerInfo[playerid][pAdminTemp] = 0;
            KillTimer(TempoAdministrador);
		}
 	}
 	format(gstring, sizeof(gstring), "Nenhum");
	if(strcmp(gstring, PlayerInfo[playerid][pEmail], true) == 0)
	{
		SendClientMessage(playerid, -1, "Caso queira denifir um email para Recuperaзгo de Senha, use: /trocaremail");
	}
	if(PlayerInfo[playerid][pHelper] > 0)
	{
		format(strcheck, sizeof strcheck, Pasta_Helpers, NomePlayer(playerid));
		if(DOF2_FileExists(strcheck))
		{
			format(gstring, sizeof(gstring), "SERVER: Vocк logou com nнvel %d de Ajudante.",PlayerInfo[playerid][pHelper]);
			SendClientMessage(playerid, COLOR_LIGHTBLUE,gstring);
			cHelperc[playerid] = 0;
			cAdminHelperc[playerid] = 0;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Vocк nгo й mais um Ajudante do servidor");
            PlayerInfo[playerid][pHelper] = 0;
		}
	}
    if(PlayerInfo[playerid][pCoinsAgendado] == 1)
    {
    	format(string, sizeof(string), "{33CCFF}[Moedas]:{FFFFFF}Voce Recebeu %d Moedas do Servidor.",
		PlayerInfo[playerid][pQCoinAgendado]);
	 	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	 	PlayerInfo[giveplayerid][pCasher] += PlayerInfo[playerid][pQCoinAgendado];
		PlayerInfo[playerid][pCoinsAgendado] = 0;
		PlayerInfo[playerid][pQCoinAgendado] = 0;
	}
	MedicBill[playerid] = 0;
 	if(NaoPodeLogar[playerid] == 1)
	{
	   	ForceClassSelection(playerid);
		return 1;
	}
	if(PlayerInfo[playerid][pSex] == 2)
	{
		format(tmp2, sizeof(tmp2), "~p~Bem vinda ~n~~p~~h~   %s", PlayerName(playerid));
		GameTextForPlayer(playerid, tmp2, 5000, 1);
	}
	if(PlayerInfo[playerid][pSex] == 1)
	{
		format(tmp2, sizeof(tmp2), "~w~Bem vindo ~n~~y~   %s", PlayerName(playerid));
		GameTextForPlayer(playerid, tmp2, 5000, 1);
	}
	gPlayerLogged[playerid] = 1;
	//IniciarCine(playerid);
	TogglePlayerSpectating(playerid, false);
	SpawnPlayer(playerid);
	ChatKill[playerid] = true;
   	ScoreLevel(playerid);
	if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdminTemp] >= 1 && PlayerInfo[playerid][pAdmin] <= 4999)
	{
		new AdminName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, AdminName, sizeof(AdminName));
    	format(gstring, sizeof(gstring), "~w~~y~%s ~g~On", AdminName);
		foreach(Player, i)
		{
    		GameTextForPlayer(i, gstring , 5000, 1);
		}
	}

	SetTimerEx("LoginAgora", 8000, 0, "i", playerid);
//========================= [ retirar vip ] =============================
	getdate(year, month, day);
	if(PlayerInfo[playerid][pVIP] >= 1)
	{
		if(getdate() >= PlayerInfo[playerid][pDiasvip])
		{
		    new strsave1[64];
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(strsave1, sizeof strsave1, Pasta_Contas, sendername);
			DOF2_SetInt(strsave1, "DiasVIP", 0);
			DOF2_SetInt(strsave1, "MesVIP", 0);
			DOF2_SetInt(strsave1, "AnoVIP", 0);
			DOF2_SetInt(strsave1, "diasvip", 0);
			PlayerInfo[playerid][pVIP] = 0;
			DOF2_SaveFile();
			SendClientMessage(playerid, COLOR_LIGHTRED, "[VIP] Seu VIP venceu. Renove seu VIP para ter seu benefinios novamente!");
            CheckBeneficios(playerid);
		}
	}

    if(PlayerInfo[playerid][pTO] >= 1)
	{
		if(getdate() >= PlayerInfo[playerid][pDiasTO])
		{
		    new strsave1[64];
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(strsave1, sizeof strsave1, Pasta_Contas, sendername);
			DOF2_SetInt(strsave1, "DiasTO", 0);
			DOF2_SetInt(strsave1, "MesTO", 0);
			DOF2_SetInt(strsave1, "AnoTO", 0);
			DOF2_SetInt(strsave1, "diasTO", 0);
			PlayerInfo[playerid][pTO] = 0;
			DOF2_SaveFile();
			format(gstring, sizeof gstring, "[Vip Diamante - Zerado]: Organizaзхes que pode Entrar em um Dia [%d/5].", PlayerInfo[playerid][pTO]);
			SendClientMessage(playerid, COLOR_GRAD2, gstring);
		}
	}

	if (PlayerInfo[playerid][pVIP] == 1)
	{
		//SendClientMessage(playerid, COLOR_LIGHTBLUE,"[VIP]: Vocк й Player VIP.");
		cVIPc[playerid] = 0;
		AtachVip(playerid);
		showVIPplayer(playerid);
  	}
   	else if (PlayerInfo[playerid][pVIP] == 2)
	{
		//SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SUPER-VIP]: Vocк й Player Vip-Gold.");
		cVIPc[playerid] = 0;
		AtachVip(playerid);
		showVIPplayer(playerid);
	}
	else if (PlayerInfo[playerid][pVIP] == 5)
	{
	    //SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SУCIO]: Vocк й um Player SУCIO.");
	    cVIPc[playerid] = 0;
	    AtachVip(playerid);
	    showVIPplayer(playerid);
	}



	if(PlayerInfo[playerid][pVIP] < 1)
	{
		if(PlayerInfo[playerid][pegouvip] == 0)
		{
		    //PlayerInfo[playerid][pDiasvip] = getdate()+(3);
		    //PlayerInfo[playerid][pVIP] = 1;
		    PlayerInfo[playerid][pegouvip] = 1;
		}
	}


	if(PlayerInfo[playerid][pVIP] >= 1 && !GetPVarInt(playerid, "VarReg"))
	{
		MEGAString[0] = EOS;

		strcat(MEGAString, "{FFFFFF}|__________[ {33CCFF}Informaзхes do VIP {FFFFFF}]__________|\n");
        strcat(MEGAString, "Aqui vocк pode ver todas as informaзхes do seu VIP\n");
        strcat(MEGAString, "Vocк pode conferir todos os seus beneficios em nosso forum\n");
        strcat(MEGAString, "pingdown.livreforum.com\n\n");

		//Tipo do VIP
		strcat(MEGAString, "{FFFF00}Tipo do VIP:\n");
		format(string, sizeof(string), "{FFFFFF}Vocк й:{FFFF00} %s\n\n", GetVIPInfo(playerid, "VipTipo"));
		strcat(MEGAString, string);

		//Vencimento do VIP
		strcat(MEGAString, "{33CCFF}Vencimento do VIP:\n");
		format(string, sizeof(string), "{FFFFFF}Vencimento:{FFFF00} %s\n\n", GetVIPInfo(playerid, "VipVencimento"));
		strcat(MEGAString, string);

		//Quantidade de carros
		strcat(MEGAString, "{33CCFF}Quantidade de Carros:\n");
		format(string, sizeof(string), "{FFFFFF}Carros VIP:{FFFF00} %s\n\n", GetVIPInfo(playerid, "VipCarros"));
		strcat(MEGAString, string);

		//Quantidade de empresas
		strcat(MEGAString, "{33CCFF}Quantidade de empresas/Fazendas:\n");
		format(string, sizeof(string), "{FFFFFF}Empresas:{FFFF00} %s\n{FFFFFF}Fazendas:{FFFF00} %s\n\n", GetVIPInfo(playerid, "VipEmpresas"), GetVIPInfo(playerid, "VipFazendas"));
		strcat(MEGAString, string);

		//Quantidade de Casas
		strcat(MEGAString, "{33CCFF}Quantidade de Casas:\n");
		format(string, sizeof(string), "{FFFFFF}Casas:{FFFF00} %s\n\n", GetVIPInfo(playerid, "VipCasas"));
		strcat(MEGAString, string);


        strcat(MEGAString, "Visite tambйm o nosso forum para mais informaзхes:\n");
		strcat(MEGAString, "{FFFFFF}|_______[{FFFF00}pingdown.livreforum.com{FFFFFF}]_______|");

		ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "{FFFFFF}Informaзхes do VIP", MEGAString, "OK", "");
	}

	if(PlayerInfo[playerid][pAdmin] > 1342)
	{
	    ShowPlayerDialog(playerid, 5021, DIALOG_STYLE_MSGBOX, "Escolha uma opзгo",
		"Vocк й um administrador maior que 1342\nComo deseja aparecer na lista de /admins?", "Visнvel", "Invisнvel");
		admhide[playerid] = 1;
	}

	if(PlayerInfo[playerid][pConta] >= 999999999)
	{
	    TantoOuros = 0;
		for(new i = 0; i < 10000; i++)
		{
		    if(PlayerInfo[playerid][pConta] > 999999991)
		    {
		        TantoOuros += 1;
		        PlayerInfo[playerid][pConta] -= 100000;
		        PlayerInfo[playerid][pOuros] += 1;
			}
		}
		format(gstring, sizeof(gstring), "Vocк relogou com mais de 1kkk no banco e foi convertido o resto para %d ouros.", TantoOuros);
		SendClientMessage(playerid, COLOR_YELLOW, gstring);
	}
	if(GetPlayerMoney(playerid) >= 10000000)
	{
	    TantoOuros = 0;
		for(new i = 0; i < 10000; i++)
		{
		    if(GetPlayerMoney(playerid) > 9999999)
		    {
		        TantoOuros += 1;
		        GiveDinheiro(playerid, -100000);
		        PlayerInfo[playerid][pOuros] += 1;
			}
		}
		format(gstring, sizeof(gstring), "Vocк relogou com mais de 10kk em mгos e foi convertido o resto para %d ouros.", TantoOuros);
		SendClientMessage(playerid, COLOR_YELLOW, gstring);
	}


	if(!PlayerInfo[playerid][pResetado])
	{
	    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
		SendClientMessage(playerid, COLOR_LIGHTRED, "_____________________________________________________________________________________");
		SendClientMessage(playerid, COLOR_LIGHTRED, "COMUNICADO: Estamos resetando seu dinheiro por motivos de abusos de BUG's");
	    SendClientMessage(playerid, COLOR_LIGHTRED, " Caso tenha uma reclamaзгo a fazer, procure um admin FUNDADOR no jogo!");
	    SendClientMessage(playerid, COLOR_LIGHTRED, " Atenciosamente, Brasil City Life RPG.");
	    SendClientMessage(playerid, COLOR_LIGHTRED, "_____________________________________________________________________________________");
	    SendClientMessage(playerid, COLOR_LIGHTRED, " ");

	    PlayerInfo[playerid][pConta] = 100000;
	    PlayerInfo[playerid][pOuros] = 0;
	    ResetPlayerMoney(playerid);
	    GiveDinheiro(playerid, 30000);

	    PlayerInfo[playerid][pResetado] = true;
	}

	SetTimerEx("SetTudo", 5000, 0, "i", playerid);

  	//CheckInfoOrg(playerid);
  	CheckEmails(playerid);

 //--- Olds - SERIAL ---
    new serial[256];
    gpci(playerid, serial, sizeof(serial));
    format(PlayerInfo[playerid][pSERIAL], 256, serial);
  	CheckOldSerial(playerid, serial);


 //--- Olds - IP ---
    new i_p[32];
    GetPlayerIp(playerid, i_p, 32);
  	CheckOldIP(playerid, i_p);
	return true;
}
acredito que seja tudo isto !
Reply
#4

conseguiu resolver ?
usa mysql fica mais organizado
Reply
#5

Atй agora nгo consegui solucionar, as vezes esse erro vem, outras vezes sai, alguйm poderia me ajudar ?
Reply
#6

#up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)