public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
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)
{
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 , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVIP] = strval( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Bank" , 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 , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
if( strcmp( key , "Emprego" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEmprego] = strval( val ); }
if( strcmp( key , "Paycheck" , 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][pDrogas] = strval( val ); }
if( strcmp( key , "Cocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas2] = strval( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas3] = strval( val ); }
if( strcmp( key , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCargo] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = 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 , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = 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 , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
if( strcmp( key , "DrogasSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogasSkill] = strval( val ); }
if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = 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 , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "House" , 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 , "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 , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = 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 , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = 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][pWarns] = 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 , "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 , "NivelProcurado" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[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 ); }
logouagora[playerid] = 1;
CheckOwner(playerid);
//CheckAdmin(playerid);
CheckOwnerb(playerid);
CheckOwnerh(playerid);
//CheckVip(playerid);
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[BHV]: Senha errada! - Se errar a senha 5 vezes terб o IP Banido!");
SetPlayerCameraPos(playerid,1483.8164,-1727.4125,13.3828);
SetPlayerCameraLookAt(playerid,1481.0267,-1772.1371,19.4570);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Logar!!!", "Logar", "Esperar");
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","Chuck_Norris");
dini_Set(stri,"Data",tmp);
dini_Set(stri,"Hora",tmp3);
dini_Set(stri,"Nick",PlayerName(playerid));
}
return 1;
}
ClearChatbox(playerid, 100);
ResetPlayerMoney(playerid);
ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 2;
PlayerInfo[playerid][pSHealth] = 0.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;
PlayerInfo[playerid][pTeam] = 3;
if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 3; } else { PlayerInfo[playerid][pSkin] = 12; }
new randphone = 1000 + random(8999);//
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPHousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pConta] = 100;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pEmprego] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
ResetPlayerMoney(playerid);
}
if(PlayerInfo[playerid][pWarns] == 1) //1 aviso
{
SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Jб tem 1 Aviso!");
SendClientMessage(playerid, COLOR_YELLOW, "Se Vocк tiver 3 avisos serб banido automaticamente!");
}
if(PlayerInfo[playerid][pWarns] == 2) //2 avisos
{
SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Jб tem 2 Avisos!");
SendClientMessage(playerid, COLOR_YELLOW, "Se Vocк tiver 3 avisos serб banido automaticamente!");
}
if(PlayerInfo[playerid][pWarns] >= 3) //3 avisos
{
/*SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta contйm tem 3 Avisos!");
SendClientMessage(playerid, COLOR_YELLOW, "Vocк foi banido automaticamente!");
getdate(Ano, Mes, Dia);
SBan(playerid, "3 Avisos", "Automбtico");*/
PlayerInfo[playerid][pWarns] = 0;
}
if(PlayerInfo[playerid][pAdmin] >= 7000)//autoban
{
getdate(Ano, Mes, Dia);
SBan(playerid, "Admin maior que 7000", "Automбtico");
}
printf("%s has logged in.",PlayerName(playerid));
new Info[6][10];
split(PlayerInfo[playerid][pLastLogin],Info,'/');
SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo ao Brasil High Voltage v1.0");
format(string2, sizeof(string2), "Seu ъltimo login foi no dia %d/%d/%d horбrio %d:%d:%d",strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5]));
SendClientMessage(playerid, COLOR_AZULBB,string2);
DateProp(playerid);
new dia,mes,ano,hora,mins,seg,string3[20];
getdate(ano,mes,dia);
gettime(hora,mins,seg);
format(string3, sizeof(string3),"%d/%d/%d/%d/%d/%d",dia,mes,ano,hora,mins,seg);
strmid(PlayerInfo[playerid][pLastLogin],string3,0,strlen(string3),255);
format(gstring, 128, "AdmAviso: [%d]%s Estб Online! Fique Atento!",playerid,PlayerName(playerid));
SendMessageToOthersAdmins(playerid, COLOR_YELLOW, gstring);
if (VipCheck(playerid) == 0 && PlayerInfo[playerid][pVIP] > 0)//teste vipinfo
{
PlayerInfo[playerid][pVIP] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo й mais um jogador VIP/Premium, renove seu VIP e receba seus benefнcios de volta");
}
else if (PlayerInfo[playerid][pVIP] == 1)
{
SendClientMessage(playerid, COLOR_AZULBB,"[BHV]: Vocк й jogador Vip");
}
else if (PlayerInfo[playerid][pVIP] == 2)
{
SendClientMessage(playerid, COLOR_AZULBB,"[BHV]: Vocк й jogador Vip Premium");
}
{
format(string2, sizeof(string2), "[BHV]: Vocк Logou Como Admin Nivel %d.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_AZULBB,string2);
}
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
MedicBill[playerid] = 0;
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~n~ ~w~Bem Vindo ~n~~b~%s", PlayerName(playerid));
GameTextForPlayer(playerid, tmp2, 5000, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
ScoreLevel(playerid);
new check = PlayerInfo[playerid][pLevel]+1;
format(gstring,sizeof(gstring),"~w~Nick: ~g~%s ~w~Level: ~g~%d ~w~Respeito: ~g~%d~w~/~g~%d", PlayerName(playerid), PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pExp], check*levelexp);
//TextDrawSetString(forum2[playerid], gstring);
gmsg[playerid] = 1;
tempotd[playerid] = SetTimerEx("PiscarTD", 30000, 1, "i", playerid);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new AdminName[MAX_PLAYER_NAME];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(gstring, sizeof(gstring), "~p~%s: ~g~ON", AdminName);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 1);
}
}
TempoLogin = SetTimerEx("LoginAgora", 10000, 0, "i", playerid);
}
return 1;
}
.
.public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "Players/%s.ini", playername2);
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 );
printf("1: \"%s\"", keytmp);
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
printf("2: \"%s\"", valtmp);
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
printf("3: \"%s\"", PlayerInfo[playerid][pKey]);
printf("4: \"%s\"", password);
}
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 , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVIP] = strval( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Bank" , 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 , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
if( strcmp( key , "Emprego" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEmprego] = strval( val ); }
if( strcmp( key , "Paycheck" , 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][pDrogas] = strval( val ); }
if( strcmp( key , "Cocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas2] = strval( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas3] = strval( val ); }
if( strcmp( key , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCargo] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = 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 , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = 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 , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
if( strcmp( key , "DrogasSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogasSkill] = strval( val ); }
if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = 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 , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "House" , 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 , "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 , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = 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 , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = 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][pWarns] = 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 , "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 , "NivelProcurado" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[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 ); }
logouagora[playerid] = 1;
CheckOwner(playerid);
//CheckAdmin(playerid);
CheckOwnerb(playerid);
CheckOwnerh(playerid);
//CheckVip(playerid);
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[BHV]: Senha errada! - Se errar a senha 5 vezes terб o IP Banido!");
SetPlayerCameraPos(playerid,1483.8164,-1727.4125,13.3828);
SetPlayerCameraLookAt(playerid,1481.0267,-1772.1371,19.4570);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Logar!!!", "Logar", "Esperar");
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","Chuck_Norris");
dini_Set(stri,"Data",tmp);
dini_Set(stri,"Hora",tmp3);
dini_Set(stri,"Nick",PlayerName(playerid));
}
return 1;
}
ClearChatbox(playerid, 100);
ResetPlayerMoney(playerid);
ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 2;
PlayerInfo[playerid][pSHealth] = 0.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;
PlayerInfo[playerid][pTeam] = 3;
if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 3; } else { PlayerInfo[playerid][pSkin] = 12; }
new randphone = 1000 + random(8999);//
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPHousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pConta] = 100;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pEmprego] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
ResetPlayerMoney(playerid);
}
if(PlayerInfo[playerid][pWarns] == 1) //1 aviso
{
SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Jб tem 1 Aviso!");
SendClientMessage(playerid, COLOR_YELLOW, "Se Vocк tiver 3 avisos serб banido automaticamente!");
}
if(PlayerInfo[playerid][pWarns] == 2) //2 avisos
{
SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Jб tem 2 Avisos!");
SendClientMessage(playerid, COLOR_YELLOW, "Se Vocк tiver 3 avisos serб banido automaticamente!");
}
if(PlayerInfo[playerid][pWarns] >= 3) //3 avisos
{
/*SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta contйm tem 3 Avisos!");
SendClientMessage(playerid, COLOR_YELLOW, "Vocк foi banido automaticamente!");
getdate(Ano, Mes, Dia);
SBan(playerid, "3 Avisos", "Automбtico");*/
PlayerInfo[playerid][pWarns] = 0;
}
if(PlayerInfo[playerid][pAdmin] >= 7000)//autoban
{
getdate(Ano, Mes, Dia);
SBan(playerid, "Admin maior que 7000", "Automбtico");
}
printf("%s has logged in.",PlayerName(playerid));
new Info[6][10];
split(PlayerInfo[playerid][pLastLogin],Info,'/');
SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo ao Brasil High Voltage v1.0");
format(string2, sizeof(string2), "Seu ъltimo login foi no dia %d/%d/%d horбrio %d:%d:%d",strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5]));
SendClientMessage(playerid, COLOR_AZULBB,string2);
DateProp(playerid);
new dia,mes,ano,hora,mins,seg,string3[20];
getdate(ano,mes,dia);
gettime(hora,mins,seg);
format(string3, sizeof(string3),"%d/%d/%d/%d/%d/%d",dia,mes,ano,hora,mins,seg);
strmid(PlayerInfo[playerid][pLastLogin],string3,0,strlen(string3),255);
format(gstring, 128, "AdmAviso: [%d]%s Estб Online! Fique Atento!",playerid,PlayerName(playerid));
SendMessageToOthersAdmins(playerid, COLOR_YELLOW, gstring);
if (VipCheck(playerid) == 0 && PlayerInfo[playerid][pVIP] > 0)//teste vipinfo
{
PlayerInfo[playerid][pVIP] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo й mais um jogador VIP/Premium, renove seu VIP e receba seus benefнcios de volta");
}
else if (PlayerInfo[playerid][pVIP] == 1)
{
SendClientMessage(playerid, COLOR_AZULBB,"[BHV]: Vocк й jogador Vip");
}
else if (PlayerInfo[playerid][pVIP] == 2)
{
SendClientMessage(playerid, COLOR_AZULBB,"[BHV]: Vocк й jogador Vip Premium");
}
{
format(string2, sizeof(string2), "[BHV]: Vocк Logou Como Admin Nivel %d.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_AZULBB,string2);
}
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
MedicBill[playerid] = 0;
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~n~ ~w~Bem Vindo ~n~~b~%s", PlayerName(playerid));
GameTextForPlayer(playerid, tmp2, 5000, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
ScoreLevel(playerid);
new check = PlayerInfo[playerid][pLevel]+1;
format(gstring,sizeof(gstring),"~w~Nick: ~g~%s ~w~Level: ~g~%d ~w~Respeito: ~g~%d~w~/~g~%d", PlayerName(playerid), PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pExp], check*levelexp);
//TextDrawSetString(forum2[playerid], gstring);
gmsg[playerid] = 1;
tempotd[playerid] = SetTimerEx("PiscarTD", 30000, 1, "i", playerid);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new AdminName[MAX_PLAYER_NAME];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(gstring, sizeof(gstring), "~p~%s: ~g~ON", AdminName);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 1);
}
}
TempoLogin = SetTimerEx("LoginAgora", 10000, 0, "i", 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);
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] = GetPlayerMoney(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, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Bank=%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, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
format(var, 32, "Paycheck=%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][pDrogas]);fwrite(hFile, var);
format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",PlayerInfo[playerid][pSkin]);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, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);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, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);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, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "House=%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, "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, "NivelProcurado=%d\n",WantedPoints[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, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);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, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pWarns]);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);
fclose(hFile);
}
SendClientMessage(playerid, 0x33FF00FF, "[BHV]: Vocк agora pode digitar /logar <senha>");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Logar!!!", "Logar", "Esperar");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
TogglePlayerControllable(playerid, 1);
new string[128];
if(dialogid == 1)
{
if(response == 0)
{
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Ok, Caso queira fazer login posteriormente use /logar [senha]!");
return 1;
}
if(response >= 1)
{
if(strlen(inputtext) == 0)
{
SetPlayerCameraPos(playerid,1463.9277,-1043.5249,31.3181);
SetPlayerCameraLookAt(playerid,1461.7306,-1014.2181,26.6566);
SetPlayerPos(playerid,1424.6486,-1020.7975,23.8281);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Brasil High Voltage", "Bem vindo ao Brasil High Voltage\nDigite sua Senha para Logar!!!", "Logar", "Esperar");
return 1;
}
format(gstring,sizeof(gstring),"/logar %s",inputtext);
OnPlayerCommandText(playerid,gstring);
return 1;
}
return 1;
}
if(dialogid == DIALOGID2)
{
if(response)
{
if(listitem == 0)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
PlayerInfo[playerid][pLuta] = 1;
}
if(listitem == 1)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
PlayerInfo[playerid][pLuta] = 2;
}
if(listitem == 2)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
PlayerInfo[playerid][pLuta] = 3;
}
if(listitem == 3)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
PlayerInfo[playerid][pLuta] = 4;
}
if(listitem == 4)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
PlayerInfo[playerid][pLuta] = 5;
}
if(listitem == 5)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
PlayerInfo[playerid][pLuta] = 6;
}
}
return 1;
}
if(dialogid == 2)
{
if(response == 0)
{
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Ok, Caso queira se registrar posteriormente use /registrar [senha]!");
return 1;
}
if(response >= 1)
{
if(strlen(inputtext) == 0)
{
SetPlayerCameraPos(playerid,1483.8164,-1727.4125,13.3828);
SetPlayerCameraLookAt(playerid,1481.0267,-1772.1371,19.4570);
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Brasil High Voltage", "Brasil High Voltage\nDigite sua Senha para Registrar!!!", "Registrar", "Esperar");
return 1;
}
format(gstring,sizeof(gstring),"/registrar %s",inputtext);
OnPlayerCommandText(playerid,gstring);
return 1;
}
return 1;
}
if(dialogid == 3)
{
if(response == 0)
{
RodrigoInfo[playerid][Tels] = 0;
return 1;
}
if(response >= 1)
{
if(listitem == 0)
{
if (PlayerInfo[playerid][pPhoneBook] == 1)
{
format(gstring,sizeof(gstring),"/ligar %d",RodrigoInfo[playerid][Tels]);
OnPlayerCommandText(playerid,gstring);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem lista telefфnica !");
return 1;
}
}
if(listitem == 1)
{
if (PlayerInfo[playerid][pPhoneBook] == 1)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Menu SMS", "Digite a Mensagem", "Enviar", "Cancelar");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem uma agenda !");
return 1;
}
}
return 1;
}
return 1;
}
if(dialogid == 4)
{
if(response == 0)
{
RodrigoInfo[playerid][Tels] = 0;
return 1;
}
if(response >= 1)
{
format(gstring,sizeof(gstring),"/sms %d %s",RodrigoInfo[playerid][Tels],inputtext);
OnPlayerCommandText(playerid,gstring);
return 1;
}
return 1;
}
if(dialogid == 9)
{
if(response == 0)
{
PlayerInfo[playerid][pSex] = 2;
SetPlayerSkin(playerid, 12);
PlayerInfo[playerid][pSkin] = 12;
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Certo, Vocк й uma Mulher!");
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 1;
}
if(response == 1)
{
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 3);
PlayerInfo[playerid][pSkin] = 3;
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Certo, Vocк й um Homem!.");
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 1;
}
return 1;
}
if(dialogid == 10)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Player ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Digite o comando desejado para mais informaзхes!");
SendClientMessage(playerid, COLOR_GRAD1,"BHV > /logar /rg /regras /forum /relatorio /duvida /comprarnivel /organizacoes(/orgs)");
SendClientMessage(playerid, COLOR_GRAD2,"BHV > /meuskin /pagar /horas /gps /mostrarlicencas /loteria /setint /empregos /orelhao");
SendClientMessage(playerid, COLOR_GRAD2,"BHV > /trancar /mudarlocal /minhaslicencas /comprararma /beber /caridade /desligarorelhao");
SendClientMessage(playerid, COLOR_GRAD2,"BHV > /abastecer /contrato /aceitar /cancelar /ejetar /servico /localizar /alugarcarro");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > (/g)ritar (/s)usurro (/an)uncio /eu /alugarheli /alugarquarto /desalugar");
SendClientMessage(playerid, COLOR_GRAD4,"BHV > /saldo /sacar /depositar /transferir ");
SendClientMessage(playerid, COLOR_GREEN,"______________________________________");
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Empresa ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Digite o comando desejado para mais informaзхes!");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /ajudaempresa (/entradaemp)resa (/nomeemp)resa /extorcao /infoempresa");
SendClientMessage(playerid, COLOR_GRAD4,"BHV > /entrar /sair /chave /venderemp (/depositaremp)resa /sacarempresa");
SendClientMessage(playerid, COLOR_GREEN,"______________________________________________");
}
if(listitem == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Casa ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Digite o comando desejado para mais informaзхes!");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /entrar /sair /chave /vida /moveis(/mv) /mapacasa(Mostra No Mapa)");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /comprarcarro /pintarcarro /despejartodos /mudarcasa(1 a 10)");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /aluguel /despejar /cofrecasa /trancar(carro da casa) /alugada");
}
if(listitem == 3)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Aluguel ______________|");
SendClientMessage(playerid, COLOR_GRAD3,"Aluguel > /desalugar /entrar /sair /trancar /mapacasa");
}
if(listitem == 4)
{
if (PlayerInfo[playerid][pPnumber] > 0)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Celular ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Digite o comando desejado para mais informaзхes!");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /ligar /sms (/at)ender (/des)ligar /agenda /desativar celular");
SendClientMessage(playerid, COLOR_WHITE,"BHV > Nгo se esqueзa de comprar crйditos na 24-7!");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"Vocк nгo tem um telefone, compre um na 24-7, USE: /gps");
}
}
if(listitem == 5)
{
if (PlayerInfo[playerid][pLider] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Lider ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Digite o comando desejado para mais informaзхes!");
SendClientMessage(playerid, COLOR_GRAD3,"BHV > /convidar /demitir /limparvaga /promover /contaslider(Pedir Contas)");
if(PlayerInfo[playerid][pLider] == 7)
{
SendClientMessage(playerid, COLOR_GRAD3,"Prefeito > (/pre)feito /setartaxa /dartaxa (Dб algum dinheiro para os Policiais)");
}
SendClientMessage(playerid, COLOR_DBLUE,"____________________________________________");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Lнder!");
}
}
if(listitem == 6)
{
SendClientMessage(playerid,COLOR_WHITE, "|______________ Ajuda Emprego ______________|");
if(PlayerInfo[playerid][pEmprego] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Detetive < /procurar");
}
if(PlayerInfo[playerid][pEmprego] == 2)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Advogado < /soltar /pp(Portгo Presos - DP) /autorizacao(Icone Na DP)");
}
if(PlayerInfo[playerid][pEmprego] == 3)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Prof. do Sexo < /transar");
}
else if(PlayerInfo[playerid][pEmprego] == 4)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Vendedor de Drogas < /sistemadedrogas");
}
else if(PlayerInfo[playerid][pEmprego] == 5)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"BHV > Mecвnicos < /guinchar /reparar /abastecercarro /batercartao");
}
else if(PlayerInfo[playerid][pEmprego] == 6)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Seguranзa < /proteger");
}
else if(PlayerInfo[playerid][pEmprego] == 7)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Vendedor de Armas < /materiais(Casarгo e Estaзгo) /venderarma");
}
else if(PlayerInfo[playerid][pEmprego] == 8)
{
SendClientMessage(playerid,COLOR_GREEN,"BHV > Lutador de Boxe < /lutar /statusluta");
}
else if(PlayerInfo[playerid][pEmprego] == 9)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Motorista de Фnibus < /corrida Entrar e Sair do Trabalho! /cancelar onibus(Cancelar a Corrida) /terminais");
}
else if(PlayerInfo[playerid][pEmprego] == 10)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Mendigo < /esmola /pbarraca(por barraca) /rbarraca(retirar barraca)");
}
else if(PlayerInfo[playerid][pEmprego] == 11)
{
SendClientMessage(playerid,COLOR_YELLOW,"BHV > Caminhoneiro < /mercadorials /mercadoriasf /mercadorialv");
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > (/r)adio (/d)epartmento (/m)egafone (/su)speito /ficha /prender /batercartao /procurados /algemar /imo /reforco");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > /revistar /retirar /prender (/gov)erno /arrombar (/do)minar /desalgemar /arrombar /bafometro /multar /infoorg /ronda");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Portхes > /pe - P Estacionamento | /pg - P Garagem | /pr - P Recepзгo | /pp - P Presos | /pv - P Vestiбrio");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Barreira > /br - Criar Barreira | /rbr - Retirar Barreira | /rbrall - Retirar Todas As Barreiras");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bloqueio > /bq - Criar Bloqueio | /rbq - Retirar Bloqueio | /rbqall - Retirar Todas Os Bloqueios");
}
if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Governo: /equipargov (/r)adio - (/d)epartamento - (/m)egafone - /algemar - /imo - /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Governo: /revistar - /retirar - /pp - /pgov - Portгo dos Carros - /ppre - Porta Prefeitura");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Prefeito: (/pre)feito /dartaxa(Para os Policias) /setartaxa(Taxa Por Pessoa)");
}
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Taxistas: /corrida Entrar e Sair do Trabalho! /cancelar onibus(Cancelar a Corrida) /antaxi");
}
if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > (/r)adio (/d)epartmento (/m)egafone (/su)speito /ficha /detento /batercartao /procurados /algemar /imo /reforco /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > /revistar /retirar /prender (/gov)erno /camera /arrombar (/do)minar /desalgemar /arrombar /bafometro /multar");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Portхes > /pf - Portao Federal | /pb2 - Garagem1 | /pb3 - Garagem2");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Barreira > /br - Criar Barreira | /rbr - Retirar Barreira | /rbrall - Retirar Todas As Barreiras");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bloqueio > /bq - Criar Bloqueio | /rbq - Retirar Bloqueio | /rbqall - Retirar Todas Os Bloqueios");
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Exйrcito > (/r)adio (/d)epartmento (/m)egafone (/su)speito /ficha /prender /batercartao /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Exйrcito > /revistar /retirar (/gov)erno /camera /arrombar /algemar /imo /br /rb /multar /procurados");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Exйrcito > /abrirgn - Portгo Principal /equipar /algemar /desalgemar /reforco /bafometro");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Exйrcito > /guerra /pontos(ver pontuaзгo da guerra) /tirarbombas - Bloqueia os Homens Bombas");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Barreira > /br - Criar Barreira | /rbr - Retirar Barreira | /rbrall - Retirar Todas As Barreiras");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bloqueio > /bq - Criar Bloqueio | /rbq - Retirar Bloqueio | /rbqall - Retirar Todas Os Bloqueios");
}
if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mйdicos > | (/r)adio | (/d)epartamento | /vida | /batercartao | /infoorg | (/gov)erno");
}
if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Groove Street > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < /equipar /homembomba /carrobomba /tal");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < (/ga)ngue /guerra /pontos(ver pontuaзгo da guerra) /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < /sequestrar e /desamarrar - Fazer um sequestro");
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < /equipar /homembomba /carrobomba /alq");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < (/ga)ngue /guerra /pontos(ver pontuaзгo da guerra) /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Terroristas < /sequestrar e /desamarrar - Fazer um sequestro");
}
if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > (/r)adio (/d)epartmento (/m)egafone (/su)speito /ficha /prender /batercartao /procurados /algemar /imo /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Comandos > /revistar /retirar /prender (/gov)erno /deliver /camera /arrombar /desalgemar /bafometro /reforco /multar /ronda");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Portхes > /ppc(Portгo PC) | DP > /pv - Vestiбrio(DP) | /pr | /pp - Portao DP");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Barreira > /br - Criar Barreira | /rbr - Retirar Barreira | /rbrall - Retirar Todas As Barreiras");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bloqueio > /bq - Criar Bloqueio | /rbq - Retirar Bloqueio | /rbqall - Retirar Todas Os Bloqueios");
}
if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12 || PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Mбfias < /(ga)ngue /mafia /mafiavarma /mafiavkit /amarrar /desamarrarm /infoorg /anmafia");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "BHV > Mбfias < Para pegar ou esconder materiais va a HQ ou um territorio");
}
if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Loz Aztecas > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Hitmans > /laptop - Computador Hitman | /arrombar(Porta das Casas) | /anhitmans");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Comandos > /ga - Chat Hitmans | /infoorg");
}
if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Ballas > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Los Vagos > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Repуrter > | /noticias | /aovivo | (/preporter & /preporter2 = Portхes) |");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Comandos > | (/ga)ngue) | /live | /noticias [texto] | /infoorg");
}
if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"FBI > (/m)egafone /equipar /batercartao /procurados /presos /reforco /multar /infoorg");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Comandos > (/su)spect /limpar /revistar /r(adio) /d(epartamento) /do(minar) /arrombar /bafometro");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Portхes > /pb - Portгo HQ | Portфes DP LS(/pr /pp /pv /pe /pg)");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Barreira > /br - Criar Barreira | /rbr - Retirar Barreira | /rbrall - Retirar Todas As Barreiras");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bloqueio > /bq - Criar Bloqueio | /rbq - Retirar Bloqueio | /rbqall - Retirar Todas Os Bloqueios");
}
if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Comando Vermelho > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"PCC > | (/ga)ng | /sequestrar & /desamarrar | /do(minar) | /assaltar | /infoorg | /roubar | (/ang)ang");
}
if (PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Drifters > | (/ga)ng | /sequestrar & /desamarrar | /assaltar | /infoorg | /roubar | (/anmer)");
}
}
if(listitem == 7)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Pesca ______________|");
SendClientMessage(playerid, COLOR_GRAD3,"Pescaria > /pescar (Tente pegar um peixe) /peixes (Mostrar os peixes que vocк pegou)");
SendClientMessage(playerid, COLOR_GRAD3,"Pescaria > /soltarultimo(Jogue o ъltimo peixe Vocк pegou de volta) /soltartodos(jogue todos seus peixes de volta)");
SendClientMessage(playerid, COLOR_GRAD3,"Pescaria > /soltarpeixe (Liberaзгo de uma de suas barbatanas) /vender(+ de 20 LBs | 24-7) /comer(Casas de Comida)");
}
if(listitem == 8)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda IRC ______________|");
SendClientMessage(playerid, COLOR_WHITE,"Chat IRC > (/irc entrar [nє canal] ou /irc entrar [nє canal] [Senha]) (/irc sair)");
SendClientMessage(playerid, COLOR_WHITE,"Chat IRC > (/irc senha [nє canal]) (/irc needpass [nє canal]) (/irc trancar [nє canal])");
SendClientMessage(playerid, COLOR_WHITE,"Chat IRC > (/irc Admins) (/irc MOTD [motdtext]) (/irc status [nє canal]) (/i [texto])");
}
if(listitem == 9)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Cozinha ______________|");
SendClientMessage(playerid, COLOR_GRAD3,"Cozinha > /cozinhar (Mostra as opcoes disponiveis) /cozido (Mostra o que ja foi cozinhado)");
SendClientMessage(playerid, COLOR_GRAD3,"Cozinha > /comer (Come o que ja foi cozinhado)");
}
if(listitem == 10)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Casamento ______________|");
SendClientMessage(playerid, COLOR_LIGHTRED,"/padrinho (cada 1 tem que ter 1 padrinho!)");
SendClientMessage(playerid, COLOR_LIGHTRED,"/casar (quem pedir tem que ter 1 casa!)");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Nгo sabe o local? digite /gps - Igreja");
SendClientMessage(playerid, TEAM_VAGOS_COLOR,"Separaзгo(Digite: /separacao)");
}
if(listitem == 11)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Forum do Server ______________|");
SendClientMessage(playerid, COLOR_YELLOW,"www.brasilhighvoltage.forumeiro.com");
SendClientMessage(playerid, COLOR_YELLOW,"Se cadastre e veja as contas VIP's.");
}
if(listitem == 12)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Crйditos ______________|");
SendClientMessage(playerid, COLOR_YELLOW, "GameMode GodFather, criado por: Denver.");
SendClientMessage(playerid, COLOR_YELLOW, "Editado por: SerGiO_KiLleR para o servidor BHV.");
SendClientMessage(playerid, COLOR_YELLOW, "Mapas feito com ajuda de Thales_BHV e wet_dias.");
}
if(listitem == 13)
{
if (PlayerInfo[playerid][pVIP] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda VIPs e Premiuns ______________|");
SendClientMessage(playerid, 0xCDB38BAA, "-> /kitvip /mala /desativar celular /v(chat) /relatorio(cor destacada)");
SendClientMessage(playerid, COLOR_GRAD1, "-> Carros VIPS: /veiculo ajuda");
SendClientMessage(playerid, COLOR_GRAD1, "-> Casas VIPS: /ajudacasa");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um jogador VIP/VIP Premium");
}
}
if(listitem == 14)
{
SendClientMessage(playerid, COLOR_WHITE, "|______________ Seja VIP ______________|");
SendClientMessage(playerid, COLOR_YELLOW,"/forum - Para virar VIP acesse nosso forum");
SendClientMessage(playerid, COLOR_YELLOW,"Temos VIP's de R$8,00 atй R$20,00!");
SendClientMessage(playerid, COLOR_YELLOW,"Veja com um ADM online!");
SendClientMessage(playerid, COLOR_LIGHTRED,"Acesse www.brasilhighvoltage.forumeiro.com");
}
}
return 1;
}
if(dialogid == 5)
{
if(response == 0)
{
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(response >= 1)
{
if(listitem == 0)
{
OnPlayerCommandText(playerid,"/comprar 1");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 1)
{
OnPlayerCommandText(playerid,"/comprar 2");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 2)
{
OnPlayerCommandText(playerid,"/comprar 3");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 3)
{
OnPlayerCommandText(playerid,"/comprar 4");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 4)
{
OnPlayerCommandText(playerid,"/comprar 5");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 5)
{
OnPlayerCommandText(playerid,"/comprar 6");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 6)
{
OnPlayerCommandText(playerid,"/comprar 7");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 7)
{
OnPlayerCommandText(playerid,"/comprar 8");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 8)
{
OnPlayerCommandText(playerid,"/comprar 9");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 9)
{
OnPlayerCommandText(playerid,"/comprar 10");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 10)
{
OnPlayerCommandText(playerid,"/comprar 11");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 11)
{
OnPlayerCommandText(playerid,"/comprar 12");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 12)
{
OnPlayerCommandText(playerid,"/comprar 13");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
if(listitem == 13)
{
OnPlayerCommandText(playerid,"/comprar 14");
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
RodrigoInfo[playerid][PpLoja2472] = 0;
return 1;
}
}
if(dialogid == 6)
{
if(response == 0)
{
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
return 1;
}
if(response == 1)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Escolha seu KitVip", "Kit Vip Bronze\nKit Vip Prata\nKit Vip Ouro", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 1)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "eagle", 0, strlen("eagle"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 2)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "mp5", 0, strlen("mp5"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 3)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "shotgun", 0, strlen("shotgun"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 4)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "ak47", 0, strlen("ak47"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 5)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "m4", 0, strlen("m4"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 6)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "rifle", 0, strlen("rifle"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 7)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "parachute", 0, strlen("parachute"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 8)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "golfclub", 0, strlen("golfclub"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 9)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "nightstick", 0, strlen("nightstick"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 10)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "baseballbat", 0, strlen("baseballbat"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 11)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "shovel", 0, strlen("shovel"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 12)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "poolcue", 0, strlen("poolcue"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 13)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "purpledildo", 0, strlen("purpledildo"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 14)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "whitedildo", 0, strlen("whitedildo"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 15)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "longwhitedildo", 0, strlen("longwhitedildo"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 16)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "whitedildo2", 0, strlen("whitedildo2"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 17)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "flowers", 0, strlen("flowers"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
if(listitem == 18)
{
strmid(RodrigoInfo[playerid][ArmaLoja], "cane", 0, strlen("cane"), 255);
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Escolha a quantidade de Muniзгo", "Digite a quantidade de Muniзгo que vocк deseja!", "Confirmar", "Cancelar");
return 1;
}
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
return 1;
}
return 1;
}
if(dialogid == 7)
{
if(response == 0)
{
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
if(response == 1)
{
format(gstring,sizeof(gstring),"/comprararma %s %d",RodrigoInfo[playerid][ArmaLoja],strval(inputtext));
OnPlayerCommandText(playerid,gstring);
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
if(dialogid == 8)
{
if(response == 0)
{
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
return 1;
}
if(response == 1)
{
if(listitem == 0)
{
OnPlayerCommandText(playerid,"/kitvip 1");
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
if(listitem == 1)
{
OnPlayerCommandText(playerid,"/kitvip 2");
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
if(listitem == 2)
{
OnPlayerCommandText(playerid,"/kitvip 3");
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
return 1;
}
RodrigoInfo[playerid][PLojaA1] = 0;
RodrigoInfo[playerid][PLojaA2] = 0;
RodrigoInfo[playerid][ArmaLoja] = 0;
return 1;
}
if (strcmp(cmd, "/registrar", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 64, "Players/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Este Nick jб existe, use outro.");
fclose(hFile);
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Registrar!!!", "Registrar", "Cancelar");
return 1;
}
new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /registrar [Senha]");
SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: Guru_Josh ) <==-");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Registrar!!!", "Registrar", "Cancelar");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}
if (strcmp(cmd, "/logar", true) ==0 )
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /logar [Senha]");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Brasil High Voltage v1.0", "Bem Vindo ao Brasil High Voltage\nDigite sua Senha para Logar!!!", "Logar", "Esperar");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}
.
:stock SavePlayerInfo(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[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);
if (hFile)
{
new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(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, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Bank=%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, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
format(var, 32, "Paycheck=%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][pDrogas]);fwrite(hFile, var);
format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",PlayerInfo[playerid][pSkin]);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, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);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, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);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, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "House=%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, "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, "NivelProcurado=%d\n",WantedPoints[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, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);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, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pWarns]);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);
fclose(hFile);
}
}
}
return 1;
}
:SavePlayerInfo(playerid);
.
|
Seguinte cara o Problema й que voce editou o ficheiro nas scriptfiles tenta fazer da seguinte forma :
Coloca tudinho como voce tinha no inicio mas volta a registrar no seu server a sua conta, deve funfar qualquer coisa fla ae. |