Advertisement
Death_Gm

BUG

May 6th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 28.99 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3.     WaitForBuf[playerid] = false;
  4.     OldCar[playerid] = INVALID_VEHICLE_ID;
  5.     PassengerSeat[playerid] = 0;
  6.     DisablePlayerCheckpoint(playerid);
  7.     KillTimer(timer[playerid]);
  8.     Atendimentos[playerid] = 1;
  9.     FilaAtendimento[playerid] = 999;
  10.     TempoAtendimento2[playerid] = 0;
  11.     if(IsPlayerNPC(playerid))
  12.     {
  13.         SpawnPlayer(playerid);
  14.         return 1;
  15.     }
  16.     RemoveBuildingForPlayer(playerid, 1215, 1690.7969, -2246.5234, -3.1563, 0.25);
  17.     //DEtran nova
  18.     RemoveBuildingForPlayer(playerid, 1438, -88.1094, -1598.7188, 1.5000, 0.25);
  19.     RemoveBuildingForPlayer(playerid, 1370, -86.5703, -1595.1406, 2.1563, 0.25);
  20.     RemoveBuildingForPlayer(playerid, 3173, -93.0938, -1593.5234, 1.5547, 0.25);
  21.     RemoveBuildingForPlayer(playerid, 1462, -93.6797, -1588.0781, 1.5078, 0.25);
  22.     RemoveBuildingForPlayer(playerid, 3174, -75.1719, -1596.3047, 1.6797, 0.25);
  23.     RemoveBuildingForPlayer(playerid, 1438, -79.2578, -1593.4688, 1.5000, 0.25);
  24.     RemoveBuildingForPlayer(playerid, 1447, -74.8203, -1607.2578, 3.4609, 0.25);
  25.     RemoveBuildingForPlayer(playerid, 1370, -72.4141, -1596.7734, 2.1563, 0.25);
  26.     RemoveBuildingForPlayer(playerid, 1370, -74.1875, -1583.9922, 2.1563, 0.25);
  27.     RemoveBuildingForPlayer(playerid, 3175, -101.8203, -1577.6875, 1.4063, 0.25);
  28.     RemoveBuildingForPlayer(playerid, 1457, -91.0156, -1576.6250, 3.1953, 0.25);
  29.     RemoveBuildingForPlayer(playerid, 1370, -100.8203, -1580.4219, 2.1563, 0.25);
  30.     RemoveBuildingForPlayer(playerid, 1438, -93.2109, -1569.4844, 1.5000, 0.25);
  31.     RemoveBuildingForPlayer(playerid, 3175, -77.9375, -1581.3125, 1.4063, 0.25);
  32.     RemoveBuildingForPlayer(playerid, 1472, -75.5859, -1581.0703, 2.0234, 0.25);
  33.     RemoveBuildingForPlayer(playerid, 727, -73.8203, -1569.1719, 1.3516, 0.25);
  34.     RemoveBuildingForPlayer(playerid, 3173, -90.6406, -1562.9375, 1.5547, 0.25);
  35.     RemoveBuildingForPlayer(playerid, 1438, -77.0625, -1542.6016, 1.6172, 0.25);
  36.     RemoveBuildingForPlayer(playerid, 1412, -70.4141, -1604.3750, 3.4609, 0.25);
  37.     RemoveBuildingForPlayer(playerid, 1447, -66.2891, -1601.2266, 3.2109, 0.25);
  38.     RemoveBuildingForPlayer(playerid, 1457, -71.0000, -1574.0859, 3.1953, 0.25);
  39.     RemoveBuildingForPlayer(playerid, 3175, -64.3828, -1572.2109, 1.4063, 0.25);
  40.     RemoveBuildingForPlayer(playerid, 1438, -62.2734, -1569.2891, 1.5000, 0.25);
  41.     RemoveBuildingForPlayer(playerid, 1370, -61.6641, -1573.4609, 2.1563, 0.25);
  42.     RemoveBuildingForPlayer(playerid, 1413, -53.8125, -1585.8594, 3.0859, 0.25);
  43.     RemoveBuildingForPlayer(playerid, 1438, -56.0625, -1575.6563, 1.5000, 0.25);
  44.     RemoveBuildingForPlayer(playerid, 1447, -50.8281, -1581.7656, 3.1641, 0.25);
  45.     RemoveBuildingForPlayer(playerid, 1412, -47.5547, -1577.6484, 3.1641, 0.25);
  46.     RemoveBuildingForPlayer(playerid, 1412, -44.5625, -1573.3672, 3.1641, 0.25);
  47.     RemoveBuildingForPlayer(playerid, 1370, -64.0000, -1550.2578, 2.1563, 0.25);
  48.     RemoveBuildingForPlayer(playerid, 3175, -55.2813, -1557.4531, 1.4063, 0.25);
  49.     RemoveBuildingForPlayer(playerid, 1370, -56.1563, -1560.4609, 2.1563, 0.25);
  50.     RemoveBuildingForPlayer(playerid, 727, -49.3984, -1560.0078, 1.4609, 0.25);
  51.     RemoveBuildingForPlayer(playerid, 3174, -44.2891, -1561.3125, 1.6797, 0.25);
  52.     RemoveBuildingForPlayer(playerid, 1370, -43.7422, -1563.6875, 2.1563, 0.25);
  53.     RemoveBuildingForPlayer(playerid, 3173, -67.2344, -1544.2188, 1.5547, 0.25);
  54. //=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==( INICIO DO GET IP )=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-==//
  55.     //IPlog(playerid);
  56. //=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==( FIM DO GET IP )=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-===//
  57.     TextDrawShowForPlayer(playerid, forum[playerid]);
  58.     TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
  59.     TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
  60.  
  61.     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
  62.     || 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
  63.     || 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)
  64.     {
  65.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "Você Foi Kickado por usar algum nome incorreto!");
  66.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu nome deve ser no formato Nome_Sobrenome Ex: AuTo_BooT");
  67.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "Troque-o e volte, Obrigado.");
  68.         format(gstring,64,"Players/%s.ini",pNome(playerid));
  69.         Kick(playerid);
  70.         dini_Remove(gstring);
  71.         return 1;
  72.     }
  73.     if(strcmp("AuTo_BooT",PlayerName(playerid),true )==0)
  74.     {
  75.         SendClientMessage(playerid,COLOR_AZULBB,"Não tente imitar AuTo_BooT ele não gosta disso!");
  76.         SendClientMessage(playerid,COLOR_AZULBB,"AuTo_BooT te kickou!");
  77.         Kick(playerid);
  78.     }
  79.     if(strcmp("Mr_JimmY",PlayerName(playerid),true)==0)
  80.     {
  81.         format(gstring, 128, "Herik patrao ta logando ;D (ID:%d) Fikisperto!!!",PlayerName(playerid),playerid);
  82.         SendMessageToOthersAdmins(playerid, COR_LOKA, gstring);
  83.     }
  84.     if(strcmp("Mr_JimmY",PlayerName(playerid),true)==0)
  85.     {
  86.         format(gstring, 128, "JimmY patrao ta logando ;D (ID:%d) Fikisperto!!!",PlayerName(playerid),playerid);
  87.         SendMessageToOthersAdmins(playerid, COR_LOKA, gstring);
  88.     }
  89.     if(strcmp("justin_biber",PlayerName(playerid),true)==0)
  90.     {
  91.         Kick(playerid);
  92.     }
  93.     if(strcmp("con",PlayerName(playerid),true)==0)
  94.     {
  95.         Ban(playerid);
  96.     }
  97.     for(new i; i<sizeof(NicksProibidos); i++)
  98.     {
  99.         if(strcmp(NicksProibidos[i],PlayerName(playerid),true )==0)
  100.         {
  101.             SendClientMessage(playerid,COLOR_AZULBB,"Você está usando um nome que é proibido na BPH!");
  102.             SendClientMessage(playerid,COLOR_AZULBB,"Você foi banido!");
  103.             getdate(Ano, Mes, Dia);
  104.             SBan(playerid, "Pego Usando um nome que é proibido na BPH", "Automático");
  105.             banidos++;
  106.         }
  107.     }
  108.     //=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=====
  109.     gActivePlayers[playerid]++;
  110.     numplayers++;
  111.     strmid(BanInfo[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 256);
  112.     strmid(BanInfo[playerid][pAdmBan], "Nenhum", 0, strlen("Nenhum"), 256);
  113.     strmid(BanInfo[playerid][pData], "0/0/0", 0, strlen("0/0/0"), 256);
  114.     strmid(BanInfo[playerid][pHora], "0:0:0", 0, strlen("0:0:0"), 256);
  115.     pban[playerid] = 0;
  116.     Reduzido[playerid] = 0; // pedagio
  117.     ReduzidoBot[playerid] = 0; //bot
  118. //////////[ESTREAMER DE OBJETOS]///////////////////
  119.     for(new objectid; objectid<F_MAX_OBJECTS; objectid++)
  120.     {
  121.         ObjectInfo[objectid][ObjectCreated][playerid] = false;
  122.     }
  123.     OldX[playerid] = 999999999.99;
  124.     OldY[playerid] = 999999999.99;
  125.     OldZ[playerid] = 999999999.99;
  126.     RefreshObjects[playerid] = false;
  127. /////////////////////////////////////////////////
  128.     var1[playerid] = 0;
  129.     EmDialog[playerid] = 0;
  130.     gmsg[playerid] = 0;
  131.     PlayerInfo[playerid][pGun1] = 0;
  132.     votou[playerid] = true;
  133.     TruckMission[playerid] = 0;
  134.     PlayerInfo[playerid][pGun2] = 0;
  135.     PlayerInfo[playerid][pGun3] = 0;
  136.     PlayerInfo[playerid][pGun4] = 0;
  137. //  emguerra[playerid] = 0;
  138.     HaveTaser[playerid] = 0;
  139.     RemovePlayerAttachedObject(playerid, 0);
  140.     storeexit[playerid] = 0;
  141.     away[playerid] = 0;
  142.     pBancoDasOrgs[playerid] = 0;
  143.     TutTime[playerid] = 0;
  144.     InviteOffer[playerid] = 999;
  145.     InviteJob[playerid] = 0;
  146.     cdivulgar[playerid] = 0;
  147.     PlayerInfo[playerid][pGps] = 0;
  148.     PlayerInfo[playerid][GpsX] = 0;
  149.     PlayerInfo[playerid][GpsY] = 0;
  150.     PlayerInfo[playerid][GpsZ] = 0;
  151.     PlayerInfo[playerid][GpsSize] = 0;
  152.     PlayerInfo[playerid][pHelper] = 0;
  153.     PlayerInfo[playerid][pCaixinha] = 0;
  154.     PlayerInfo[playerid][pHelperTrabalhando] = 1;
  155.     PlayerInfo[playerid][pGun5] = 0;
  156.     mudandonick[playerid] = 0;
  157.     gpTimes[playerid] = 0;
  158.     PlayerInfo[playerid][pGun6] = 0;
  159.     PlayerInfo[playerid][pGun7] = 0;
  160.     PlayerInfo[playerid][pGun8] = 0;
  161.     PlayerInfo[playerid][pGun9] = 0;
  162.     PlayerInfo[playerid][pGun10] = 0;
  163.     gPlayerTerminal[playerid] = 0;
  164.     PlayerInfo[playerid][pGun11] = 0;
  165.     PlayerInfo[playerid][pGun12] = 0;
  166.     PlayerInfo[playerid][pAmmo1] = 0;
  167.     PlayerInfo[playerid][pCheckInfoOrg] = 0;
  168.     PlayerInfo[playerid][pAmmo2] = 0;
  169.     gSpamCount[playerid][0] = 0;
  170.     gSpamCount[playerid][1] = 0;
  171.     PlayerInfo[playerid][pAmmo3] = 0;
  172.     PlayerInfo[playerid][pAmmo4] = 0;
  173.     PlayerInfo[playerid][pAmmo5] = 0;
  174.     PlayerInfo[playerid][pAmmo6] = 0;
  175.     PlayerInfo[playerid][pAmmo7] = 0;
  176.     PlayerInfo[playerid][pAmmo8] = 0;
  177.     PlayerInfo[playerid][pAmmo9] = 0;
  178.     PlayerInfo[playerid][pAmmo10] = 0;
  179.     PlayerInfo[playerid][pAmmo11] = 0;
  180.     PlayerInfo[playerid][pAmmo12] = 0;
  181.     pRoadgang[playerid] = 0;
  182.     pRoadgang2[playerid] = 0;
  183.     pRoadgang3[playerid] = 0;
  184.     pRoadgang4[playerid] = 0;
  185.     pRoadgang5[playerid] = 0;
  186.     PlayerInfo[playerid][pRing] = 0;
  187.     PlayerUpdateInfo[playerid][posxafk] = 0; PlayerUpdateInfo[playerid][posyafk] = 0; PlayerUpdateInfo[playerid][poszafk] = 0;
  188.     PlayerUpdateInfo[playerid][angleafk] = 0; PlayerInactivity[playerid] = 0;
  189.     SelectChar[playerid] = 0; PhoneOnline[playerid] = 0; OfAssalto[playerid] = 999; precoassalto[playerid] = 0;
  190.     SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; SemBombas[playerid] = 0;
  191.     GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
  192.     AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
  193.     ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
  194.     KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
  195.     CP[playerid] = 0; Robbed[playerid] = 0; PlayerInfo[playerid][pSpawn] = 0;
  196.     CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
  197.     RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; MultaMessage[playerid] = 0;
  198.     SexOffer[playerid] = 999; SexPrice[playerid] = 0; MendigoOffer[playerid] = 999; MendigoPrice[playerid] = 0;
  199.     RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
  200.     TalkingLive[playerid] = 255; LiveOffer[playerid] = 999;
  201.     RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
  202.     DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
  203.     DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0;
  204.     DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0; ConnectedToNot[playerid] = 0; ConnectedToPCTRIAD[playerid] = 0;
  205.     JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; GotTri[playerid] = 0;
  206.     WantedPoints[playerid] = 0; SetPlayerWantedLevel(playerid, 0); GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
  207.     OnDuty[playerid] = 0; TestFishes[playerid] = 0;
  208.     BoxWaitTime[playerid] = 0; ChangePos2[playerid][1] = 0;
  209.     SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
  210.     BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
  211.     BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
  212.     FindTimePoints[playerid] = 0; FindTime[playerid] = 0; EmpregoDuty[playerid] = 0;
  213.     Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
  214.     Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
  215.     Unspec[playerid][sLocal] = 255; FishCornt[playerid] = 0; ConsumingMoney[playerid] = 0;
  216.     gLastCar[playerid] = 0;
  217.     gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
  218.     gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
  219.     gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
  220.     PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
  221.     StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
  222.     MatsHolding[playerid] = 0;
  223.     gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999; MechanicAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
  224.     PlayerInfo[playerid][pCash] = 1000; NoFuel[playerid] = 0;
  225.     HireCar[playerid] = 0; PlayersChannel[playerid] = 999;
  226.     TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
  227.     Locator[playerid] = 0;
  228.     WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
  229.     Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
  230.     ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
  231.     GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  232.     MudarNickAceito[playerid] = 0;
  233.     MudarSenhaAceito[playerid] = 0;
  234.     InAFoodPlace[playerid] = 0;
  235.     autorizacaofamilia[playerid] = 0;
  236.     TrazerTodos[playerid] = 0;
  237.     TrazerKart[playerid] = 0;
  238.     TrazerRally[playerid] = 0;
  239.     OnEquipado[playerid] = 0;
  240.     OnMafiaEquipado[playerid] = 0;
  241.     RodrigoInfo[playerid][PLojaA1] = 0;
  242.     RodrigoInfo[playerid][PLojaA2] = 0;
  243.     RodrigoInfo[playerid][PpLoja247] = 0;
  244.     RodrigoInfo[playerid][PpLoja2472] = 0;
  245.     PlayerInfo[playerid][pLevel] = 1;
  246.     PlayerInfo[playerid][pLocVeh] = 0;
  247.     PlayerInfo[playerid][pAdmin] = 0;
  248.     PlayerInfo[playerid][pVIP] = 0;
  249.     PlayerInfo[playerid][pTimeVIP] = 0;
  250.     PlayerInfo[playerid][pDiaVIP] = 0;
  251.     PlayerInfo[playerid][pMesVIP] = 0;
  252.     PlayerInfo[playerid][pAnoVIP] = 0;
  253.     PlayerInfo[playerid][pSocio] = 0;
  254.     PlayerInfo[playerid][pDiaSocio] = 0;
  255.     PlayerInfo[playerid][pMesSocio] = 0;
  256.     PlayerInfo[playerid][pAnoSocio] = 0;
  257.     PlayerInfo[playerid][pPoint] = 0;
  258.     PlayerInfo[playerid][pVoto] = 0;
  259.     PlayerInfo[playerid][gPupgrade] = 0;
  260.     PlayerInfo[playerid][pConnectTime] = 0;
  261.     PlayerInfo[playerid][pReg] = 0;
  262.     PlayerInfo[playerid][pSex] = 0;
  263.     PlayerInfo[playerid][pAge] = 16;
  264.     PlayerInfo[playerid][pOrigem] = 1;
  265.     PlayerInfo[playerid][pExp] = 0;
  266.     PlayerInfo[playerid][pConta] = 0;
  267.     PlayerInfo[playerid][pCrimes] = 0;
  268.     PlayerInfo[playerid][pDeaths] = 0;
  269.     PlayerInfo[playerid][pPhoneBook] = 0;
  270.     PlayerInfo[playerid][pLottoNr] = 0;
  271.     PlayerInfo[playerid][pFishes] = 0;
  272.     PlayerInfo[playerid][pBiggestFish] = 0;
  273.     PlayerInfo[playerid][pEmprego] = 0;
  274.     PlayerInfo[playerid][pSalario] = 0;
  275.     PlayerInfo[playerid][pHeadValue] = 0;
  276.     PlayerInfo[playerid][pJailed] = 0;
  277.     PlayerInfo[playerid][pJailTime] = 0;
  278.     PlayerInfo[playerid][pMats] = 0;
  279.     PlayerInfo[playerid][pDorgado] = 0;
  280.     PlayerInfo[playerid][pDorgado2] = 0;
  281.     PlayerInfo[playerid][pDoenca] = 0;
  282.     PlayerInfo[playerid][pCreditos] = 0;
  283.     PlayerInfo[playerid][pDrogas] = 0;
  284.     PlayerInfo[playerid][pDrogas2] = 0;
  285.     PlayerInfo[playerid][pDrogas3] = 0;
  286.     PlayerInfo[playerid][pSafeDrogas] = 0;
  287.     PlayerInfo[playerid][pSafeDrogas2] = 0;
  288.     PlayerInfo[playerid][pSafeDrogas3] = 0;
  289.     PlayerInfo[playerid][pLider] = 0;
  290.     PlayerInfo[playerid][pMembro] = 0;
  291.     PlayerInfo[playerid][pCargo] = 0;
  292.     PlayerInfo[playerid][pContractTime] = 0;
  293.     PlayerInfo[playerid][pDetSkill] = 0;
  294.     PlayerInfo[playerid][pSexSkill] = 0;
  295.     PlayerInfo[playerid][pBoxSkill] = 0;
  296.     PlayerInfo[playerid][pLawSkill] = 0;
  297.     PlayerInfo[playerid][pMechSkill] = 0;
  298.     PlayerInfo[playerid][pNewsSkill] = 0;
  299.     PlayerInfo[playerid][pDrogasSkill] = 0;
  300.     PlayerInfo[playerid][pCookSkill] = 0;
  301.     PlayerInfo[playerid][pFishSkill] = 0;
  302.     PlayerInfo[playerid][pSHealth] = 0.0;
  303.     PlayerInfo[playerid][pPos_x] = 2246.6;
  304.     PlayerInfo[playerid][pPos_y] = -1161.9;
  305.     PlayerInfo[playerid][pPos_z] = 1029.7;
  306.     PlayerInfo[playerid][pInt] = 0;
  307.     PlayerInfo[playerid][pLocal] = 255;
  308.     PlayerInfo[playerid][pTeam] = 3;
  309.     PlayerInfo[playerid][pSkin] = 101;
  310.     admtrampando[playerid] = 0;
  311.     helpertrampando[playerid] = 0;
  312.     admhide[playerid] = 0;
  313.     new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
  314.     PlayerInfo[playerid][pPnumber] = randphone;
  315.     PlayerInfo[playerid][pPHousekey] = 255;
  316.     PlayerInfo[playerid][pPbiskey] = 255;
  317.     PlayerInfo[playerid][pCarLic] = 0;
  318.     PlayerInfo[playerid][pFlyLic] = 0;
  319.     PlayerInfo[playerid][pBoatLic] = 0;
  320.     PlayerInfo[playerid][pFishLic] = 0;
  321.     PlayerInfo[playerid][pGunLic] = 0;
  322.     PlayerInfo[playerid][pPayDay] = 0;
  323.     PlayerInfo[playerid][pCDPlayer] = 0;
  324.     PlayerInfo[playerid][pWins] = 0;
  325.     PlayerInfo[playerid][pLoses] = 0;
  326.     PlayerInfo[playerid][pAlcoholPerk] = 0;
  327.     PlayerInfo[playerid][pDrugPerk] = 0;
  328.     PlayerInfo[playerid][pMiserPerk] = 0;
  329.     PlayerInfo[playerid][pPainPerk] = 0;
  330.     PlayerInfo[playerid][pTraderPerk] = 0;
  331.     PlayerInfo[playerid][pTut] = 0;
  332.     PlayerInfo[playerid][pWarns] = 0;
  333.     pRoadblock[playerid] = 0;
  334.     PlayerInfo[playerid][pParedao] = 0;
  335.     pRoadCones[playerid] = 0;
  336.     PlayerInfo[playerid][pRequestingBackup] = 0;
  337.     PlayerInfo[playerid][pMask] = 0;
  338.     PlayerInfo[playerid][pnot] = 0;
  339.     PlayerInfo[playerid][ppapa] = 0;
  340.     PlayerInfo[playerid][pvps] = 0;
  341.     PlayerInfo[playerid][pMaskuse] = 0;
  342.     PlayerInfo[playerid][pBarraca] = 0;
  343.     PlayerInfo[playerid][pLuta] = 0;
  344.     strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
  345.     ClearCrime(playerid);
  346.     ClearFishes(playerid);
  347.     ClearCooking(playerid);
  348.     ClearGroceries(playerid);
  349.     ClearMarriage(playerid);
  350.     SetPlayerColor(playerid,COLOR_GRAD2);
  351.     TextShow[playerid] = false;
  352.     HouseEntered[playerid] = 255;
  353.     new nome[24], str[50];
  354.     GetPlayerName(playerid, nome, 24);
  355.     format(str, sizeof str, "%s - Arara", nome);
  356.     if(dini_Isset("Araras.txt", str))
  357.     {
  358.         Info[playerid][Arara] = bool:dini_Bool("Araras.txt", str);
  359.         format(str, sizeof str, "%s - Racao", nome);
  360.         Info[playerid][Racao] = bool:dini_Bool("Araras.txt", str);
  361.         format(str, sizeof str, "%s - Grande", nome);
  362.         Info[playerid][Grande] = dini_Int("Araras.txt", str);
  363.         if(Info[playerid][Arara])
  364.         {
  365.             Info[playerid][Timer] = SetTimerEx("Crescimento", 300000, true, "i", playerid);
  366.             SendClientMessage(playerid, 0xFFFF00FF, "Alimente sua arara ou ela morrerá.");
  367.         }
  368.     }
  369.     new string2[64];
  370.     format(string2, sizeof(string2), "Players/%s.ini", pNome(playerid));
  371.     SetPlayerPos(playerid,1417.8262,-808.1816,85.0546);
  372.     SendClientMessage(playerid, COLOR_GREEN, "Espere alguns segundos...");
  373.     //mapaicone
  374.     SetPlayerMapIcon(playerid, 1,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);//wang cars sf
  375.     SetPlayerMapIcon(playerid, 2,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);//dp ls
  376.     SetPlayerMapIcon(playerid, 3,2351.86,-1170.09,28.0468, 60, 0xE6E6E6E6);//vagos
  377.     SetPlayerMapIcon(playerid, 4,2516.1411,-1675.4065,13.9113, 62, 0xE6E6E6E6);//grove
  378.     SetPlayerMapIcon(playerid, 5,1684.809,-2098.48,13.8343, 58, 0xE6E6E6E6);//aztecas
  379.     SetPlayerMapIcon(playerid, 6,1105.7688,-1206.7142,17.8047, 59, 0xE6E6E6E6);//ballas
  380.     SetPlayerMapIcon(playerid, 7,1480.9403,-1770.8481,18.7958, 56, 0xE6E6E6E6);//Prefeitura Municipal
  381.     SetPlayerMapIcon(playerid, 9,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
  382.     SetPlayerMapIcon(playerid, 9,1063.7096,-1764.5421,13.3935, 45, 0xE6E6E6E6);//Binco
  383.     SetPlayerMapIcon(playerid, 10,2090.5300,2224.4446,11.0234, 45, 0xE6E6E6E6);//ZIP
  384.     SetPlayerMapIcon(playerid, 11,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
  385.     SetPlayerMapIcon(playerid, 12,1070.3787,-1873.8467,13.5469, 18, 0xE6E6E6E6);//Loja de Armas 2
  386.     //SetPlayerMapIcon(playerid, 16,1415.8468,-1693.0602,13.5469, 32, 0xE6E6E6E6); // - D.E.T.R.A.N)
  387.     SetPlayerMapIcon(playerid, 19,1310.1265,-1367.8122,13.5408, 32, 0xE6E6E6E6); // - paintball
  388.     SetPlayerMapIcon(playerid, 20,2350.0000,-1411.8000,23.9923, 32, 0xE6E6E6E6); // - UpCasa
  389.     SetPlayerMapIcon(playerid, 21,1205.9715,-1459.6737,13.3859, 32, 0xE6E6E6E6); // - 24-7's
  390.     SetPlayerMapIcon(playerid, 24,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6); //dp rota
  391.     SetPlayerMapIcon(playerid, 25,-49.8844,-269.3635,6.6332, 30, 0xE6E6E6E6); //dp pc
  392.     SetPlayerMapIcon(playerid, 26,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
  393.     SetPlayerMapIcon(playerid, 27,1027.9030,-355.8242,73.9548, 30 , 0xE6E6E6E6);//cp PF
  394.     SetPlayerMapIcon(playerid, 29,2644.5134,-2035.1990,14.8270, 27 , 0xE6E6E6E6);//TUNAR CARROS GANGS
  395.     SetPlayerMapIcon(playerid, 29,1620.3737,-1888.8711,13.0593, 27 , 0xE6E6E6E6);//TUNAR CARROS neon
  396.     SetPlayerMapIcon(playerid, 31,2104.2051,-1806.5345,13.5547, 29 , 0xE6E6E6E6);//PIZZARIA LS
  397.     SetPlayerMapIcon(playerid, 33,550.7012,-1278.5721,17.2482, 55 , 0xE6E6E6E6);//Carros Aluguel 1
  398.     SetPlayerMapIcon(playerid, 34,2158.1355,-1172.6049,23.8200, 55 , 0xE6E6E6E6);//Carros Aluguel 2
  399.     SetPlayerMapIcon(playerid, 35,2036.9288,-1404.8433,17.2490, 22 , 0xE6E6E6E6);//Hospital
  400.     SetPlayerMapIcon(playerid, 36,-2396.6487,-2194.7942,32.9527, 53 , 0xE6E6E6E6); // PISTA DE RALLY
  401.     SetPlayerMapIcon(playerid, 37,-1529.5208,476.5718,7.1875, 30 , 0xE6E6E6E6); // HQ EXERCITO
  402.     SetPlayerMapIcon(playerid, 38,975.4691,-1335.9618,13.5319, 49 , 0xE6E6E6E6); // BAR PAWNO
  403.     SetPlayerMapIcon(playerid, 8,1498.4795,-1582.9222,13.5469, 32 , 0xE6E6E6E6); //restaurante
  404.     SetPlayerMapIcon(playerid, 13,1206.6914,-1751.1108,13.5938, 32 , 0xE6E6E6E6); //aluguel de carros
  405.     SetPlayerMapIcon(playerid, 14,1327.8535,-1558.0070,13.5469, 32 , 0xE6E6E6E6);//phone company
  406.     SetPlayerMapIcon(playerid, 15,-33.7243,-1127.6255,1.0781, 32 , 0xE6E6E6E6);//gas company
  407.     SetPlayerMapIcon(playerid, 17,-2521.0059,-623.3312,132.7690, 32 , 0xE6E6E6E6);//eletricity company
  408.     SetPlayerMapIcon(playerid, 18,1636.6891,-1521.8157,13.5987, 32 , 0xE6E6E6E6);//pay'n spray
  409.     SetPlayerMapIcon(playerid, 22,844.6560,-1045.5557,25.4301, 32 , 0xE6E6E6E6);//cnn
  410.     SetPlayerMapIcon(playerid, 23,1374.7015,-1599.6871,13.5469, 32 , 0xE6E6E6E6);//car wash
  411.     SetPlayerMapIcon(playerid, 28,2281.9092,-2364.2791,13.5469, 32 , 0xE6E6E6E6);//kart
  412.     SetPlayerMapIcon(playerid, 42,1207.4235,-29.2568,1000.9531, 32 , 0xE6E6E6E6);//mafia mat
  413.     SetPlayerMapIcon(playerid, 42,1240.3582,-2036.9861,59.9598, 32 , 0xE6E6E6E6);//Mafia mat
  414.     SetPlayerMapIcon(playerid, 32,1022.5547,-1121.6744,23.8720, 32 , 0xE6E6E6E6); //cassino
  415.     SetPlayerMapIcon(playerid, 39,1577.2410,-1474.7906,14.2203, 43 , 0xE6E6E6E6); //cocaina
  416.     SetPlayerMapIcon(playerid, 44,1892.746704,-2244.098876,13.546899, 32 , 0xE6E6E6E6); //aeroporto
  417.     SetPlayerMapIcon(playerid, 45,-1968.559814,296.269592,35.171901, 32 , 0xE6E6E6E6); //wang cars
  418.     SetPlayerMapIcon(playerid, 46,1330.193603,-984.074523,33.896598, 32 , 0xE6E6E6E6); //aluguel de carros 2
  419.     SetPlayerMapIcon(playerid, 47,1703.2197,-1470.1509,13.5469, 32 , 0xE6E6E6E6); //produtos
  420.     SetPlayerMapIcon(playerid, 48,1272.3673,-1124.3743,24.1633, 32 , 0xE6E6E6E6); //trocar interior
  421.     SetPlayerMapIcon(playerid, 49,154.1630,-1946.4764,5.2996, 32 , 0xE6E6E6E6); //condominio vip praia
  422.     SetPlayerMapIcon(playerid, 50,24.0203,-2646.5645,40.4640, 30, 0xE6E6E6E6);// Incone HQ PR
  423.     SetPlayerMapIcon(playerid, 51,2196.8142,1677.2333,12.3672, 52, 0xE6E6E6E6);//Banco LV
  424.     SetPlayerMapIcon(playerid, 52,2129.7715,2356.5635,10.6719, 44, 0xE6E6E6E6);//Prefeitura Municipal LV
  425.     SetPlayerMapIcon(playerid, 53,2183.7004,1828.3031,10.8203, 55 , 0xE6E6E6E6);//Carros Aluguel lv
  426.     SetPlayerMapIcon(playerid, 54,791.2953,-1620.2736,13.3828, 23, 0xE6E6E6E6);//helpers
  427.     SetPlayerMapIcon(playerid, 55,1812.1256,-1394.0400,13.4288, 17, 0xE6E6E6E6);//dp ls
  428.     SetPlayerMapIcon(playerid, 56,2450.8835,-950.9857,80.0552, 26, 0x00FF00E6);
  429.     SetPlayerMapIcon(playerid, 57,-56.7150,-1591.3341,2.8185, 30, 0xE6E6E6E6);//dp detran ls
  430.     if(donoestacao == 0)
  431.     {
  432.         GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
  433.     }
  434.     if(donoestacaoLV == 0)
  435.     {
  436.         GangZoneShowForPlayer(playerid, GZEstacaoLV, 0xC0C0C0AA);
  437.     }
  438.     if(donoestacaoLV == 1)
  439.     {
  440.         GangZoneShowForPlayer(playerid, GZEstacaoLV, COR_SONS);
  441.     }
  442.     if(donoestacaoLV == 2)
  443.     {
  444.         GangZoneShowForPlayer(playerid, GZEstacaoLV, COR_DRIF);
  445.     }
  446.     if(donoestacao == 1)
  447.     {
  448.         GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
  449.     }
  450.     if(donoestacao == 2)
  451.     {
  452.         GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
  453.     }
  454.     if(donoestacao == 3)
  455.     {
  456.         GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_PF);
  457.     }
  458.     if(donocasarao == 0)
  459.     {
  460.         GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
  461.     }
  462.     if(donocasarao == 1)
  463.     {
  464.         GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
  465.     }
  466.     if(donocasarao == 2)
  467.     {
  468.         GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
  469.     }
  470.     if(donocasarao == 3)
  471.     {
  472.         GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_PF);
  473.     }
  474.     if(donoFavela == 0)
  475.     {
  476.         GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
  477.     }
  478.     if(donoFavela == 1)
  479.     {
  480.         GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
  481.     }
  482.     if(donoFavela == 2)
  483.     {
  484.         GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
  485.     }
  486.     if(donoFavela == 3)
  487.     {
  488.         GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
  489.     }
  490.     if(donoFavela == 4)
  491.     {
  492.         GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
  493.     }
  494.     if(donoFavela == 5)
  495.     {
  496.         GangZoneShowForPlayer(playerid, GZFavela, COR_ROTA);
  497.     }
  498.     if(donoFavela == 6)
  499.     {
  500.         GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
  501.     }
  502. //=============================[Park Glen]======================================
  503.     if(donopg == 0)
  504.     {
  505.         GangZoneShowForPlayer(playerid, GZparkglen, 0xC0C0C0AA);
  506.     }
  507.     if(donopg == 1)
  508.     {
  509.         GangZoneShowForPlayer(playerid, GZparkglen, TEAM_GROVE_COLOR);
  510.     }
  511.     if(donopg == 2)
  512.     {
  513.         GangZoneShowForPlayer(playerid, GZparkglen, TEAM_BALLAS_COLOR);
  514.     }
  515.     if(donopg == 3)
  516.     {
  517.         GangZoneShowForPlayer(playerid, GZparkglen, TEAM_VAGOS_COLOR);
  518.     }
  519.     if(donopg == 4)
  520.     {
  521.         GangZoneShowForPlayer(playerid, GZparkglen, TEAM_AZTECAS_COLOR);
  522.     }
  523.     if(donopg == 5)
  524.     {
  525.         GangZoneShowForPlayer(playerid, GZparkglen, COR_ROTA);
  526.     }
  527.     if(donopg == 6)
  528.     {
  529.         GangZoneShowForPlayer(playerid, GZparkglen, GCOP_COLOR);
  530.     }
  531. //==============================================================================
  532. //===========================[Roda G]===========================================
  533.     if(donoroda == 0)
  534.     {
  535.         GangZoneShowForPlayer(playerid, GZroda, 0xC0C0C0AA);
  536.     }
  537.     if(donoroda == 1)
  538.     {
  539.         GangZoneShowForPlayer(playerid, GZroda, TEAM_GROVE_COLOR);
  540.     }
  541.     if(donoroda == 2)
  542.     {
  543.         GangZoneShowForPlayer(playerid, GZroda, TEAM_BALLAS_COLOR);
  544.     }
  545.     if(donoroda == 3)
  546.     {
  547.         GangZoneShowForPlayer(playerid, GZroda, TEAM_VAGOS_COLOR);
  548.     }
  549.     if(donoroda == 4)
  550.     {
  551.         GangZoneShowForPlayer(playerid, GZroda, TEAM_AZTECAS_COLOR);
  552.     }
  553.     if(donoroda == 5)
  554.     {
  555.         GangZoneShowForPlayer(playerid, GZroda, COR_ROTA);
  556.     }
  557.     if(donoroda == 6)
  558.     {
  559.         GangZoneShowForPlayer(playerid, GZroda, GCOP_COLOR);
  560.     }
  561. //==============================================================================
  562.     if(donoskate == 0)
  563.     {
  564.         GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
  565.     }
  566.     if(donoskate == 1)
  567.     {
  568.         GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
  569.     }
  570.     if(donoskate == 2)
  571.     {
  572.         GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
  573.     }
  574.     if(donoskate == 3)
  575.     {
  576.         GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
  577.     }
  578.     if(donoskate == 4)
  579.     {
  580.         GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
  581.     }
  582.     if(donoskate == 5)
  583.     {
  584.         GangZoneShowForPlayer(playerid, GZSkate, COR_ROTA);
  585.     }
  586.     if(donoskate == 6)
  587.     {
  588.         GangZoneShowForPlayer(playerid, GZSkate, GCOP_COLOR);
  589.     }
  590.     //Hotel
  591.     if(donohotel == 0)
  592.     {
  593.         GangZoneShowForPlayer(playerid, GZHotel, 0xC0C0C0AA);
  594.     }
  595.     if(donohotel == 1)
  596.     {
  597.         GangZoneShowForPlayer(playerid, GZHotel, COR_SONS);
  598.     }
  599.     if(donohotel == 2)
  600.     {
  601.         GangZoneShowForPlayer(playerid, GZHotel, COR_MAYANS);
  602.     }
  603.     if(donohotel == 3)
  604.     {
  605.         GangZoneShowForPlayer(playerid, GZHotel, COR_PC);
  606.     }
  607.     if(donohotel == 4)
  608.     {
  609.         GangZoneShowForPlayer(playerid, GZHotel, COR_DRIF);
  610.     }
  611.     //Mata
  612.     if(donomata == 0)
  613.     {
  614.         GangZoneShowForPlayer(playerid, GZMata, 0xC0C0C0AA);
  615.     }
  616.     if(donomata == 1)
  617.     {
  618.         GangZoneShowForPlayer(playerid, GZMata, COR_EXE);
  619.     }
  620.     if(donomata == 2)
  621.     {
  622.         GangZoneShowForPlayer(playerid, GZMata, COR_FARC);
  623.     }
  624.     if(donomata == 3)
  625.     {
  626.         GangZoneShowForPlayer(playerid, GZMata, COR_GI);
  627.     }
  628.     if(donomata == 4)
  629.     {
  630.         GangZoneShowForPlayer(playerid, GZMata, COR_HAMAS);
  631.     }
  632.     ClearChatbox(playerid, 100);
  633.     if(fexist(string2))
  634.     {
  635.         gPlayerConta[playerid] = 1;
  636.     }
  637.     else
  638.     {
  639.         gPlayerConta[playerid] = 0;
  640.     }
  641.     return 1;
  642. }
  643. public JoinChannel(playerid, number, line[])
  644. {
  645.     if(IsPlayerConnected(playerid))
  646.     {
  647.         if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
  648.         {
  649.             JoinChannelNr(playerid, number);
  650.         }
  651.         else
  652.         {
  653.             SendClientMessage(playerid, COLOR_GREY, "Senha errada!");
  654.         }
  655.     }
  656.     return 1;
  657. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement