Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------------------------------------
- //
- // Play Brasil v2.0
- // Divirta-s no nosso servidor
- //
- //----------------------------------------------------------
- #include <a_samp>
- #include <core>
- #include <float>
- #include "../include/gl_common.inc"
- #include "../include/gl_spawns.inc"
- #pragma tabsize 0
- //----------------------------------------------------------
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_NORMAL_PLAYER 0xFFBB7777
- #define CITY_LOS_SANTOS 0
- #define CITY_SAN_FIERRO 1
- #define CITY_LAS_VENTURAS 2
- new total_vehicles_from_files=0;
- // Class selection globals
- new gPlayerCitySelection[MAX_PLAYERS];
- new gPlayerHasCitySelected[MAX_PLAYERS];
- new gPlayerLastCitySelectionTick[MAX_PLAYERS];
- new Text:txtClassSelHelper;
- new Text:txtLosSantos;
- new Text:txtSanFierro;
- new Text:txtLasVenturas;
- new thisanimid=0;
- new lastanimid=0;
- //----------------------------------------------------------
- main()
- {
- print("\n---------------------------------------");
- print("Iniciando Play Brasil v2.0\n");
- print("---------------------------------------\n");
- }
- //----------------------------------------------------------
- public OnPlayerConnect(playerid)
- {
- SendDeathMessage(playerid, -1, 200);
- TextDrawShowForPlayer(playerid, forum[playerid]);
- DisablePlayerCheckpoint(playerid);
- KillTimer(timer[playerid]);
- Watching[playerid] = 0;
- Goto[playerid] = 0;
- //DP DA POLICIA CIVIL
- RemoveBuildingForPlayer(playerid, 5926, 816.3359, -1217.1484, 26.4453, 0.25);
- RemoveBuildingForPlayer(playerid, 6005, 895.2578, -1256.9297, 31.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 5836, 816.3359, -1217.1484, 26.4453, 0.25);
- RemoveBuildingForPlayer(playerid, 5838, 895.2578, -1256.9297, 31.2344, 0.25);
- if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return true;}
- IPlog(playerid);
- 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){
- ShowPlayerDialog(playerid, 676, DIALOG_STYLE_MSGBOX, "Nick Incorreto", "Você foi kickado pelo uso de nome incorreto\nUse nicks RPG's exemplo: John_Cena\nO uso de nicks conhecido como MalBots resultará em Ban Permanente","Ok","Cancelar");
- format(gstring,64,"Contas/%s.ini",PlayerName(playerid));Kick(playerid);fremove(gstring);return true;}
- if(strcmp("Mijao_Bundao",PlayerName(playerid),true)==0)
- {
- SendClientMessage(playerid,COLOR_AZULBB,"Não tente imitar Mijao_Bundao ele não gosta disso!");
- SendClientMessage(playerid,COLOR_AZULBB,"Mijao_Bundao te kickou!");Kick(playerid);
- }
- for(new i; i<sizeof(NicksProibidos); i++)
- {
- if(strcmp(NicksProibidos[i],PlayerName(playerid),true)==0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"Você está usando um nome que é proibido.");
- SendClientMessage(playerid,COLOR_AZULBB,"Você foi banido!");getdate(Ano, Mes, Dia);
- SBan(playerid, "Pego Usando um nome que é proibido no servidor.", "Automático");
- }
- }
- 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
- var1[playerid] = 0;
- EmDialog[playerid] = 0;
- gmsg[playerid] = 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;
- PlayerInfo[playerid][pGun5] = 0;
- mudandonick[playerid] = 0;
- gpTimes[playerid] = 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;
- 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;
- AdvOffer[playerid] = 999; AdvPrice[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;
- RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; RingTone[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;
- PlayerAtingido[playerid] = 0; PlayerAtingidoTime[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;
- Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
- Unspec[playerid][sLocal] = 255; 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;
- 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]);
- MudarNickAceito[playerid] = 0;
- MudarSenhaAceito[playerid] = 0;
- InAFoodPlace[playerid] = 0;
- OnEquipado[playerid] = 0;
- OnMafiaEquipado[playerid] = 0;
- VisionInfo[playerid][PLojaA1] = 0;
- VisionInfo[playerid][PLojaA2] = 0;
- VisionInfo[playerid][PLojaA3] = 0;
- VisionInfo[playerid][PLojaA4] = 0;
- VisionInfo[playerid][PpLoja247] = 0;
- VisionInfo[playerid][PpLoja2472] = 0;
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pHelper] = 0;
- PlayerInfo[playerid][pAjustado] = 0;
- PlayerInfo[playerid][pVoto] = 0;
- PlayerInfo[playerid][pRecebeuSalario] = 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][pOrigem] = 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;
- StreetCallTime[playerid] = 0;
- PlayerInfo[playerid][pEmprego] = 0;
- PlayerInfo[playerid][pSalario] = 0;
- PlayerInfo[playerid][pHeadValue] = 0;
- PlayerInfo[playerid][pHeadValueT] = 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][pGerente] = 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][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;
- PlayerInfo[playerid][pGold] = 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] = 255;
- 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;
- pRoadCones[playerid] = 0;
- SpikeInfo[playerid][sCreated] = 0;
- PlayerInfo[playerid][pRequestingBackup] = 0;
- PlayerInfo[playerid][pMask] = 0;
- PlayerInfo[playerid][pMaskuse] = 0;
- PlayerInfo[playerid][pLuta] = 0;
- 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] = 255;
- new string2[64];
- format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "Carregando...");
- GameTextForPlayer(playerid, "~r~Brasil ~g~Start ~y~Life ~b~RPG", 15000, 6);
- TextDrawShowForPlayer(playerid, BULText[playerid]);
- SetPlayerMapIcon(playerid, 1,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);//dp ls
- SetPlayerMapIcon(playerid, 1,-1606.6907,674.6328,-5.2422, 30, 0xE6E6E6E6);//dp sf
- SetPlayerMapIcon(playerid, 2,1480.9403,-1770.8481,18.7958, 56, 0xE6E6E6E6);//Prefeitura
- SetPlayerMapIcon(playerid, 2,-2766.1321,375.6091,6.3347, 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, 3,-2374.2454,910.2137,45.4453, 45, 0xE6E6E6E6);//Binco SF
- SetPlayerMapIcon(playerid, 5,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
- SetPlayerMapIcon(playerid, 6,1367.3584,-1287.9617,35.3292, 18, 0xE6E6E6E6);//Ammu Nation
- SetPlayerMapIcon(playerid, 8,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6); //dp ROTAM
- SetPlayerMapIcon(playerid, 8,-1753.9988,963.4703,24.8828, 30, 0xE6E6E6E6); //dp ROTAM
- SetPlayerMapIcon(playerid, 9,918.9910,-1252.1665,16.2109, 30, 0xE6E6E6E6); //dp pc
- SetPlayerMapIcon(playerid, 10,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
- SetPlayerMapIcon(playerid, 11,-2456.1401,503.9361,30.0781, 30 , 0xE6E6E6E6);//Dp PF
- SetPlayerMapIcon(playerid, 12,2104.2051,-1806.5345,13.5547, 29 , 0xE6E6E6E6);//PIZZARIA LS
- SetPlayerMapIcon(playerid, 13,550.7012,-1278.5721,17.2482, 19 , 0xE6E6E6E6);//Carros Aluguel 1
- SetPlayerMapIcon(playerid, 14,2158.1355,-1172.6049,23.8200, 19 , 0xE6E6E6E6);//Carros Aluguel 2
- SetPlayerMapIcon(playerid, 15,1219.2595,-1812.4048,16.5938, 19 , 0xE6E6E6E6); //aluguel de carros perto spawn
- SetPlayerMapIcon(playerid, 16,1330.193603,-984.074523,33.896598, 19 , 0xE6E6E6E6); //aluguel de carros 2
- SetPlayerMapIcon(playerid, 17,-1968.559814,296.269592,35.171901, 19 , 0xE6E6E6E6); //wang cars
- SetPlayerMapIcon(playerid, 18,-1529.5208,476.5718,7.1875, 30 , 0xE6E6E6E6); // HQ Forças Armadas
- SetPlayerMapIcon(playerid, 19,1703.2197,-1470.1509,13.5469, 51 , 0xE6E6E6E6); //produtos
- SetPlayerMapIcon(playerid, 21,1833.6124,-1842.4968,13.5781, 17 , 0xE6E6E6E6); //mercado
- SetPlayerMapIcon(playerid, 22,1000.5861,-919.8832,42.3281, 17 , 0xE6E6E6E6); //mercado
- SetPlayerMapIcon(playerid, 23,1928.6006,-1776.4480,13.5469, 17 , 0xE6E6E6E6); //mercado
- SetPlayerMapIcon(playerid, 24,1315.5110,-898.9860,39.5781, 17 , 0xE6E6E6E6); //mercado
- SetPlayerMapIcon(playerid, 25,1352.4357,-1759.0243,13.5078, 17 , 0xE6E6E6E6); //mercado
- SetPlayerMapIcon(playerid, 26,1837.0278,-1682.3890,13.3233, 48 , 0xE6E6E6E6); //alhambra
- SetPlayerMapIcon(playerid, 27,-2661.2688,638.2703,14.4531, 22 , 0xE6E6E6E6); //Médicos SF hospital
- SetPlayerMapIcon(playerid, 27,2027.6760,-1405.0399,16.7958, 22 , 0xE6E6E6E6); //hospital pista
- SetPlayerMapIcon(playerid, 29,1440.1481,-2229.0723,13.5469, 55 , 0xE6E6E6E6); //MECANICOS
- SetPlayerMapIcon(playerid, 30,1203.9453,-921.0353,42.6221, 10 , 0xE6E6E6E6); //BURGER SHOT ls
- SetPlayerMapIcon(playerid, 33,461.3484,-1500.9084,31.0592, 45, 0xE6E6E6E6);//VICTIM
- if(donoestacao == 0)
- {
- GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
- }
- if(donoestacao == 1)
- {
- GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
- }
- if(donoestacao == 2)
- {
- GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
- }
- if(donoestacao == 3)
- {
- GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_PF);
- }
- if(donocasarao == 0)
- {
- GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
- }
- if(donocasarao == 1)
- {
- GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
- }
- if(donocasarao == 2)
- {
- GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
- }
- if(donocasarao == 3)
- {
- GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_PF);
- }
- if(donoFavela == 0)
- {
- GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
- }
- if(donoFavela == 1)
- {
- GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
- }
- if(donoFavela == 2)
- {
- GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
- }
- if(donoFavela == 3)
- {
- GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
- }
- if(donoFavela == 4)
- {
- GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
- }
- if(donoFavela == 5)
- {
- GangZoneShowForPlayer(playerid, GZFavela, COR_ROTAM);
- }
- if(donoFavela == 6)
- {
- GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
- }
- if(donoFavela == 7)
- {
- GangZoneShowForPlayer(playerid, GZFavela, 0xF6000000);
- }
- if(donoFavela == 8)
- {
- GangZoneShowForPlayer(playerid, GZFavela, COR_SONS);
- }
- if(donoFavela == 9)
- {
- GangZoneShowForPlayer(playerid, GZFavela, COR_PR);
- }
- if(donoFavela == 10)
- {
- GangZoneShowForPlayer(playerid, GZFavela, COR_DRIFT);
- }
- if(donoConstrucao == 0)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, 0xC0C0C0AA);
- }
- if(donoConstrucao == 1)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_GROVE_COLOR);
- }
- if(donoConstrucao == 2)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_PCC);
- }
- if(donoConstrucao == 3)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, 0xF6000000);
- }
- if(donoConstrucao == 4)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_BALLAS_COLOR);
- }
- if(donoConstrucao == 5)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_VAGOS_COLOR);
- }
- if(donoConstrucao == 6)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_AZTECAS_COLOR);
- }
- if(donoConstrucao == 7)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, GCOP_COLOR);
- }
- if(donoConstrucao == 8)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COLORGZ_PF);
- }
- if(donoConstrucao == 9)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_ROTAM);
- }
- if(donoConstrucao == 10)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_PR);
- }
- if(donoPraia == 0)
- {
- GangZoneShowForPlayer(playerid, GZPraia, 0xC0C0C0AA);
- }
- if(donoPraia == 1)
- {
- GangZoneShowForPlayer(playerid, GZPraia, TEAM_GROVE_COLOR);
- }
- if(donoPraia == 2)
- {
- GangZoneShowForPlayer(playerid, GZPraia, COR_PCC);
- }
- if(donoPraia == 3)
- {
- GangZoneShowForPlayer(playerid, GZPraia, 0xF6000000);
- }
- if(donoPraia == 4)
- {
- GangZoneShowForPlayer(playerid, GZPraia, TEAM_BALLAS_COLOR);
- }
- if(donoPraia == 5)
- {
- GangZoneShowForPlayer(playerid, GZPraia, TEAM_VAGOS_COLOR);
- }
- if(donoPraia == 6)
- {
- GangZoneShowForPlayer(playerid, GZPraia, TEAM_AZTECAS_COLOR);
- }
- if(donoPraia == 7)
- {
- GangZoneShowForPlayer(playerid, GZPraia, GCOP_COLOR);
- }
- if(donoPraia == 8)
- {
- GangZoneShowForPlayer(playerid, GZPraia, COLORGZ_PF);
- }
- if(donoPraia == 9)
- {
- GangZoneShowForPlayer(playerid, GZPraia, COR_ROTAM);
- }
- if(donoPraia == 10)
- {
- GangZoneShowForPlayer(playerid, GZPraia, COR_PR);
- }
- if(donoPuteiro == 0)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, 0xC0C0C0AA);
- }
- if(donoPuteiro == 1)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_GROVE_COLOR);
- }
- if(donoPuteiro == 2)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_PCC);
- }
- if(donoPuteiro == 3)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, 0xF6000000);
- }
- if(donoPuteiro == 4)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_BALLAS_COLOR);
- }
- if(donoPuteiro == 5)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_VAGOS_COLOR);
- }
- if(donoPuteiro == 6)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_AZTECAS_COLOR);
- }
- if(donoPuteiro == 7)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, GCOP_COLOR);
- }
- if(donoPuteiro == 8)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COLORGZ_PF);
- }
- if(donoPuteiro == 9)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_ROTAM);
- }
- if(donoPuteiro == 10)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_PR);
- }
- if(donoNavio == 0)
- {
- GangZoneShowForPlayer(playerid, GZNavio, 0xC0C0C0AA);
- }
- if(donoNavio == 1)
- {
- GangZoneShowForPlayer(playerid, GZNavio, TEAM_GROVE_COLOR);
- }
- if(donoNavio == 2)
- {
- GangZoneShowForPlayer(playerid, GZNavio, COR_PCC);
- }
- if(donoNavio == 3)
- {
- GangZoneShowForPlayer(playerid, GZNavio, 0xF6000000);
- }
- if(donoNavio == 4)
- {
- GangZoneShowForPlayer(playerid, GZNavio, TEAM_BALLAS_COLOR);
- }
- if(donoNavio == 5)
- {
- GangZoneShowForPlayer(playerid, GZNavio, TEAM_VAGOS_COLOR);
- }
- if(donoNavio == 6)
- {
- GangZoneShowForPlayer(playerid, GZNavio, TEAM_AZTECAS_COLOR);
- }
- if(donoNavio == 7)
- {
- GangZoneShowForPlayer(playerid, GZNavio, GCOP_COLOR);
- }
- if(donoNavio == 8)
- {
- GangZoneShowForPlayer(playerid, GZNavio, COLORGZ_PF);
- }
- if(donoNavio == 9)
- {
- GangZoneShowForPlayer(playerid, GZNavio, COR_ROTAM);
- }
- if(donoNavio == 10)
- {
- GangZoneShowForPlayer(playerid, GZNavio, COR_PR);
- }
- if(donoskate == 0)
- {
- GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
- }
- if(donoskate == 1)
- {
- GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
- }
- if(donoskate == 2)
- {
- GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
- }
- if(donoskate == 3)
- {
- GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
- }
- if(donoskate == 4)
- {
- GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
- }
- if(donoskate == 5)
- {
- GangZoneShowForPlayer(playerid, GZSkate, COR_ROTAM);
- }
- if(donoskate == 6)
- {
- GangZoneShowForPlayer(playerid, GZSkate, GCOP_COLOR);
- }
- if(donoskate == 7)
- {
- GangZoneShowForPlayer(playerid, GZSkate, 0xF6000000);
- }
- if(donoskate == 8)
- {
- GangZoneShowForPlayer(playerid, GZSkate, COR_SONS);
- }
- if(donoskate == 9)
- {
- GangZoneShowForPlayer(playerid, GZSkate, COR_PR);
- }
- if(donoskate == 10)
- {
- GangZoneShowForPlayer(playerid, GZSkate, COR_DRIFT);
- }
- if(donoaero == 0)
- {
- GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
- }
- if(donoaero == 1)
- {
- GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
- }
- if(donoaero == 2)
- {
- GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
- }
- if(donoaero == 3)
- {
- GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
- }
- if(donoaero == 4)
- {
- GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
- }
- if(donoaero == 5)
- {
- GangZoneShowForPlayer(playerid, GZAero, COR_ROTAM);
- }
- if(donoaero == 6)
- {
- GangZoneShowForPlayer(playerid, GZAero, GCOP_COLOR);
- }
- if(donoaero == 7)
- {
- GangZoneShowForPlayer(playerid, GZAero, 0xF6000000);
- }
- if(donoaero == 8)
- {
- GangZoneShowForPlayer(playerid, GZAero, COR_SONS);
- }
- if(donoaero == 9)
- {
- GangZoneShowForPlayer(playerid, GZAero, COR_PR);
- }
- if(donoaero == 10)
- {
- GangZoneShowForPlayer(playerid, GZAero, COR_DRIFT);
- }
- if(donopark == 0)
- {
- GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
- }
- if(donopark == 1)
- {
- GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
- }
- if(donopark == 2)
- {
- GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
- }
- if(donopark == 3)
- {
- GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
- }
- if(donopark == 4)
- {
- GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
- }
- if(donopark == 5)
- {
- GangZoneShowForPlayer(playerid, GZPark, COR_ROTAM);
- }
- if(donopark == 6)
- {
- GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
- }
- if(donopark == 7)
- {
- GangZoneShowForPlayer(playerid, GZPark, 0xF6000000);
- }
- if(donopark == 8)
- {
- GangZoneShowForPlayer(playerid, GZPark, COR_SONS);
- }
- if(donopark == 9)
- {
- GangZoneShowForPlayer(playerid, GZPark, COR_PR);
- }
- if(donopark == 10)
- {
- GangZoneShowForPlayer(playerid, GZPark, COR_DRIFT);
- }
- ClearChatbox(playerid, 100);
- if(fexist(string2))
- {
- gPlayerConta[playerid] = 1;
- }
- else
- {
- gPlayerConta[playerid] = 0;
- }
- return true;
- }
- //----------------------------------------------------------
- public OnPlayerSpawn(playerid)
- {
- AntiDeAMX();
- RecentlyShot[playerid] = 0;
- TextDrawHideForAll(Reloginho1);
- TextDrawShowForPlayer(playerid, Reloginho1);
- TextDrawHideForAll(Reloginho2);
- TextDrawShowForPlayer(playerid, Reloginho2);
- TextDrawHideForPlayer(playerid, BULText[playerid]);
- TextDrawShowForPlayer(playerid, embaixo);
- if(sincronizando[playerid] == 1)
- {
- return true;
- }
- gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
- if (gTeam[playerid] == 4) //medic / criminal reset team
- {
- gTeam[playerid] = 3;
- }
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "AdmCmd: Você foi kickado pelo Sistema, Motivo: Spawn sem login");
- SendClientMessage(playerid, COLOR_LIGHTRED,"Mijao_Bundao te kickou do servidor, e não o contrarie novamente");
- Kick(playerid);
- return true;
- }
- CheckInfoOrg(playerid);
- if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLider] < 1)
- {
- MedicBill[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTRED, "Você não foi aprovado pelo líder, agora é um Civil !");
- PlayerInfo[playerid][pTeam] = 3;
- gTeam[playerid] = 3;
- if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
- SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
- SpawnPlayer(playerid);
- }
- if(gTeam[playerid] == 5)
- {
- if(PlayerInfo[playerid][pMembro] < 1)
- {
- MedicBill[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTRED, "Você não faz parte de uma familia, agora é um Civil !");
- PlayerInfo[playerid][pTeam] = 3;
- gTeam[playerid] = 3;
- if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
- SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
- SpawnPlayer(playerid);
- }
- }
- if(gTeam[playerid] == 10)
- {
- if(PlayerInfo[playerid][pMembro] != 8 && PlayerInfo[playerid][pMembro] != 22)
- {
- MedicBill[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTRED, "Você não faz parte de uma agencia, é um Civil !");
- PlayerInfo[playerid][pTeam] = 3;
- gTeam[playerid] = 3;
- if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
- SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
- SpawnPlayer(playerid);
- }
- }
- if(gTeam[playerid] == 2)
- {
- if(PlayerInfo[playerid][pMembro] != 1 && PlayerInfo[playerid][pMembro] != 2 && PlayerInfo[playerid][pMembro] != 3 && PlayerInfo[playerid][pMembro] != 16 && PlayerInfo[playerid][pMembro] != 11)
- {
- MedicBill[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTRED, "Você não é mais um oficial, é um Civil !");
- PlayerInfo[playerid][pTeam] = 3;
- gTeam[playerid] = 3;
- if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
- SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
- SpawnPlayer(playerid);
- }
- }
- if(gTeam[playerid] == 3)
- {
- if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
- {
- MedicBill[playerid] = 0;
- if(PlayerInfo[playerid][pMembro] == 1) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
- else if(PlayerInfo[playerid][pMembro] == 2) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
- else if(PlayerInfo[playerid][pMembro] == 3) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
- else if(PlayerInfo[playerid][pMembro] == 4) { SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
- else if(PlayerInfo[playerid][pMembro] == 5) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
- else if(PlayerInfo[playerid][pMembro] == 7) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pMembro] == 6) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
- else if(PlayerInfo[playerid][pMembro] == 8) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
- else if(PlayerInfo[playerid][pMembro] == 9) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 10) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 11) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 12) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 22; }
- else if(PlayerInfo[playerid][pMembro] == 13) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 20; }
- else if(PlayerInfo[playerid][pMembro] == 14) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 15; }
- else if(PlayerInfo[playerid][pMembro] == 15) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 16; }
- else if(PlayerInfo[playerid][pMembro] == 16) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 17) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 18; }
- else if(PlayerInfo[playerid][pMembro] == 18) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 19) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 20) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 21) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 23) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 22) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
- else if(PlayerInfo[playerid][pMembro] == 25) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 24) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
- else if(PlayerInfo[playerid][pMembro] == 26) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 27) { SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
- else if(PlayerInfo[playerid][pMembro] == 28) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pMembro] == 30) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pMembro] == 31) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
- else if(PlayerInfo[playerid][pMembro] == 32) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 33) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
- else if(PlayerInfo[playerid][pMembro] == 34) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
- else if(PlayerInfo[playerid][pMembro] == 35) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
- //SPAAWN LIDER
- else if(PlayerInfo[playerid][pLider] == 1) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 2) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 3) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 4) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 5) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 6) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 7) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 8) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 9) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 10) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 11) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 12) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 22; }
- else if(PlayerInfo[playerid][pLider] == 13) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 20; }
- else if(PlayerInfo[playerid][pLider] == 14) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
- else if(PlayerInfo[playerid][pLider] == 24) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
- else if(PlayerInfo[playerid][pLider] == 15) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 16; }
- else if(PlayerInfo[playerid][pLider] == 16) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 17) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 18; }
- else if(PlayerInfo[playerid][pLider] == 18) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 25) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 19) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 20) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 21) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 22) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 23) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 27) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 28) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 29) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
- else if(PlayerInfo[playerid][pLider] == 30) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 31) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 32) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 33) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 34) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- else if(PlayerInfo[playerid][pLider] == 35) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
- SpawnPlayer(playerid);
- }
- }
- if(PlayerInfo[playerid][pSkin] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
- else
- {
- if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
- else { PlayerInfo[playerid][pSkin] = 40; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
- }
- SetPlayerWeapons(playerid);
- SetPlayerSpawn(playerid);
- SetPlayerToTeamColor(playerid);
- PlayerFixRadio(playerid);
- return true;
- //----------------------------------------------------------
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[256];
- antifakekill[playerid] ++;
- SetTimerEx("antifakekill2", 1000,false,"i",playerid);
- SendDeathMessage(killerid, playerid, reason);
- RemovePlayerAttachedObject(playerid,3);
- RemovePlayerAttachedObject(playerid, 3);
- Watching[playerid] = 0;
- Goto[playerid] = 0;
- if (gPlayerTerminal[playerid] != 0)
- {
- BusrouteEnd(playerid);
- }
- SetPlayerCriminal(killerid, 255, "Assasinato");
- PlayerInfo[killerid][pKills] += 1;
- if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid))
- {
- if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
- {
- if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
- {
- Territorio[talmortos] += 1;
- }
- if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
- {
- Territorio[almortos] += 1;
- }
- }
- if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
- {
- if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
- {
- Territorio[exemortos] += 1;
- }
- if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
- {
- Territorio[almortos] += 1;
- }
- }
- if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15)
- {
- if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
- {
- Territorio[exemortos] += 1;
- }
- if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
- {
- Territorio[talmortos] += 1;
- }
- }
- }
- //----------------------------------------------------------
- ClassSel_HandleCitySelection(playerid)
- {
- new Keys,ud,lr;
- GetPlayerKeys(playerid,Keys,ud,lr);
- if(gPlayerCitySelection[playerid] == -1) {
- ClassSel_SwitchToNextCity(playerid);
- return;
- }
- // only allow new selection every ~500 ms
- if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
- if(Keys & KEY_FIRE) {
- gPlayerHasCitySelected[playerid] = 1;
- TextDrawHideForPlayer(playerid,txtClassSelHelper);
- TextDrawHideForPlayer(playerid,txtLosSantos);
- TextDrawHideForPlayer(playerid,txtSanFierro);
- TextDrawHideForPlayer(playerid,txtLasVenturas);
- TogglePlayerSpectating(playerid,0);
- return;
- }
- if(lr > 0) {
- ClassSel_SwitchToNextCity(playerid);
- }
- else if(lr < 0) {
- ClassSel_SwitchToPreviousCity(playerid);
- }
- }
- //----------------------------------------------------------
- public OnPlayerRequestClass(playerid, classid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- if(gPlayerHasCitySelected[playerid]) {
- ClassSel_SetupCharSelection(playerid);
- return 1;
- } else {
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
- TogglePlayerSpectating(playerid,1);
- TextDrawShowForPlayer(playerid, txtClassSelHelper);
- gPlayerCitySelection[playerid] = -1;
- }
- }
- return 0;
- }
- //----------------------------------------------------------
- public OnGameModeInit()
- {
- SetGameModeText("Play Brasil v2.0");
- ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
- ShowNameTags(1);
- SetNameTagDrawDistance(40.0);
- EnableStuntBonusForAll(0);
- DisableInteriorEnterExits();
- SetWeather(2);
- SetWorldTime(11);
- //UsePlayerPedAnims();
- //ManualVehicleEngineAndLights();
- //LimitGlobalChatRadius(300.0);
- ClassSel_InitTextDraws();
- // Player Class
- AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- //AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
- // SPECIAL
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
- // LAS VENTURAS
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
- // SAN FIERRO
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
- // LOS SANTOS
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
- // OTHER AREAS
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
- printf("Total de veículos carregados: %d",total_vehicles_from_files);
- return 1;
- }
- //----------------------------------------------------------
- public OnPlayerUpdate(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(IsPlayerNPC(playerid)) return 1;
- // changing cities by inputs
- if( !gPlayerHasCitySelected[playerid] &&
- GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
- ClassSel_HandleCitySelection(playerid);
- return 1;
- }
- // No weapons in interiors
- if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
- SetPlayerArmedWeapon(playerid,0); // fists
- return 0; // no syncing until they change their weapon
- }
- // Don't allow minigun
- if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
- Kick(playerid);
- return 0;
- }
- /* No jetpacks allowed
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
- Kick(playerid);
- return 0;
- }*/
- /* For testing animations
- new msg[128+1];
- new animlib[32+1];
- new animname[32+1];
- thisanimid = GetPlayerAnimationIndex(playerid);
- if(lastanimid != thisanimid)
- {
- GetAnimationName(thisanimid,animlib,32,animname,32);
- format(msg, 128, "anim(%d,%d): %s %s", lastanimid, thisanimid, animlib, animname);
- lastanimid = thisanimid;
- SendClientMessage(playerid, 0xFFFFFFFF, msg);
- }*/
- return 1;
- }
- //----------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment