Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <cpstream>
- #include <Dini>
- #include <dudb>
- #pragma dynamic 145000
- #pragma tabsize 0
- //PROGRMS USER
- #pragma unused ret_memcpy
- //defines
- #define SOUND_OFF 1184
- #define CAR_AMOUNT 778 //
- #define CAR_RESPAW 777 // menos 1 do CAR_AMOUNT
- #define COLOR_GREEN 0x33AA33AA //VERDE
- #define COLOR_DARKGREEN 0x006400 //VERDE ESCURO
- #define COLOR_YELLOW 0x88FF9FAA //AMARELO
- #define COLOR_PINK 0xFF66FFAA //ROSA
- #define COLOR_WHITE 0xFFFFFFAA //BRANCO
- #define COLOR_RED 0xAA3333AA //VERMELHO
- #define COLOR_DARKRED 0x660000AA //VERMELHO ESCURO
- #define COLOR_BLACK 0x00000000 //Preto
- #define COLOR_ORANGE 0xFF9900AA //Laranja
- #define COLOR_LEMON 0xB4FC0A96 //Verde Limao
- #define COR_AMARELOCLARO 0xFEEE66AA
- #define COLOR_RED 0xAA3333AA
- #define Verde 0x33AA33AA
- #define COR_BRANCO 0xFFFFFFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define vermelho 0xFF0000AA
- #define laranja 0xFFA500AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0x88FF9FAA
- #define YELLOW 0x88FF9FAA
- #define HOMER 0xFF0000AA
- #define VERDE_OLIVA 0xADFF2FAA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0x88FF9FAA
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_GMOB 0xF6000000
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_OOC 0xE0FFFFAA
- #define COLOR_REDRED 0xAA3333AA
- #define MORTES 0x88FF9FAA
- #define TUNING 5
- #define nitro 1010
- #define rodawire 1081
- #define suspensao 1087
- #define DIALOG_REGRAS 500
- #define BRANCO 0xFFFFFFAA
- #define VERMELHO 0x88FF9FAA //0xFF0000AA
- forward ZoneCheckpointChecker(playerid);
- forward SendMSG();
- //FORWARDS//
- forward OlhaAeQuemTeMatou(playerid);
- forward UpperToLower(text[]);
- forward ABroadCast(COLOR,const string[],level);
- forward FinalizaX1(playerid);
- forward TimerDuelos(idduelo);
- forward CheckarTeam(playerid);
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- //NEWS VARIAVEIS//
- new gPlayerLogged[MAX_PLAYERS];
- new gPlayerLogTries[MAX_PLAYERS];
- new kitsops[MAX_PLAYERS];
- new granastatus[MAX_PLAYERS];
- new Visitors;
- new bounty[MAX_PLAYERS];
- new Text:Textdraw0;
- new Text:Textdraw2;
- new EmGuerra[MAX_PLAYERS];
- new hourtwohaha, minutetwohaha;
- new Text:HealthBar[MAX_PLAYERS];
- new Text:ArmourBar[MAX_PLAYERS];
- new Text:VehHealthBar[MAX_PLAYERS];
- new Text:VehHealthBox1[MAX_PLAYERS];
- new Text:VehHealthBox3[MAX_PLAYERS];
- new Text:VehHealthBox2[MAX_PLAYERS];
- new aVehicleNames[212][] =
- {
- {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},
- {"Sentinel"},{"Dumper"},{"Firetruck"},{"Trashmaster"},{"Stretch"},
- {"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},{"Cheetah"},
- {"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},
- {"Washington"},{"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},
- {"Premier"},{"Enforcer"},{"Securicar"},{"Banshee"},{"Predator"},
- {"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
- {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},
- {"Packer"},{"Monster"},{"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},
- {"Tram"},{"Trailer 2"},{"Turismo"},{"Speeder"},{"Reefer"},{"Tropic"},
- {"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},{"Skimmer"},
- {"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},
- {"Oceanic"},{"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},
- {"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},
- {"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},
- {"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
- {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},
- {"Benson"},{"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},
- {"Rancher"},{"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},
- {"Cropdust"},{"Stunt"},{"Tanker"},{"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},
- {"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},
- {"Fortune"},{"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},{"Tractor"},{"Combine"},
- {"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},{"Freight"},{"Streak"},{"Vortex"},
- {"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},
- {"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"},
- {"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},
- {"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},{"Freight Flat"},
- {"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},{"Broadway"},{"Tornado"},
- {"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Trailer 3"},
- {"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},{"Trailer 3"},
- {"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
- {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},
- {"Glendale"},{"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},
- {"Boxville"},{"Farm Plow"},{"Utility Trailer"}
- };
- //new Text:InfoText[MAX_PLAYERS];
- enum pInfo
- {
- pSematou,
- pMatou,
- pMorreu,
- pDominou,
- pTeamkill,
- pGrana,
- Ganhoux1,
- Perdeux1,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- #define SLOTS 500
- new
- bool:TopFoi[SLOTS],
- Valor_Maximo[10] = -1,
- PlayerMelhor[10][24],
- Percorrido
- ;
- new EmDuelo[MAX_PLAYERS];
- new pLocal[MAX_PLAYERS];
- new JaPegouaGrana[MAX_PLAYERS];
- new Duelos01,Duelos02,Duelos03,Duelos04,Duelos05,Duelos06,Duelos07,Duelos08,Duelos09,Duelos10,DuelosTimer01,DuelosTimer02,DuelosTimer03,DuelosTimer04,DuelosTimer05,DuelosTimer06,DuelosTimer07,DuelosTimer08,DuelosTimer09,DuelosTimer10;
- //ENUMS//
- new olhamane[MAX_PLAYERS];
- new gangteam[MAX_PLAYERS];
- new ccolete[MAX_PLAYERS];
- new steleporte[MAX_PLAYERS];
- new status[MAX_PLAYERS];
- new psht[MAX_PLAYERS];
- new pgangnames[][] =
- {
- {"GATE"},
- {"Militares"},
- {"Playboys"},
- {"Noias"},
- {"Frangos"},
- {"Agentes"},
- {"Chineses"},
- {"Cowboys"},
- {"Bozo James"},
- {"Grove"},
- {"Ballas"}
- };
- new pgang[MAX_PLAYERS][17];
- new Float:GuerraSpawns[40][3] = {
- {573.4139,4607.2139,21.6480},
- {575.7386,4597.7896,21.6480},
- {576.3082,4590.2427,21.6480},
- {565.7062,4590.7275,21.6480},
- {565.6855,4598.1538,21.6480},
- {565.9920,4607.9946,21.6480},
- {556.0736,4608.7573,21.6480},
- {554.9137,4601.2588,21.6480},
- {554.3077,4590.0415,21.6480},
- {546.2741,4590.6714,21.6480},
- {545.0977,4597.8213,21.6480},
- {545.0996,4609.9375,21.6480},
- {545.4731,4619.3789,21.6480},
- {545.7715,4626.9175,21.6480},
- {546.0812,4634.7441,21.6480},
- {539.1281,4636.6572,21.6480},
- {538.7307,4629.2383,21.6480},
- {538.8730,4620.1553,21.6480},
- {538.9857,4611.9404,21.6480},
- {539.1260,4601.7139,21.6480},
- {1126.9071,4592.0732,21.6480},
- {1126.3726,4599.7231,21.6480},
- {1125.9977,4606.7896,21.6480},
- {1132.4287,4607.1709,21.6480},
- {1132.6713,4600.9399,21.6480},
- {1132.7252,4594.3042,21.6480},
- {1143.1245,4592.9712,21.6480},
- {1142.7380,4601.2544,21.6480},
- {1141.5248,4609.0913,21.6480},
- {1140.1703,4616.4092,21.6480},
- {1138.9369,4622.6333,21.6480},
- {1137.8407,4628.1680,21.6480},
- {1144.3159,4629.4106,21.6480},
- {1144.4573,4622.4238,21.6480},
- {1144.3335,4615.4092,21.6480},
- {1144.2787,4609.1318,21.6480},
- {1144.2294,4603.5293,21.6480},
- {1144.1591,4595.4023,21.6480},
- {1151.9989,4594.6318,21.6480},
- {1153.5880,4608.5044,21.6480}
- };
- #define RONALDO_LOL 432
- new TimerFDP;
- forward FDP(playerid);
- new IP[432][] =
- {
- ":7798",
- ":7777",
- ":7778",
- ":7776",
- ":7775",
- ":7774",
- ":7773",
- ":7772",
- ":7771",
- ":7770",
- ":5555",
- ":8888",
- ":8090",
- ":6969",
- ":7780",
- ":7781",
- ":7782",
- ":7783",
- ":7784",
- ":7785",
- ":7786",
- ":7787",
- ":7788",
- ":7789",
- ":7790",
- ":7791",
- ":7792",
- ":7793",
- ":7794",
- ":7795",
- ":7796",
- ":7797",
- ":7798",
- ":7799",
- ":7800",
- "127.",
- "189.",
- "188.",
- "198.",
- "199.",
- "171.",
- "211.",
- "64.",
- "66.",
- "68.",
- "67.",
- "65.",
- "183.",
- "187.",
- "201.",
- "211.",
- "200.",
- "141.",
- "217.",
- "213.",
- "80.",
- "8080.",
- "127 .",
- "189 .",
- "188 .",
- "198 .",
- "199 .",
- "171 .",
- "211 .",
- "64 .",
- "66 .",
- "68 .",
- "67 .",
- "65 .",
- "183 .",
- "187 .",
- "201 .",
- "211 .",
- "200 .",
- "141 .",
- "217 .",
- "213 .",
- "80 .",
- "8080 .",
- "189.1.169",
- "35:7777",
- "1.169.35",
- "189.1",
- "88",
- "77",
- "7777",
- "7 7",
- "8 8",
- "189.1.169.35:7777",
- "200.",
- "200 .",
- "189.",
- "189 .",
- "201.",
- "201 .",
- "200.1",
- "200.1",
- "200 . 1",
- "200. 1",
- "200 .1",
- "201.1",
- "201 . 1",
- "201. 1",
- "201 .1",
- "208.1",
- "208. 1",
- "208 .1",
- "208 . 1",
- "69.1",
- "69. 1",
- "69 . 1",
- "69 .1",
- "189.1",
- "189. 1",
- "189 .1",
- "189 . 1",
- "66.7",
- "66. 7",
- "66 .7",
- "66 . 7",
- "177.1",
- "177. 1",
- "177 .1",
- "177 . 1",
- "109 .",
- "115 .",
- "119 .",
- "128 .",
- "133 .",
- "140 .",
- "149 .",
- "65 .",
- "32 .",
- "66 .",
- ":3127",
- "150 .",
- "156 .",
- "167 .",
- "173 .",
- "174 .",
- "184 .",
- "187 .",
- "189 .",
- "193 .",
- "195 .",
- "198 .",
- "199 .",
- "200 .",
- "201 .",
- "202 .",
- "203 .",
- "204 .",
- "205 .",
- "206 .",
- "209 .",
- "210 .",
- "212 .",
- "213 .",
- "218 .",
- "219 .",
- "41 .",
- "46 .",
- "58 .",
- "59 .",
- "61 .",
- "70 .",
- "72 .",
- "75 .",
- "77 .",
- "78 .",
- "79 .",
- "80 .",
- "83 .",
- "84 .",
- "85 .",
- "87 .",
- "92 .",
- "94 .",
- "95 .",
- "98 .",
- "99 .",
- "124 .",
- "256 .",
- "512 .",
- "102 .",
- ":3128",
- "211 .",
- "194 .",
- "202 .",
- "146 .",
- "169 .",
- "195 .",
- "152 .",
- "222 .",
- "83 .",
- "221 .",
- "211 .",
- "134 .",
- "110 .",
- "8 .",
- "164 .",
- "109-",
- "115-",
- "119-",
- "128-",
- "133-",
- "140-",
- "149-",
- "65-",
- "32-",
- "66-",
- ":3127",
- "150-",
- "156-",
- "167-",
- "173-",
- "174-",
- "184-",
- "187-",
- "189-",
- "193-",
- "195-",
- "198-",
- "199-",
- "200-",
- "201-",
- "202-",
- "203-",
- "204-",
- "205-",
- "206-",
- "209-",
- "210-",
- "212-",
- "213-",
- "218-",
- "219-",
- "41-",
- "46-",
- "58-",
- "59-",
- "61-",
- "70-",
- "72-",
- "75-",
- "77-",
- "78-",
- "79-",
- "80-",
- "83-",
- "84-",
- "85-",
- "87-",
- "92-",
- "94-",
- "95-",
- "98-",
- "99-",
- "124-",
- "256-",
- "512-",
- "102-",
- ":3128",
- "211-",
- "194-",
- "202-",
- "146-",
- "169-",
- "195-",
- "152-",
- "222-",
- "83-",
- "221-",
- "211-",
- "134-",
- "110-",
- "8-",
- "164-",
- "109.",
- "115.",
- "119.",
- "128.",
- "133.",
- "140.",
- "149.",
- "65.",
- "32.",
- "66.",
- ":3127",
- "150.",
- "156.",
- "167.",
- "173.",
- "174.",
- "184.",
- "187.",
- "189.",
- "193.",
- "195.",
- "198.",
- "199.",
- "200.",
- "201.",
- "202.",
- "203.",
- "204.",
- "205.",
- "206.",
- "209.",
- "210.",
- "212.",
- "213.",
- "218.",
- "219.",
- "41.",
- "46.",
- "58.",
- "59.",
- "61.",
- "70.",
- "72.",
- "75.",
- "77.",
- "78.",
- "79.",
- "80.",
- "83.",
- "84.",
- "85.",
- "87.",
- "92.",
- "94.",
- "95.",
- "98.",
- "99.",
- "124.",
- "256.",
- "512.",
- "102.",
- ":3128",
- "211.",
- "194.",
- "202.",
- "146.",
- "169.",
- "195.",
- "152.",
- "222.",
- "83.",
- "221.",
- "211.",
- "134.",
- "110.",
- "8.",
- "164.",
- "109 .",
- "115 .",
- "119 .",
- "128 .",
- "133 .",
- "140 .",
- "149 .",
- "65 .",
- "32 .",
- "66 .",
- ":3127",
- "150 .",
- "156 .",
- "167 .",
- "173 .",
- "174 .",
- "184 .",
- "187 .",
- "189 .",
- "193 .",
- "195 .",
- "198 .",
- "199 .",
- "200 .",
- "201 .",
- "202 .",
- "203 .",
- "204 .",
- "205 .",
- "206 .",
- "209 .",
- "210 .",
- "212 .",
- "213 .",
- "218 .",
- "219 .",
- "41 .",
- "46 .",
- "58 .",
- "59 .",
- "61 .",
- "70 .",
- "72 .",
- "75 .",
- "77 .",
- "78 .",
- "79 .",
- "80 .",
- "83 .",
- "84 .",
- "85 .",
- "87 .",
- "92 .",
- "94 .",
- "95 .",
- "98 .",
- "99 .",
- "124 .",
- "256 .",
- "512 .",
- "102 .",
- ":3128",
- "211 .",
- "194 .",
- "202 .",
- "146 .",
- "169 .",
- "195 .",
- "152 .",
- "222 .",
- "83 .",
- "221 .",
- "211 .",
- "134 .",
- "110 .",
- "8 .",
- "164 ."
- };
- new RandomColors [] =
- {
- 0xFF9900AA,0x0000BBAA,0xAA3333AA,0x1E90FFAA,0xFF0000AA,0x778899AA,0xFF66FFAA,0x8B4513AA,0x33AA33AA,0x800080AA,0x0D5800AA
- };
- new RandomMSG[][] =
- {
- "| USE /REPORT [ID] [MOTIVO] PARA DENUNCIAR ALGUEM DE CHEATER OU FAZENDO COISAS ILEGAIS.",
- "| ALGUMA COISA BUGOU ? /SYNC",
- "| NÃO FAÇA CONTRA-REGRAS OU SEJA NAO FAÇA OQUE É PROIBIDO NO SERVER .",
- "| NÃO USE HYDRA RHINO SEASPARROW PARA MATAR EM LOCAIS DE SPAWN",
- "| ALGUNS COMANDOS ESSENCIAIS DO SERVIDOR /ADMINS /COMANDOS /AJUDA /PAGOPOR /RECOMPENSAS /ANIMES.",
- "| USE /Rank PAR VER O Top 10 DOS MELHORES PLAYERS ONLINE.",
- "| QUER SABER AS HORAS ? USE /HORAS.",
- "| QUER SABER QUANTAS PESSOAS JA VISITARAO O SERVER? /VISITAS.",
- "| NÃO BRINQUE COM /REPORT ISSO PODE TE LEVAR A UM BANIMENTO.",
- "| NÃO USE HYDRA RHINO SEASPARROW PARA MATAR EM LOCAIS DE SPAWN",
- "| NOVO SISTEMA DE DUELOS /X1.",
- "| USE /Rank PAR VER O Top 10 DOS MELHORES PLAYERS ONLINE.",
- "| NÃO USE HYDRA RHINO SEASPARROW PARA MATAR EM LOCAIS DE SPAWN",
- "| NESTE SERVIDOR NÃO EXISTE REGRAS ANTI SPAWN-KILL.",
- "| OQUE TEM DE NOVO NO SERVIDOR? /NOVIDADES.",
- "| QUER SABER QUANTAS PESSOAS JA VISITARAO O SERVER? /VISITAS.",
- "| QUER SABER QUANTAS PESSOAS JA VISITARAO O SERVER? /VISITAS.",
- "| NÃO USE HYDRA RHINO SEASPARROW PARA MATAR EM LOCAIS DE SPAWN",
- "| USE /Rank PAR VER O Top 10 DOS MELHORES PLAYERS ONLINE.",
- "| QUER SABER QUANTAS PESSOAS JA VISITARAO O SERVER? /VISITAS.",
- "| NÃO USE HYDRA RHINO SEASPARROW PARA MATAR EM LOCAIS DE SPAWN",
- "| NÃO TENTE LOGAR NA RCON OU CASO CONTRARIO SERÁ BANIDO PELO ADMIN - BOT."
- };
- new gzcolor[12] =
- {
- 0xFF9900AA,0x0000BBAA,0xAA3333AA,0x1E90FFAA,0xFF0000AA,0x778899AA,0xFF66FFAA,0x8B4513AA,0x33AA33AA,0x0D5800AA,0x800080AA
- };
- new gzcolorteam[12] =
- {
- 0xFF9900AA,0x0000BBAA,0xAA3333AA,0x1E90FFAA,0xFF0000AA,0x778899AA,0xFF66FFAA,0x8B4513AA,0x33AA33AA,0x0D5800AA,0x800080AA
- };
- new cpzone[MAX_PLAYERS][12];
- new lastcp[MAX_PLAYERS];
- new Gate;
- new Militares;
- new Playboys;
- new Noias;
- new Frangos;
- new Agentes;
- new Chineses;
- new Cowboys;
- new Bozo;
- new Grove;
- new Ballas;
- new cpgate,cpmilitares,cpplayboys,cpnoias,cpfrangos,cpagentes,cpchineses,cpcowboys,cpbozo,cpgrove,cpballas;
- new Menu:DUELOSTIPOX1;
- new Dominat[MAX_PLAYERS];
- new Matando[MAX_PLAYERS];
- stock GetPlayerName2(playerid)
- {
- new thename[MAX_PLAYER_NAME];
- GetPlayerName(playerid, thename, MAX_PLAYER_NAME);
- return thename;
- }
- main()
- {
- print("San Fierro - Team Death Match ");
- }
- public OnGameModeInit()
- {
- SetTimer("ZoneCheckpointChecker", 1000, 1);
- SetGameModeText("BRASIL ELEMENT TDM");
- SetTimer("SendMSG", 300000, true);
- SetTimer("CheckarTeam", 1000, true);
- SetTimer("AtualizarBars",1000,true);
- if(!fexist("sematou.dkn")) dini_Create("sematou.dkn");
- if(!fexist("matou.dkn")) dini_Create("matou.dkn");
- if(!fexist("morreu.dkn")) dini_Create("morreu.dkn");
- if(!fexist("dominou.dkn")) dini_Create("dominou.dkn");
- if(!fexist("tk.dkn")) dini_Create("tk.dkn");
- if(!fexist("dinheiro.ini")) dini_Create("dinheiro.ini");
- if(!fexist("scores.ini")) dini_Create("scores.ini");
- if(!fexist("Ganhoux1.ini")) dini_Create("Ganhoux1.ini");
- if(!fexist("Perdeux1.ini")) dini_Create("Perdeux1.ini");
- Duelos01 = 0;
- Duelos02 = 0;
- Duelos03 = 0;
- Duelos04 = 0;
- Duelos05 = 0;
- Duelos06 = 0;
- Duelos07 = 0;
- Duelos08 = 0;
- Duelos09 = 0;
- Duelos10 = 0;
- DuelosTimer01 = -1;
- DuelosTimer02 = -1;
- DuelosTimer03 = -1;
- DuelosTimer04 = -1;
- DuelosTimer05 = -1;
- DuelosTimer06 = -1;
- DuelosTimer07 = -1;
- DuelosTimer08 = -1;
- DuelosTimer09 = -1;
- DuelosTimer10 = -1;
- //skin
- AddPlayerClass(285,-1615.0461,681.2841,7.1875,176.7815,0,0,0,0,0,0); //Gate
- AddPlayerClass(287,-1323.7145,498.9360,11.1953,179.9288,0,0,0,0,0,0); // Militares
- AddPlayerClass(93,-2695.0476,931.9020,67.2025,179.1115,0,0,0,0,0,0); //playboys
- AddPlayerClass(124,-2695.0476,931.9020,67.2025,179.1115,0,0,0,0,0,0); //playboys
- AddPlayerClass(29,-2126.3118,239.9344,37.3501,281.7839,0,0,0,0,0,0); //noias
- AddPlayerClass(195,-2126.3118,239.9344,37.3501,281.7839,0,0,0,0,0,0); //noias
- AddPlayerClass(167,-2658.8113,261.0943,4.6328,177.5265,0,0,0,0,0,0); // frangos
- AddPlayerClass(163,-1821.6117,1052.7548,46.0781,1.8259,0,0,0,0,0,0); // agentes
- AddPlayerClass(141,-1821.6117,1052.7548,46.0781,1.8259,0,0,0,0,0,0); // agentes
- AddPlayerClass(169,-2181.8726,714.4974,53.8916,185.6942,0,0,0,0,0,0); //chineses
- AddPlayerClass(123,-2181.8726,714.4974,53.8916,185.6942,0,0,0,0,0,0); //chineses
- AddPlayerClass(162, -688.0751,945.8761,13.0313,354.2151, 0, 0, 0, 0, 0, 0);//CowBoys
- AddPlayerClass(264, -770.2401,1437.2617,13.7891,90.7640, 0, 0, 0, 0, 0, 0);//Bozo
- AddPlayerClass(271,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove
- AddPlayerClass(269,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove
- AddPlayerClass(270,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove
- AddPlayerClass(102,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas
- AddPlayerClass(103,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas
- AddPlayerClass(104,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas
- cpgate = CPS_AddCheckpoint(-1615.7535,685.7505,7.1875,2.0,80);
- cpmilitares = CPS_AddCheckpoint(-1351.1074,515.5889,16.5876,2.0,80);
- cpplayboys= CPS_AddCheckpoint(-2694.5210,912.4298,67.5938,2.0,80);
- cpnoias = CPS_AddCheckpoint(-2090.8916,297.4237,40.8177,2.0,80);
- cpfrangos = CPS_AddCheckpoint(-2695.4707,260.2946,4.6328,2.0,80);
- cpagentes = CPS_AddCheckpoint(-1832.6652,1040.3713,46.0883,2.0,80);
- cpchineses = CPS_AddCheckpoint(-2174.1094,632.4207,49.4375,2.0,80);
- cpcowboys = CPS_AddCheckpoint(-683.1976,966.0278,12.1328,2.0,80);
- cpbozo = CPS_AddCheckpoint(-831.4510,1452.8712,14.1682,2.0,80);
- cpgrove = CPS_AddCheckpoint(-2660.0808,1446.0090,41.8359,2.0,80);
- cpballas = CPS_AddCheckpoint(-2648.2065,-317.0257,7.1719,2.0,80);
- Gate = GangZoneCreate(-1715.604980, 579.530151, -1451.604980, 803.530151);
- Militares = GangZoneCreate(-1571.748413, 260.257446, -1219.748413, 540.257446);
- Playboys = GangZoneCreate(-2740.049560, 714.755249, -2524.049560, 1002.755249);
- Noias = GangZoneCreate(-2243.332275, 114.842910, -2003.332275, 314.842895);
- Frangos = GangZoneCreate(-2804.965087, 171.829284, -2604.965087, 467.829284);
- Agentes = GangZoneCreate(-1911.324584, 853.239257, -1767.324584, 1181.239257);
- Chineses = GangZoneCreate(-2372.718505, 570.751464, -2084.718505, 802.751464);
- Cowboys = GangZoneCreate(-872.041381, 762.208435, -512.041381, 1122.208496);
- Bozo = GangZoneCreate(-980.824890, 1257.298583, -580.824890, 1617.298583);
- Grove = GangZoneCreate(-2811.375488, 1172.196899, -2539.375488, 1508.196899);
- Ballas = GangZoneCreate(-2812.130371, -425.361907, -2524.130371, -217.361907);
- DUELOSTIPOX1 = CreateMenu("X1", 2, 150, 150, 150, 150); // X1
- SetMenuColumnHeader(DUELOSTIPOX1, 0, "Arma primaria:"); SetMenuColumnHeader(DUELOSTIPOX1, 1, "Arma secundaria:");
- AddMenuItem(DUELOSTIPOX1, 0, "Tec9"); AddMenuItem(DUELOSTIPOX1, 1, "Sawn-Off"); // DUELO 1
- AddMenuItem(DUELOSTIPOX1, 0, "Micro Uzi"); AddMenuItem(DUELOSTIPOX1, 1, "Sawn-Off"); // DUELO 2
- AddMenuItem(DUELOSTIPOX1, 0, "Desert Eagle"); AddMenuItem(DUELOSTIPOX1, 1, "Sawn-Off"); // DUELO 3
- AddMenuItem(DUELOSTIPOX1, 0, "Desert Eagle"); AddMenuItem(DUELOSTIPOX1, 1, "Micro Uzi"); // DUELO 4
- AddMenuItem(DUELOSTIPOX1, 0, "Spray"); AddMenuItem(DUELOSTIPOX1, 1, "SMG MP5"); // DUELO 5
- AddMenuItem(DUELOSTIPOX1, 0, "Extintor"); AddMenuItem(DUELOSTIPOX1, 1, "Country Rifle"); // DUELO 6
- AddMenuItem(DUELOSTIPOX1, 0, "M4"); AddMenuItem(DUELOSTIPOX1, 1, "Sniper"); // DUELO 7
- AddMenuItem(DUELOSTIPOX1, 0, "AK47"); AddMenuItem(DUELOSTIPOX1, 1, "Granada"); // DUELO 8
- AddMenuItem(DUELOSTIPOX1, 0, "Desert Eagle"); AddMenuItem(DUELOSTIPOX1, 1, "Sniper"); // DUELO 9
- AddMenuItem(DUELOSTIPOX1, 0, "Desert Eagle"); AddMenuItem(DUELOSTIPOX1, 1, "Combat Shotgun"); // DUELO 10
- AddStaticVehicleEx(493,-1439.80541992,1506.43725586,0.00000000,0.00000000,86,-1,15); //Jetmax
- AddStaticVehicleEx(493,-1433.55468750,1506.38769531,0.00000000,0.00000000,86,-1,15); //Jetmax
- AddStaticVehicleEx(493,-1426.30468750,1506.33105469,0.00000000,0.00000000,86,-1,15); //Jetmax
- AddStaticVehicleEx(493,-1419.30468750,1506.27636719,0.00000000,0.00000000,86,-1,15); //Jetmax
- AddStaticVehicleEx(487,-1461.30603027,1491.65710449,8.52281284,0.00000000,-1,86,15); //Maverick
- AddStaticVehicleEx(447,-1434.62341309,1483.40356445,11.90840912,0.00000000,-1,-1,15); //Seasparrow
- AddStaticVehicleEx(493,-1716.31018066,1436.22290039,0.00000000,0.00000000,86,-1,15); //Jetmax
- AddStaticVehicleEx(497,-1681.17102051,705.69635010,30.86656189,268.00000000,-1,6,15); //Police Maverick
- AddStaticVehicleEx(447,-2200.84790039,226.66806030,52.12343597,0.00000000,-1,-1,15); //Seasparrow
- AddStaticVehicleEx(447,-2198.53442383,279.46768188,52.12343597,180.00000000,-1,-1,15); //Seasparrow
- AddStaticVehicleEx(425,-2113.88427734,711.75030518,90.76893616,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(402,-1919.31689453,-2582.65429688,1194.12866211,8.00000000,-1,-1,90); //Buffalo
- AddStaticVehicleEx(402,-1928.07885742,-2584.08593750,1194.12866211,7.99804688,-1,-1,90); //Buffalo
- AddStaticVehicleEx(560,-1934.15148926,-2584.94067383,1193.99365234,8.00000000,-1,-1,90); //Sultan
- AddStaticVehicleEx(560,-1943.41796875,-2582.91601562,1193.99365234,277.99804688,-1,-1,90); //Sultan
- AddStaticVehicleEx(562,-1944.28515625,-2576.76757812,1193.94226074,276.00000000,-1,-1,90); //Elegy
- AddStaticVehicleEx(562,-1945.50073242,-2570.11035156,1193.94226074,275.99853516,-1,-1,90); //Elegy
- AddStaticVehicleEx(545,-1913.98937988,-2572.82177734,1194.14624023,98.00000000,-1,-1,90); //Hustler
- AddStaticVehicleEx(522,-1921.12463379,-2525.36938477,1193.84912109,94.00000000,3,-1,90); //NRG-500
- AddStaticVehicleEx(522,-1921.73974609,-2518.89599609,1193.84912109,93.99902344,3,-1,90); //NRG-500
- AddStaticVehicleEx(522,-1922.80053711,-2512.96655273,1193.84912109,93.99902344,3,-1,90); //NRG-500
- AddStaticVehicleEx(481,-1949.14807129,-2545.30859375,1193.79748535,286.00000000,-1,-1,90); //BMX
- AddStaticVehicleEx(481,-1949.26806641,-2542.06176758,1193.79748535,285.99609375,-1,-1,90); //BMX
- AddStaticVehicleEx(481,-1949.39746094,-2538.56494141,1193.79748535,285.99609375,-1,-1,90); //BMX
- AddStaticVehicleEx(432,-1231.80126953,443.42239380,7.28683710,0.00000000,-1,-1,90); //Rhino
- AddStaticVehicleEx(433,-1249.95019531,447.04956055,7.75749969,0.00000000,-1,-1,90); //Barracks
- AddStaticVehicleEx(433,-1260.72644043,446.97610474,7.75749969,0.00000000,-1,-1,90); //Barracks
- AddStaticVehicleEx(433,-1272.91308594,446.83142090,7.75749969,0.00000000,-1,-1,90); //Barracks
- AddStaticVehicleEx(415,-1284.49743652,445.23541260,7.03043747,0.00000000,-1,-1,90); //Cheetah
- AddStaticVehicleEx(415,-1300.49121094,444.64685059,7.03043747,0.00000000,-1,-1,90); //Cheetah
- AddStaticVehicleEx(548,-1433.19958496,500.18493652,20.13443756,0.00000000,-1,-1,90); //Cargobob
- AddStaticVehicleEx(596,-1634.33520508,652.55773926,7.00749969,0.00000000,-1,6,90); //Police Car (LSPD)
- AddStaticVehicleEx(596,-1622.84057617,652.19824219,7.00749969,0.00000000,-1,6,90); //Police Car (LSPD)
- AddStaticVehicleEx(596,-1611.09558105,651.83105469,7.00749969,0.00000000,-1,6,90); //Police Car (LSPD)
- AddStaticVehicleEx(523,-1616.57739258,652.10101318,6.84787750,0.00000000,-1,-1,90); //HPV1000
- AddStaticVehicleEx(523,-1628.18835449,652.75988770,6.84787750,0.00000000,-1,-1,90); //HPV1000
- AddStaticVehicleEx(427,-1604.95495605,653.01007080,7.43550014,0.00000000,-1,-1,90); //Enforcer
- AddStaticVehicleEx(427,-1599.71179199,652.71240234,7.43550014,0.00000000,-1,-1,90); //Enforcer
- AddStaticVehicleEx(427,-1593.96936035,652.38623047,7.43550014,0.00000000,-1,-1,90); //Enforcer
- AddStaticVehicleEx(599,-1582.70996094,673.43231201,7.57262659,0.00000000,-1,-1,90); //Police Ranger
- AddStaticVehicleEx(599,-1588.34313965,673.16497803,7.57262659,0.00000000,-1,-1,90); //Police Ranger
- AddStaticVehicleEx(601,-1594.21386719,673.14245605,7.11770868,0.00000000,-1,-1,90); //S.W.A.T. Van
- AddStaticVehicleEx(601,-1605.59985352,673.10040283,7.11770868,0.00000000,-1,-1,90); //S.W.A.T. Van
- AddStaticVehicleEx(520,-1596.40307617,711.79272461,49.85707474,0.00000000,-1,-1,90); //Hydra
- AddStaticVehicleEx(522,-2178.37890625,654.70776367,49.09787750,0.00000000,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2173.12890625,654.61730957,49.09787750,0.00000000,126,-1,90); //NRG-500
- AddStaticVehicleEx(556,-2184.56860352,644.45227051,50.45912170,90.00000000,126,126,90); //Monster A
- AddStaticVehicleEx(522,-2194.75390625,646.98278809,49.09787750,92.00000000,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2197.30517578,634.74829102,49.09787750,92.00000000,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2213.86645508,636.60345459,49.09787750,91.99951172,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2180.68408203,604.46069336,34.82951355,91.99951172,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2186.36450195,610.43548584,34.82951355,91.99951172,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2192.36914062,616.18859863,34.82951355,91.99951172,126,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2199.95458984,603.73974609,34.82951355,91.99951172,126,-1,90); //NRG-500
- AddStaticVehicleEx(487,-2201.77832031,587.25195312,62.06416321,0.00000000,126,126,90); //Maverick
- AddStaticVehicleEx(487,-2710.15527344,923.90222168,74.45867920,0.00000000,78,-1,90); //Maverick
- AddStaticVehicleEx(502,-2728.04956055,911.67901611,67.56324005,336.00000000,58,-1,90); //Hotring Racer A
- AddStaticVehicleEx(502,-2731.35302734,903.81225586,67.56324005,335.99487305,58,-1,90); //Hotring Racer A
- AddStaticVehicleEx(502,-2738.65136719,871.25128174,66.76214600,85.99487305,58,-1,90); //Hotring Racer A
- AddStaticVehicleEx(522,-2763.24682617,889.58728027,66.07939911,0.00000000,121,1,90); //NRG-500
- AddStaticVehicleEx(522,-2762.96728516,880.68859863,66.07939911,0.00000000,121,1,90); //NRG-500
- AddStaticVehicleEx(495,-2680.10644531,868.54663086,76.97712708,0.00000000,74,-1,90); //Sandking
- AddStaticVehicleEx(562,-2665.06933594,912.61102295,79.42804718,0.00000000,74,1,90); //Elegy
- AddStaticVehicleEx(542,-2633.21240234,873.19592285,63.85121155,352.00000000,74,-1,90); //Clover
- AddStaticVehicleEx(603,-2569.07275391,986.99670410,78.27611542,0.00000000,6,3,90); //Phoenix
- AddStaticVehicleEx(603,-2566.43310547,924.34454346,64.98705292,0.00000000,6,3,90); //Phoenix
- AddStaticVehicleEx(411,-2464.26855469,899.33898926,62.71892929,0.00000000,-1,-1,90); //Infernus
- AddStaticVehicleEx(506,-2644.41503906,1377.65112305,6.95360422,0.00000000,86,-1,90); //Super GT
- AddStaticVehicleEx(506,-2638.47656250,1377.92138672,6.95360422,0.00000000,86,16,90); //Super GT
- AddStaticVehicleEx(475,-2632.41577148,1377.97290039,7.03919172,0.00000000,86,1,90); //Sabre
- AddStaticVehicleEx(475,-2627.61132812,1377.77795410,7.03919172,0.00000000,86,1,90); //Sabre
- AddStaticVehicleEx(522,-2623.08251953,1377.93884277,6.79927778,0.00000000,86,-1,90); //NRG-500
- AddStaticVehicleEx(600,-2645.01586914,1334.20727539,7.01297855,0.00000000,86,1,90); //Picador
- AddStaticVehicleEx(541,-2640.02026367,1333.70117188,6.89531231,0.00000000,-1,86,90); //Bullet
- AddStaticVehicleEx(533,-2634.40283203,1334.13525391,6.99531221,0.00000000,86,1,90); //Feltzer
- AddStaticVehicleEx(522,-2619.83520508,1377.76708984,6.79927778,0.00000000,86,-1,90); //NRG-500
- AddStaticVehicleEx(487,-2628.06640625,1333.58935547,7.46031284,0.00000000,86,-1,90); //Maverick
- AddStaticVehicleEx(561,-2481.44604492,1232.93139648,34.93962479,53.99987793,-1,-1,90); //Stratum
- AddStaticVehicleEx(468,-2199.72412109,1186.57141113,55.48656082,90.00000000,-1,-1,90); //Sanchez
- AddStaticVehicleEx(489,-1802.28186035,1088.46105957,45.80543900,0.00000000,-1,-1,90); //Rancher
- AddStaticVehicleEx(489,-1809.56115723,1095.09887695,45.80543900,90.00000000,-1,-1,90); //Rancher
- AddStaticVehicleEx(489,-1822.40026855,1094.95141602,45.80543900,90.00000000,-1,-1,90); //Rancher
- AddStaticVehicleEx(521,-1864.96032715,1054.90319824,45.74631500,0.00000000,-1,1,90); //FCR-900
- AddStaticVehicleEx(521,-1868.82446289,1055.34277344,45.74631500,0.00000000,-1,1,90); //FCR-900
- AddStaticVehicleEx(521,-1869.08190918,1060.88830566,45.74631500,0.00000000,-1,1,90); //FCR-900
- AddStaticVehicleEx(521,-1865.52331543,1062.43957520,45.74631500,0.00000000,-1,1,90); //FCR-900
- AddStaticVehicleEx(447,-1926.71484375,1121.38708496,48.78020477,0.00000000,-1,-1,90); //Seasparrow
- AddStaticVehicleEx(580,-2126.89819336,254.87014771,35.52638245,268.00000000,2,1,90); //Stafford
- AddStaticVehicleEx(522,-2132.52490234,262.30197144,35.44834900,0.00000000,2,2,90); //NRG-500
- AddStaticVehicleEx(522,-2128.52832031,262.14062500,35.44834900,0.00000000,2,2,90); //NRG-500
- AddStaticVehicleEx(535,-2130.51879883,288.08023071,34.83938217,268.00000000,2,1,90); //Slamvan
- AddStaticVehicleEx(421,-2130.54467773,296.24243164,34.64894104,266.00000000,2,1,90); //Washington
- AddStaticVehicleEx(411,-2112.50781250,223.34799194,34.55491257,0.00000000,2,1,90); //Infernus
- AddStaticVehicleEx(411,-2108.49853516,223.37266541,34.55491257,0.00000000,2,1,90); //Infernus
- AddStaticVehicleEx(411,-2104.73974609,223.41281128,34.55491257,0.00000000,2,1,90); //Infernus
- AddStaticVehicleEx(487,-2027.98059082,156.45851135,34.20323181,0.00000000,2,-1,90); //Maverick
- AddStaticVehicleEx(480,-1990.61560059,276.51443481,35.02187347,268.00000000,-1,1,90); //Comet
- AddStaticVehicleEx(480,-1991.11291504,270.75262451,35.02187347,267.99499512,-1,1,90); //Comet
- AddStaticVehicleEx(480,-1991.83056641,264.46325684,35.02187347,267.99499512,-1,1,90); //Comet
- AddStaticVehicleEx(587,-2901.60034180,1121.36987305,26.46633148,270.00000000,-1,-1,90); //Euros
- AddStaticVehicleEx(526,-2875.83129883,992.09436035,40.19252777,300.00000000,-1,-1,90); //Fortune
- AddStaticVehicleEx(549,-2874.69091797,725.81054688,29.13637924,282.00000000,-1,-1,90); //Tampa
- AddStaticVehicleEx(507,-2694.75659180,268.80010986,4.28593731,0.00000000,3,1,90); //Elegant
- AddStaticVehicleEx(507,-2675.48144531,268.89773560,4.28593731,0.00000000,3,1,90); //Elegant
- AddStaticVehicleEx(507,-2685.19018555,268.50018311,4.28593731,0.00000000,3,1,90); //Elegant
- AddStaticVehicleEx(448,-2661.46020508,268.29891968,4.00615692,0.00000000,3,-1,90); //Pizzaboy
- AddStaticVehicleEx(448,-2665.20996094,268.36932373,4.00615692,0.00000000,3,-1,90); //Pizzaboy
- AddStaticVehicleEx(448,-2668.95996094,268.43963623,4.00615692,0.00000000,3,-1,90); //Pizzaboy
- AddStaticVehicleEx(432,-2685.94433594,233.84425354,4.43527460,270.00000000,-1,-1,90); //Rhino
- AddStaticVehicleEx(541,-2265.92089844,208.63146973,34.86406326,90.00000000,-1,1,90); //Bullet
- AddStaticVehicleEx(474,-2265.60961914,196.64151001,35.06406403,90.00000000,-1,-1,90); //Hermes
- AddStaticVehicleEx(516,-2265.24829102,149.07592773,35.06406403,90.00000000,-1,-1,90); //Nebula
- AddStaticVehicleEx(540,-2265.17382812,136.90805054,35.15134811,90.00000000,-1,-1,90); //Vincent
- AddStaticVehicleEx(551,-2265.85571289,117.13541412,35.05184937,90.00000000,-1,-1,90); //Merit
- AddStaticVehicleEx(468,-2267.06665039,81.23105621,34.93184662,90.00000000,-1,-1,90); //Sanchez
- AddStaticVehicleEx(560,-2644.11718750,-288.72753906,7.26860380,315.99975586,18,1,90); //Sultan
- AddStaticVehicleEx(560,-2647.75976562,-284.93750000,7.26860380,315.99975586,18,1,90); //Sultan
- AddStaticVehicleEx(560,-2651.57421875,-281.32910156,7.26860380,315.99975586,18,1,90); //Sultan
- AddStaticVehicleEx(560,-2655.20703125,-277.89257812,7.26860380,315.99975586,18,1,90); //Sultan
- AddStaticVehicleEx(562,-2678.21679688,-279.01660156,6.92472792,45.99975586,18,1,90); //Elegy
- AddStaticVehicleEx(562,-2685.67968750,-281.73632812,6.92472792,45.99975586,18,1,90); //Elegy
- AddStaticVehicleEx(562,-2690.51757812,-286.43945312,6.92472792,45.99975586,18,1,90); //Elegy
- AddStaticVehicleEx(522,-2670.09375000,-260.11328125,6.52472353,313.99475098,18,-1,90); //NRG-500
- AddStaticVehicleEx(522,-2677.29882812,-253.42773438,6.52472353,315.99426270,18,-1,90); //NRG-500
- AddStaticVehicleEx(520,-2750.60717773,-251.07818604,8.11481571,0.00000000,-1,-1,90); //Hydra
- AddStaticVehicleEx(589,-2711.06103516,-92.75488281,4.04505110,0.00000000,-1,-1,90); //Club
- AddStaticVehicleEx(589,-2609.13110352,-51.79439163,4.04505110,0.00000000,-1,-1,90); //Club
- AddStaticVehicleEx(487,-2571.60742188,654.76989746,28.07749939,0.00000000,-1,-1,90); //Maverick
- AddStaticVehicleEx(447,-752.82720947,1439.45959473,15.86553192,0.00000000,-1,-1,90); //Seasparrow
- AddStaticVehicleEx(559,-793.11956787,1444.69360352,13.54312611,344.00000000,-1,-1,90); //Jester
- AddStaticVehicleEx(559,-788.10534668,1443.98010254,13.54312611,343.99841309,-1,-1,90); //Jester
- AddStaticVehicleEx(559,-783.31072998,1442.87231445,13.54312611,343.99841309,-1,-1,90); //Jester
- AddStaticVehicleEx(602,-793.31231689,1428.38525391,13.68906212,18.00000000,-1,-1,90); //Alpha
- AddStaticVehicleEx(602,-787.99017334,1429.12731934,13.68906212,17.99560547,-1,-1,90); //Alpha
- AddStaticVehicleEx(602,-783.12286377,1430.11853027,13.68906212,17.99560547,-1,-1,90); //Alpha
- AddStaticVehicleEx(471,-820.95581055,1427.46533203,13.36406231,0.00000000,-1,-1,90); //Quad
- AddStaticVehicleEx(471,-817.69757080,1427.91088867,13.36406231,0.00000000,-1,-1,90); //Quad
- AddStaticVehicleEx(471,-814.43975830,1428.35620117,13.36406231,0.00000000,-1,-1,90); //Quad
- AddStaticVehicleEx(477,-810.44293213,1443.19421387,13.63906288,0.00000000,-1,-1,90); //ZR-350
- AddStaticVehicleEx(477,-815.98651123,1444.79907227,13.63906288,0.00000000,-1,-1,90); //ZR-350
- AddStaticVehicleEx(477,-821.06201172,1445.69360352,13.63906288,0.00000000,-1,-1,90); //ZR-350
- AddStaticVehicleEx(451,-687.96563721,961.27471924,11.96751976,88.00000000,-1,-1,90); //Turismo
- AddStaticVehicleEx(451,-676.21490479,961.08563232,11.96751976,88.00000000,-1,-1,90); //Turismo
- AddStaticVehicleEx(555,-673.90997314,946.42254639,11.91318703,0.00000000,-1,-1,90); //Windsor
- AddStaticVehicleEx(555,-682.14691162,947.51556396,11.91318703,0.00000000,-1,-1,90); //Windsor
- AddStaticVehicleEx(603,-707.37780762,985.48602295,12.46578503,0.00000000,-1,-1,90); //Phoenix
- AddStaticVehicleEx(603,-713.39562988,985.65502930,12.46578503,0.00000000,-1,-1,90); //Phoenix
- AddStaticVehicleEx(460,-635.05712891,858.07373047,3.21952772,159.99987793,-1,-1,90); //Skimmer
- CreateObject(8040,-1932.91381836,-2548.19458008,1193.95434570,0.00000000,0.00000000,97.99996948); //object(airprtcrprk02_lvs) (1)
- CreateObject(16358,-1951.89453125,-2407.56738281,1133.77392578,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (1)
- CreateObject(16358,-1980.73669434,-2202.56860352,1014.23931885,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (2)
- CreateObject(16358,-2006.15246582,-2021.81762695,908.84466553,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (3)
- CreateObject(16358,-2034.44445801,-1820.02636719,791.20544434,0.00000000,330.00000000,278.00000000); //object(des_ebrigroad07) (4)
- CreateObject(16358,-2062.99926758,-1616.30932617,672.40319824,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (5)
- CreateObject(16358,-2085.77465820,-1454.01440430,577.77087402,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (6)
- CreateObject(16358,-2110.41821289,-1278.80578613,475.59991455,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (7)
- CreateObject(16358,-2137.11010742,-1089.47058105,365.19766235,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (8)
- CreateObject(16358,-2163.69067383,-900.18652344,254.83583069,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (9)
- CreateObject(16358,-2190.88476562,-706.55773926,141.92300415,0.00000000,329.99633789,277.99804688); //object(des_ebrigroad07) (10)
- CreateObject(16358,-2214.70263672,-537.18890381,85.95947266,0.00000000,0.00000000,278.00000000); //object(des_ebrigroad07) (11)
- CreateObject(16358,-2208.77368164,-579.78161621,89.81578064,0.00000000,340.00000000,277.99804688); //object(des_ebrigroad07) (13)
- CreateObject(16358,-2211.53320312,-559.61523438,89.81578064,0.00000000,344.99816895,277.99804688); //object(des_ebrigroad07) (14)
- CreateObject(16358,-2247.70117188,-301.83306885,85.95947266,0.00000000,0.00000000,277.99804688); //object(des_ebrigroad07) (15)
- CreateObject(16358,-2280.99755859,-65.43563843,85.95947266,0.00000000,0.00000000,277.99804688); //object(des_ebrigroad07) (16)
- CreateObject(16358,-2273.61694336,167.84616089,85.95947266,0.00000000,0.00000000,257.99804688); //object(des_ebrigroad07) (17)
- CreateObject(16358,-2252.90014648,401.83419800,85.95947266,0.00000000,0.00000000,271.99743652); //object(des_ebrigroad07) (18)
- CreateObject(16358,-2240.54589844,638.59051514,85.95947266,0.00000000,0.00000000,261.99401855); //object(des_ebrigroad07) (19)
- CreateObject(16358,-2186.86132812,849.09375000,106.14601135,0.00000000,9.99755859,249.98840332); //object(des_ebrigroad07) (20)
- CreateObject(16358,-2105.63403320,1072.68359375,127.27209473,0.00000000,0.00000000,249.99096680); //object(des_ebrigroad07) (21)
- CreateObject(16358,-1986.43835449,1271.94726562,127.27209473,0.00000000,0.00000000,227.98840332); //object(des_ebrigroad07) (22)
- CreateObject(16358,-1810.69030762,1430.76525879,127.27209473,0.00000000,0.00000000,215.98826599); //object(des_ebrigroad07) (23)
- CreateObject(16358,-1620.53796387,1416.18457031,127.27209473,0.00000000,0.00000000,133.98571777); //object(des_ebrigroad07) (24)
- CreateObject(16358,-1493.36547852,1221.49157715,127.27209473,0.00000000,0.00000000,111.98376465); //object(des_ebrigroad07) (25)
- CreateObject(16358,-1423.92236328,995.39105225,127.27209473,0.00000000,0.00000000,101.98364258); //object(des_ebrigroad07) (26)
- CreateObject(16358,-1418.96960449,762.93035889,127.27209473,0.00000000,0.00000000,79.98059082); //object(des_ebrigroad07) (27)
- CreateObject(16358,-1504.94421387,548.11132812,127.27209473,0.00000000,0.00000000,55.98046875); //object(des_ebrigroad07) (28)
- CreateObject(16358,-1636.85156250,352.64941406,96.70500946,0.00000000,344.99816895,55.96984863); //object(des_ebrigroad07) (30)
- CreateObject(16357,-1742.07128906,196.38211060,46.28993988,0.00000000,345.00000000,56.00000000); //object(des_ebrigroad01) (1)
- CreateObject(13641,-1786.29309082,131.04159546,28.15758133,0.00000000,0.00000000,234.00000000); //object(kickramp04) (1)
- CreateObject(11120,-1685.27050781,1434.21362305,127.56615448,0.00000000,0.00000000,37.99475098); //object(roadssfse66) (3)
- CreateObject(11120,-1687.11254883,1443.43774414,127.56615448,0.00000000,0.00000000,35.99121094); //object(roadssfse66) (4)
- CreateObject(3524,-1707.69885254,1496.29492188,130.35772705,0.00000000,0.00000000,308.00000000); //object(skullpillar01_lvs) (1)
- CreateObject(3524,-1715.34570312,1509.50122070,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (2)
- CreateObject(3524,-1713.94042969,1510.08276367,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (3)
- CreateObject(3524,-1712.24548340,1510.74560547,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (4)
- CreateObject(3524,-1710.52648926,1511.15979004,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (5)
- CreateObject(3524,-1708.78405762,1511.32495117,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (6)
- CreateObject(3524,-1707.02307129,1511.37670898,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (7)
- CreateObject(3524,-1705.22155762,1511.39892578,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (8)
- CreateObject(3524,-1703.55529785,1510.86010742,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (9)
- CreateObject(3524,-1701.88928223,1510.32104492,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (10)
- CreateObject(3524,-1700.30017090,1509.54406738,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (11)
- CreateObject(3524,-1698.75427246,1508.58251953,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (12)
- CreateObject(3524,-1697.04052734,1507.43530273,130.35772705,0.00000000,0.00000000,307.99621582); //object(skullpillar01_lvs) (13)
- CreateObject(3524,-1946.97070312,-2510.32666016,1196.08166504,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (14)
- CreateObject(3524,-1946.47949219,-2510.23291016,1196.08166504,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (15)
- CreateObject(3524,-1945.98828125,-2510.13916016,1196.08166504,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (16)
- CreateObject(3524,-1929.98803711,-2507.94335938,1196.07409668,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (17)
- CreateObject(3524,-1929.48901367,-2507.90087891,1196.07409668,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (18)
- CreateObject(3524,-1928.98999023,-2507.85791016,1196.07409668,0.00000000,0.00000000,0.00000000); //object(skullpillar01_lvs) (19)
- CreateObject(3080,-1944.36804199,-2507.29199219,1194.29650879,0.00000000,0.00000000,10.00000000); //object(ad_jump) (1)
- CreateObject(3080,-1940.29650879,-2506.43530273,1194.29650879,0.00000000,0.00000000,9.99755859); //object(ad_jump) (2)
- CreateObject(3080,-1936.26135254,-2505.59179688,1194.29650879,0.00000000,0.00000000,9.99755859); //object(ad_jump) (3)
- CreateObject(3080,-1932.48571777,-2504.98901367,1194.29650879,0.00000000,0.00000000,9.99755859); //object(ad_jump) (4)
- CreateObject(980,-1334.64721680,482.46673584,9.56089211,305.00000000,0.00000000,0.00000000); //object(airportgate) (1)
- CreateObject(980,-1334.75512695,480.18542480,7.96089172,304.99694824,0.00000000,0.00000000); //object(airportgate) (2)
- CreateObject(3279, -1634.4496, 652.2222, 6.1005, 0.0, 0.0, 0.0);
- CreateObject(3279, -1576.2321, 682.221, 6.0879, 0.0, 0.0, -90.0);
- CreateObject(3279, -1578.0971, 651.559, 6.0879, 0.0, 0.0, -270.0);
- CreateObject(3279,-2243.00341797,283.28509521,51.03070831,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (1)
- CreateObject(3279,-2155.81176758,283.16583252,51.02343750,0.00000000,0.00000000,270.00000000); //object(a51_spottower) (2)
- CreateObject(3279,-2243.12451172,222.83489990,51.02343750,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (3)
- CreateObject(3279,-2155.49145508,220.75559998,51.02343750,0.00000000,0.00000000,180.00000000); //object(a51_spottower) (4)
- CreateObject(9618,-2178.24926758,710.48986816,64.64361572,0.00000000,0.00000000,0.00000000); //object(scaff1_sfw) (1)
- CreateObject(9766,-2101.40185547,665.31658936,87.82116699,355.00000000,0.00000000,2.00000000); //object(scaff3_sfw) (1)
- CreateObject(9767,-2136.96484375,624.69512939,75.07301331,0.00000000,0.00000000,270.00000000); //object(scaff2_sfw) (1)
- CreateObject(9766,-2173.39257812,665.18847656,66.64957428,354.99572754,0.00000000,0.00000000); //object(scaff3_sfw) (2)
- CreateObject(3279,-1544.31445312,476.48886108,6.17968750,0.00000000,0.00000000,354.00000000); //object(a51_spottower) (5)
- CreateObject(1634,-1518.70703125,888.69128418,7.48481750,0.00000000,0.00000000,0.00000000); //object(landjump2) (1)
- CreateObject(1634,-1518.43322754,895.19128418,7.48481750,0.00000000,0.00000000,178.00000000); //object(landjump2) (2)
- CreateObject(1634,-1579.42028809,719.71118164,7.87528229,5.00000000,0.00000000,270.00000000); //object(landjump2) (3)
- CreateObject(1634,-1579.41992188,719.71093750,7.87528229,0.00000000,0.00000000,270.00000000); //object(landjump2) (4)
- CreateObject(1634,-2613.64428711,830.50238037,50.12544250,0.00000000,0.00000000,180.00000000); //object(landjump2) (5)
- //GUERAAA
- AddStaticVehicleEx(560,531.03820801,4701.37255859,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.90283203,4696.92431641,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.77264404,4692.66796875,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.77398682,4687.90527344,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.68548584,4683.64550781,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.60614014,4679.13574219,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.52703857,4674.62597656,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,530.56530762,4669.86181641,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,531.23925781,4706.18066406,21.45297813,270.00000000,1,-1,15); //Sultan
- AddStaticVehicleEx(560,1156.30993652,4710.95361328,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1156.38452148,4706.45312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1156.49731445,4701.95312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1156.62866211,4697.45312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1156.76879883,4693.20312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1156.89868164,4689.20312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1157.05078125,4684.20312500,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1157.07910156,4679.21777344,21.45297813,90.00000000,-1,1,15); //Sultan
- AddStaticVehicleEx(560,1157.47363281,4673.95312500,21.45297813,90.00000000,-1,1,15); //Sultan
- CreateObject(4867,633.16876221,4678.96972656,20.64800262,0.00000000,0.00000000,0.00000000); //object(lasrnway3_las) (1)
- CreateObject(4867,845.74511719,4679.26757812,20.64800262,0.00000000,0.00000000,0.00000000); //object(lasrnway3_las) (2)
- CreateObject(4867,1055.99926758,4679.27880859,20.64800262,0.00000000,0.00000000,0.00000000); //object(lasrnway3_las) (3)
- CreateObject(8152,1081.68518066,4740.85205078,23.74902916,0.00000000,0.00000000,0.00000000); //object(vgsselecfence06) (1)
- CreateObject(8152,556.93536377,4690.22753906,23.74902916,0.00000000,0.00000000,90.00000000); //object(vgsselecfence06) (2)
- CreateObject(8148,607.69799805,4587.67138672,23.68829155,0.00000000,0.00000000,270.00000000); //object(vgsselecfence02) (1)
- CreateObject(8148,769.47760010,4587.67187500,23.68829155,0.00000000,0.00000000,270.00000000); //object(vgsselecfence02) (2)
- CreateObject(8148,930.85693359,4588.05175781,23.68829155,0.00000000,0.00000000,270.00000000); //object(vgsselecfence02) (3)
- CreateObject(8148,1090.20288086,4587.91699219,23.68829155,0.00000000,0.00000000,270.00000000); //object(vgsselecfence02) (4)
- CreateObject(8148,1161.76135254,4659.87988281,23.68829155,0.00000000,0.00000000,0.00000000); //object(vgsselecfence02) (5)
- CreateObject(8148,920.77746582,4770.57861328,23.68829155,0.00000000,0.00000000,90.00000000); //object(vgsselecfence02) (7)
- CreateObject(8148,759.07586670,4770.50341797,23.68829155,0.00000000,0.00000000,90.00000000); //object(vgsselecfence02) (8)
- CreateObject(8148,641.93298340,4770.30175781,23.68829155,0.00000000,0.00000000,90.00000000); //object(vgsselecfence02) (9)
- CreateObject(8210,527.03851318,4613.59814453,23.74902916,0.00000000,0.00000000,270.00000000); //object(vgsselecfence12) (1)
- CreateObject(16113,945.48046875,4728.60644531,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (1)
- CreateObject(16113,965.08593750,4610.42480469,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (2)
- CreateObject(16113,1102.34570312,4636.66601562,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (3)
- CreateObject(16113,807.47460938,4695.47656250,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (4)
- CreateObject(16113,781.95214844,4618.16113281,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (5)
- CreateObject(16113,706.06835938,4741.27636719,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (6)
- CreateObject(16113,561.72558594,4633.24218750,19.99999046,0.00000000,0.00000000,0.00000000); //object(des_rockgp2_03) (7)
- CreateObject(672,575.53405762,4757.48974609,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (1)
- CreateObject(672,587.73474121,4742.77636719,20.64800262,0.00000000,18.00000000,0.00000000); //object(sm_veg_tree5) (2)
- CreateObject(672,588.16192627,4743.77197266,20.64800262,0.00000000,262.00000000,0.00000000); //object(sm_veg_tree5) (3)
- CreateObject(672,622.66125488,4731.07031250,20.64800262,0.00000000,27.99993896,166.00000000); //object(sm_veg_tree5) (4)
- CreateObject(672,554.90570068,4721.61523438,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (6)
- CreateObject(672,593.83270264,4728.97167969,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (7)
- CreateObject(672,642.02191162,4758.64453125,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (8)
- CreateObject(672,668.83251953,4712.53564453,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (9)
- CreateObject(672,658.86663818,4726.63964844,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (10)
- CreateObject(672,618.65551758,4715.53564453,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (11)
- CreateObject(672,574.29119873,4713.03027344,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (12)
- CreateObject(672,552.11566162,4744.41601562,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (13)
- CreateObject(672,538.73120117,4733.43212891,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (14)
- CreateObject(672,536.28021240,4756.68750000,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (15)
- CreateObject(672,533.62152100,4711.91064453,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (16)
- CreateObject(672,679.14624023,4758.96142578,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (17)
- CreateObject(672,750.18920898,4756.26464844,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (18)
- CreateObject(672,760.54479980,4732.06835938,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (19)
- CreateObject(672,744.79577637,4716.25927734,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (20)
- CreateObject(672,784.13085938,4720.26855469,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (21)
- CreateObject(672,780.15136719,4759.31884766,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (22)
- CreateObject(672,782.06152344,4740.57421875,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (23)
- CreateObject(672,804.65710449,4744.83300781,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (24)
- CreateObject(672,841.30023193,4752.88085938,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (25)
- CreateObject(672,767.87500000,4712.29931641,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (26)
- CreateObject(672,807.50299072,4721.97802734,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (27)
- CreateObject(672,821.70458984,4756.87597656,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (28)
- CreateObject(672,824.12023926,4734.97949219,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (29)
- CreateObject(672,824.12011719,4734.97949219,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (30)
- CreateObject(672,842.25524902,4722.65380859,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (31)
- CreateObject(672,861.10852051,4743.70312500,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (32)
- CreateObject(672,860.78051758,4717.51513672,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (33)
- CreateObject(672,881.41943359,4759.38183594,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (34)
- CreateObject(672,893.07000732,4722.83593750,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (35)
- CreateObject(672,879.27136230,4736.41748047,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (36)
- CreateObject(672,903.49255371,4758.50488281,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (37)
- CreateObject(672,897.43896484,4744.13574219,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (38)
- CreateObject(672,876.29138184,4718.75146484,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (39)
- CreateObject(672,851.75878906,4734.09716797,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (40)
- CreateObject(672,866.23168945,4756.06542969,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (41)
- CreateObject(672,898.07031250,4712.66796875,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (42)
- CreateObject(672,604.01770020,4751.99072266,20.64800262,0.00000000,27.99865723,165.99792480); //object(sm_veg_tree5) (43)
- CreateObject(672,628.86285400,4747.97851562,20.64800262,0.00000000,27.99865723,165.99792480); //object(sm_veg_tree5) (44)
- CreateObject(672,639.42932129,4716.22460938,20.64800262,0.00000000,27.99865723,165.99792480); //object(sm_veg_tree5) (45)
- CreateObject(672,657.63287354,4753.47802734,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (46)
- CreateObject(672,644.11425781,4738.76269531,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (47)
- CreateObject(672,602.96124268,4740.37548828,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (48)
- CreateObject(672,668.29150391,4741.56152344,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (49)
- CreateObject(672,682.02502441,4726.91699219,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (50)
- CreateObject(672,684.65936279,4715.33349609,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (51)
- CreateObject(672,684.65917969,4715.33300781,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (52)
- CreateObject(672,593.13195801,4716.13037109,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (53)
- CreateObject(694,997.91967773,4740.25195312,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_redwoodgrp) (1)
- CreateObject(694,1003.76318359,4745.11572266,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_redwoodgrp) (2)
- CreateObject(694,999.62054443,4732.11328125,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_redwoodgrp) (3)
- CreateObject(694,1008.23895264,4722.49853516,20.64800262,0.00000000,0.00000000,0.00000000); //object(sm_redwoodgrp) (4)
- CreateObject(694,1018.56756592,4723.29443359,20.64800262,0.00000000,0.00000000,108.00000000); //object(sm_redwoodgrp) (5)
- CreateObject(694,1017.91223145,4743.14208984,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (6)
- CreateObject(694,1022.48022461,4751.35156250,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (7)
- CreateObject(694,1027.50842285,4744.23876953,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (8)
- CreateObject(694,1026.47277832,4729.01806641,20.64800262,0.00000000,0.00000000,97.99560547); //object(sm_redwoodgrp) (9)
- CreateObject(694,1042.81738281,4744.17285156,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (11)
- CreateObject(694,1050.59997559,4728.44042969,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (12)
- CreateObject(694,1058.56347656,4755.09326172,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (13)
- CreateObject(694,1064.80297852,4745.64648438,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (14)
- CreateObject(694,1064.72216797,4726.80859375,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (15)
- CreateObject(694,1080.42114258,4726.74023438,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (16)
- CreateObject(694,1080.49023438,4742.93847656,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (17)
- CreateObject(694,1080.52380371,4750.78759766,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (18)
- CreateObject(694,1093.81420898,4762.16064453,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (19)
- CreateObject(694,1101.94628906,4759.54101562,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (20)
- CreateObject(694,1102.29785156,4752.05566406,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (21)
- CreateObject(694,1105.96655273,4743.22558594,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (22)
- CreateObject(694,1098.64526367,4733.87988281,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (23)
- CreateObject(694,1103.24194336,4726.59375000,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (24)
- CreateObject(694,1103.45214844,4722.10253906,20.64800262,0.00000000,0.00000000,107.99560547); //object(sm_redwoodgrp) (25)
- CreateObject(3655,751.01116943,4623.25976562,23.60000038,0.00000000,0.00000000,0.00000000); //object(ganghous03_lax) (1)
- CreateObject(3661,715.48797607,4602.32910156,24.12086296,0.00000000,0.00000000,272.00000000); //object(projects01_lax) (1)
- CreateObject(3588,680.37304688,4623.16210938,23.32238388,0.00000000,0.00000000,0.00000000); //object(sanped_hse1_las) (1)
- CreateObject(17045,654.43505859,4602.63867188,22.41845703,0.00000000,0.00000000,0.00000000); //object(cuntw_stwnyel) (1)
- CreateObject(3655,580.90557861,4659.10156250,23.60000038,0.00000000,0.00000000,0.00000000); //object(ganghous03_lax) (2)
- CreateObject(3655,605.40576172,4634.22558594,23.60000038,0.00000000,0.00000000,0.00000000); //object(ganghous03_lax) (3)
- CreateObject(3588,634.12786865,4648.76416016,23.32238388,0.00000000,0.00000000,0.00000000); //object(sanped_hse1_las) (2)
- CreateObject(3661,613.96832275,4607.02685547,24.12086296,0.00000000,0.00000000,271.99951172); //object(projects01_lax) (2)
- CreateObject(3655,676.29199219,4658.35107422,23.60000038,0.00000000,0.00000000,0.00000000); //object(ganghous03_lax) (4)
- CreateObject(3588,719.61578369,4651.01513672,23.32238388,0.00000000,0.00000000,0.00000000); //object(sanped_hse1_las) (3)
- CreateObject(3279,956.41125488,4758.66503906,20.64800262,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (1)
- CreateObject(3279,985.77374268,4631.67919922,20.64800262,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (2)
- CreateObject(3279,767.89953613,4640.61572266,20.64800262,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (3)
- CreateObject(3279,816.49743652,4670.45361328,20.64800262,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (4)
- CreateObject(16390,878.09490967,4732.44140625,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (1)
- CreateObject(16390,803.01489258,4743.70166016,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (2)
- CreateObject(16390,651.85021973,4740.13134766,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (3)
- CreateObject(16390,605.23986816,4740.31542969,28.62234116,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (4)
- CreateObject(16390,1029.86755371,4734.39843750,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (5)
- CreateObject(16390,1080.42578125,4737.91992188,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (6)
- CreateObject(16390,1056.25756836,4731.99804688,24.27979279,0.00000000,0.00000000,0.00000000); //object(desn2_studbush) (7)
- CreateObject(11427,1081.90441895,4599.60791016,27.83786392,0.00000000,0.00000000,272.00000000); //object(des_adobech) (1)
- CreateObject(11426,1091.18542480,4608.94970703,20.64800262,0.00000000,0.00000000,88.00000000); //object(des_adobe03) (1)
- CreateObject(11442,1111.58288574,4596.80078125,20.64800262,0.00000000,0.00000000,266.00000000); //object(des_pueblo3) (1)
- CreateObject(11440,1077.57812500,4622.63867188,20.64800453,0.00000000,0.00000000,0.00000000); //object(des_pueblo1) (1)
- CreateObject(11088,1028.87304688,4632.45117188,27.40488625,0.00000000,0.00000000,0.00000000); //object(cf_ext_dem_sfs) (1)
- CreateObject(8578,867.29058838,4604.08300781,27.92212105,0.00000000,0.00000000,182.00000000); //object(vgstrainstation3) (1)
- CreateObject(3639,930.65625000,4614.46826172,24.57884216,0.00000000,0.00000000,0.00000000); //object(glenphouse01_lax) (1)
- CreateObject(3640,907.11718750,4614.94091797,25.05156517,0.00000000,0.00000000,0.00000000); //object(glenphouse02_lax) (1)
- CreateObject(3641,918.87310791,4631.17333984,23.06556892,0.00000000,0.00000000,0.00000000); //object(glenphouse04_lax) (1)
- CreateObject(3642,937.65148926,4642.75537109,23.59910393,0.00000000,0.00000000,0.00000000); //object(glenphouse03_lax) (1)
- CreateObject(3644,894.47308350,4648.54296875,23.31085968,0.00000000,0.00000000,0.00000000); //object(idlebuild01_lax) (1)
- CreateObject(3655,922.92712402,4660.75048828,23.65121460,0.00000000,0.00000000,270.00000000); //object(ganghous03_lax) (5)
- CreateObject(3641,871.46618652,4640.73632812,23.06556892,0.00000000,0.00000000,0.00000000); //object(glenphouse04_lax) (2)
- CreateObject(3640,853.81024170,4657.69238281,25.05156517,0.00000000,0.00000000,180.00000000); //object(glenphouse02_lax) (2)
- CreateObject(3655,827.67077637,4637.90283203,23.65121460,0.00000000,0.00000000,270.00000000); //object(ganghous03_lax) (6)
- #pragma unused cpgate,cpmilitares,cpplayboys,cpnoias,cpfrangos,cpagentes,cpchineses,cpcowboys,cpbozo,cpgrove,cpballas
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(!classid)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang do GATE",2000,3);
- gangteam[playerid] = 0;
- format(pgang[playerid],15,pgangnames[0]);
- SetPlayerColor(playerid,0xFF9900AA);
- }
- else if(classid == 1)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang do Militares",2000,3);
- gangteam[playerid] = 1;
- format(pgang[playerid],15,pgangnames[1]);
- SetPlayerColor(playerid,0x0000BBAA);
- }
- else if(classid == 2)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos PlayBoys",2000,3);
- gangteam[playerid] = 2;
- format(pgang[playerid],15,pgangnames[2]);
- SetPlayerColor(playerid,0xAA3333AA);
- }
- else if(classid == 3)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos PlayBoys",2000,3);
- gangteam[playerid] = 2;
- format(pgang[playerid],15,pgangnames[2]);
- SetPlayerColor(playerid,0xAA3333AA);
- }
- else if(classid == 4)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Noias",2000,3);
- gangteam[playerid] = 3;
- format(pgang[playerid],15,pgangnames[3]);
- SetPlayerColor(playerid,0x1E90FFAA);
- }
- else if(classid == 5)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Noias",2000,3);
- gangteam[playerid] = 3;
- format(pgang[playerid],15,pgangnames[3]);
- SetPlayerColor(playerid,0x1E90FFAA);
- }
- else if(classid == 6)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Frangos",2000,3);
- gangteam[playerid] = 4;
- format(pgang[playerid],15,pgangnames[4]);
- SetPlayerColor(playerid, 0xFF0000AA);
- }
- else if(classid == 7)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Agentes",2000,3);
- gangteam[playerid] = 5;
- format(pgang[playerid],15,pgangnames[5]);
- SetPlayerColor(playerid,0x778899AA);
- }
- else if(classid == 8)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Agentes",2000,3);
- gangteam[playerid] = 5;
- format(pgang[playerid],15,pgangnames[5]);
- SetPlayerColor(playerid,0x778899AA);
- }
- else if(classid == 9)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Chineses",2000,3);
- gangteam[playerid] = 6;
- format(pgang[playerid],15,pgangnames[6]);
- SetPlayerColor(playerid,0xFF66FFAA);
- }
- else if(classid == 10)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Chineses",2000,3);
- gangteam[playerid] = 6;
- format(pgang[playerid],15,pgangnames[6]);
- SetPlayerColor(playerid,0xFF66FFAA);
- }
- else if(classid == 11)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos Cowboys",2000,3);
- gangteam[playerid] = 7;
- format(pgang[playerid],15,pgangnames[7]);
- SetPlayerColor(playerid,0x8B4513AA);
- }
- else if(classid == 12)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang do bozo james",2000,3);
- gangteam[playerid] = 8;
- format(pgang[playerid],15,pgangnames[8]);
- SetPlayerColor(playerid,0x33AA33AA);
- }
- else if(classid == 13)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang da Grove",2000,3);
- gangteam[playerid] = 9;
- format(pgang[playerid],15,pgangnames[9]);
- SetPlayerColor(playerid,0x0D5800AA);
- }
- else if(classid == 14)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang da Grove",2000,3);
- gangteam[playerid] = 9;
- format(pgang[playerid],15,pgangnames[9]);
- SetPlayerColor(playerid,0x0D5800AA);
- }
- else if(classid == 15)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang da Grove",2000,3);
- gangteam[playerid] = 9;
- format(pgang[playerid],15,pgangnames[9]);
- SetPlayerColor(playerid,0x0D5800AA);
- }
- else if(classid == 16)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos ballas",2000,3);
- gangteam[playerid] = 10;
- format(pgang[playerid],15,pgangnames[10]);
- SetPlayerColor(playerid,0x800080AA);
- }
- else if(classid == 17)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos ballas",2000,3);
- gangteam[playerid] = 10;
- format(pgang[playerid],15,pgangnames[10]);
- SetPlayerColor(playerid,0x800080AA);
- }
- else if(classid == 18)
- {
- GameTextForPlayer(playerid,"~n~~r~Gang dos ballas",2000,3);
- gangteam[playerid] = 10;
- format(pgang[playerid],15,pgangnames[10]);
- SetPlayerColor(playerid,0x800080AA);
- }
- if(-6 != classid)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 489.4576, -15.1996, 1000.6796);
- SetPlayerCameraPos(playerid, 484.9201, -11.7566, 1000.6796);
- SetPlayerCameraLookAt(playerid, 489.4576, -15.1996, 1000.6796);
- SetPlayerFacingAngle(playerid, 51.5555);
- ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- new string[256];
- new pName[MAX_PLAYER_NAME];
- if(gangteam[playerid] == 0)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) GATE",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 1)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Militares",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 2)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) PlayBoys",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 3)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Noias",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 4)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Frangos",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 5)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Agentes",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 6)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Chineses",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 7)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) CowBoys",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 8)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Bozo James",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 9)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Grove",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- if(gangteam[playerid] == 10)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] O Player '%s' vai jogar na gang do(s) Ballas",pName );
- SendClientMessageToAll(0xB4FC0A96, string);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new name[MAX_PLAYER_NAME], string[256];
- ShowPlayerDialog(playerid,DIALOG_REGRAS,DIALOG_STYLE_MSGBOX,"--::::: Principais Regras ::::-- Aceite-as","BRASIL ELEMENT OFICIAL\n1°: Nunca user Cheater\n2°: Respeite todos\n3°: Não abuse de Bugs\n4°:Viu cheaters Denuncia","Aceitar","Kick");
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s",name);
- for(new fdp=0;fdp<RONALDO_LOL;fdp++){
- if(strfind(string, IP[fdp], true) != -1)
- {
- new string2[128];
- new PlayerNames[30];
- GetPlayerName(playerid, PlayerNames, 30);
- format(string2, sizeof(string2), "%s levou um pé na bunda do ADMIN BOT. Motivo: Aqui ninguem divulga!",PlayerNames);
- SendClientMessageToAll(0xFF0000AA, string2);
- SpawnPlayer(playerid);
- SetPlayerPos(playerid, 1,1,1);
- TimerFDP = SetTimerEx("FDP", 3000, 0, "i", playerid);
- return 0;
- }
- }
- GameTextForPlayer(playerid,"Bem Vindo ao ~y~element ~g~2011 ~n~ Use ~b~'/comandos'",4000,4);
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw2);
- SendClientMessage(playerid, 0xFF0000AA, "Anti-Divulgador Está ligado no servior não divulgue");
- if(dini_Isset("dinheiro.ini",PlayerName(playerid))) GivePlayerMoney(playerid,dini_Int("dinheiro.ini",PlayerName(playerid)));
- if(dini_Isset("scores.ini",PlayerName(playerid))) SetPlayerScore(playerid,dini_Int("scores.ini",PlayerName(playerid)));
- if(dini_Isset("sematou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pSematou] = (playerid,dini_Int("sematou.dkn",PlayerName(playerid)));
- if(dini_Isset("morreu.dkn",PlayerName(playerid))) PlayerInfo[playerid][pMorreu] = (playerid,dini_Int("morreu.dkn",PlayerName(playerid)));
- if(dini_Isset("matou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pMatou] = (playerid,dini_Int("matou.dkn",PlayerName(playerid)));
- if(dini_Isset("dominou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pDominou] = (playerid,dini_Int("dominou.dkn",PlayerName(playerid)));
- if(dini_Isset("tk.dkn",PlayerName(playerid))) PlayerInfo[playerid][pTeamkill] = (playerid,dini_Int("tk.dkn",PlayerName(playerid)));
- if(dini_Isset("Ganhoux1.dkn",PlayerName(playerid))) PlayerInfo[playerid][Ganhoux1] = (playerid,dini_Int("Ganhoux1.dkn",PlayerName(playerid)));
- if(dini_Isset("Perdeux1.dkn",PlayerName(playerid))) PlayerInfo[playerid][Perdeux1] = (playerid,dini_Int("Perdeux1.dkn",PlayerName(playerid)));
- SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
- UsePlayerPedAnims();//Jogadores correm rapido que nem o Cj
- Dominat[playerid] = 0;
- //new Float:X,Y,Z;
- //PlayerPlaySound(playerid, 1185, X, Y, Z);
- if (EmDuelo[playerid] > 0) VerificaDuelos(playerid, INVALID_PLAYER_ID); // X1
- if (EmGuerra[playerid] > 0) VerificaGuerra(playerid, INVALID_PLAYER_ID); // X1
- gPlayerLogged[playerid] = 0;
- gPlayerLogTries[playerid] = 0;
- ccolete[playerid] = 0;
- steleporte[playerid] = 1;
- granastatus[playerid] = 0;
- Matando[playerid] = 0;
- JaPegouaGrana[playerid] = 0;
- GangZoneShowForPlayer(playerid, Gate, gzcolor[0]);
- GangZoneShowForPlayer(playerid, Militares, gzcolor[1]);
- GangZoneShowForPlayer(playerid, Playboys, gzcolor[2]);
- GangZoneShowForPlayer(playerid, Noias, gzcolor[3]);
- GangZoneShowForPlayer(playerid, Frangos, gzcolor[4]);
- GangZoneShowForPlayer(playerid, Agentes, gzcolor[5]);
- GangZoneShowForPlayer(playerid, Chineses, gzcolor[6]);
- GangZoneShowForPlayer(playerid, Cowboys, gzcolor[7]);
- GangZoneShowForPlayer(playerid, Bozo, gzcolor[8]);
- GangZoneShowForPlayer(playerid, Grove, gzcolor[9]);
- GangZoneShowForPlayer(playerid, Ballas, gzcolor[10]);
- status[playerid] = 0;
- HealthBar[playerid] = TextDrawCreate(548.000000, 66.000000, "100");
- TextDrawBackgroundColor(HealthBar[playerid], 255);
- TextDrawFont(HealthBar[playerid], 1);
- TextDrawLetterSize(HealthBar[playerid], 0.280000, 1.000000);
- TextDrawColor(HealthBar[playerid], -1);
- TextDrawSetOutline(HealthBar[playerid], 1);
- TextDrawSetProportional(HealthBar[playerid], 1);
- ArmourBar[playerid] = TextDrawCreate(548.000000, 43.000000, "100");
- TextDrawBackgroundColor(ArmourBar[playerid], 255);
- TextDrawFont(ArmourBar[playerid], 1);
- TextDrawLetterSize(ArmourBar[playerid], 0.290000, 1.100000);
- TextDrawColor(ArmourBar[playerid], -1);
- TextDrawSetOutline(ArmourBar[playerid], 1);
- TextDrawSetProportional(ArmourBar[playerid], 1);
- VehHealthBox1[playerid] = TextDrawCreate(547.000000, 9.000000, "..........");
- TextDrawBackgroundColor(VehHealthBox1[playerid], 255);
- TextDrawFont(VehHealthBox1[playerid], 3);
- TextDrawLetterSize(VehHealthBox1[playerid], 0.599999, 3.999999);
- TextDrawColor(VehHealthBox1[playerid], 255);
- TextDrawSetOutline(VehHealthBox1[playerid], 1);
- TextDrawSetProportional(VehHealthBox1[playerid], 1);
- VehHealthBox2[playerid] = TextDrawCreate(549.000000, 22.000000, "~g~..........");
- TextDrawBackgroundColor(VehHealthBox2[playerid], 912665855);
- TextDrawFont(VehHealthBox2[playerid], 3);
- TextDrawLetterSize(VehHealthBox2[playerid], 0.560000, 2.200000);
- TextDrawColor(VehHealthBox2[playerid], -1);
- TextDrawSetOutline(VehHealthBox2[playerid], 1);
- TextDrawSetProportional(VehHealthBox2[playerid], 1);
- VehHealthBox3[playerid] = TextDrawCreate(549.000000, 22.000000, "~g~~h~.........");
- TextDrawBackgroundColor(VehHealthBox3[playerid], 1369064191);
- TextDrawFont(VehHealthBox3[playerid], 3);
- TextDrawLetterSize(VehHealthBox3[playerid], 0.560000, 2.200000);
- TextDrawColor(VehHealthBox3[playerid], -1);
- TextDrawSetOutline(VehHealthBox3[playerid], 1);
- TextDrawSetProportional(VehHealthBox3[playerid], 1);
- Textdraw0 = TextDrawCreate(532.000000, 405.000000, "ELEMENT OFICIAL");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.359998, 2.099998);
- TextDrawColor(Textdraw0, -7601921);
- TextDrawSetOutline(Textdraw0, 1);
- TextDrawSetProportional(Textdraw0, 1);
- VehHealthBar[playerid] = TextDrawCreate(548.000000, 32.000000, "100");
- TextDrawBackgroundColor(VehHealthBar[playerid], 255);
- TextDrawFont(VehHealthBar[playerid], 1);
- TextDrawLetterSize(VehHealthBar[playerid], 0.290000, 1.100000);
- TextDrawColor(VehHealthBar[playerid], -1);
- TextDrawSetOutline(VehHealthBar[playerid], 1);
- TextDrawSetProportional(VehHealthBar[playerid], 1);
- gettime(hourtwohaha, minutetwohaha);
- SetPlayerTime(playerid,hourtwohaha,minutetwohaha);
- Textdraw2 = TextDrawCreate(5.0, 430.0, " ~g~[BRASIL]~r~ ELEMENT ~w~OFICIAL SERVER ~r~ ~w~Team Death Match ~p~Team War ~b~ /Comandos /Ajuda /Creditos");
- TextDrawSetShadow(Textdraw2, 0);
- TextDrawSetOutline(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.2904, 0.836);
- TextDrawFont(Textdraw2, 1);
- TextDrawSetProportional(Textdraw2, 1);
- GivePlayerMoney(playerid, 1000);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- new visitorstr[256];
- format(visitorstr, sizeof(visitorstr), "~ Você é o visitantes numero %d desde o momento em que foi ligado!", Visitors);
- SendClientMessage(playerid, Verde, visitorstr);
- Visitors ++;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- dini_IntSet("sematou.dkn",PlayerName(playerid),PlayerInfo[playerid][pSematou]);
- dini_IntSet("matou.dkn",PlayerName(playerid),PlayerInfo[playerid][pMatou]);
- dini_IntSet("morreu.dkn",PlayerName(playerid),PlayerInfo[playerid][pMorreu]);
- dini_IntSet("dominou.dkn",PlayerName(playerid),PlayerInfo[playerid][pDominou]);
- dini_IntSet("tk.dkn",PlayerName(playerid),PlayerInfo[playerid][pTeamkill]);
- dini_IntSet("Ganhoux1.dkn",PlayerName(playerid),PlayerInfo[playerid][Ganhoux1]);
- dini_IntSet("Perdeux1.ini",PlayerName(playerid),PlayerInfo[playerid][Perdeux1]);
- dini_IntSet("dinheiro.ini",PlayerName(playerid),GetPlayerMoney(playerid));
- dini_IntSet("scores.ini",PlayerName(playerid),GetPlayerScore(playerid));
- steleporte[playerid] = 1;
- status[playerid] = 0;
- JaPegouaGrana[playerid] = 0;
- granastatus[playerid] = 0;
- EmGuerra[playerid] = 0;
- pLocal[playerid] = 0;
- bounty[playerid] = 0;
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- //TextDrawShowForPlayer(playerid, InfoText[playerid]);
- if (EmDuelo[playerid] > 0)
- {
- VerificaDuelos(playerid, INVALID_PLAYER_ID); // X1
- }
- if (EmGuerra[playerid] > 0)
- {
- VerificaGuerra(playerid, INVALID_PLAYER_ID); // X1
- }
- //Guerraaberta[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(EmGuerra[playerid] == 1 )
- {
- new R2 = random(sizeof(GuerraSpawns));
- SetPlayerTeam(playerid, NO_TEAM);
- SetPlayerPos(playerid,GuerraSpawns[R2][0],GuerraSpawns[R2][1],GuerraSpawns[R2][2]);
- GivePlayerWeapon(playerid, 1 , 9999);
- GivePlayerWeapon(playerid, 16 , 9999);
- GivePlayerWeapon(playerid, 24 , 9999);
- GivePlayerWeapon(playerid, 26 , 9999);
- GivePlayerWeapon(playerid, 34 , 9999);
- GivePlayerWeapon(playerid, 31 , 9999);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- }
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw2);
- SetPlayerInterior(playerid, 0);
- if (EmDuelo[playerid] > 0)
- {
- VerificaDuelos(playerid,INVALID_PLAYER_ID); // X1
- }
- if (EmGuerra[playerid] > 0)
- {
- VerificaGuerra(playerid,INVALID_PLAYER_ID); // X1
- }
- GivePlayerMoney(playerid, 1000);
- if(EmGuerra[playerid] == 0 )
- {
- if(gangteam[playerid] == 0)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 27, 50);
- GivePlayerWeapon(playerid, 29, 50);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 41, 100);
- SetPlayerTeam(playerid,0);
- }
- if(gangteam[playerid] == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 16, 16);
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 25, 50);
- GivePlayerWeapon(playerid, 29, 50);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 41, 100);
- SetPlayerTeam(playerid,1);
- }
- if(gangteam[playerid] == 2)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 26, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 30, 50);
- SetPlayerTeam(playerid,2);
- }
- if(gangteam[playerid] == 3)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 29, 150);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 29, 50);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 41, 100);
- SetPlayerTeam(playerid,3);
- }
- if(gangteam[playerid] == 4)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 26, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 30, 50);
- SetPlayerTeam(playerid,4);
- }
- if(gangteam[playerid] == 5)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- SetPlayerTeam(playerid,5);
- }
- if(gangteam[playerid] == 6)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 26, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 34, 30);
- SetPlayerTeam(playerid,6);
- }
- if(gangteam[playerid] == 7)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 26, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 33, 100);
- SetPlayerTeam(playerid,7);
- }
- if(gangteam[playerid] == 8)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 27, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 34, 30);
- SetPlayerTeam(playerid,8);
- }
- if(gangteam[playerid] == 9)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 34, 30);
- SetPlayerTeam(playerid,9);
- }
- if(gangteam[playerid] == 10)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 26, 150);
- GivePlayerWeapon(playerid, 32, 150);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 34, 30);
- SetPlayerTeam(playerid,10);
- }
- }
- if(JaPegouaGrana[playerid] == 0)
- {
- GivePlayerMoney(playerid, 4000);
- JaPegouaGrana[playerid] = 1;
- }
- return 1;
- }
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new mato[256];
- ccolete[playerid] = 0;
- steleporte[playerid] = 1;
- ResetPlayerWeapons(playerid);
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- new namekiller[MAX_PLAYER_NAME];
- GetPlayerName(killerid, namekiller, sizeof(pName));
- if (EmDuelo[playerid] > 0)
- {
- VerificaDuelos(playerid,killerid); // X1
- return 1;
- }
- if (EmGuerra[playerid] > 0)
- {
- VerificaGuerra(playerid,killerid); // X1
- return 1;
- }
- new string[256];
- if(bounty[playerid] > 0 && (GetPlayerTeam(killerid) == 0 || GetPlayerTeam(playerid) != GetPlayerTeam(killerid)))
- {
- format(string, sizeof(string), "Voce recebeu a recompensa de $%d por matar %s.", bounty[playerid], PlayerName(playerid));
- SendClientMessage(killerid, 0xFF8040FF, string);
- GivePlayerMoney(killerid, bounty[playerid]);
- bounty[playerid] = 0;
- }
- if(GetPlayerTeam(killerid) != GetPlayerTeam(playerid))
- {
- SendDeathMessage(killerid, playerid, reason);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- GetPlayerName(killerid, mato, 24);
- GivePlayerMoney(killerid, 1000);
- GivePlayerMoney(playerid, -500);
- psht[playerid] = 0;
- GivePlayerMoney(killerid, granastatus[playerid]);
- granastatus[killerid] = Matando[killerid] * 100;
- granastatus[playerid] = 0;
- PlayerInfo[killerid][pMatou]++;
- PlayerInfo[playerid][pMorreu]++;
- Matando[killerid]++;
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, killerid, 1);
- olhamane[playerid] = 1;
- ccolete[playerid] = 0;
- steleporte[playerid] = 1;
- GameTextForPlayer(playerid, "~p~ ] ~r~Aprende a jogar Noob! ~p~]", 7000, 3);
- SetTimerEx("OlhaAeQuemTeMatou", 7000, false, "d", playerid);
- }
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(killerid, nome, sizeof(nome));
- if(Matando[killerid] == 1)
- {
- format(string, 256, "MM - Mortes | %s tirou o pe da lama ja mandou um para a cova!", nome);
- SendClientMessageToAll(0xFFF208AA, string);granastatus[killerid] = 1000;
- format(string, 256, "[MATA-MORRE INFO]: Cada pessoa que %s matar a recompensa pela cabeça dele aumenta em Mil reais.", nome);
- SendClientMessageToAll(0x59E000AA, string);
- }
- else if(Matando[killerid] == 5)
- {
- format(string, 256, "MM - Mortes | %s ta tomando gosto pela coisa jamatou 5 sem piedade!", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 10)
- {
- format(string, 256, "MM - Mortes | %s ta querendo virar um assassino profissional ja matou 10 negos!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 10000;
- format(string, 256, "Info Recompensas | 10 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 15)
- {
- format(string, 256, "MM - Mortes | Acho que %s e parente do Chuck Norris ja tirou a vida de 15 infelizes!", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 20)
- {
- format(string, 256, "MM - Mortes | %s fez uma chasina em San Andreas ja matou 20 pessoas!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 20000;
- format(string, 256, "Info Recompensas | 20 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 25)
- {
- format(string, 256, "MM - Mortes | %s nao teve uma boa infancia ja matou 25 sem nenhuma compaixao!", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 30)
- {
- format(string, 256, "MM - Mortes | Acho que %s e o Sylvester Stallone disfarïado ja mandou 30 para a cova!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 30000;
- format(string, 256, "Info Recompensas | 30 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 35)
- {
- format(string, 256, "MM - Mortes | %s ja matou 35, que isso? Ate eu estou com medo dele agora! O.o", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 40)
- {
- format(string, 256, "MM - Mortes | %s ja matou 40, puts esse cara e o Demo em pessoa!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 40000;
- format(string, 256, "Info Recompensas | 40 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 45)
- {
- format(string, 256, "MM - Mortes | %s simplesmente ja mandou 45 para a cova! lol", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 50)
- {
- format(string, 256, "MM - Mortes | Eu sei que eu sou um robo e robos nao sentem medo, mais fala serio, %s ja matou 50!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 50000;
- SendClientMessageToAll(0x88FF9FAA, "E se ele resolve me da um Curto Circuito? O.o");
- format(string, 256, "Info Recompensas | 50 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 55)
- {
- format(string, 256, "MM - Mortes | Caramba %s ja matou 55 players, so pode esta possuido mesmo!", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 60)
- {
- format(string, 256, "MM - Mortes | Meu Deus!!! Matar deve ser a maior diversao do %s o cara ja matou 60 alguem para ele por favor!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 60000;
- format(string, 256, "Info Recompensas | 60 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 65)
- {
- format(string, 256, "MM - Mortes | Alguem tem papel ai? Acabei de me borrar todo de medo! %s ja matou 65! To todo cagado! O.o", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 70)
- {
- format(string, 256, "MM - Mortes | %s e um pissicopata ja tirou a vida de 70 pessoas! Alguem mata ele por favor!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 70000;
- format(string, 256, "Info Recompensas | 70 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 75)
- {
- format(string, 256, "MM - Mortes | Poha 75 ja e de mais! Para um poco de matar %s ... Voce ja passou dos limites!", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 80)
- {
- format(string, 256, "MM - Mortes | %s paraaaaaa! Vou ter que chamar o Exercito e a Swat para tentar te matar seu infeliz!", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 80000;
- SendClientMessage(killerid, 0x88FF9FAA, "Tu ja matou 80 players!");
- format(string, 256, "Info Recompensas | 80 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 85)
- {
- format(string, 256, "MM - Mortes | Todos que estao usando o skin do Exercito ou da Swat peguem o %s esse FDP ja matou 85!!! _|_", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 90)
- {
- format(string, 256, "MM - Mortes | Puta que pariu! %s ja matou 90 vai matar assim na Puta que te pariu! =X", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 90000;
- SendClientMessageToAll(0x88FF9FAA, "(Robos tambem se estressam.)");
- format(string, 256, "Info Recompensas | 90 Mil reais para quem matar %s!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 95)
- {
- format(string, 256, "MM - Mortes | Ninguem para esse cara ae??? ahh.. %s ja matou simplesmente 95 players! O.o", nome);
- SendClientMessageToAll(0xFFF208AA, string);
- }
- else if(Matando[killerid] == 100)
- {
- format(string, 256, "MM - Mortes | %s voce passou dos limites! Tu ja matou 100 pessoas cara! Me aposento...", nome);
- SendClientMessageToAll(0x59E000AA, string);granastatus[killerid] = 100000;
- SendClientMessageToAll(0x88FF9FAA, " Apartir de agora nao anuncio mais suas vitimas.Robo fail mato de mais lol");
- format(string, 256, "Info Recompensas | 100 Mil reais para quem matar %s! lol", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- else if(Matando[killerid] == 1000)
- {
- format(string, 256, "MM - Mortes | Para tudo!!! Agora eu vou anunciar que %s matou simplesmente Mil pessoas! Ele bateu o Record!!!", nome);
- SendClientMessageToAll(0xFFF208AA, string);granastatus[killerid] = 1000000;
- SendClientMessageToAll(0x88FF9FAA, "NAO e falha no sistema... Ele matou Mil mesmo! Nao e 100 nem 200! sao Mil!!! Todos pra cima dele! Goo Goo!!!");
- format(string, 256, "Info Recompensas | 1 Milhão de reais para quem matar %s! Peguem ele!!! eh muita grana!!!", nome);
- SendClientMessageToAll(0x6F6FFF96, string);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- UpperToLower(text);
- new srvchat[128];
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- if(text[0] == '!')
- {//Se Tiver '!'
- format(srvchat, sizeof(srvchat),"|| Chat Gang %s: (id:%d): %s", pName, playerid, text[1]);
- CallRemoteFunction("OnPlayerGangText","ds",playerid,srvchat);
- return 0;
- }
- new string[256];
- for(new fdp=0;fdp<RONALDO_LOL;fdp++){
- if(strfind(text, IP[fdp], true) != -1)
- {
- new string2[128];
- new PlayerNames[30];
- GetPlayerName(playerid, PlayerNames, 30);
- format(string2, sizeof(string2), "%s levou um pé na bunda do ADMIN BOT. Motivo: Aqui ninguem divulga!",PlayerNames);
- SendClientMessageToAll(0xFF0000AA, string2);
- new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
- GetPlayerIp(playerid,iplolol,128);
- GetPlayerName(playerid, nomefdp, 30);
- format(ipdivulgado, 256, "%s", text);
- format(ipfdp, 256, "%s", iplolol);
- new File:ofdp=fopen("divulgadores.txt", io_append);
- new iFDP = strval(ipfdp);
- format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
- fwrite(ofdp, string);
- print(string);
- fclose(ofdp);
- SetPlayerPos(playerid, 1,1,1);
- TimerFDP = SetTimerEx("FDP", 3000, 0, "i", playerid);
- return 0;
- }
- }
- format(string,sizeof(string),"(id:%d): %s",playerid,text);
- SendPlayerMessageToAll(playerid,string);
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new string[256];
- new tmp[256];
- new iName[MAX_PLAYER_NAME+1];
- new sendername[MAX_PLAYER_NAME];
- new pName[MAX_PLAYER_NAME];
- new idx;
- GetPlayerName(playerid, iName, 128);
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/transferir", true) == 0) {new giveplayerid;new moneys;new giveplayer[MAX_PLAYER_NAME];new playermoney;tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {SendClientMessage(playerid, 0x88FF9FAA, "Uso: /transferir [id-do-jogador] [quantidade]");return 1;}giveplayerid = strval(tmp);
- tmp = strtok(cmdtext, idx);if(!strlen(tmp)) {SendClientMessage(playerid, 0x88FF9FAA, "Uso: /transferir [id-do-jogador] [quantidade]");
- return 1;}moneys = strval(tmp);if (IsPlayerConnected(giveplayerid)) {GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));playermoney = GetPlayerMoney(playerid);if (moneys > 0 && playermoney >= moneys) {
- GivePlayerMoney(playerid, (0 - moneys));GivePlayerMoney(giveplayerid, moneys);format(string, sizeof(string), "Você enviou a %s (ID:%d) a importância de $%d.", giveplayer,giveplayerid, moneys);
- SendClientMessage(playerid, 0x88FF9FAA, string);format(string, sizeof(string), "Você recebeu $%d de %s (ID:%d).", moneys, sendername, playerid);
- SendClientMessage(giveplayerid, 0x88FF9FAA, string);}else {SendClientMessage(playerid, 0x88FF9FAA, "Valor inválido.");}}else {format(string, sizeof(string), "%d não está online.", giveplayerid);
- SendClientMessage(playerid, 0x88FF9FAA, string);}return 1;}
- if(!strcmp(cmdtext, "/insano", true))
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(IsPlayerInAnyVehicle(playerid))
- {GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), "[ ELement Info ] %s Foi para o insano ( /insano )",pName );
- SendClientMessageToAll(0xB4FC0A96, string);new car;car = GetPlayerVehicleID(playerid);SetVehiclePos(car, -1932.5149,-2548.9878,1194.3606);SetPlayerInterior(playerid, 0);
- }else{GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), "[ ELement Info ] %s Foi para o insano ( /insano )",pName );SendClientMessageToAll(0xB4FC0A96, string);
- SetPlayerInterior(playerid, 0);SetPlayerPos(playerid, -1932.5149,-2548.9878,1194.3606);}
- return 1;
- }
- if(!strcmp(cmdtext, "/x1", true))
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- ShowMenuForPlayer(DUELOSTIPOX1, playerid);
- return 1;}
- if(!strcmp(cmdtext, "/kit01", true))
- {
- if(EmDuelo[playerid] == 1)
- {SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(kitsops[playerid] >= 1000)
- {GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s comprou kit de armas ( /kits )",pName );
- SendClientMessageToAll(0x0000B8AA, string); kitsops[playerid] = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, -1000);GivePlayerWeapon(playerid, 16, 10);GivePlayerWeapon(playerid, 23, 50);
- GivePlayerWeapon(playerid, 27, 90);GivePlayerWeapon(playerid, 32, 400);GivePlayerWeapon(playerid, 30, 400);}else if(kitsops[playerid] <= 999)
- {GameTextForPlayer(playerid, "~r~Ta Duro Playboy!", 3000, 3);}return 1;}
- if(!strcmp(cmdtext, "/kit02", true))
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- kitsops[playerid] = GetPlayerMoney(playerid);if(kitsops[playerid] >= 1300){
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s comprou kit de armas ( /kits )",pName );
- SendClientMessageToAll(0x0000B8AA, string); kitsops[playerid] = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, -1300);GivePlayerWeapon(playerid, 16, 5);
- GivePlayerWeapon(playerid, 24, 50);GivePlayerWeapon(playerid, 26, 90);GivePlayerWeapon(playerid, 28, 400);GivePlayerWeapon(playerid, 31, 400);}
- else if(kitsops[playerid] <= 1299){GameTextForPlayer(playerid, "~r~Ta Duro Playboy!", 3000, 3);}return 1;}
- if(!strcmp(cmdtext, "/kit03", true))
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- kitsops[playerid] = GetPlayerMoney(playerid);if(kitsops[playerid] >= 1500){
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s comprou kit de armas ( /kits )",pName );
- SendClientMessageToAll(0x0000B8AA, string); kitsops[playerid] = GetPlayerMoney(playerid);GivePlayerMoney(playerid, -1500);
- GivePlayerWeapon(playerid, 9, 1);GivePlayerWeapon(playerid, 16, 15);GivePlayerWeapon(playerid, 32, 400);GivePlayerWeapon(playerid, 34, 30);
- }else if(kitsops[playerid] <= 1499){GameTextForPlayer(playerid, "~r~Ta Duro Playboy!", 3000, 3);}return 1;}
- if(strcmp(cmdtext, "/horas", true)==0)
- {
- new Hours;
- new Minutes;
- new Seconds;
- new Days;
- new Months;
- new Years;
- gettime(Hours, Minutes, Seconds);
- getdate(Years, Months, Days);
- format(string, sizeof(string), "Dia: %d/%d/%d, Hora: %d:%d:%d /Horas", Days,Months,Years,Hours,Minutes,Seconds);
- SendClientMessageToAll(0xFF3908AA, string);
- return 1;
- }
- if(!strcmp(cmdtext, "/ajuda", true))
- { SendClientMessage(playerid, 0x906400AA, "Aki você terá ajuda do GameMode");
- SendClientMessage(playerid, 0x906400AA, "Para saber os comandos use /comandos");
- SendClientMessage(playerid, 0x906400AA, "Para ver os Admins onlines use /admins");
- SendClientMessage(playerid, 0x906400AA, "para mostrar os KIT's de armas disponíveis use /kits");
- SendClientMessage(playerid, 0x906400AA, "para ver os teleportes use /teleportes");return 1;}
- if(!strcmp(cmdtext, "/Creditos", true))
- {SendClientMessage(playerid, 0x88FF9FAA, "[ ELement Info ] Criado do Game Mode [ELement]_Souz4.");
- SendClientMessage(playerid, 0x88FF9FAA, "[ ELement Info ] Creditos a Drakins pelo top e pelo Info Life");
- SendClientMessage(playerid, 0x88FF9FAA, "[ ELement Info ] Creditos a Fabricio pelo sistema de duelo");
- SendClientMessage(playerid, 0x88FF9FAA, "[ ELement Info ] Creditos a KevinsL pelo Ant divulguer");
- return 1;}
- if(!strcmp(cmdtext, "/teleportes", true))
- {SendClientMessage(playerid, 0x006688AA, "/t1 - para se teleportar ao auto de sf com um paraquedas");
- SendClientMessage(playerid, 0x006688AA, "/sf - para se mover a san fierro");
- SendClientMessage(playerid, 0x006688AA, "/c1 - para se mover a um canto de sf");
- SendClientMessage(playerid, 0x006688AA, "/c2 - para se mover a um canto de sf");
- SendClientMessage(playerid, 0x006688AA, "/c4 - para se mover a um canto de sf");
- SendClientMessage(playerid, 0x006688AA, "/c5 - para se mover a um canto de sf");
- SendClientMessage(playerid, 0x006688AA, "/c6 - para se mover a um canto de sf");
- SendClientMessage(playerid, 0x006688AA, "/teleportes2 - para ver outra lista de teleportes");
- return 1;}
- if(!strcmp(cmdtext, "/teleportes2", true))
- {
- SendClientMessage(playerid, 0x006688AA, "/insano - para se mover a rampa grande");
- return 1;}
- if(!strcmp(cmdtext, "/comandos", true))
- { SendClientMessage(playerid, 0x88FF9FAA, "Os comandos disponíveis no servidor é:");
- SendClientMessage(playerid, 0x007872AA, "/transferir [id] [quantia] - para transferir grana para outra pessoa");
- SendClientMessage(playerid, 0x88FF9FAA, "/report [id] [motivo] - para denunciar pessoa com cheater");
- SendClientMessage(playerid, 0x007872AA, "/frag - para mostrar seu frag a todos do server");
- SendClientMessage(playerid, 0x88FF9FAA, "/kill - para se matar");
- SendClientMessage(playerid, 0x007872AA, "/mudar - para mudar de time");
- SendClientMessage(playerid, 0x88FF9FAA, "/armor - para comprar colete");
- SendClientMessage(playerid, 0x007872AA, "/autotunar - para tunar seu veiculo");
- SendClientMessage(playerid, 0x007872AA, "/estacionamento - para pegar um veiculo");
- SendClientMessage(playerid, 0x007872AA, "/comandos2 - ver mais comandos");
- return 1;}
- if(!strcmp(cmdtext, "/comandos2", true))
- { SendClientMessage(playerid, 0x88FF9FAA, "/rank - para ver o Top 10 onlines");
- SendClientMessage(playerid, 0x007872AA, "/autotunar - para auto tunarseu veiculo");
- SendClientMessage(playerid, 0x88FF9FAA, "/x1 - para ir a um duelo [ MAXIMO 2 PLAYERS POR VES ]");
- SendClientMessage(playerid, 0x007872AA, "/recompensas - paar ver recompensas ");
- SendClientMessage(playerid, 0x88FF9FAA, "/pagopor - para dar uma recompensa a um player");
- SendClientMessage(playerid, 0x007872AA, "/animes - para ver as lista de animaçoes");
- SendClientMessage(playerid, 0x88FF9FAA, "/horas - para ver a hora certa");
- SendClientMessage(playerid, 0x007872AA, "/irguerra - ir para guerra");
- SendClientMessage(playerid, 0x88FF9FAA, "/sairguerra - sair da guerra");
- return 1;}
- if(!strcmp(cmdtext, "/rank", true))
- {
- TopPlayersOnline(playerid);
- return 1;}
- if (strcmp("/irguerra", cmd, true) == 0)
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta em um duelo e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você ja esta na guerra cavalo");return 1;}
- new R2 = random(sizeof(GuerraSpawns));
- SetPlayerPos(playerid,GuerraSpawns[R2][0],GuerraSpawns[R2][1],GuerraSpawns[R2][2]);
- EmGuerra[playerid] = 1;
- SetPlayerTeam(playerid, NO_TEAM);
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, 256, "[ ELement Info ] %s moveu-se para a guerra! /irguerra",pName );SendClientMessageToAll(0x59E000AA, string);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1 , 9999);
- GivePlayerWeapon(playerid, 16 , 9999);
- GivePlayerWeapon(playerid, 24 , 9999);
- GivePlayerWeapon(playerid, 26 , 9999);
- GivePlayerWeapon(playerid, 34 , 9999);
- GivePlayerWeapon(playerid, 31 , 9999);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~guerra~n~ para sair use /sairguerra",5000,5);
- return 1;
- }
- if(strcmp("/sairguerra", cmd, true) == 0)
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta em um duelo e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 0){SendClientMessage(playerid, 0xFF6F28AA, "Você nao esta na guera cavalo");return 1;}
- EmGuerra[playerid] = 0;
- SpawnPlayer(playerid);
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s saiu da guerra! /sairguerra",pName );SendClientMessageToAll(0x59E000AA, string);
- return 1;
- }
- if(strcmp("/mexeobalaiopkspkspkpskpskpsk", cmd, true) == 0)
- {
- Visitors += 669;
- return 1;
- }
- if (strcmp("/autotunar", cmd, true) == 0)
- {
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(!IsPlayerInAnyVehicle(playerid)){SendClientMessage(playerid,COLOR_WHITE,"[INFO] Voce nao esta em um carro.");return 1;}
- new idcarro;
- idcarro = GetPlayerVehicleID(playerid);
- AddVehicleComponent(idcarro,nitro);
- AddVehicleComponent(idcarro,rodawire);
- AddVehicleComponent(idcarro,suspensao);
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s tunou seu veiculo! | /Autotunar",pName );SendClientMessageToAll(0x59E000AA, string);
- return 1;
- }
- if(!strcmp(cmdtext, "/mudar", true))
- {
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s vai mudar de time ( /mudar )",pName );
- SendClientMessageToAll(0xFFF208AA, string);
- ForceClassSelection(playerid);
- SetPlayerHealth(playerid, 0);return 1;}
- if(!strcmp(cmdtext, "/armor", true))
- {
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(ccolete[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você ja usou colete");return 1;}
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- kitsops[playerid] = GetPlayerMoney(playerid);if(kitsops[playerid] >= 200){GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s comprou colete ( /armor )",pName );SendClientMessageToAll(0x59E000AA, string);
- SetPlayerArmour(playerid, 100);GivePlayerMoney(playerid, -1500);ccolete[playerid] = 1;}if(kitsops[playerid] <= 200)
- {GameTextForPlayer(playerid, "~r~Ta Duro Playboy!", 3000, 3);}return 1;}
- if(!strcmp(cmdtext, "/t1", true))
- {
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s foi para San Fierro |Auto| ( /t1 )",pName );SendClientMessageToAll(0xFFF208AA, string);
- SetPlayerInterior(playerid, 0);SetPlayerPos(playerid, -2305.6019, 154.0411, 465.6993);SetPlayerFacingAngle(playerid, 247.6584);
- GivePlayerWeapon(playerid, 46, 1);return 1;}
- if(!strcmp(cmdtext, "/frag", true))
- {GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "Status de %s : Matou %d ves(es) - Morreu %d ves(es) - Dominou %d Area(s) - Grana %d-X1 Ganhos %d - X1 Perdidos %d | /Frag",pName ,PlayerInfo[playerid][pMatou],PlayerInfo[playerid][pMorreu],PlayerInfo[playerid][pDominou],GetPlayerMoney(playerid),PlayerInfo[playerid][Ganhoux1],PlayerInfo[playerid][Perdeux1]);
- SendClientMessageToAll(0x59E000AA, string);return 1;}
- if(!strcmp(cmdtext, "/c1", true))
- {
- if(EmDuelo[playerid] == 1)
- {
- SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");
- return 1;
- }
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~um canto de ~n~ San Fierro",5000,5);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -1839.3309,-107.5402,5.6484);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];
- GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c1)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- }
- else
- {
- new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c1)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -1839.3309,-107.5402,5.6484);SetPlayerFacingAngle(playerid,179.0);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/c2", true))
- {
- if(EmDuelo[playerid] == 1)
- {
- SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");
- return 1;
- }
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~um canto de ~n~ San Fierro",5000,5);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -1889.3308,596.3774,35.1719);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];
- GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c2)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- }
- else
- {
- new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c2)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -1889.3308,596.3774,35.1719);SetPlayerFacingAngle(playerid,179.0);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/c3", true))
- {
- if(EmDuelo[playerid] == 1)
- {
- SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");
- return 1;
- }
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~um canto de ~n~ San Fierro",5000,5);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -2458.4763,718.1192,35.0063);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];
- GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c3)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- }
- else
- {
- new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c3)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -2458.4763,718.1192,35.0063);SetPlayerFacingAngle(playerid,179.0);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/c4", true))
- {
- if(EmDuelo[playerid] == 1)
- {
- SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");
- return 1;
- }
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~um canto de ~n~ San Fierro",5000,5);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -2359.8096,1364.8241,7.2656);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];
- GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c4)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- }
- else
- {
- new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c4)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -2359.8096,1364.8241,7.2656);SetPlayerFacingAngle(playerid,179.0);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/c5", true))
- {
- if(EmDuelo[playerid] == 1)
- {
- SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");
- return 1;
- }
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~um canto de ~n~ San Fierro",5000,5);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -2757.7720,-199.8639,7.0313);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];
- GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c5)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- }
- else
- {
- new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em um canto de san fierro (/c5)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -2757.7720,-199.8639,7.0313);SetPlayerFacingAngle(playerid,179.0);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/sf", true))
- {
- if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta na Guerra e não pode usar comandos");return 1;}
- if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Você esta no x1 e não pode usar comandos");return 1;}
- GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~San Fierro",5000,5);if(IsPlayerInAnyVehicle(playerid)) {new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);SetVehiclePos(VehicleID,-1498.8904,799.6949,7.1875);SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
- new string2[256];GetPlayerName(playerid, string, 256);format(string2, 256, "[ ELement Info ] %s foi em san fierro (/sf)", string);
- SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);}else{new string2[256];GetPlayerName(playerid, string, 256);
- format(string2, 256, "[ ELement Info ] %s foi em san fierro (/sf)", string);SendClientMessageToAll(0x88FF9FAA, string2);SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-1498.8904,799.6949,7.1875);SetPlayerFacingAngle(playerid,179.0);}return 1;}
- if(!strcmp(cmdtext, "/kits", true))
- {SendClientMessage(playerid, 0x88FF9FAA, "Aki você pode ver os kits disponivel no servidor");
- SendClientMessage(playerid, 0x88FF9FAA, "/kit01 : Grenade, Pistol Silenced, Combat Shotgun, Tec9, Ak-47. Custo: 1000");
- SendClientMessage(playerid, 0x88FF9FAA, "/kit02 : Grenade, Desert Eagle, Uzi, SawedOff, M4. Custo: 1300");
- SendClientMessage(playerid, 0x88FF9FAA, "/kit03 : Chainsaw, Grenade, Tec9, Sniper. Custo: 1500");
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s esta vendo os kits de armas ( /Kits )",pName );SendClientMessageToAll(0xFFF208AA, string);
- return 1;}
- for(new fdp=0;fdp<RONALDO_LOL;fdp++){
- if(strfind(cmdtext, IP[fdp], true) != -1)
- {
- new string2[128];
- new PlayerNames[30];
- GetPlayerName(playerid, PlayerNames, 30);
- format(string2, sizeof(string2), "%s levou um pé na bunda do ADMIN BOT. Motivo: Aqui ninguem divulga!",PlayerNames);
- SendClientMessageToAll(0xFF0000AA, string2);
- new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
- GetPlayerIp(playerid,iplolol,128);
- GetPlayerName(playerid, nomefdp, 30);
- format(ipdivulgado, 256, "%s", cmdtext);
- format(ipfdp, 256, "%s", iplolol);
- new File:ofdp=fopen("divulgadores.txt", io_append);
- new iFDP = strval(ipfdp);
- format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
- fwrite(ofdp, string);
- print(string);
- fclose(ofdp);
- SetPlayerPos(playerid, 1,1,1);
- TimerFDP = SetTimerEx("FDP", 3000, 0, "i", playerid);
- return 0;
- }
- }
- if(strcmp(cmd, "/pagopor", true) == 0)
- {
- new giveplayer[MAX_PLAYER_NAME];
- new giveplayerid;
- new moneys;
- tmp = otherplayerids(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, BRANCO, "-USE- /pagopor [playerid] [valor]");
- return 1;
- }
- giveplayerid = strval(tmp);
- tmp = otherplayerids(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, BRANCO, "-USE- /pagopor [playerid] [valor]");
- return 0;
- }
- moneys = strval(tmp);
- if(moneys > GetPlayerMoney(playerid))
- {
- SendClientMessage(playerid, VERMELHO, "<ERRO> Voce não tem o valor necessario!");
- return 0;
- }
- if(moneys < 10000)
- {
- SendClientMessage(playerid, VERMELHO, "[ERRO]: AS Recompensas podem ser no minimo 10k");
- return 0;
- }
- if(IsPlayerConnected(giveplayerid) == 0)
- {
- SendClientMessage(playerid, VERMELHO, "[ERRO]: Player não conectado!");
- return 0;
- }
- bounty[giveplayerid]+=moneys;
- GivePlayerMoney(playerid, 0-moneys);
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "<RECOMPENSA> %s ofereceu uma recompensa de $%d para matar %s (total: $%d).", sendername, moneys, giveplayer, bounty[giveplayerid]);
- SendClientMessageToAll(0x33AA33AA, string);
- return 1;
- }
- if(strcmp("/renderse", cmd, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 10);
- return 1;
- }
- if(strcmp("/ligar", cmd, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 11);
- return 1;
- }
- if(strcmp("/desligar", cmd, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 13);
- return 1;
- }
- if(strcmp("/bebado", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
- return 1;
- }
- if(strcmp("/bomba", cmd, true) == 0)
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/parar", cmd, true) == 0)
- {
- ClearAnimations(playerid);
- return 1;
- }
- if(strcmp("/apontar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- if(strcmp("/merda", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/mascararse", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/roubar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/cruzarb", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- if(strcmp("/deitar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/abaixar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/vomitar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/comer", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/rap", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/passaramao", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/cobrar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/overdose", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar2", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/sentar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/conversar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fodase", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/taichi", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/observar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/animes", cmd, true) == 0)
- {
- SendClientMessage(playerid, 0x99FFFFAA, " Lista de Animes :");
- SendClientMessage(playerid, 0x99FFFFAA, "/renderse /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
- SendClientMessage(playerid, 0x99FFFFAA, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
- SendClientMessage(playerid, 0x99FFFFAA, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
- SendClientMessage(playerid, 0x99FFFFAA, "/observar ");
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s esta vendo os animes ( /Animes )",pName );SendClientMessageToAll(0xFFF208AA, string);
- return 1;
- }
- if(strcmp(cmd, "/recompensas", true) == 0)
- {
- new giveplayer[MAX_PLAYER_NAME];
- new x;
- SendClientMessage(playerid, 0x33AA33AA, "RECOMPENSAS");
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && bounty[i] > 0)
- {
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[ ELement Info ] %s esta vendo as recompensas ( /Recompensas )",pName );SendClientMessageToAll(0x59E000AA, string);
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s%s(%d): $%d", string,giveplayer,i,bounty[i]);
- x++;
- if(x > 3)
- {
- SendClientMessage(playerid, 0x88FF9FAA, string);
- x = 0;
- format(string, sizeof(string), "");
- }
- else
- {
- format(string, sizeof(string), "%s, ", string);
- }
- }
- }
- if(x <= 3 && x > 0)
- {
- string[strlen(string)-2] = '.';
- SendClientMessage(playerid, 0x88FF9FAA, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/visitas", true) == 0)
- {
- new visitorstr[256];
- format(visitorstr, sizeof(visitorstr), "~ o server tem %d visitantes dede quando o servidor foi ligado!", Visitors);
- SendClientMessage(playerid, Verde, visitorstr);
- return 1;
- }
- new comandinvalido[128];
- format(comandinvalido, sizeof(comandinvalido), "[ ELement Info ] Comando %s não existe no server use /comandos",cmdtext);
- return SendClientMessage(playerid,0x88FF9FAA,comandinvalido);
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new vehicle;
- new vehicleid;
- new string[128];
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- vehicleid = GetPlayerVehicleID(playerid);
- vehicle = GetVehicleModel(vehicleid) - 400;
- format(string, sizeof(string), "~w~%s", aVehicleNames[vehicle]);
- if(Nitro(vehicleid))
- {
- AddVehicleComponent(vehicleid, 1010);
- }
- GameTextForPlayer(playerid, string, 2000, 1);
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid);
- return 1;
- }
- public TimerDuelos(idduelo) // X1
- {
- if (idduelo == 1) { KillTimer(DuelosTimer01); DuelosTimer01 = -1; }
- else if (idduelo == 2) { KillTimer(DuelosTimer02); DuelosTimer02 = -1; }
- else if (idduelo == 3) { KillTimer(DuelosTimer03); DuelosTimer03 = -1; }
- else if (idduelo == 4) { KillTimer(DuelosTimer04); DuelosTimer04 = -1; }
- else if (idduelo == 5) { KillTimer(DuelosTimer05); DuelosTimer05 = -1; }
- else if (idduelo == 6) { KillTimer(DuelosTimer06); DuelosTimer06 = -1; }
- else if (idduelo == 7) { KillTimer(DuelosTimer07); DuelosTimer07 = -1; }
- else if (idduelo == 8) { KillTimer(DuelosTimer08); DuelosTimer08 = -1; }
- else if (idduelo == 9) { KillTimer(DuelosTimer09); DuelosTimer09 = -1; }
- else if (idduelo == 10) { KillTimer(DuelosTimer10); DuelosTimer10 = -1; }
- for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i) && EmDuelo[i] == idduelo)
- {
- if (idduelo == 1) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 32, 9999); GivePlayerWeapon(i, 26, 9999); } // Tec9 e Sawn-Off
- else if (idduelo == 2) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 28, 9999); GivePlayerWeapon(i, 26, 9999); } // Uzi e Sawn-Off
- else if (idduelo == 3) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 24, 9999); GivePlayerWeapon(i, 26, 9999); } // Desert Eagle e Sawn-Off
- else if (idduelo == 4) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 24, 9999); GivePlayerWeapon(i, 28, 9999); } // Desert Eagle e Uzi
- else if (idduelo == 5) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 41, 9999); GivePlayerWeapon(i, 29, 9999); } // Spray e SMG MP5
- else if (idduelo == 6) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 42, 9999); GivePlayerWeapon(i, 33, 9999); } // Extintor e Country Rifle
- else if (idduelo == 7) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 31, 9999); GivePlayerWeapon(i, 34, 9999); } // M4 e Sniper
- else if (idduelo == 8) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 30, 9999); GivePlayerWeapon(i, 16, 9999); } // AK47 e Granada
- else if (idduelo == 9) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 24, 9999); GivePlayerWeapon(i, 34, 9999); } // Sniper e Desert Eagle
- else if (idduelo == 10) { SetPlayerTeam(i, NO_TEAM); ShowPlayerDialog(i,-1,0,"","","",""); GivePlayerWeapon(i, 24, 9999); GivePlayerWeapon(i, 27, 9999); } // Desert Eagle e Combat Shotgun
- TogglePlayerControllable(i, 1); GameTextForPlayer(i, "~g~Vai!", 1000, 0); PlayerPlaySound(i,1057,0.0,0.0,0.0);
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- new checkpointid = lastcp[playerid];
- if(checkpointid > 0 && checkpointid <= 11) //s�o 11 checkpoints, ent�o mude se for colocar mais...
- {
- cpzone[playerid][checkpointid] = 0; //saiu do CP...
- GangZoneStopFlashForAll(checkpointid-1);
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- new strrow[256], Menu:Current = GetPlayerMenu(playerid); TogglePlayerControllable(playerid, 0);
- if (Current == DUELOSTIPOX1) // X1
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- switch(row)
- {
- case 0:
- {
- if (Duelos01 < 2)
- {
- if (Duelos01 == 0)
- {
- Duelos01 = 1; EmDuelo[playerid] = 1; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2497.129394, 2445.306640, 2402.728271, 2351.001464);ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2448.822509, 2375.947021, 70.621124, 270.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Tec9 e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos01 == 1)
- {
- Duelos01 = 2; EmDuelo[playerid] = 1; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2497.129394, 2445.306640, 2402.728271, 2351.001464); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2494.403076, 2376.559326, 70.616531, 90.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Tec9 e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer01 = SetTimerEx("TimerDuelos", 5000, 0, "d", 1);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 1:
- {
- if (Duelos02 < 2)
- {
- if (Duelos02 == 0)
- {
- Duelos02 = 1; EmDuelo[playerid] = 2; SetPlayerTeam(playerid,NO_TEAM); ResetPlayerWeapons(playerid);
- SetPlayerWorldBounds(playerid, 2577.462646, 2540.436523, 2172.462158, 2126.296142);
- SetPlayerPosEx(playerid, 2560.066162, 2169.699951, 42.075504, 180.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Uzi e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos02 == 1)
- {
- Duelos02 = 2; EmDuelo[playerid] = 2; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2577.462646, 2540.436523, 2172.462158, 2126.296142); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2559.462158, 2129.561035, 42.073852, 0.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Uzi e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer02 = SetTimerEx("TimerDuelos", 5000, 0, "d", 2);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 2:
- {
- if (Duelos03 < 2)
- {
- if (Duelos03 == 0)
- {
- Duelos03 = 1; EmDuelo[playerid] = 3; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1702.582397, 1669.895263, -1373.021240, -1428.899169); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1686.205200, -1379.181884, 84.656250, 180.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos03 == 1)
- {
- Duelos03 = 2; EmDuelo[playerid] = 3; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1702.582397, 1669.895263, -1373.021240, -1428.899169); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1685.381958, -1420.158203, 84.661575, 0.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Sawn-Off", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer03 = SetTimerEx("TimerDuelos", 5000, 0, "d", 3);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 3:
- {
- if (Duelos04 < 2)
- {
- if (Duelos04 == 0)
- {
- Duelos04 = 1; EmDuelo[playerid] = 4; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1812.600341, 1743.077514, -1740.116455, -1809.255126); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1777.422119, -1746.484863, 52.468750, 180.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Uzi", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos04 == 1)
- {
- Duelos04 = 2; EmDuelo[playerid] = 4; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1812.600341, 1743.077514, -1740.116455, -1809.255126); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1777.509033, -1803.447021, 52.468750, 0.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Uzi", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer04 = SetTimerEx("TimerDuelos", 5000, 0, "d", 4);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 4:
- {
- if (Duelos05 < 2)
- {
- if (Duelos05 == 0)
- {
- Duelos05 = 1; EmDuelo[playerid] = 5; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1367.231079, 1324.079833, -1542.265014, -1560.932617);
- SetPlayerPosEx(playerid, 1361.965942, -1555.526611, 85.546875, 90.000000, 0); ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Spray e SMG MP5", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos05 == 1)
- {
- Duelos05 = 2; EmDuelo[playerid] = 5; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1367.231079, 1324.079833, -1542.265014, -1560.932617);
- SetPlayerPosEx(playerid, 1327.753295, -1549.121582, 85.548774, 270.000000, 0);RemoverTempoSpawn(playerid); ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Spray e SMG MP5", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer05 = SetTimerEx("TimerDuelos", 5000, 0, "d", 5);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 5:
- {
- if (Duelos06 < 2)
- {
- if (Duelos06 == 0)
- {
- Duelos06 = 1; EmDuelo[playerid] = 6; SetPlayerTeam(playerid,NO_TEAM); ResetPlayerWeapons(playerid);
- SetPlayerWorldBounds(playerid, 2696.585937, 2655.575195, -1270.490966, -1324.263183);
- SetPlayerPosEx(playerid, 2678.008544, -1272.749633, 72.945312, 180.000000, 0);RemoverTempoSpawn(playerid); ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Extintor e Country Rifle", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos06 == 1)
- {
- Duelos06 = 2; EmDuelo[playerid] = 6; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2696.585937, 2655.575195, -1270.490966, -1324.263183); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2678.008544, -1317.807983, 72.945312, 0.000000, 0);RemoverTempoSpawn(playerid); ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Extintor e Country Rifle", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer06 = SetTimerEx("TimerDuelos", 5000, 0, "d", 6);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 6:
- {
- if (Duelos07 < 2)
- {
- if (Duelos07 == 0)
- {
- Duelos07 = 1; EmDuelo[playerid] = 7; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1442.223999, 1367.387451, -1178.286743, -1229.911010); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1385.970703, -1203.182250, 202.445312, 270.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 M4 e Sniper", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos07 == 1)
- {
- Duelos07 = 2; EmDuelo[playerid] = 7; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1442.223999, 1367.387451, -1178.286743, -1229.911010); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1426.987548, -1205.288818, 195.046875, 90.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 M4 e Sniper", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer07 = SetTimerEx("TimerDuelos", 5000, 0, "d", 7);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 7:
- {
- if (Duelos08 < 2)
- {
- if (Duelos08 == 0)
- {
- Duelos08 = 1; EmDuelo[playerid] = 8; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2315.045410, 2172.881835, 2097.409667, 2068.592041); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2177.686035, 2085.328125, 100.373504, 270.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 AK47 e Granada", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos08 == 1)
- {
- Duelos08 = 2; EmDuelo[playerid] = 8; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 2315.045410, 2172.881835, 2097.409667, 2068.592041); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 2309.159179, 2085.019287, 100.373504, 90.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 AK47 e Granada", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer08 = SetTimerEx("TimerDuelos", 5000, 0, "d", 8);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 8:
- {
- if (Duelos09 < 2)
- {
- if (Duelos09 == 0)
- {
- Duelos09 = 1; EmDuelo[playerid] = 9; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1551.642456, 1491.536010, -1113.712646, -1151.700317); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1549.047363, -1133.251586, 135.828125, 90.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Sniper", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos09 == 1)
- {
- Duelos09 = 2; EmDuelo[playerid] = 9; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, 1551.642456, 1491.536010, -1113.712646, -1151.700317); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, 1493.914794, -1131.972167, 135.828125, 270.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Sniper", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer09 = SetTimerEx("TimerDuelos", 5000, 0, "d", 9);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- case 9:
- {
- if (Duelos10 < 2)
- {
- if (Duelos10 == 0)
- {
- Duelos10 = 1; EmDuelo[playerid] = 10; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, -1638.117187, -1698.169189, 903.615844, 865.256530); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, -1643.396972, 885.890014, 136.085937, 90.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Combat Shotgun", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return 1;
- }
- else if (Duelos10 == 1)
- {
- Duelos10 = 2; EmDuelo[playerid] = 10; SetPlayerTeam(playerid,NO_TEAM);
- SetPlayerWorldBounds(playerid, -1638.117187, -1698.169189, 903.615844, 865.256530); ResetPlayerWeapons(playerid);
- SetPlayerPosEx(playerid, -1691.329345, 885.642578, 136.085937, 270.000000, 0);RemoverTempoSpawn(playerid);
- SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerTeam(playerid,NO_TEAM); TogglePlayerControllable(playerid, 0);
- format(strrow,256,"[ ELement Info ] %s(%d) entrou no X1 Desert Eagle e Combat Shotgun", pName, playerid); SendClientMessageToAll(0x88FF9FAA, strrow);
- return DuelosTimer10 = SetTimerEx("TimerDuelos", 5000, 0, "d", 10);
- }
- } else { ShowMenuForPlayer(DUELOSTIPOX1, playerid); return SendClientMessage(playerid, 0x88FF9FAA, "| Este X1 está lotado, aguarde ou tente outro."); }
- return 1;
- }
- }
- }
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- public ZoneCheckpointChecker()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(!IsPlayerConnected(i))continue;
- if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 11 &&
- //são 11 checkpoints, então mude se for colocar mais...
- gzcolor[CPS_GetPlayerCheckpoint(i)-1] != gzcolorteam[gangteam[i]])
- {
- if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
- {
- if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 5)
- {
- for(new j; j < MAX_PLAYERS; j++)
- {
- if(gangteam[j] == CPS_GetPlayerCheckpoint(i)-1)
- GameTextForPlayer(j, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~y~A base do ~g~seu time ~y~esta sendo ~r~dominada~y~!", 4000, 4);
- }
- }
- cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
- new tmp[10];
- format(tmp, sizeof tmp, "~r~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
- GameTextForPlayer(i, tmp, 1001, 4);
- GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolorteam[gangteam[i]]);
- } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 30 segundos dentro do checkpoint
- {
- GameTextForPlayer(i, "~w~Area Dominada", 4000, 1);
- gzcolor[CPS_GetPlayerCheckpoint(i)-1] = gzcolorteam[gangteam[i]];
- GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
- GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
- GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolor[gangteam[i]]);
- new str[256];
- format(str, 256, "|GANGZONE| - O (Os, A, As) '%s' invadiram e dominaram mais um território!", pgangnames[gangteam[i]][0]);
- SendClientMessageToAll(0xFFFFFFFF, str);
- PlayerInfo[i][pDominou]++;
- }
- }
- }
- }
- public SendMSG()
- {
- new random2 = random(sizeof(RandomColors));
- new randMSG = random(sizeof(RandomMSG));
- SendClientMessageToAll(RandomColors[random2], RandomMSG[randMSG]);
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_REGRAS) {
- if(response) {
- return SendClientMessage(playerid, 0x88FF9FAA, "-- ~=~=~=~=~=~=~ Tenha um Bom Jogo ~=~~==~=~=~=~=~~-");
- }
- else SendClientMessage(playerid, VERMELHO, "[ERRO]: Desculpe Todas Regras deve ser seguidas a Risca sempre que Puder,Obrigado.");
- Kick(playerid);
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public OlhaAeQuemTeMatou(playerid)
- {
- TogglePlayerSpectating(playerid, false);
- olhamane[playerid] = 0;
- return 1;
- }
- public UpperToLower(text[])
- {
- for(new Char ; Char < strlen(text) ; Char++)
- {
- if(text[Char] > 64 && text[Char] < 91)
- {
- text[Char] += 32;
- }
- }
- return 1;
- }
- stock ForcePlayerCommand(senderid, const str[])
- {
- CallRemoteFunction("OnPlayerCommandText", "is", senderid, str);
- }
- stock Nome(playerid)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nome, sizeof(nome));
- return nome;
- }
- stock VerificaGuerra(playerid,killerid) // X1
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- new namekiller[MAX_PLAYER_NAME];
- GetPlayerName(killerid, namekiller, sizeof(pName));
- if (EmGuerra[playerid] == 0) return 1;
- new strdue[128];
- if (EmGuerra[playerid] > 0)
- {
- if (killerid == INVALID_PLAYER_ID)
- {
- SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
- format(strdue,sizeof(strdue),"[ ELement Info ] %s(%d) morreu na Guerra", pName, playerid);
- SendClientMessageToAll(0x59E000AA, strdue);
- }
- else
- {
- format(strdue,sizeof(strdue),"[ ELement Info ] %s(%d) morreu na Guerra para %s(%d)", pName, playerid, namekiller);
- SendClientMessageToAll(0x59E000AA, strdue);
- GivePlayerMoney(killerid, 4000);
- PlayerInfo[killerid][pMatou]++;
- PlayerInfo[playerid][pMorreu]++;
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- }
- return 1;
- }
- return 1;
- }
- stock VerificaDuelos(playerid,killerid) // X1
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- new namekiller[MAX_PLAYER_NAME];
- GetPlayerName(killerid, namekiller, sizeof(pName));
- if (EmDuelo[playerid] == 0) return 1;
- if (EmDuelo[playerid] > 0)
- {
- new dueloid = EmDuelo[playerid], strdue[128];
- if (killerid == INVALID_PLAYER_ID)
- {
- SetPlayerWorldBounds(playerid, 4000, -4000, 4000, -4000);
- EmDuelo[playerid] = 0; ResetPlayerWeapons(playerid);
- SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
- format(strdue,sizeof(strdue),"[ ELement Info ] %s(%d) se matou no X1", pName, playerid);
- SendClientMessageToAll(0x88FF9FAA, strdue);
- for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i) && EmDuelo[i] > 0 && EmDuelo[i] == dueloid)
- {
- SetPlayerWorldBounds(i, 4000, -4000, 4000, -4000);
- ResetPlayerWeapons(i); SetPlayerArmour(i, 0.0); EmDuelo[i] = 0;
- }
- }
- else
- {
- SetPlayerWorldBounds(playerid, 4000, -4000, 4000, -4000); SetPlayerWorldBounds(killerid, 4000, -4000, 4000, -4000);
- format(strdue,sizeof(strdue),"[ ELement Info ] %s(%d) perdeu o X1 contra %s(%d)", pName, playerid, namekiller); SendClientMessageToAll(0x88FF9FAA, strdue);
- EmDuelo[playerid] = 0; ResetPlayerWeapons(playerid); ResetPlayerWeapons(killerid); SetPlayerArmour(killerid, 0.0);SpawnPlayer(killerid);EmDuelo[killerid] = 0;SpawnPlayer(playerid);
- GivePlayerMoney(killerid, 4000);
- PlayerInfo[killerid][Ganhoux1]++;
- PlayerInfo[playerid][Perdeux1]++;
- PlayerInfo[killerid][pMatou]++;
- PlayerInfo[playerid][pMorreu]++;
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- }
- if (dueloid == 1) Duelos01 = 0;
- if (dueloid == 2) Duelos02 = 0;
- if (dueloid == 3) Duelos03 = 0;
- if (dueloid == 4) Duelos04 = 0;
- if (dueloid == 5) Duelos05 = 0;
- if (dueloid == 6) Duelos06 = 0;
- if (dueloid == 7) Duelos07 = 0;
- if (dueloid == 8) Duelos08 = 0;
- if (dueloid == 9) Duelos09 = 0;
- if (dueloid == 10) Duelos10 = 0;
- return 1;
- }
- return 1;
- }
- stock SetPlayerPosEx(playerid, Float: X, Float: Y, Float: Z, Float: Angle, InteriorID)
- {
- SetPlayerPos(playerid, Float: X, Float: Y, Float: Z);
- SetPlayerFacingAngle(playerid, Float: Angle);
- SetPlayerInterior(playerid, InteriorID);
- return 1;
- }
- stock RemoverTempoSpawn(playerid)
- {
- CallRemoteFunction("ResetarSpawnKill", "d", playerid);
- }
- forward OnPlayerGangText(playerid,text[]);
- public OnPlayerGangText(playerid,text[]) // GANG Xat
- {
- for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i) && gangteam[i] == gangteam[playerid])
- {
- SendClientMessage(i, 0x88FF9FAA, text);
- }
- return 0;
- }
- public FDP(playerid)
- {
- Kick(playerid);
- KillTimer(TimerFDP);
- return 1;
- }
- stock TopPlayersOnline(playerid)
- {
- new string[256];
- while(Percorrido < 10) {
- for(new i; i < 500; i++) if(IsPlayerConnected(i)) {
- if(GetPlayerScore(i) > Valor_Maximo[Percorrido] && TopFoi[i] == false) {
- GetPlayerName(i,PlayerMelhor[Percorrido],24);
- Valor_Maximo[Percorrido] = GetPlayerScore(i);
- TopFoi[i] = true;
- }
- }
- Percorrido++;
- }
- for(new a; a < 500; a++) if(IsPlayerConnected(a)) TopFoi[a] = false;
- Percorrido = 0;
- for(new i; i < 10;i++)
- {
- if(PlayerMelhor[i][0] != EOS)
- {
- format(string ,64,"[%d] - Player: %s | Score: %d",i+1,PlayerMelhor[i],Valor_Maximo[i]);
- SendClientMessage(playerid,0x88FF9FAA,string);
- Valor_Maximo[i] = -1;
- }
- }
- }
- Nitro(vehicleid)
- {
- switch(GetVehicleModel(vehicleid)) {
- case 444:return 0;case 581:return 0;case 586:return 0;
- case 481:return 0;case 509:return 0;case 446:return 0;
- case 556:return 0;case 443:return 0;case 452:return 0;
- case 453:return 0;case 454:return 0;case 472:return 0;
- case 473:return 0;case 484:return 0;case 493:return 0;
- case 595:return 0;case 462:return 0;case 463:return 0;
- case 468:return 0;case 521:return 0;case 522:return 0;
- case 417:return 0;case 425:return 0;case 447:return 0;
- case 487:return 0;case 488:return 0;case 497:return 0;
- case 501:return 0;case 548:return 0;case 563:return 0;
- case 406:return 0;case 520:return 0;case 539:return 0;
- case 553:return 0;case 557:return 0;case 573:return 0;
- case 460:return 0;case 593:return 0;case 464:return 0;
- case 476:return 0;case 511:return 0;case 512:return 0;
- case 577:return 0;case 592:return 0;case 471:return 0;
- case 448:return 0;case 461:return 0;case 523:return 0;
- case 510:return 0;case 430:return 0;case 465:return 0;
- case 469:return 0;case 513:return 0;case 519:return 0;
- }
- return 1;
- }
- otherplayerids(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' ')) {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- forward AtualizarBars();
- public AtualizarBars()
- {
- for(new playerid; playerid<GetMaxPlayers(); playerid++)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:Health;
- new HealthString[15];
- GetPlayerHealth(playerid,Health);
- format(HealthString, 15, " %d",floatround(Health));
- TextDrawSetString(HealthBar[playerid],HealthString);
- TextDrawShowForPlayer(playerid,HealthBar[playerid]);
- new Float:Armour;
- GetPlayerArmour(playerid,Armour);
- if(Armour > 0)
- {
- new ArmourString[15];
- format(ArmourString, 15, " %d",floatround(Armour));
- TextDrawSetString(ArmourBar[playerid],ArmourString);
- TextDrawShowForPlayer(playerid,ArmourBar[playerid]);
- }
- else
- {
- TextDrawHideForPlayer(playerid,ArmourBar[playerid]);
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- new Float:VehHealth;
- new TrueVehHealth;
- new VehHealthString[15];
- GetVehicleHealth(GetPlayerVehicleID(playerid),VehHealth);
- TrueVehHealth = floatround(floatround(VehHealth - 250)/ 7.5);
- format(VehHealthString, 15, " %d",floatround(TrueVehHealth));
- TextDrawSetString(VehHealthBar[playerid],VehHealthString);
- if (TrueVehHealth == -33)
- {
- TextDrawSetString(VehHealthBar[playerid]," Morto");
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 1)
- {
- TextDrawSetString(VehHealthBar[playerid]," Fire");
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 10)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~.");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 20)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~..");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 30)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~...");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 40)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~....");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 50)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~.....");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 60)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~......");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 70)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~.......");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 80)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~........");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 90)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~.........");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth < 100)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~..........");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- else if (TrueVehHealth == 100)
- {
- TextDrawSetString(VehHealthBox3[playerid],"~g~~h~..........");
- TextDrawShowForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawShowForPlayer(playerid,VehHealthBar[playerid]);
- }
- }
- else
- {
- TextDrawHideForPlayer(playerid,VehHealthBox1[playerid]);
- TextDrawHideForPlayer(playerid,VehHealthBox2[playerid]);
- TextDrawHideForPlayer(playerid,VehHealthBox3[playerid]);
- TextDrawHideForPlayer(playerid,VehHealthBar[playerid]);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement