18.02.2015, 17:40
Oii gente,tudo bom? Bom eu estou fazendo um servidor porйm estou com um probleminha no login,eu me registro com a senha 123 por exemplo,mas quando eu vou relogar posso digitar 987 e loga do mesmo jeito.
Seguintes Publics
public OnPlayerLogin
Public OnPlayerRegister
Obrigada desde jб
Seguintes Publics
public OnPlayerLogin
Код:
public OnPlayerLogin(playerid,password[])
{
if(NaoPodeLogar[playerid] == 1)
{
ForceClassSelection(playerid);
return true;
}
new tmp2[256];
new string2[150];
format(string2, sizeof(string2), "Players/%s.ini", PlayerName(playerid));
strmid(PlayerInfo[playerid][pKey], dini_Get(string2, "Key"), 0, strlen(dini_Get(string2, "Key")), 255);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[256];
new keytmp[256], valtmp[256];
fread( UserFile , PassData , sizeof( PassData ) );
keytmp = ini_GetKey( PassData );
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while (fread(UserFile, Data, sizeof(Data)))
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
if( strcmp( key , "VipLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVIP] = strval( val ); }
if( strcmp( key , "SocioLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSocio] = strval( val ); }
if( strcmp( key , "HorasJogadas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registrado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sexo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Respeito" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Dinamite" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDina] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Banco" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConta] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "AgendaTelefonica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAgendaT] = strval( val ); }
if( strcmp( key , "Caixinha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCaixinha] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Emprego" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEmprego] = strval( val ); }
if( strcmp( key , "Salario" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSalario] = strval( val ); }
if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
if( strcmp( key , "Materiais" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
if( strcmp( key , "Maconha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMaconha] = strval( val ); }
if( strcmp( key , "Cocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCocaina] = strval( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }
if( strcmp( key , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
if( strcmp( key , "Membro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
if( strcmp( key , "Cargo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCargo] = strval( val ); }
if( strcmp( key , "Skin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = strval( val ); }
if( strcmp( key , "SkinAntiga" , true ) == 0 ) { val = ini_GetValue( Data ); skincop[playerid] = strval( val ); }
if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
if( strcmp( key , "DrogasSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogasSkill] = strval( val ); }
if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
if( strcmp( key , "Celular" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "Casa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPHousekey] = strval( val ); }
if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
if( strcmp( key , "MotoLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMotoLic] = strval( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
if( strcmp( key , "CamOniLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCamOniLic] = strval( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
if( strcmp( key , "Avisos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAvisos] = strval( val ); }
if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
if( strcmp( key , "Cidade" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCidade] = strval( val ); }
if( strcmp( key , "SafeMaconha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas] = strval( val ); }
if( strcmp( key , "SafeCocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas2] = strval( val ); }
if( strcmp( key , "SafeCrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas3] = strval( val ); }
if( strcmp( key , "Veiculo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVeiculo] = strval( val ); }
if( strcmp( key , "CarroVIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey] = strval( val ); }
if( strcmp( key , "NivelProcurado" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
if( strcmp( key , "Galao" , true ) == 0 ) { val = ini_GetValue( Data ); Galao[playerid] = strval( val ); }
if( strcmp( key , "SafeMateriais" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][psMats] = strval( val ); }
if( strcmp( key , "Luta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLuta] = strval( val ); }
if( strcmp( key , "Dorgado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDorgado] = strval( val ); }
if( strcmp( key , "Dorgado2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDorgado2] = strval( val ); }
if( strcmp( key , "Doenca" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDoenca] = strval( val ); }
if( strcmp( key , "Creditos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCreditos] = strval( val ); }
if( strcmp( key , "LU" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastLogin], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strval( val ); }
if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strval( val ); }
if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strval( val ); }
if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strval( val ); }
if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strval( val ); }
if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strval( val ); }
if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strval( val ); }
if( strcmp( key , "Gun12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun12] = strval( val ); }
if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
if( strcmp( key , "RoubosEvitados" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRoubosEvitados] = strval( val ); }
if( strcmp( key , "Sequestros" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSequestros] = strval( val ); }
if( strcmp( key , "Multas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMultas] = strval( val ); }
if( strcmp( key , "Maconheiro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMaconheiro] = strval( val ); }
if( strcmp( key , "Cheirador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCheirador] = strval( val ); }
if( strcmp( key , "Cracudo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCracudo] = strval( val ); }
if( strcmp( key , "Preso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPreso] = strval( val ); }
if( strcmp( key , "Carcereiro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarcereiro] = strval( val ); }
if( strcmp( key , "CaзadorRecompensas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCacador] = strval( val ); }
if( strcmp( key , "AtiradorElite" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtiradorElite] = strval( val ); }
if( strcmp( key , "Bazucador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBazucador] = strval( val ); }
if( strcmp( key , "Assaltante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAssaltante] = strval( val ); }
if( strcmp( key , "Ladrao" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLadrao] = strval( val ); }
if( strcmp( key , "Dominador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDominador] = strval( val ); }
if( strcmp( key , "Traficante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraficante] = strval( val ); }
if( strcmp( key , "Matador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMatador] = strval( val ); }
if( strcmp( key , "Incendiario" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIncendio] = strval( val ); }
if( strcmp( key , "Apagado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pApagado] = strval( val ); }
if( strcmp( key , "Alcolatra" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcolatra] = strval( val ); }
if( strcmp( key , "Criminoso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCriminoso] = strval( val ); }
if( strcmp( key , "Winner" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWinner] = strval( val ); }
if( strcmp( key , "TituloScripter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloScripter] = strval( val ); }
if( strcmp( key , "TituloVip" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloVip] = strval( val ); }
if( strcmp( key , "TituloSocio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSocio] = strval( val ); }
if( strcmp( key , "TituloSocioPlatina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSocioP] = strval( val ); }
if( strcmp( key , "TituloSocioDiamante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSocioD] = strval( val ); }
if( strcmp( key , "TituloLider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloLider] = strval( val ); }
if( strcmp( key , "TituloSub" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSub] = strval( val ); }
if( strcmp( key , "TituloGovernador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloGovernador] = strval( val ); }
if( strcmp( key , "TituloSkiller" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSkiller] = strval( val ); }
if( strcmp( key , "TituloSprofissional" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloSprofissional] = strval( val ); }
if( strcmp( key , "TituloNoob" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloNoob] = strval( val ); }
if( strcmp( key , "TituloBazucador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloBazucador] = strval( val ); }
if( strcmp( key , "TituloCmestre" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloCmestre] = strval( val ); }
if( strcmp( key , "TituloCrecompensa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloCrecompensa] = strval( val ); }
if( strcmp( key , "TituloGtransito" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloGtransito] = strval( val ); }
if( strcmp( key , "TituloPcofres" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloPcofres] = strval( val ); }
if( strcmp( key , "TituloDprofissional" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloDprofissional] = strval( val ); }
if( strcmp( key , "TituloMaconheiro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloMaconheiro] = strval( val ); }
if( strcmp( key , "TituloCheirador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloCheirador] = strval( val ); }
if( strcmp( key , "TituloCracudo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloCracudo] = strval( val ); }
if( strcmp( key , "TituloAelite" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloAelite] = strval( val ); }
if( strcmp( key , "TituloPresidiario" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloPresidiario] = strval( val ); }
if( strcmp( key , "TituloOrg" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloOrg] = strval( val ); }
if( strcmp( key , "TituloAdmin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloAdmin] = strval( val ); }
if( strcmp( key , "TituloAssaltante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloAssaltante] = strval( val ); }
if( strcmp( key , "TituloLadrao" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloLadrao] = strval( val ); }
if( strcmp( key , "TituloDominador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloDominador] = strval( val ); }
if( strcmp( key , "TituloTraficante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloTraficante] = strval( val ); }
if( strcmp( key , "TituloMatador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloMatador] = strval( val ); }
if( strcmp( key , "TituloIncendiario" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloIncendiario] = strval( val ); }
if( strcmp( key , "TituloWinner" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloWinner] = strval( val ); }
if( strcmp( key , "TituloBombeiro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloBombeiro] = strval( val ); }
if( strcmp( key , "TituloAlcolatra" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloAlcolatra] = strval( val ); }
if( strcmp( key , "TituloDeejay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloDeejay] = strval( val ); }
if( strcmp( key , "TituloCriminoso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTituloCriminoso] = strval( val ); }
if( strcmp( key , "Pontos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPontos] = strval( val ); }
if( strcmp( key , "Multa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMulta] = strval( val ); }
if( strcmp( key , "DeslogandoMulta" , true ) == 0 ) { val = ini_GetValue( Data ); DeslogandoMulta[playerid] = strval( val ); }
if( strcmp( key , "DeslogandoSocio" , true ) == 0 ) { val = ini_GetValue( Data ); DeslogandoSocio[playerid] = strval( val ); }
if( strcmp( key , "DeslogandoEnforcer" , true ) == 0 ) { val = ini_GetValue( Data ); DeslogandoEnforcer[playerid] = strval( val ); }
if( strcmp( key , "DepartamentoLS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDepartamentoLS] = strval( val ); }
if( strcmp( key , "DepartamentoLV" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDepartamentoLV] = strval( val ); }
if( strcmp( key , "NoteBook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNotebook] = strval( val ); }
if( strcmp( key , "Multado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMultado] = strval( val ); }
if( strcmp( key , "ChatVipAtivado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatVipDesativado] = strval( val ); }
if( strcmp( key , "ChatSocioAtivado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatSocioDesativado] = strval( val ); }
if( strcmp( key , "ChatTerritorio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatTerritorio] = strval( val ); }
if( strcmp( key , "ChatDuelo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatDuelo] = strval( val ); }
if( strcmp( key , "ChatRoubo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatRoubo] = strval( val ); }
if( strcmp( key , "ValidadeCarro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pValidadeCarro] = strval( val ); }
if( strcmp( key , "ValidadeMoto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pValidadeMoto] = strval( val ); }
if( strcmp( key , "ValidadeBarco" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pValidadeBarco] = strval( val ); }
if( strcmp( key , "ValidadeAviao" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pValidadeAviao] = strval( val ); }
if( strcmp( key , "ValidadeOnibus" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pValidadeOnibus] = strval( val ); }
if( strcmp( key , "DiaVIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDiaVIP] = strval( val ); }
if( strcmp( key , "LogouHoje" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLogouHoje] = strval( val ); }
if( strcmp( key , "Bateria" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBateria] = strval( val ); }
if( strcmp( key , "Penitenciaria" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPenitenciaria] = strval( val ); }
if( strcmp( key , "DeatEvento" , true ) == 0 ) { val = ini_GetValue( Data ); DeatEvento[playerid] = strval( val ); }
if( strcmp( key , "KillEvento" , true ) == 0 ) { val = ini_GetValue( Data ); KillEvento[playerid] = strval( val ); }
if( strcmp( key , "DeslogouNoTiroteio" , true ) == 0 ) { val = ini_GetValue( Data ); DeslogouNoTiroteio[playerid] = strval( val ); }
if( strcmp( key , "Tiroteio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTiroteio] = strval( val ); }
if( strcmp( key , "DiaLogin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastDia] = strval( val ); }
if( strcmp( key , "MesLogin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastMes] = strval( val ); }
if( strcmp( key , "AnoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastAno] = strval( val ); }
if( strcmp( key , "Fome" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFome] = strval( val ); }
if( strcmp( key , "Sede" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSede] = strval( val ); }
if( strcmp( key , "Desafiador" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesafiador] = strval( val ); }
if( strcmp( key , "Desafiante" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesafiante] = strval( val ); }
if( strcmp( key , "MoedasVIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMoedasVIP] = strval( val ); }
if( strcmp( key , "RecerMoedas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReceberMoedas] = strval( val ); }
if( strcmp( key , "MudarNick" , true ) == 0 ) { val = ini_GetValue( Data ); MudarNick[playerid] = strval( val ); }
if( strcmp( key , "ComprarCarro" , true ) == 0 ) { val = ini_GetValue( Data ); ComprarCarro[playerid] = strval( val ); }
if( strcmp( key , "Veneno" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVeneno] = strval( val ); }
if( strcmp( key , "Antidoto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAntidoto] = strval( val ); }
if( strcmp( key , "LicencaAdvogado" , true ) == 0 ) { val = ini_GetValue( Data ); LicencaAdvogado[playerid] = strval( val ); }
logouagora[playerid] = 1;
ChecarDono(playerid);
ChecarDonob(playerid);
ChecarDonoh(playerid);
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
SetPlayerCameraPos(playerid,1483.8164,-1727.4125,13.3828);
SetPlayerCameraLookAt(playerid,1481.0267,-1772.1371,19.4570);
SendClientMessage(playerid, COLOR_YELLOW, "[BPN]: Senha Incorreta! Vocк sу pode errar algumas vezes ou serб banido !");
new loginstring[255];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{FFFFFF}Bem Vindo(a): {FFFF00}%s\n\n{FFFFFF}Status da Conta: {00FF00}Registrada\n\n{FFFFFF}Digite sua Senha Para Logar!\n\n Acesse: forum.{00FF00}brasil{FFFF00}perfect{0244ff}games{FFFFFF}.com",loginname);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD,"{00FF00} Brail{FFFF00} Perfect{0244ff} Games{FFFFFF} - Login",loginstring,"Logar","Sair");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5)
{
new stri[64], tmp[20], tmp3[20], ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
getdate(Ano, Mes, Dia);
format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano);
gettime(Hora, Minuto, Segundo);
format(tmp3, 20, "%d:%d:%d", Hora, Minuto, Segundo);
format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
dini_Create(stri);
dini_Set(stri,"Motivo","Errou a senha 5 vezes");
dini_Set(stri,"Admin","Lucas_Shox");
dini_Set(stri,"Data",tmp);
dini_Set(stri,"Hora",tmp3);
dini_Set(stri,"Nick",PlayerName(playerid));
}
return 1;
}
Код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Players/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
DisablePlayerCheckpoint(playerid);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoneyEx(playerid);
format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 32, "VipLevel=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
format(var, 32, "SocioLevel=%d\n",PlayerInfo[playerid][pSocio]);fwrite(hFile, var);
format(var, 32, "HorasJogadas=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registrado=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sexo=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Caixinha=%d\n",PlayerInfo[playerid][pCaixinha]);fwrite(hFile, var);
format(var, 32, "Respeito=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Dinamite=%d\n",PlayerInfo[playerid][pDina]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Banco=%d\n",PlayerInfo[playerid][pConta]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "AgendaTelefonica=%d\n",PlayerInfo[playerid][pAgendaT]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
format(var, 32, "Salario=%d\n",PlayerInfo[playerid][pSalario]);fwrite(hFile, var);
format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Materiais=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Maconha=%d\n",PlayerInfo[playerid][pMaconha]);fwrite(hFile, var);
format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pCocaina]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
format(var, 32, "Membro=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
format(var, 32, "Cargo=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
format(var, 32, "SkinAntiga=%d\n",skincop[playerid]);fwrite(hFile, var);
format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 32, "Celular=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "Casa=%d\n",PlayerInfo[playerid][pPHousekey]);fwrite(hFile, var);
format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
format(var, 32, "Cidade=%d\n",PlayerInfo[playerid][pCidade]);fwrite(hFile, var);
format(var, 32, "SafeMaconha=%d\n",PlayerInfo[playerid][pSafeDrogas]);fwrite(hFile, var);
format(var, 32, "SafeCocaina=%d\n",PlayerInfo[playerid][pSafeDrogas2]);fwrite(hFile, var);
format(var, 32, "SafeCrack=%d\n",PlayerInfo[playerid][pSafeDrogas3]);fwrite(hFile, var);
format(var, 32, "Veiculo=%d\n",PlayerInfo[playerid][pVeiculo]);fwrite(hFile, var);
format(var, 32, "CarroVIP=%d\n",PlayerInfo[playerid][pCarKey]);fwrite(hFile, var);
format(var, 32, "NivelProcurado=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
format(var, 32, "Galao=%d\n",Galao[playerid]);fwrite(hFile, var);
format(var, 32, "SafeMateriais=%d\n",PlayerInfo[playerid][psMats]);fwrite(hFile, var);
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}
format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "MotoLic=%d\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "CamOniLic=%d\n",PlayerInfo[playerid][pCamOniLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pAvisos]);fwrite(hFile, var);
format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 32, "Luta=%d\n",PlayerInfo[playerid][pLuta]);fwrite(hFile, var);
format(var, 32, "Dorgado=%d\n",PlayerInfo[playerid][pDorgado]);fwrite(hFile, var);
format(var, 32, "Dorgado2=%d\n",PlayerInfo[playerid][pDorgado2]);fwrite(hFile, var);
format(var, 32, "Doenca=%d\n",PlayerInfo[playerid][pDoenca]);fwrite(hFile, var);
format(var, 32, "Creditos=%d\n",PlayerInfo[playerid][pCreditos]);fwrite(hFile, var);
format(var, 32, "LU=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
format(var, 32, "Gun1=%d\n", PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
format(var, 32, "Gun2=%d\n", PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
format(var, 32, "Gun3=%d\n", PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
format(var, 32, "Gun4=%d\n", PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
format(var, 32, "Gun5=%d\n", PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
format(var, 32, "Gun6=%d\n", PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
format(var, 32, "Gun7=%d\n", PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
format(var, 32, "Gun8=%d\n", PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
format(var, 32, "Gun9=%d\n", PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
format(var, 32, "Gun10=%d\n", PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
format(var, 32, "Gun11=%d\n", PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
format(var, 32, "Gun12=%d\n", PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
format(var, 32, "Ammo1=%d\n", PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
format(var, 32, "Ammo2=%d\n", PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
format(var, 32, "Ammo3=%d\n", PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
format(var, 32, "Ammo4=%d\n", PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
format(var, 32, "Ammo5=%d\n", PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
format(var, 32, "Ammo6=%d\n", PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
format(var, 32, "Ammo7=%d\n", PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
format(var, 32, "Ammo8=%d\n", PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
format(var, 32, "Ammo9=%d\n", PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
format(var, 32, "Ammo10=%d\n", PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
format(var, 32, "Ammo11=%d\n", PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
format(var, 32, "Ammo12=%d\n", PlayerInfo[playerid][pAmmo12]);fwrite(hFile, var);
format(var, 32, "RoubosEvitados=%d\n",PlayerInfo[playerid][pRoubosEvitados]);fwrite(hFile, var);
format(var, 32, "Sequestros=%d\n",PlayerInfo[playerid][pSequestros]);fwrite(hFile, var);
format(var, 32, "Multas=%d\n",PlayerInfo[playerid][pMultas]);fwrite(hFile, var);
format(var, 32, "Maconheiro=%d\n",PlayerInfo[playerid][pMaconheiro]);fwrite(hFile, var);
format(var, 32, "Cheirador=%d\n",PlayerInfo[playerid][pCheirador]);fwrite(hFile, var);
format(var, 32, "Cracudo=%d\n",PlayerInfo[playerid][pCracudo]);fwrite(hFile, var);
format(var, 32, "Preso=%d\n",PlayerInfo[playerid][pPreso]);fwrite(hFile, var);
format(var, 32, "Carcereiro=%d\n",PlayerInfo[playerid][pCarcereiro]);fwrite(hFile, var);
format(var, 32, "CaзadorRecompensas=%d\n",PlayerInfo[playerid][pCacador]);fwrite(hFile, var);
format(var, 32, "AtiradorElite=%d\n",PlayerInfo[playerid][pAtiradorElite]);fwrite(hFile, var);
format(var, 32, "Bazucador=%d\n",PlayerInfo[playerid][pBazucador]);fwrite(hFile, var);
format(var, 32, "Assaltante=%d\n",PlayerInfo[playerid][pAssaltante]);fwrite(hFile, var);
format(var, 32, "Ladrao=%d\n",PlayerInfo[playerid][pLadrao]);fwrite(hFile, var);
format(var, 32, "Dominador=%d\n",PlayerInfo[playerid][pDominador]);fwrite(hFile, var);
format(var, 32, "Traficante=%d\n",PlayerInfo[playerid][pTraficante]);fwrite(hFile, var);
format(var, 32, "Matador=%d\n",PlayerInfo[playerid][pMatador]);fwrite(hFile, var);
format(var, 32, "Incendiario=%d\n",PlayerInfo[playerid][pIncendio]);fwrite(hFile, var);
format(var, 32, "Apagado=%d\n",PlayerInfo[playerid][pApagado]);fwrite(hFile, var);
format(var, 32, "Alcolatra=%d\n",PlayerInfo[playerid][pAlcolatra]);fwrite(hFile, var);
format(var, 32, "Criminoso=%d\n",PlayerInfo[playerid][pCriminoso]);fwrite(hFile, var);
format(var, 32, "Winner=%d\n",PlayerInfo[playerid][pWinner]);fwrite(hFile, var);
format(var, 32, "TituloScripter=%d\n",PlayerInfo[playerid][pTituloScripter]);fwrite(hFile, var);
format(var, 32, "TituloVip=%d\n",PlayerInfo[playerid][pTituloVip]);fwrite(hFile, var);
format(var, 32, "TituloSocio=%d\n",PlayerInfo[playerid][pTituloSocio]);fwrite(hFile, var);
format(var, 32, "TituloSocioPlatina=%d\n",PlayerInfo[playerid][pTituloSocioP]);fwrite(hFile, var);
format(var, 32, "TituloSocioDiamante=%d\n",PlayerInfo[playerid][pTituloSocioD]);fwrite(hFile, var);
format(var, 32, "TituloLider=%d\n",PlayerInfo[playerid][pTituloLider]);fwrite(hFile, var);
format(var, 32, "TituloSub=%d\n",PlayerInfo[playerid][pTituloSub]);fwrite(hFile, var);
format(var, 32, "TituloGovernador=%d\n",PlayerInfo[playerid][pTituloGovernador]);fwrite(hFile, var);
format(var, 32, "TituloSkiller=%d\n",PlayerInfo[playerid][pTituloSkiller]);fwrite(hFile, var);
format(var, 32, "TituloSprofissional=%d\n",PlayerInfo[playerid][pTituloSprofissional]);fwrite(hFile, var);
format(var, 32, "TituloNoob=%d\n",PlayerInfo[playerid][pTituloNoob]);fwrite(hFile, var);
format(var, 32, "TituloBazucador=%d\n",PlayerInfo[playerid][pTituloBazucador]);fwrite(hFile, var);
format(var, 32, "TituloCmestre=%d\n",PlayerInfo[playerid][pTituloCmestre]);fwrite(hFile, var);
format(var, 32, "TituloCrecompensa=%d\n",PlayerInfo[playerid][pTituloCrecompensa]);fwrite(hFile, var);
format(var, 32, "TituloGtransito=%d\n",PlayerInfo[playerid][pTituloGtransito]);fwrite(hFile, var);
format(var, 32, "TituloPcofre=%d\n",PlayerInfo[playerid][pTituloPcofres]);fwrite(hFile, var);
format(var, 32, "TituloDprofissional=%d\n",PlayerInfo[playerid][pTituloDprofissional]);fwrite(hFile, var);
format(var, 32, "TituloMaconheiro=%d\n",PlayerInfo[playerid][pTituloMaconheiro]);fwrite(hFile, var);
format(var, 32, "TituloCheirador=%d\n",PlayerInfo[playerid][pTituloCheirador]);fwrite(hFile, var);
format(var, 32, "TituloCracudo=%d\n",PlayerInfo[playerid][pTituloCracudo]);fwrite(hFile, var);
format(var, 32, "TituloAelite=%d\n",PlayerInfo[playerid][pTituloAelite]);fwrite(hFile, var);
format(var, 32, "TituloPresidiario=%d\n",PlayerInfo[playerid][pTituloPresidiario]);fwrite(hFile, var);
format(var, 32, "TituloOrg=%d\n",PlayerInfo[playerid][pTituloOrg]);fwrite(hFile, var);
format(var, 32, "TituloAdmin=%d\n",PlayerInfo[playerid][pTituloAdmin]);fwrite(hFile, var);
format(var, 32, "TituloAssaltante=%d\n",PlayerInfo[playerid][pTituloAssaltante]);fwrite(hFile, var);
format(var, 32, "TituloLadrao=%d\n",PlayerInfo[playerid][pTituloLadrao]);fwrite(hFile, var);
format(var, 32, "TituloDominador=%d\n",PlayerInfo[playerid][pTituloDominador]);fwrite(hFile, var);
format(var, 32, "TituloTraficante=%d\n",PlayerInfo[playerid][pTituloTraficante]);fwrite(hFile, var);
format(var, 32, "TituloMatador=%d\n",PlayerInfo[playerid][pTituloMatador]);fwrite(hFile, var);
format(var, 32, "TituloIncendario=%d\n",PlayerInfo[playerid][pTituloIncendiario]);fwrite(hFile, var);
format(var, 32, "TituloWinner=%d\n",PlayerInfo[playerid][pTituloWinner]);fwrite(hFile, var);
format(var, 32, "TituloBombeiro=%d\n",PlayerInfo[playerid][pTituloBombeiro]);fwrite(hFile, var);
format(var, 32, "TituloAlcolatra=%d\n",PlayerInfo[playerid][pTituloAlcolatra]);fwrite(hFile, var);
format(var, 32, "TituloDeejay=%d\n",PlayerInfo[playerid][pTituloDeejay]);fwrite(hFile, var);
format(var, 32, "TituloCriminoso=%d\n",PlayerInfo[playerid][pTituloCriminoso]);fwrite(hFile, var);
format(var, 32, "Pontos=%d\n",PlayerInfo[playerid][pPontos]);fwrite(hFile, var);
format(var, 32, "Multa=%d\n",PlayerInfo[playerid][pMulta]);fwrite(hFile, var);
format(var, 32, "DeslogandoMulta=%d\n",DeslogandoMulta[playerid]);fwrite(hFile, var);
format(var, 32, "DeslogandoSocio=%d\n",DeslogandoSocio[playerid]);fwrite(hFile, var);
format(var, 32, "DeslogandoEnforcer=%d\n",DeslogandoEnforcer[playerid]);fwrite(hFile, var);
format(var, 32, "DepartamentoLS=%d\n",PlayerInfo[playerid][pDepartamentoLS]);fwrite(hFile, var);
format(var, 32, "DepartamentoLV=%d\n",PlayerInfo[playerid][pDepartamentoLV]);fwrite(hFile, var);
format(var, 32, "Notebook=%d\n",PlayerInfo[playerid][pNotebook]);fwrite(hFile, var);
format(var, 32, "Multado=%d\n",PlayerInfo[playerid][pMultado]);fwrite(hFile, var);
format(var, 32, "ChatVipAtivado=%d\n",PlayerInfo[playerid][pChatVipDesativado]);fwrite(hFile, var);
format(var, 32, "ChatSocioAtivado=%d\n",PlayerInfo[playerid][pChatSocioDesativado]);fwrite(hFile, var);
format(var, 32, "ChatTerritorio=%d\n",PlayerInfo[playerid][pChatTerritorio]);fwrite(hFile, var);
format(var, 32, "ChatDuelo=%d\n",PlayerInfo[playerid][pChatDuelo]);fwrite(hFile, var);
format(var, 32, "ChatRoubo=%d\n",PlayerInfo[playerid][pChatRoubo]);fwrite(hFile, var);
format(var, 32, "ValidadeCarro=%d\n",PlayerInfo[playerid][pValidadeCarro]);fwrite(hFile, var);
format(var, 32, "ValidadeMoto=%d\n",PlayerInfo[playerid][pValidadeMoto]);fwrite(hFile, var);
format(var, 32, "ValidadeBarco=%d\n",PlayerInfo[playerid][pValidadeBarco]);fwrite(hFile, var);
format(var, 32, "ValidadeAviao=%d\n",PlayerInfo[playerid][pValidadeAviao]);fwrite(hFile, var);
format(var, 32, "ValidadeOnibus=%d\n",PlayerInfo[playerid][pValidadeOnibus]);fwrite(hFile, var);
format(var, 32, "DiaVIP=%d\n",PlayerInfo[playerid][pDiaVIP]);fwrite(hFile, var);
format(var, 32, "LogouHoje=%d\n",PlayerInfo[playerid][pLogouHoje]);fwrite(hFile, var);
format(var, 32, "Bateria=%d\n",PlayerInfo[playerid][pBateria]);fwrite(hFile, var);
format(var, 32, "Penitenciaria=%d\n",PlayerInfo[playerid][pPenitenciaria]);fwrite(hFile, var);
format(var, 32, "DeatEvento=%d\n",DeatEvento[playerid]);fwrite(hFile, var);
format(var, 32, "KillEvento=%d\n",KillEvento[playerid]);fwrite(hFile, var);
format(var, 32, "DeslogouNoTiroteio=%d\n",DeslogouNoTiroteio[playerid]);fwrite(hFile, var);
format(var, 32, "Tiroteio=%d\n",PlayerInfo[playerid][pTiroteio]);fwrite(hFile, var);
format(var, 32, "DiaLogin=%d\n",PlayerInfo[playerid][pLastDia]);fwrite(hFile, var);
format(var, 32, "MesLogin=%d\n",PlayerInfo[playerid][pLastMes]);fwrite(hFile, var);
format(var, 32, "AnoLogin=%d\n",PlayerInfo[playerid][pLastAno]);fwrite(hFile, var);
format(var, 32, "Fome=%d\n",PlayerInfo[playerid][pFome]);fwrite(hFile, var);
format(var, 32, "Sede=%d\n",PlayerInfo[playerid][pSede]);fwrite(hFile, var);
format(var, 32, "Desafiador=%d\n",PlayerInfo[playerid][pDesafiador]);fwrite(hFile, var);
format(var, 32, "Desafiante=%d\n",PlayerInfo[playerid][pDesafiante]);fwrite(hFile, var);
format(var, 32, "MoedasVIP=%d\n",PlayerInfo[playerid][pMoedasVIP]);fwrite(hFile, var);
format(var, 32, "ReceberMoedas=%d\n",PlayerInfo[playerid][pReceberMoedas]);fwrite(hFile, var);
format(var, 32, "MudarNick=%d\n",MudarNick[playerid]);fwrite(hFile, var);
format(var, 32, "ComprarCarro=%d\n",ComprarCarro[playerid]);fwrite(hFile, var);
format(var, 32, "Veneno=%d\n",PlayerInfo[playerid][pVeneno]);fwrite(hFile, var);
format(var, 32, "Antidoto=%d\n",PlayerInfo[playerid][pAntidoto]);fwrite(hFile, var);
format(var, 32, "LicencaAdvogado=%d\n",LicencaAdvogado[playerid]);fwrite(hFile, var);
fclose(hFile);
}
if(MudarSenhaAceito[playerid] == 1) { MudarSenhaAceito[playerid] = 0; return 1; }
SetPlayerPos(playerid, 2243.7371,-1668.1760,15.4766);
SetPlayerCameraPos(playerid, 2264.1365,-1653.5085,19.6254);
SetPlayerCameraLookAt(playerid, 2243.7371,-1668.1760,15.4766);
SendClientMessage(playerid, COR_BALLAS, "[BPN]: Conta registrada digite : (/logar[Senha]).");
new loginstring[255];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{FFFFFF}Bem Vindo(a): {FFFF00}%s\n\n{FFFFFF}Status da Conta: {00FF00}Criada com Sucesso\n\n{FFFFFF}Digite a sua Senha para Logar!\n\n Acesse: forum.{00FF00}brasil{FFFF00}perfect{0244ff}games{FFFFFF}.com",loginname);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD,"{00FF00} Brail{FFFF00} Perfect{0244ff} Games{FFFFFF} - Login",loginstring,"Logar","Esperar");
PlayerPlaySound(playerid, 1098, 0.0, 0.0, 0.0);
}
return 1;
}


