pawn Код:
public OnPlayerConnect(playerid)
{
new SSSTRING[128];
EmGuerra[playerid] = 0;
XiterArma[playerid] = 1;
DonoBalao[playerid] = 0;
NaoPodeLogar[playerid] = 0;
ComecouConversao2[playerid] = 0;
ComecouConversao[playerid] = 0;
EstaNoEvento[playerid] = 0;
JaDeslogado[playerid] = 0;
NaCamera[playerid] = 0;
FoiDesban[playerid] = 0;
bolaa[playerid] = 0;
TextDrawHideForPlayer(playerid,txtAnimHelper);
TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
pMaxBR[playerid] = 0;
SetPlayerCameraPos( playerid, -2864.7883, 264.9134, 23.1133 );
SetPlayerCameraLookAt( playerid, -2864.4394, 254.9195, 20.8638 );
XXAirBreak[playerid] += 3;
SetPlayerPos(playerid, -2870.0090,272.1401,5.6831);
SetPlayerInterior(playerid, 0);
GranaEvento[playerid] = 0;
XXAirBreak[playerid] += 3;
KillTimer(TimerSS[playerid]);
TextDrawShowForPlayer(playerid, textlife[playerid]);
TextDrawShowForPlayer(playerid, textcolete[playerid]);
TextDrawShowForPlayer(playerid, Reloginho1);
TextDrawShowForPlayer(playerid, Reloginho2);
TextDrawShowForPlayer(playerid, Reloginho3);
TextDrawShowForPlayer(playerid, forum);
TextDrawShowForPlayer(playerid, forum2);
RemovePlayerAttachedObject(playerid, OBJCAPACETE);
StopPlayerHoldingObject(playerid);
RemovePlayerAttachedObject(playerid, pObject[playerid][oslot]);
pObject[playerid][oslot] = -1;
pObject[playerid][slotreserved] = false;
Lang[playerid] = 0;
//=========================================================================================
FilaAtendimento[playerid] = 999;
XXAirBreak[playerid] = 0;
TempoAtendimento2[playerid] = 0;
//DP DA PR
TextDrawShowForPlayer(playerid, Hidealto);
TextDrawShowForPlayer(playerid, Hidebaixo);
new nome2[24], str50[50];
GetPlayerName(playerid, nome2, 24);
format(str50, sizeof str50, "%s - Arara", nome2);
if(DOF2_IsSet("Araras.txt", str50))
{
AraraInfo[playerid][Arara] = bool:DOF2_GetBool("Araras.txt", str50);
format(str50, sizeof str50, "%s - Racao", nome2);
AraraInfo[playerid][Racao] = bool:DOF2_GetBool("Araras.txt", str50);
format(str50, sizeof str50, "%s - Grande", nome2);
AraraInfo[playerid][Grande] = DOF2_GetInt("Araras.txt", str50);
if(AraraInfo[playerid][Arara])
{
AraraInfo[playerid][Timer] = SetTimerEx("Crescimento", 300000, true, "i", playerid);
SendClientMessage(playerid, 0xFFFF00FF, "Alimente sua arara ou ela morrerб.");
SetPlayerAttachedObject(playerid,4, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
VidaArara[playerid] = 5;
}
}
//===================================================================================
new connecting_ip[32+1];
GetPlayerIp(playerid,connecting_ip,32);
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP)
{
Ban(playerid);
return 1;
}
IPlog(playerid);
gActivePlayers[playerid]++;
numplayers++;
strmid(BanInfo[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 256);
strmid(BanInfo[playerid][pAdmBan], "Nenhum", 0, strlen("Nenhum"), 256);
strmid(BanInfo[playerid][pData], "0/0/0", 0, strlen("0/0/0"), 256);
strmid(BanInfo[playerid][pHora], "0:0:0", 0, strlen("0:0:0"), 256);
pban[playerid] = 0;
Reduzido[playerid] = 0; // pedagio
ReduzidoBot[playerid] = 0; //bot
var1[playerid] = 0;
EmDialog[playerid] = 0;
gmsg[playerid] = 0;
PlayerInfo[playerid][pMercenarioM] = 0;
PlayerInfo[playerid][pGun1] = 0;
TruckMission[playerid] = 0;
PlayerInfo[playerid][pGun2] = 0;
PlayerInfo[playerid][pGun3] = 0;
PlayerInfo[playerid][pGun4] = 0;
storeexit[playerid] = 0;
PlayerInfo[playerid][pGrampo] = INVALID_PLAYER_ID;
barexit[playerid] = 0;
lotericaexit[playerid] = 0;
away[playerid] = 0;
pCofreOrg[playerid] = 0;
InviteOffer[playerid] = 999;
InviteJob[playerid] = 0;
cdivulgar[playerid] = 0;
PlayerInfo[playerid][pGun5] = 0;
mudandonick[playerid] = 0;
VozDePrisao[playerid] = 0;
gpTimes[playerid] = 0;
gPlayerUsingLoopingAnim[playerid] = 0;
PlayerLogado[playerid] = 1;
PlayerInfo[playerid][pVeiculo] = 0;
PlayerInfo[playerid][pVeiculo2] = 0;
PlayerInfo[playerid][pVeiculo3] = 0;
PlayerInfo[playerid][pVeiculo4] = 0;
PlayerInfo[playerid][pVeiculo5] = 0;
PlayerInfo[playerid][pGun6] = 0;
PlayerInfo[playerid][pGun7] = 0;
PlayerInfo[playerid][pGun8] = 0;
PlayerInfo[playerid][pGun9] = 0;
PlayerInfo[playerid][pGun10] = 0;
gPlayerTerminal[playerid] = 0;
PlayerInfo[playerid][pGun11] = 0;
PlayerInfo[playerid][pGun12] = 0;
PlayerInfo[playerid][pAmmo1] = 0;
PlayerInfo[playerid][pCheckInfoOrg] = 0;
PlayerInfo[playerid][pAmmo2] = 0;
gSpamCount[playerid][0] = 0;
gSpamCount[playerid][1] = 0;
PlayerInfo[playerid][pAmmo3] = 0;
PlayerInfo[playerid][pAmmo4] = 0;
PlayerInfo[playerid][pAmmo5] = 0;
PlayerInfo[playerid][pAmmo6] = 0;
PlayerInfo[playerid][pAmmo7] = 0;
PlayerInfo[playerid][pAmmo8] = 0;
PlayerInfo[playerid][pAmmo9] = 0;
PlayerInfo[playerid][pAmmo10] = 0;
PlayerInfo[playerid][pAmmo11] = 0;
PlayerInfo[playerid][pAmmo12] = 0;
HidePM[playerid] = 0;
PlayerInfo[playerid][pCaixinha] = 0;
PlayerUpdateInfo[playerid][posxafk] = 0; PlayerUpdateInfo[playerid][posyafk] = 0; PlayerUpdateInfo[playerid][poszafk] = 0;
PlayerUpdateInfo[playerid][angleafk] = 0; PlayerInactivity[playerid] = 0;
SelectChar[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;
KickPlayer[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; MaapIconsShown[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;
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;
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;
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;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
Locator[playerid] = 0;
WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
PlayerInfo[playerid][pPHousekey] = 500;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
MudarNickAceito[playerid] = 0;
InAFoodPlace[playerid] = 0;
OnEquipado[playerid] = 0;
OnMafiaEquipado[playerid] = 0;
BHVInfo[playerid][PLojaA1] = 0;
BHVInfo[playerid][PLojaA2] = 0;
BHVInfo[playerid][PpLoja247] = 0;
BHVInfo[playerid][PpLoja2472] = 0;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pHelper] = 0;
PlayerInfo[playerid][pVIP] = 0;
PlayerInfo[playerid][pTimeVIP] = 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][pEmprego] = 0;
PlayerInfo[playerid][pSalario] = 0;
PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pHeadValueT] = 0;
PlayerInfo[playerid][pCapacete] = 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][pCreditos] = 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][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][pOrigem] = 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] = 0;
admtrampando[playerid] = 0;
admhide[playerid] = 0;
helperhide[playerid] = 0;
helpertrampando[playerid] = 0;
new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPHousekey] = 500;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pBoatLic] = 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;
PlayerInfo[playerid][pOrigem] = 1;
strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
ClearCrime(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
TextShow[playerid] = false;
HouseEntered[playerid] = 500;
new string2[64];
format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
SetPlayerMapIcon(playerid, 1,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);//dp ls
SetPlayerMapIcon(playerid, 2,1481.0386,-1772.3120,18.7958, 56, 0xE6E6E6E6);//Prefeitura
SetPlayerMapIcon(playerid, 3,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
SetPlayerMapIcon(playerid, 4,1456.9010,-1137.6941,23.9617, 45, 0xE6E6E6E6);//ZIP
SetPlayerMapIcon(playerid, 5,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
SetPlayerMapIcon(playerid, 6,1070.0182,-1874.0474,13.5469, 18, 0xE6E6E6E6);//Ammu Nation
SetPlayerMapIcon(playerid, 7,1415.8468,-1693.0602,13.5469, 32, 0xE6E6E6E6); // sex shop
SetPlayerMapIcon(playerid, 8,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6); //dp bope
SetPlayerMapIcon(playerid, 9,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
SetPlayerMapIcon(playerid, 10,861.3652,-1250.7167,14.7678, 30 , 0xE6E6E6E6);//cp PF
SetPlayerMapIcon(playerid, 11,-1989.4950,1039.8499,55.7266, 18 , 0xE6E6E6E6); //wang cars
SetPlayerMapIcon(playerid, 12,1703.2197,-1470.1509,13.5469, 51 , 0xE6E6E6E6); //produtos
SetPlayerMapIcon(playerid, 13,1833.6124,-1842.4968,13.5781, 17 , 0xE6E6E6E6); //mercado
SetPlayerMapIcon(playerid, 14,1352.4357,-1759.0243,13.5078, 17 , 0xE6E6E6E6); //mercado
SetPlayerMapIcon(playerid, 15,1837.0278,-1682.3890,13.3233, 48 , 0xE6E6E6E6); //alhambra
SetPlayerMapIcon(playerid, 16,2027.6760,-1405.0399,16.7958, 22 , 0xE6E6E6E6); //hospital LS
SetPlayerMapIcon(playerid, 17,2793.6682,-1087.5436,30.7188, 56, 0xE6E6E6E6);//pref east beach
SetPlayerMapIcon(playerid, 18,1327.6051,-1559.1753,13.5397, 32, 0xE6E6E6E6); // sex shop
//=============== cassinos ===============================================
SetPlayerMapIcon(playerid, 19,BizzInfo[5][bEntranceX],BizzInfo[5][bEntranceY],BizzInfo[5][bEntranceZ], 45, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 20,BizzInfo[9][bEntranceX],BizzInfo[9][bEntranceY],BizzInfo[9][bEntranceZ], 12, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 21,BizzInfo[10][bEntranceX],BizzInfo[10][bEntranceY],BizzInfo[10][bEntranceZ], 12, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 22,BizzInfo[11][bEntranceX],BizzInfo[11][bEntranceY],BizzInfo[11][bEntranceZ], 12, 0xE6E6E6E6);
//============================================================================
//=============== sbizz ===============================================
SetPlayerMapIcon(playerid, 23,SBizzInfo[0][sbEntranceX],SBizzInfo[0][sbEntranceY],SBizzInfo[0][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 24,SBizzInfo[2][sbEntranceX],SBizzInfo[2][sbEntranceY],SBizzInfo[2][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 25,SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 26,SBizzInfo[12][sbEntranceX],SBizzInfo[12][sbEntranceY],SBizzInfo[12][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 27,SBizzInfo[13][sbEntranceX],SBizzInfo[13][sbEntranceY],SBizzInfo[13][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 28,SBizzInfo[18][sbEntranceX],SBizzInfo[18][sbEntranceY],SBizzInfo[18][sbEntranceZ], 5, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 29,SBizzInfo[21][sbEntranceX],SBizzInfo[21][sbEntranceY],SBizzInfo[21][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 30,SBizzInfo[22][sbEntranceX],SBizzInfo[22][sbEntranceY],SBizzInfo[22][sbEntranceZ], 63, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 31,SBizzInfo[23][sbEntranceX],SBizzInfo[23][sbEntranceY],SBizzInfo[23][sbEntranceZ], 63, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 32,SBizzInfo[24][sbEntranceX],SBizzInfo[24][sbEntranceY],SBizzInfo[24][sbEntranceZ], 32, 0xE6E6E6E6);
SetPlayerMapIcon(playerid, 33,914.1041,-1037.8167,31.8984, 30, 0xE6E6E6E6);//HQ Policia Rodoviaria
if(!NomeCorreto(PlayerName(playerid)))
{
SendClientMessage(playerid, -1, "Seu nome nгo estб no formato correto! USE ex: Nome_Sobrenome");
SetTimerEx("Kickado", 8000, 0, "i", playerid);
NaoPodeLogar[playerid] = 1;
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
SetPlayerCameraPos( playerid, -2864.7883, 264.9134, 23.1133 );
SetPlayerCameraLookAt( playerid, -2864.4394, 254.9195, 20.8638 );
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, -2870.0090,272.1401,5.6831);
SetPlayerInterior(playerid, 0);
new plname[MAX_PLAYER_NAME];
PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
ClearChatbox(playerid, 10);
GetPlayerName(playerid, plname, sizeof(plname));
format(gstring, 64, "Contas/%s.ini", plname);
if(fexist(gstring))
{
format(gstring,128,"*** Bem vindo novamente %s ***\n*** Vocк esta registrado ***\n*** Digite sua senha para logar ***",PlayerName(playerid));
SendClientMessage(playerid, COLOR_AZULBB, "Vocк estб registrado, digite sua senha para logar.");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Logando...",gstring, "Logar", "Sair");
TextDrawShowForPlayer(playerid, entrada);
TextDrawShowForPlayer(playerid, entrada2);
GameTextForPlayer(playerid, "~y~sa-mp versao: ~b~~h~~h~~h~0.3x", 1000, 6);
}
else
{
if(NaoPodeLogar[playerid] == 0)
{
format(gstring,128,"*** Bem vindo %s ***\n*** Vocк nгo esta registrado no servidor ***\n*** Digite uma senha para registrar-se ***",PlayerName(playerid));
SendClientMessage(playerid, COLOR_AZULBB, "Vocк nгo estб registrado, digite uma senha para registrar-se!");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Registrando...",gstring, "Registrar", "Sair");
TextDrawShowForPlayer(playerid, entrada);
TextDrawShowForPlayer(playerid, entrada2);
}
}
if(!NomeCorreto(PlayerName(playerid)))
{
SendClientMessage(playerid, -1, "Seu nome nгo estб no formato correto para poder jogar neste servidor.");
SendClientMessage(playerid, -1, "Vocк precisa usar EX: Nome_Sobrenome, Jameson_Douglas, etc..");
SendClientMessage(playerid, -1, "Vocк serб kickado em alguns segundos!!");
TextDrawShowForPlayer(playerid, TextKick[playerid]);
}
SetPlayerCameraPos( playerid, -2864.7883, 264.9134, 23.1133 );
SetPlayerCameraLookAt( playerid, -2864.4394, 254.9195, 20.8638 );
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, -2870.0090,272.1401,5.6831);
SetPlayerInterior(playerid, 0);
}
//======== estaзгo ==========
if(donoestacao == 0)
{
GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
}
if(donoestacao == 13)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
}
if(donoestacao == 12)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
}
if(donoestacao == 11)
{
GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_PF);
}
if(donoestacao == 20)
{
GangZoneShowForPlayer(playerid, GZEstacao, COR_DRI);
}
if(donoestacao == 21)
{
GangZoneShowForPlayer(playerid, GZEstacao, COR_LOW);
}
if(donoestacao == 16)
{
GangZoneShowForPlayer(playerid, GZEstacao, COR_PR);
}
if(donoestacao == 22)
{
GangZoneShowForPlayer(playerid, GZEstacao, COR_SONS);
}
if(donoestacao == 23)
{
GangZoneShowForPlayer(playerid, GZEstacao, COR_MAYANS);
}
//======================= CASARГO =====================
if(donocasarao == 0)
{
GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
}
if(donocasarao == 13)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
}
if(donocasarao == 12)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
}
if(donocasarao == 11)
{
GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_PF);
}
if(donocasarao == 20)
{
GangZoneShowForPlayer(playerid, GZCasarao, COR_DRI);
}
if(donocasarao == 21)
{
GangZoneShowForPlayer(playerid, GZCasarao, COR_LOW);
}
if(donocasarao == 16)
{
GangZoneShowForPlayer(playerid, GZCasarao, COR_PR);
}
if(donocasarao == 22)
{
GangZoneShowForPlayer(playerid, GZCasarao, COR_SONS);
}
if(donocasarao == 23)
{
GangZoneShowForPlayer(playerid, GZCasarao, COR_MAYANS);
}
// ============================= MORRO ====================
if(donomorro == 0)
{
GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
}
if(donomorro == 1)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_PM);
}
if(donomorro == 2)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_BOPE);
}
if(donomorro == 5)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_AZTECAS);
}
if(donomorro == 14)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_GRO);
}
if(donomorro == 17)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_BALLAS);
}
if(donomorro == 18)
{
GangZoneShowForPlayer(playerid, GZMorro, TEAM_VAGOS_COLOR);
}
if(donomorro == 19)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_CV);
}
if(donomorro == 10)
{
GangZoneShowForPlayer(playerid, GZMorro, COR_PCC);
}
// ======================= Pista de Skate ==========
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 == 1)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_PM);
}
if(donoskate == 10)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_PCC);
}
if(donoskate == 19)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_CV);
}
if(donoskate == 2)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_ROTA);
}
// ======================= Represa =================
if(donorepresa == 0)
{
GangZoneShowForPlayer(playerid, GZRepresa, 0xC0C0C0AA);
}
if(donorepresa == 3)
{
GangZoneShowForPlayer(playerid, GZRepresa, COR_EXE);
}
if(donorepresa == 6)
{
GangZoneShowForPlayer(playerid, GZRepresa, COR_FARC);
}
if(donorepresa == 15)
{
GangZoneShowForPlayer(playerid, GZRepresa, COR_AL);
}
// ============== parque gleen =======================
if(donopark == 0)
{
GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
}
if(donopark == 1)
{
GangZoneShowForPlayer(playerid, GZPark, COR_PM);
}
if(donopark == 2)
{
GangZoneShowForPlayer(playerid, GZPark, COR_BOPE);
}
if(donopark == 5)
{
GangZoneShowForPlayer(playerid, GZPark, COR_AZTECAS);
}
if(donopark == 11)
{
GangZoneShowForPlayer(playerid, GZPark, COLORGZ_PF);
}
if(donopark == 14)
{
GangZoneShowForPlayer(playerid, GZPark, COR_GRO);
}
if(donopark == 17)
{
GangZoneShowForPlayer(playerid, GZPark, COR_BALLAS);
}
if(donopark == 18)
{
GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
}
if(donopark == 19)
{
GangZoneShowForPlayer(playerid, GZPark, COR_CV);
}
if(donopark == 16)
{
GangZoneShowForPlayer(playerid, GZPark, COR_PR);
}
if(donopark == 22)
{
GangZoneShowForPlayer(playerid, GZPark, COR_SONS);
}
if(donopark == 23)
{
GangZoneShowForPlayer(playerid, GZPark, COR_MAYANS);
}
if(donopark == 20)
{
GangZoneShowForPlayer(playerid, GZPark, COR_DRI);
}
if(donopark == 21)
{
GangZoneShowForPlayer(playerid, GZPark, COR_LOW);
}
if(donopark == 13)
{
GangZoneShowForPlayer(playerid, GZPark, COR_YAK);
}
if(donopark == 12)
{
GangZoneShowForPlayer(playerid, GZPark, COR_COSA);
}
if(fexist(string2))
{
gPlayerConta[playerid] = 1;
}
else
{
gPlayerConta[playerid] = 0;
}
new IPDoCara[16];
GetPlayerIp(playerid, IPDoCara, sizeof IPDoCara);
format(SSSTRING, sizeof(SSSTRING), "AdmCmd: %s (IP: %s) conectou-se.", PlayerName(playerid),IPDoCara);
ABroadCast(COLOR_LIGHTRED, SSSTRING, 1);
new stringban2[128];
format(stringban2, sizeof(stringban2), "IPsBanidos/%s.ini", IPDoCara);
if(fexist(stringban2))
{
SetTimerEx("BanAuto", 9500, 0, "i", playerid);
NaoPodeLogar[playerid] = 1;
}
new stringban[128];
format(stringban, sizeof(stringban), "Banidos/%s.ini", PlayerName(playerid));
if(fexist(stringban))
{
OnPlayerAT(playerid);
SetTimerEx("BanAuto", 9500, 0, "i", playerid);
NaoPodeLogar[playerid] = 1;
}
new stringban9[128];
format(stringban9, sizeof(stringban9), "BanidosTemp/%s.ini", PlayerName(playerid));
if(fexist(stringban9))
{
OnPlayerAT(playerid);
}
//drifters
RemoveBuildingForPlayer(playerid, 17772, 2870.2422, -1589.3906, 16.5625, 0.25);
RemoveBuildingForPlayer(playerid, 17550, 2870.2422, -1589.3906, 16.5625, 0.25);
//pr
RemoveBuildingForPlayer(playerid, 1307, 937.9375, -986.5391, 37.0313, 0.25);
//prisao exercito
RemoveBuildingForPlayer(playerid, 3744, 2771.0703, -2372.4453, 15.2188, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2774.7969, -2386.8516, 15.2188, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2774.7969, -2386.8516, 15.2188, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2771.0703, -2372.4453, 15.2188, 0.25);
//===== Roda Gigante
RemoveBuildingForPlayer(playerid, 6463, 389.7734, -2028.4688, 19.8047, 0.5);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3828, 29.9531, 50);
RemoveBuildingForPlayer(playerid, 6298, 389.7734, -2028.4688, 19.8047, 0.5);
RemoveBuildingForPlayer(playerid, 6461, 389.7734, -2028.5000, 20.1094, 0.5);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5000, 32.2266, 50);
return true;
}
forward CheckDesbanAuto(playerid);
public CheckDesbanAuto(playerid)
{
new string3[128];
new string4[128];
new ANO, MES, DIA;
new ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
format(string3, sizeof(string3), "BanidosTemp/%s.ini", PlayerName(playerid));
format(string4, sizeof(string4), "IPsBanidosTemp/%s.ini", ip);
if(fexist(string3))
{
getdate(ANO, MES, DIA);
if(DIA >= PlayerInfo[playerid][pDiaBanTemp] && MES >= PlayerInfo[playerid][pMesBanTemp] && ANO >= PlayerInfo[playerid][pAnoBanTemp])
{
DOF2_RemoveFile(string3);
FoiDesban[playerid] = 1;
NaoPodeLogar[playerid] = 0;
if(fexist(string4))
{
NaoPodeLogar[playerid] = 0;
DOF2_RemoveFile(string4);
}
}
else
{
NaoPodeLogar[playerid] = 1;
ForceClassSelection(playerid);
SetTimerEx("BanAuto2", 1300, 0, "i", playerid);
}
}
else
{
NaoPodeLogar[playerid] = 0;
}
if(fexist(string4))
{
NaoPodeLogar[playerid] = 1;
ForceClassSelection(playerid);
SetTimerEx("BanAuto2", 1300, 0, "i", playerid);
}
else
{
NaoPodeLogar[playerid] = 0;
}
return true;
}