pawn Код:
public OnPlayerLogin(playerid,password[])
{
SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
new tmp2[128];
new string2[64];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "Players/%s.ini", PlayerName(playerid));
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[128];
new keytmp[128], valtmp[128];
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[ 128 ] , val[ 128 ];
new Data[ 128 ];
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 , "HelpLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = 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 , "FamyLider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFamyLider] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
if( strcmp( key , "MemberF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFamyMember] = 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 , "HoraLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastHora], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "MinutoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastMinuto], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SegundoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSegundo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "DiaLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastDia], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "MesLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastMes], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "AnoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastAno], val, 0, strlen(val)-1, 255); }
logouagora[playerid] = 1;
CheckOwnerb(playerid);
CheckOwnerh(playerid);
//CheckVip(playerid);
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
GetPlayerName(playerid,loginname,sizeof(loginname));
SendClientMessage(playerid, COLOR_YELLOW, "[BIC]: 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, "{00FF40}Brasil {FFD700}Play{1E90FF}City v4.3", "{FF8000}Bem Vindo ao {00FF00}Brasil {FFD700}Play{1E90FF}City v4.3\n\n{00FFFF} ...::::Status da Conta:::::...\n\n{FF8000}Nick:{00FF00} %s\n\n{FF00FF}Vocк jб Estб Registrado!\n\n{8080FF}Digite sua Senha para Logar!!!", "Logar", "Esperar");
format(loginstring,sizeof(loginstring),"{FF8000}Bem Vindo ao {00FF00}Brasil {FFFF00}Infernus {0000FF}City v1.0\n\n{00FFFF} ...:::: Status da Conta :::::...\n\n\n{FF8000}Nick:{00FF00} %s\n\n{FF00FF}Vocк jб Estб Registrado!\n\n{72FCB0}Digite sua Senha para Logar.\n\n{FFC184}Caso erre 5 Vezes Serб Banido!!",loginname);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"{00FF40}Brasil {FFD700}Infernus {1E90FF}City v1.0",loginstring,"Logar","Esperar");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 20)
{
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","Automatico");
dini_Set(stri,"Data",tmp);
dini_Set(stri,"Hora",tmp3);
dini_Set(stri,"Nick",PlayerName(playerid));
}
return 1;
}
StatusPlayer(5, playerid);
ClearChatbox(playerid, 100);
ResetGranaVinny(playerid);
ConsumingMoney[playerid] = 1;
GranaVinny(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 3;
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] = 23; } else { PlayerInfo[playerid][pSkin] = 216; }
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;
ResetGranaVinny(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
{
PlayerInfo[playerid][pWarns] = 0;
}
if(PlayerInfo[playerid][pAdmin] >= 3001)//autoban
{
getdate(Ano, Mes, Dia);
SBan(playerid, "Admin maior que 3000", "Automбtico");
}
printf("%s Logou no Servidor.",PlayerName(playerid));
new Info[6][10];
split(PlayerInfo[playerid][pLastLogin],Info,'/');
SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo ao {00FF40}Brasil {FFD700}Infernus {1E90FF}City 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, CORS,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(string2, 256,"%d",dia);
strmid(PlayerInfo[playerid][pLastDia],string2,0,strlen(string2),255);
format(string2, 256,"%d",mes);
strmid(PlayerInfo[playerid][pLastMes],string2,0,strlen(string2),255);
format(string2, 256,"%d",ano);
strmid(PlayerInfo[playerid][pLastAno],string2,0,strlen(string2),255);
format(string2, 256,"%d",hora);
strmid(PlayerInfo[playerid][pLastHora],string2,0,strlen(string2),255);
format(string2, 256,"%d",mins);
strmid(PlayerInfo[playerid][pLastMinuto],string2,0,strlen(string2),255);
format(string2, 256,"%d",seg);
strmid(PlayerInfo[playerid][pLastSegundo],string2,0,strlen(string2),255);
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, 0xFFB973AA,"[BIC]: Vocк й jogador Vip.");
}
else if (PlayerInfo[playerid][pVIP] == 2)
{
SendClientMessage(playerid, 0xFFB973AA,"[BIC]: Vocк й jogador Vip Premium.");
}
else if (PlayerInfo[playerid][pVIP] == 3)
{
SendClientMessage(playerid, 0xFFB973AA,"[BIC]: Vocк й jogador Sуcio do Rock City.");
}
AdmCheck(playerid);
StatusPlayer(3, playerid);
HelpCheck(playerid);
StatusPlayer(4, playerid);
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;
format(tmp2, sizeof(tmp2), "~n~ ~w~Bem Vindo ~n~~p~~h~%s", PlayerName(playerid));
GameTextForPlayer(playerid, tmp2, 5000, 1);
format(gstring, sizeof(gstring),"[BIC SERVER]{70EEFF} Vocк pertence a ORG: {FFB973}%s.",NomeORG(playerid));
SendClientMessage(playerid, 0x1E90FFAA,gstring);
if(strfind(PlayerName(playerid), "Stars", true) != -1)
{
if(PlayerInfo[playerid][pFamyMember] == 1 || PlayerInfo[playerid][pFamyLider] == 1)
{
format(gstring, sizeof(gstring), "[BIC SERVER]:{FFFFFF} Atualmente Vocк й um Membro Oficial da Famнlia: {FFB3FF}%s.",NomeFamy(playerid));
SendClientMessage(playerid, 0xFFB3FFAA,gstring);
}
}
if(strfind(PlayerName(playerid), "WalkeeR", true) != -1)
{
if(PlayerInfo[playerid][pFamyMember] == 2 || PlayerInfo[playerid][pFamyLider] == 2)
{
format(gstring, sizeof(gstring), "[BIC SERVER]:{FFFFFF} Atualmente Vocк й um Membro Oficial da Famнlia: {FFB3FF}%s.",NomeFamy(playerid));
SendClientMessage(playerid, 0xFFB3FFAA,gstring);
}
}
if(strfind(PlayerName(playerid), "Nice", true) != -1)
{
if(PlayerInfo[playerid][pFamyMember] == 3 || PlayerInfo[playerid][pFamyLider] == 3)
{
format(gstring, sizeof(gstring), "[BIC SERVER]:{FFFFFF} Atualmente Vocк й um Membro Oficial da Famнlia: {FFB3FF}%s.",NomeFamy(playerid));
SendClientMessage(playerid, 0xFFB3FFAA,gstring);
}
}
format(string2, sizeof(string2), "[BIC SERVER]{70EEFF} Seja Bem Vindo %s.",PlayerName(playerid));
SendClientMessage(playerid, 0x1E90FFAA,string2);
if(PlayerInfo[playerid][pAdmin] >= 3000)
{
format(gstring, sizeof(gstring), "[BIC DONO]:{5EFFBC} Vocк Logou como Admin Dono Oculto, Digite /aparecer para voltar ao normal.");
SendClientMessage(playerid, 0x1E90FFAA,gstring);
HideAdm[playerid] = 1;
}
TextDrawShowForPlayer(playerid, forum);
TextDrawShowForPlayer(playerid, TextData);
TextDrawShowForPlayer(playerid, TextHora);
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);
tempotd[playerid] = SetTimerEx("PiscarTD", 30000, 1, "i", playerid);
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 3000)
{
new AdminName[MAX_PLAYER_NAME];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(gstring, sizeof(gstring), "~p~%s: ~b~~h~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);
if(InfoLogin == 0)
{
format(gstring,sizeof(gstring), "AdmAviso: [%d]%s Logou no servidor - %d Players Online!",playerid,PlayerName(playerid),ContarJogadores());
SendMessageToOthersAdmins(playerid, COLOR_YELLOW, gstring);
}
TextDrawHideForPlayer(playerid, TextLogin);
TextDrawHideForPlayer(playerid, TextLogin1);
SpawnPlayer(playerid);
StatusPlayer(1, playerid);
/*new CrashLolz = GetGranaVinny(playerid);
new CrashLolz2 = GetGranaVinny(playerid);
if(CrashLolz < 0) { new CashTotal = CrashLolz+CrashLolz2; GranaVinny(playerid,CashTotal); }*/
}
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
RemoveBuildingForPlayer(playerid, 1311, 1823.4219, -1647.2734, 16.6719, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1817.5156, -1623.8359, 16.3594, 0.25);
RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.1);
RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
//postes
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1721.6328, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1705.2734, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1693.9688, 14.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1688.0859, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1668.0781, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1647.6406, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1621.9609, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1525.3828, -1611.1563, 16.4219, 0.25);
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
new nome[24], str[50];
GetPlayerName(playerid, nome, 24);
format(str, sizeof str, "%s - Arara", nome);
if(dini_Isset("Araras.ini", str))
{
Infoa[playerid][Arara] = bool:dini_Bool("Araras.ini", str);
format(str, sizeof str, "%s - Racao", nome);
Infoa[playerid][Racao] = bool:dini_Bool("Araras.ini", str);
format(str, sizeof str, "%s - Grande", nome);
Infoa[playerid][Grande] = dini_Int("Araras.ini", str);
if(Infoa[playerid][Arara])
{
Infoa[playerid][Tempo] = SetTimerEx("Crescimento", 300000, true, "i", playerid);
SendClientMessage(playerid, 0xFFFF00FF, "Alimente sua arara ou ela morrerб.");
}
}
return 1;
}
//===============================[INICIO DO GET IP]=============================//
IPlog(playerid);
MorroShowForPlayer(playerid);
if(Morro[Guerra] >= 1)
{
MorroFlashForPlayer(playerid);
}
//===============================[FIM DO GET IP]================================//
if(strfind(PlayerName(playerid), "_", true) == -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "]", true) != -1 || strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1
|| strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "bpl", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ".", true) != -1
|| strfind(PlayerName(playerid), "*", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Foi Kickado por usar algum nome incorreto!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu nome deve ser no formato Nome_Sobrenome Ex: Guru_Josh");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Troque-o e volte, Obrigado.");
format(gstring,64,"Players/%s.ini",PlayerName(playerid));
Kick(playerid);
fremove(gstring);
return 1;
}
for(new i; i<sizeof(NicksProibidos); i++)
{
if(strcmp(NicksProibidos[i],PlayerName(playerid),true)==0)
{
SendClientMessage(playerid,CORS,"Vocк estб usando um nome que й proibido no BIC!");
SendClientMessage(playerid,CORS,"Vocк foi banido!");
getdate(Ano, Mes, Dia);
SBan(playerid, "Pego Usando um nome que й proibido no BIC", "Automбtico");
}
}
//above hp textdraw
//=========================================
gActivePlayers[playerid]++;
numplayers++;
strmid(InfoVinny[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 256);
strmid(InfoVinny[playerid][pAdmBan], "Nenhum", 0, strlen("Nenhum"), 256);
strmid(InfoVinny[playerid][pData], "0/0/0", 0, strlen("0/0/0"), 256);
strmid(InfoVinny[playerid][pHora], "0:0:0", 0, strlen("0:0:0"), 256);
//pban[playerid] = 0;
Reduzido[playerid] = 0; // pedagio
var1[playerid] = 0;
EmDialog[playerid] = 0;
votou[playerid] = true;
TruckMission[playerid] = 0;
// emguerra[playerid] = 0;
storeexit[playerid] = 0;
away[playerid] = 0;
pCofreOrg[playerid] = 0;
InviteOffer[playerid] = 999;
InviteJob[playerid] = 0;
mudandonick[playerid] = 0;
gpTimes[playerid] = 0;
gPlayerTerminal[playerid] = 0;
HideIR[playerid] = 0;
SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; OfAssalto[playerid] = 999; precoassalto[playerid] = 0;
SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; SemBombas[playerid] = 0;
GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
CP[playerid] = 0; Robbed[playerid] = 0; PlayerInfo[playerid][pSpawn] = 0;
CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
SexOffer[playerid] = 999; SexPrice[playerid] = 0; MendigoOffer[playerid] = 999; MendigoPrice[playerid] = 0;
RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
TalkingLive[playerid] = 255; LiveOffer[playerid] = 999;
RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0;
DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
WantedPoints[playerid] = 0; SetPlayerWantedLevel(playerid, 0); GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
OnDuty[playerid] = 0; TestFishes[playerid] = 0;
BoxWaitTime[playerid] = 0; ChangePos2[playerid][1] = 0;
SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
FindTimePoints[playerid] = 0; FindTime[playerid] = 0; EmpregoDuty[playerid] = 0; EmRondaCop[playerid] = 0;
Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
Unspec[playerid][sLocal] = 255; FishCornt[playerid] = 0; ConsumingMoney[playerid] = 0;
gLastCar[playerid] = 0; HideAdm[playerid] = 0;
gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
gPlayerSpawned[playerid] = 0;
PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
MatsHolding[playerid] = 0;
gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999; MechanicAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
PlayerInfo[playerid][pCash] = 1000; NoFuel[playerid] = 0;
HireCar[playerid] = 0; PlayersChannel[playerid] = 999;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
Locator[playerid] = 0; ConviteFamy[playerid] = 0;
WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
GranaVinny(playerid,PlayerInfo[playerid][pCash]);
InfoVinny[playerid][NumSenha] = 999;
ServerOwner[playerid] = 0;
RelatoEntregue[playerid] = 0;
MudarNickAceito[playerid] = 0;
MudarSenhaAceito[playerid] = 0;
antifakekill[playerid] = 0;
XiterCrashando[playerid] = 0;
InAFoodPlace[playerid] = 0;
OnEquipado[playerid] = 0;
OnMafiaEquipado[playerid] = 0;
VinnyInfo[playerid][PLojaA1] = 0;
VinnyInfo[playerid][PLojaA2] = 0;
VinnyInfo[playerid][PpLoja247] = 0;
VinnyInfo[playerid][PpLoja2472] = 0;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pHelper] = 0;
PlayerInfo[playerid][pVIP] = 0;
PlayerInfo[playerid][gPupgrade] = 0;
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pAge] = 0;
PlayerInfo[playerid][pExp] = 0;
PlayerInfo[playerid][pConta] = 0;
PlayerInfo[playerid][pCrimes] = 0;
PlayerInfo[playerid][pDeaths] = 0;
PlayerInfo[playerid][pPhoneBook] = 0;
PlayerInfo[playerid][pLottoNr] = 0;
PlayerInfo[playerid][pFishes] = 0;
PlayerInfo[playerid][pBiggestFish] = 0;
PlayerInfo[playerid][pEmprego] = 0;
PlayerInfo[playerid][pSalario] = 0;
PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pJailed] = 0;
PlayerInfo[playerid][pJailTime] = 0;
PlayerInfo[playerid][pMats] = 0;
PlayerInfo[playerid][pDorgado] = 0;
PlayerInfo[playerid][pDorgado2] = 0;
PlayerInfo[playerid][pDoenca] = 0;
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pSafeDrogas] = 0;
PlayerInfo[playerid][pSafeDrogas2] = 0;
PlayerInfo[playerid][pSafeDrogas3] = 0;
PlayerInfo[playerid][pLider] = 0;
PlayerInfo[playerid][pMembro] = 0;
PlayerInfo[playerid][pFamyLider] = 0;
PlayerInfo[playerid][pFamyMember] = 0;
PlayerInfo[playerid][pCargo] = 0;
PlayerInfo[playerid][pContractTime] = 0;
PlayerInfo[playerid][pDetSkill] = 0;
PlayerInfo[playerid][pSexSkill] = 0;
PlayerInfo[playerid][pBoxSkill] = 0;
PlayerInfo[playerid][pLawSkill] = 0;
PlayerInfo[playerid][pMechSkill] = 0;
PlayerInfo[playerid][pNewsSkill] = 0;
PlayerInfo[playerid][pDrogasSkill] = 0;
PlayerInfo[playerid][pCookSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0;
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;
PlayerInfo[playerid][pSkin] = 23;
admtrampando[playerid] = 0;
helptrampando[playerid] = 0;
new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPHousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pBoatLic] = 0;
PlayerInfo[playerid][pFishLic] = 0;
PlayerInfo[playerid][pGunLic] = 0;
PlayerInfo[playerid][pPayDay] = 0;
PlayerInfo[playerid][pCDPlayer] = 0;
PlayerInfo[playerid][pWins] = 0;
PlayerInfo[playerid][pLoses] = 0;
PlayerInfo[playerid][pAlcoholPerk] = 0;
PlayerInfo[playerid][pDrugPerk] = 0;
PlayerInfo[playerid][pMiserPerk] = 0;
PlayerInfo[playerid][pPainPerk] = 0;
PlayerInfo[playerid][pTraderPerk] = 0;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pWarns] = 0;
pRoadblock[playerid] = 0;
PlayerInfo[playerid][pParedao] = 0;
pRoadCones[playerid] = 0;
SpikeInfo[playerid][sCreated] = 0;
PlayerInfo[playerid][pRequestingBackup] = 0;
PlayerInfo[playerid][pMask] = 0;
PlayerInfo[playerid][pMaskuse] = 0;
PlayerInfo[playerid][pBarraca] = 0;
PlayerInfo[playerid][pLuta] = 0;
strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
strmid(PlayerInfo[playerid][pLastDia], "0", 0, strlen("0"),255);
strmid(PlayerInfo[playerid][pLastMes], "0", 0, strlen("0"),255);
strmid(PlayerInfo[playerid][pLastAno], "2012", 0, strlen("2012"),255);
strmid(PlayerInfo[playerid][pLastHora], "0", 0, strlen("0"),255);
strmid(PlayerInfo[playerid][pLastMinuto], "0", 0, strlen("0"),255);
strmid(PlayerInfo[playerid][pLastSegundo], "0", 0, strlen("0"),255);
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
TextShow[playerid] = false;
HouseEntered[playerid] = 255;
new string2[64];
format(string2, sizeof(string2), "Players/%s.ini", PlayerName(playerid));
SendClientMessage(playerid, 0x1E90FFAA, "[BIC]{70EEFF} Servidor Carregando Aguarde alguns segundos!");
//mapaicone
SetPlayerMapIcon(playerid, 1,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);//wang cars sf
SetPlayerMapIcon(playerid, 2,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);//dp ls
SetPlayerMapIcon(playerid, 3,2802.2051,-1180.1276,25.5363, 60, 0xE6E6E6E6);//vagos
SetPlayerMapIcon(playerid, 4,2516.1411,-1675.4065,13.9113, 62, 0xE6E6E6E6);//grove
SetPlayerMapIcon(playerid, 5,901.1977,-934.9115,42.6262, 58, 0xE6E6E6E6);//aztecas
SetPlayerMapIcon(playerid, 6,1105.7688,-1206.7142,17.8047, 59, 0xE6E6E6E6);//ballas
SetPlayerMapIcon(playerid, 7,11484.3788,-1777.2107,13.6554, 56, 0xE6E6E6E6);//Prefeitura
SetPlayerMapIcon(playerid, 9,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
SetPlayerMapIcon(playerid, 10,461.3484,-1500.9084,31.0592, 45, 0xE6E6E6E6);//ZIP
SetPlayerMapIcon(playerid, 11,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
SetPlayerMapIcon(playerid, 12,1070.3787,-1873.8467,13.5469, 18, 0xE6E6E6E6);//Loja de Armas 2
SetPlayerMapIcon(playerid, 16,1415.8468,-1693.0602,13.5469, 32, 0xE6E6E6E6); // - centro de licencas
SetPlayerMapIcon(playerid, 19,1310.1265,-1367.8122,13.5408, 32, 0xE6E6E6E6); // - paintball
SetPlayerMapIcon(playerid, 20,2350.0000,-1411.8000,23.9923, 32, 0xE6E6E6E6); // - UpCasa
SetPlayerMapIcon(playerid, 21,1205.9715,-1459.6737,13.3859, 32, 0xE6E6E6E6); // - 24-7's
SetPlayerMapIcon(playerid, 24,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6); //dp bope
SetPlayerMapIcon(playerid, 25,918.8992,-1252.3286,16.2109, 30, 0xE6E6E6E6); //dp pc
SetPlayerMapIcon(playerid, 26,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
SetPlayerMapIcon(playerid, 25,914.2606,-1003.7186,37.9976, 30 , 0xE6E6E6E6);//cp PF
SetPlayerMapIcon(playerid, 29,2644.5134,-2035.1990,14.8270, 27 , 0xE6E6E6E6);//TUNAR CARROS GANGS
SetPlayerMapIcon(playerid, 31,2104.2051,-1806.5345,13.5547, 29 , 0xE6E6E6E6);//PIZZARIA LS
SetPlayerMapIcon(playerid, 33,550.7012,-1278.5721,17.2482, 55 , 0xE6E6E6E6);//Carros Aluguel 1
SetPlayerMapIcon(playerid, 34,2158.1355,-1172.6049,23.8200, 55 , 0xE6E6E6E6);//Carros Aluguel 2
SetPlayerMapIcon(playerid, 35,1172.6062,-1323.6276,15.4031, 22 , 0xE6E6E6E6);//Hospital
SetPlayerMapIcon(playerid, 36,-2396.6487,-2194.7942,32.9527, 53 , 0xE6E6E6E6); // PISTA DE RALLY
SetPlayerMapIcon(playerid, 37,-1529.5208,476.5718,7.1875, 30 , 0xE6E6E6E6); // HQ EXERCITO
SetPlayerMapIcon(playerid, 38,975.4691,-1335.9618,13.5319, 49 , 0xE6E6E6E6); // BAR PAWNO
SetPlayerMapIcon(playerid, 8,1498.4795,-1582.9222,13.5469, 32 , 0xE6E6E6E6); //restaurante
SetPlayerMapIcon(playerid, 13,1206.6914,-1751.1108,13.5938, 32 , 0xE6E6E6E6); //aluguel de carros
SetPlayerMapIcon(playerid, 14,1327.8535,-1558.0070,13.5469, 32 , 0xE6E6E6E6);//phone company
SetPlayerMapIcon(playerid, 15,-33.7243,-1127.6255,1.0781, 32 , 0xE6E6E6E6);//gas company
SetPlayerMapIcon(playerid, 17,-2521.0059,-623.3312,132.7690, 32 , 0xE6E6E6E6);//eletricity company
SetPlayerMapIcon(playerid, 18,1636.6891,-1521.8157,13.5987, 32 , 0xE6E6E6E6);//pay'n spray
SetPlayerMapIcon(playerid, 22,844.6560,-1045.5557,25.4301, 32 , 0xE6E6E6E6);//cnn
SetPlayerMapIcon(playerid, 23,1374.7015,-1599.6871,13.5469, 32 , 0xE6E6E6E6);//car wash
SetPlayerMapIcon(playerid, 28,2281.9092,-2364.2791,13.5469, 32 , 0xE6E6E6E6);//kart
SetPlayerMapIcon(playerid, 30,931.9179,-1071.1412,24.2962, 32 , 0xE6E6E6E6);//cemiterio
SetPlayerMapIcon(playerid, 32,1022.5547,-1121.6744,23.8720, 32 , 0xE6E6E6E6); //cassino
SetPlayerMapIcon(playerid, 39,1577.2410,-1474.7906,14.2203, 43 , 0xE6E6E6E6); //cocaina
SetPlayerMapIcon(playerid, 44,1892.746704,-2244.098876,13.546899, 32 , 0xE6E6E6E6); //aeroporto
SetPlayerMapIcon(playerid, 45,-1968.559814,296.269592,35.171901, 32 , 0xE6E6E6E6); //wang cars
SetPlayerMapIcon(playerid, 46,1330.193603,-984.074523,33.896598, 32 , 0xE6E6E6E6); //aluguel de carros 2
SetPlayerMapIcon(playerid, 47,1703.2197,-1470.1509,13.5469, 32 , 0xE6E6E6E6); //produtos
SetPlayerMapIcon(playerid, 48,1272.3673,-1124.3743,24.1633, 32 , 0xE6E6E6E6); //trocar interior
SetPlayerMapIcon(playerid, 49,154.1630,-1946.4764,5.2996, 32 , 0xE6E6E6E6); //condominio vip praia
if(donoestacao == 0)
{
GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
}
if(donoestacao == 12)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
}
if(donoestacao == 13)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
}
if(donoestacao == 11)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_PF);
}
if(donocasarao == 0)
{
GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
}
if(donocasarao == 12)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
}
if(donocasarao == 13)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
}
if(donocasarao == 11)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_PF);
}
if(donoPark == 0)
{
GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
}
if(donoPark == 14)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
}
if(donoPark == 17)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
}
if(donoPark == 18)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
}
if(donoPark == 5)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
}
if(donoPark == 2)
{
GangZoneShowForPlayer(playerid, GZPark, COR_BOPE);
}
if(donoPark == 21)
{
GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
}
if(donoPark == 21)
{
GangZoneShowForPlayer(playerid, GZPark, COR_HELLS);
}
if(donoPark == 22)
{
GangZoneShowForPlayer(playerid, GZPark, COR_MONGOLS);
}
if(donoPark == 23)
{
GangZoneShowForPlayer(playerid, GZPark, COR_SONS);
}
if(donoPark == 20)
{
GangZoneShowForPlayer(playerid, GZPark, 0xCCFF99AA);
}
if(donoCemiterio == 0)
{
GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
}
if(donoCemiterio == 14)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
}
if(donoCemiterio == 17)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
}
if(donoCemiterio == 18)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
}
if(donoCemiterio == 5)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
}
if(donoCemiterio == 2)
{
GangZoneShowForPlayer(playerid, GZPark, COR_BOPE);
}
if(donoCemiterio == 21)
{
GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
}
if(donoCemiterio == 21)
{
GangZoneShowForPlayer(playerid, GZPark, COR_HELLS);
}
if(donoCemiterio == 22)
{
GangZoneShowForPlayer(playerid, GZPark, COR_MONGOLS);
}
if(donoCemiterio == 23)
{
GangZoneShowForPlayer(playerid, GZPark, COR_SONS);
}
if(donoCemiterio == 20)
{
GangZoneShowForPlayer(playerid, GZPark, 0xCCFF99AA);
}
if(donoPosto == 0)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, 0xC0C0C0AA);
}
if(donoPosto == 21)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, COR_HELLS);
}
if(donoPosto == 22)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, COR_MONGOLS);
}
if(donoPosto == 23)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, COR_SONS);
}
if(donoPosto == 2)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, COR_BOPE);
}
if(donoPosto == 25)
{
Atualizar3Dtexts();//desbuga as inf de dono do posto
GangZoneShowForPlayer(playerid, GZPosto, COR_TRIAD);
}
if(donoShop == 0)
{
GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
}
if(donoShop == 14)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_GROVE_COLOR);
}
if(donoShop == 17)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_BALLAS_COLOR);
}
if(donoShop == 18)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_VAGOS_COLOR);
}
if(donoShop == 5)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_AZTECAS_COLOR);
}
if(donoShop == 2)
{
GangZoneShowForPlayer(playerid, GZShop, COR_BOPE);
}
if(donoShop == 21)
{
GangZoneShowForPlayer(playerid, GZShop, COR_HELLS);
}
if(donoShop == 22)
{
GangZoneShowForPlayer(playerid, GZShop, COR_MONGOLS);
}
if(donoShop == 23)
{
GangZoneShowForPlayer(playerid, GZShop, COR_SONS);
}
if(donoShop == 19)
{
GangZoneShowForPlayer(playerid, GZShop, 0xF60000AA);
}
if(donoShop == 20)
{
GangZoneShowForPlayer(playerid, GZShop, 0xCCFF99AA);
}
if(donoShop == 25)
{
GangZoneShowForPlayer(playerid, GZShop, COR_DRIFT);
}
if(donoskate == 0)
{
GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
}
if(donoskate == 14)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
}
if(donoskate == 17)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
}
if(donoskate == 18)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
}
if(donoskate == 5)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
}
if(donoskate == 2)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_BOPE);
}
if(donoskate == 1)
{
GangZoneShowForPlayer(playerid, GZSkate, GCOP_COLOR);
}
if(donoskate == 21)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_HELLS);
}
if(donoskate == 22)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_MONGOLS);
}
if(donoskate == 23)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_SONS);
}
if(donoskate == 19)
{
GangZoneShowForPlayer(playerid, GZSkate, 0xF60000AA);
}
if(donoskate == 20)
{
GangZoneShowForPlayer(playerid, GZSkate, 0xCCFF99AA);
}
if(donoskate == 25)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_DRIFT);
}
ClearChatbox(playerid, 100);
if(fexist(string2))
{
gPlayerConta[playerid] = 1;
}
else
{
gPlayerConta[playerid] = 0;
}
new connecting_ip[32+1];
GetPlayerIp(playerid,connecting_ip,32);
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if(num_players_on_ip > MAX_IPSCONNECT)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("MAXIPs: Player ID(%d) Limite IP: %d, IP %s Banido!", playerid, MAX_IPSCONNECT, connecting_ip);
format(gstring, sizeof(gstring), "AntiAttack:{80E3FF}%s{E84F33}[ID: {80E3FF}%d{E84F33}] Foi acusado ser ser Um BotAttack e Foi banido!",sendername,playerid);
ABroadCast(COLOR_LIGHTRED,gstring,1);
Ban(playerid);
return 1;
}
return 1;
}