Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Progresso Sistema de Admin 100%
- Registro Login 100%
- Comandos 100%(12 no total)
- Teleportes 0%
- Sistemas 35%
- */
- //==============================================================================
- // ================================= Includes ==================================
- //==============================================================================
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #include <sscanf2>
- #include <DOF2>
- //==============================================================================
- // ================================== Defines ==================================
- //==============================================================================
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- #define version "0.1"
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 150
- #undef MAX_VEHICLES
- #define MAX_VEHICLES 850
- #undef MAX_PICKUPS
- #define MAX_PICKUPS 50
- //==============================================================================
- //=================================== Cores ====================================
- //==============================================================================
- #define VERDE 0x21DD00FF
- #define VERMELHO 0xFF030FFF
- #define VERMELHO_ESCURO 0xE60000FF
- #define COLOUR_AVISO 0xFFFF00FF
- #define VERMELHO_CLARO 0xFB0000FF
- #define AMARELO 0xFFFF00FF
- #define LARANJA 0xF97804FF
- #define AZUL_CLARO 0x00C2ECFF
- #define ROXO 0xB360FDFF
- #define BRANCO 0xFFFFFFFF
- #define PRETO 0x000000FF
- #define AZUL 0x1229FAFF
- #define VERDE_CLARO 0x38FF06FF
- #define ROSA_CHOQUE 0xE100E1FF
- #define VERDE_ESCURO 0x008040FF
- #define CINZA 0xCECECEFF
- #define ROSA 0xD52DFFFF
- #define CINZA_ESCURO 0x626262FF
- #define VERDE_AGUA 0x03D687FF
- //==============================================================================
- //=================================== Dialogs ==================================
- //==============================================================================
- #define Vehicle_Dialog2 32
- #define Trains2 33
- #define CivilServ2 34
- #define Govern2 35
- #define RC2 36
- #define Luxury42 37
- #define Luxury4_22 38
- #define TwoDoor2 39
- #define TwoDoor22 40
- #define Heavy2 41
- #define Heavy22 42
- #define Light2 43
- #define Light22 44
- #define Streets2 45
- #define Muscles2 46
- #define SuvWagon2 47
- #define Sports2 48
- #define ReCreated2 49
- #define Bikes2 50
- #define Bicycles2 51
- #define Monsters2 52
- #define Boats2 53
- #define Helis2 54
- #define Planes122 55
- #define Cars2 56
- #define Lowriders2 57
- #define dialogcreditos 78456
- #define dialogajuda 78457
- #define dialogcomandos 78458
- #define dialogregras 78459
- #define dialogteles 78460
- #define dialogtelesdm 78461
- #define dialognovi 78462
- //==============================================================================
- // ================================== Forwards =================================
- //==============================================================================
- forward AntiSpam(playerid);
- forward Kicka(p);
- forward Bana(p);
- forward TempoPreso(playerid);
- forward VerificarPreso(playerid);
- forward NomeCarro(playerid);
- forward UpdateTime();
- forward SendMSG();
- forward CriarVeiculo(playerid, modelo);
- //==============================================================================
- // ================================== New's ====================================
- //==============================================================================
- new Mortes[MAX_PLAYERS];
- new RecentlyShot[MAX_PLAYERS];
- new Vehicle [ MAX_PLAYERS ] ;
- new Guerra[41];
- new bool:X1[MAX_PLAYERS],pX1;
- new bool:X1W[MAX_PLAYERS],pX1W;
- new bool:arena[MAX_PLAYERS];
- new total_vehicles_from_files;
- new JatemCarroSafado [ MAX_PLAYERS ] ;
- new TimerMV[MAX_PLAYERS];
- new TotalVeiculos ;
- new string2[190];
- 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"}, {"Artic Trailer 1"}, {"Previon"},
- {"Coach"}, {"Cabbie"}, {"Stallion"}, {"Rumpo"}, {"RC Bandit"}, {"Romero"}, {"Packer"}, {"Monster"},
- {"Admiral"}, {"Squalo"}, {"Seasparrow"}, {"Pizzaboy"}, {"Tram"}, {"Artic Trailer 2"}, {"Turismo"},
- {"Speeder"}, {"Reefer"}, {"Tropic"}, {"Flatbed"}, {"Yankee"}, {"Caddy"}, {"Solair"}, {"Berkley's RC Van"},
- {"Skimmer"}, {"PCJ-6_0_0"}, {"Faggio"}, {"Freeway"}, {"RC Baron"}, {"RC Raider"}, {"Glendale"}, {"Oceanic"},
- {"Sanchez"}, {"Sparrow"}, {"Patriot"}, {"Quad"}, {"Coastguard"}, {"Dinghy"}, {"Hermes"}, {"Sabre"},
- {"Rustler"}, {"ZR-3_5_0"}, {"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"}, {"Chemical Trailer"}, {"Emperor"}, {"Wayfarer"}, {"Euros"}, {"Hotdog"}, {"Club"}, {"Freight Carriage"},
- {"Artic Trailer 3"}, {"Andromada"}, {"Dodo"}, {"RC Cam"}, {"Launch"}, {"Police Car LSPD"}, {"Police Car SFPD"},
- {"Police _LVPD"}, {"Police Ranger"}, {"Picador"}, {"SWAT. Van"}, {"Alpha"}, {"Phoenix"}, {"Glendale"},
- {"Sadler"}, {"Luggage Trailer A"}, {"Luggage Trailer B"}, {"Stair Trailer"}, {"Boxville"}, {"Farm Plow"},
- {"Utility Trailer"}
- };
- new Float:gRandomSpawns_LosSantos[][4] =
- {
- {1751.1097,-2106.4529,13.5469,183.1979}, // El-Corona - Outside random house
- {2652.6418,-1989.9175,13.9988,182.7107}, // Random house in willowfield - near playa de seville and stadium
- {2489.5225,-1957.9258,13.5881,2.3440}, // Hotel in willowfield - near cluckin bell
- {2689.5203,-1695.9354,10.0517,39.5312}, // Outside stadium - lots of cars
- {2770.5393,-1628.3069,12.1775,4.9637}, // South in east beach - north of stadium - carparks nearby
- {2807.9282,-1176.8883,25.3805,173.6018}, // North in east beach - near apartments
- {2552.5417,-958.0850,82.6345,280.2542}, // Random house north of Las Colinas
- {2232.1309,-1159.5679,25.8906,103.2939}, // Jefferson motel
- {2388.1003,-1279.8933,25.1291,94.3321}, // House south of pig pen
- {2481.1885,-1536.7186,24.1467,273.4944}, // East LS - near clucking bell and car wash
- {2495.0720,-1687.5278,13.5150,359.6696}, // Outside CJ's house - lots of cars nearby
- {2306.8252,-1675.4340,13.9221,2.6271}, // House in ganton - lots of cars nearby
- {2191.8403,-1455.8251,25.5391,267.9925}, // House in south jefferson - lots of cars nearby
- {1830.1359,-1092.1849,23.8656,94.0113}, // Mulholland intersection carpark
- {2015.3630,-1717.2535,13.5547,93.3655}, // Idlewood house
- {1654.7091,-1656.8516,22.5156,177.9729}, // Right next to PD
- {1219.0851,-1812.8058,16.5938,190.0045}, // Conference Center
- {1508.6849,-1059.0846,25.0625,1.8058}, // Across the street of BANK - lots of cars in intersection carpark
- {1421.0819,-885.3383,50.6531,3.6516}, // Outside house in vinewood
- {1133.8237,-1272.1558,13.5469,192.4113}, // Near hospital
- {1235.2196,-1608.6111,13.5469,181.2655}, // Backalley west of mainstreet
- {590.4648,-1252.2269,18.2116,25.0473}, // Outside "BAnk of San Andreas"
- {842.5260,-1007.7679,28.4185,213.9953}, // North of Graveyard
- {911.9332,-1232.6490,16.9766,5.2999}, // LS Film Studio
- {477.6021,-1496.6207,20.4345,266.9252}, // Rodeo Place
- {255.4621,-1366.3256,53.1094,312.0852}, // Outside propery in richman
- {281.5446,-1261.4562,73.9319,305.0017}, // Another richman property
- {790.1918,-839.8533,60.6328,191.9514}, // Mulholland house
- {1299.1859,-801.4249,84.1406,269.5274}, // Maddoggs
- {1240.3170,-2036.6886,59.9575,276.4659}, // Verdant Bluffs
- {2215.5181,-2627.8174,13.5469,273.7786}, // Ocean docks 1
- {2509.4346,-2637.6543,13.6453,358.3565} // Ocean Docks spawn 2
- };
- enum SpawnInfo
- {
- Float:SX ,
- Float:SY ,
- Float:SZ ,
- Float:SA ,
- }
- new RandomSpawnsX1 [ 6 ] [ SpawnInfo ] = {
- { -1416.0305 , 1248.8503 , 1039.8741 , 99.5885 } ,
- { -1403.9939 , 1239.7618 , 1039.8672 , 314.2756 } ,
- { -1383.2361 , 1263.2667 , 1039.8672 , 314.2756 } ,
- { -1371.9156 , 1251.0037 , 1039.8672 , 212.8017 } ,
- { -1370.8284 , 1231.7102 , 1039.8672 , 173.6712 } ,
- { -1403.9939 , 1239.7618 , 1039.8672 , 314.2756 }
- };
- new RandomSpawnGuerra [ 16 ] [ SpawnInfo ] = {
- { 414.8407,2532.6992,19.1484 } ,
- { 282.6218,2612.5815,16.0637 } ,
- { -584.5591,2591.2527,65.4126 } ,
- { -418.5795,2476.4128,43.6431 } ,
- { 345.8060,2018.9552,22.2215 } ,
- { -174.0412,1693.1797,16.7796 } ,
- { -299.9593,1754.1543,42.2627 } ,
- { -356.4713,1890.8206,41.9612 } ,
- { -374.9009,2214.3655,41.8241 } ,
- { -385.7136,2262.8232,41.6116 } ,
- { -727.8915,2437.2048,126.0191 } ,
- { -737.6274,2365.2104,125.3570 } ,
- { -750.8666,2340.8140,123.5368 } ,
- { -491.5825,2496.3423,51.4126 } ,
- { -34.2784,2341.1455,23.7165 } ,
- { 204.1188,1904.1697,17.2169 }
- };
- new RandomSpawnArena [ 11 ] [ SpawnInfo ] = {
- { 1340.0023,2152.9702,10.5768 } ,
- { 1374.7274,2180.8813,10.5877 } ,
- { 1391.6415,2181.2236,10.5882 } ,
- { 1395.3839,2192.8572,10.5860 } ,
- { 1356.4269,2183.5823,10.5804 } ,
- { 1333.9507,2195.1089,10.5878 } ,
- { 1312.9115,2187.1980,10.5873 } ,
- { 1305.8242,2148.4031,10.5883 } ,
- { 1310.9288,2112.6008,10.5791 } ,
- { 1356.0889,2114.0610,10.5800 } ,
- { 1352.4496,2127.7441,10.5800 }
- };
- new RandomMSG[][] =
- {
- "{F6F6F6}Use {FC0303}/Ajuda {F6F6F6} Para Mais Informacoes!",
- "{F6F6F6}Veja Os Criadores Deste Modo De Jogo {FC0303}/Creditos {F6F6F6} !!",
- "{F6F6F6}Use {FC0303}/Telep {F6F6F6} Para Ver Os Teleportes!"
- };
- //Armas
- new ammusawn,
- ammutec9,
- ammupist,
- ammugran,
- ammusnip
- ;
- new Text:Textdraw0;
- new Text:Data;
- new Text:Textdraw5;
- new Text:Textdraw6;
- new Text:Textdraw7;
- new Text:Horas;
- new Text:Textdraw3;
- new Text:Textdraw4;
- /* =============================================================================
- ================================================================================
- ============================================================================= */
- //------------------------------------------------------------------------------
- main() {}//---------------------------------------------------------------------
- //------------------------------------------------------------------------------
- public OnGameModeInit()
- {
- UpdateTime();
- SetTimer("UpdateTime",1000,1);
- Textdraw0 = TextDrawCreate(491.000000, 356.000000, "~w~A~r~c ~w~A~r~ssasin's ~w~C~r~ity");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 0);
- TextDrawLetterSize(Textdraw0, 0.400000, 2.399999);
- TextDrawColor(Textdraw0, -16776961);
- TextDrawSetOutline(Textdraw0, 1);
- TextDrawSetProportional(Textdraw0, 1);
- Data = TextDrawCreate(453.000000, 425.000000, "00/00/0000");
- TextDrawBackgroundColor(Data, 255);
- TextDrawFont(Data, 3);
- TextDrawLetterSize(Data, 0.240000, 1.600000);
- TextDrawColor(Data, -132901633);
- TextDrawSetOutline(Data, 1);
- TextDrawSetProportional(Data, 1);
- TextDrawSetShadow(Data, 1);
- Horas = TextDrawCreate(558.000000, 429.000000, "00:00:00");
- TextDrawBackgroundColor(Horas, 255);
- TextDrawFont(Horas, 2);
- TextDrawLetterSize(Horas, 0.210000, 1.300000);
- TextDrawColor(Horas, -16776961);
- TextDrawSetOutline(Horas, 1);
- TextDrawSetProportional(Horas, 1);
- TextDrawSetShadow(Horas, 1);
- Textdraw3 = TextDrawCreate(539.000000, 347.000000, "~r~-");
- TextDrawAlignment(Textdraw3, 2);
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 2);
- TextDrawLetterSize(Textdraw3, 18.130039, 1.399999);
- TextDrawColor(Textdraw3, -65281);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(539.000000, 435.000000, "~r~-");
- TextDrawAlignment(Textdraw4, 2);
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 2);
- TextDrawLetterSize(Textdraw4, 18.130039, 1.399999);
- TextDrawColor(Textdraw4, -65281);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- Textdraw5 = TextDrawCreate(471.000000, 382.000000, "~w~] assasinscity.forumeiros.com ~w~]");//quandoo site estiver pronto
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 2);
- TextDrawLetterSize(Textdraw5, 0.200000, 1.399999);
- TextDrawColor(Textdraw5, -16776961);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawSetProportional(Textdraw5, 1);
- Textdraw7 = TextDrawCreate(513.000000, 410.000000, "Ac");
- TextDrawBackgroundColor(Textdraw7, -16776961);
- TextDrawFont(Textdraw7, 2);
- TextDrawLetterSize(Textdraw7, 0.529999, 3.600001);
- TextDrawColor(Textdraw7, -1);
- TextDrawSetOutline(Textdraw7, 1);
- TextDrawSetProportional(Textdraw7, 1);
- Textdraw6 = TextDrawCreate(516.000000, 404.000000, "]");
- TextDrawBackgroundColor(Textdraw6, -16776961);
- TextDrawFont(Textdraw6, 2);
- TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
- TextDrawColor(Textdraw6, -1);
- TextDrawSetOutline(Textdraw6, 0);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetShadow(Textdraw6, 4);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdraw0);
- TextDrawShowForPlayer(i, Data);
- TextDrawShowForPlayer(i, Horas);
- TextDrawShowForPlayer(i, Textdraw3);
- TextDrawShowForPlayer(i, Textdraw4);
- TextDrawShowForPlayer(i, Textdraw5);
- TextDrawShowForPlayer(i, Textdraw6);
- TextDrawShowForPlayer(i, Textdraw7);
- }
- }
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2158.2080,950.1351,10.9856,50,0,0);//Text Lv Ammu Avenida
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2538.1443,2077.5703,10.9719,50,0,0);//Text Lv Ammu OslV
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,777.4370,1874.2725,4.9248,50,0,0);//Text Lv Deserto Prox AA
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-315.7644,827.8377,14.2422,50,0,0);//Text Ammu Fort Carson
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-1510.5044,2610.1936,55.8359,50,0,0);//Text Ammu El Quebrados
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,1366.8577,-1282.4663,13.5469,50,0,0);//Text Ammu Ls01
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,241.9841,-176.5516,1.1317,50,0,0);//Ls Ammu02
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2399.2043,-1981.3638,13.1103,50,0,0);//Text Ammu Blue Berry
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2333.3069,64.4671,27.4693,50,0,0);//Text Ammu Palomino Creek
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-2095.0071,-2463.6616,30.6250,50,0,0);//Text Ammu AngeL Pine
- Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-2629.0779,208.5690,4.5326,50,0,0);//Text Ammu SF
- //Configs
- UsePlayerPedAnims();
- SetNameTagDrawDistance(40.0);
- EnableStuntBonusForAll(0);
- SetWeather(2);
- SetTimer("SendMSG", 6000000, true);
- SetWorldTime(11);
- SetGameModeText("Los Santos - DM");
- SendRconCommand("hostname © [LS]Death Match versao beta © » 2013");
- //Skin
- AddPlayerClass(3,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(4,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(5,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(6,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(8,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(42,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(65,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(86,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(119,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(149,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(208,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(273,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(289,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(280,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(281,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(282,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
- AddPlayerClass(283,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(284,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(285,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(286,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(287,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(254,1958.3783,1343.1572,15.3746,0.0,0,0,24,300,-1,-1);
- AddPlayerClass(255,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(256,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(257,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(258,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(259,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(260,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(261,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(262,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(263,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(264,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(274,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(275,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(276,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(290,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(291,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(292,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(293,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(294,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(295,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(296,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(297,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(298,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(299,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(277,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(278,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(279,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(288,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(47,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(48,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(49,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(50,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(51,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(52,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(53,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(54,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(55,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(56,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(57,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(58,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(59,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(60,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(61,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(62,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(63,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(64,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(66,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(67,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(68,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(69,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(70,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(71,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(72,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(73,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(75,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(76,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(78,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(79,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(80,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(81,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(82,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(83,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(84,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(85,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(87,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(88,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(89,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(91,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(92,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(93,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(95,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(96,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(97,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(98,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(99,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(100,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(101,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(102,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(103,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(104,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(105,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(106,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(107,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(108,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(109,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(110,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(111,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(112,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(113,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(114,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(115,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(116,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(117,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(118,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(120,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(121,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(122,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(123,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(124,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(125,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(126,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(127,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(128,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(129,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(131,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(133,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(134,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(135,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(136,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- AddPlayerClass(137,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
- // LOS SANTOS CARROS
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
- // ESPECIAL
- total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
- printf("Total vehicles from files: %d",total_vehicles_from_files);
- //Carros /Guerra
- Guerra [0] = AddStaticVehicleEx(432,9.8000000,1543.3000500,12.8000000,48.0000000,95,10,15); //Rhino
- Guerra [1] = AddStaticVehicleEx(433,134.0000000,1829.8000500,18.2000000,36.0000000,95,10,15); //Barracks
- Guerra [2] = AddStaticVehicleEx(601,147.8999900,1864.1999500,17.7000000,0.0000000,245,245,15); //S.W.A.T. Van
- Guerra [3] = AddStaticVehicleEx(447,128.3000000,1852.1999500,17.8000000,0.0000000,32,32,15); //Seasparrow
- Guerra [4] = AddStaticVehicleEx(447,115.1000000,1853.1999500,17.8000000,0.0000000,32,32,15); //Seasparrow
- Guerra [5] = AddStaticVehicleEx(520,119.8000000,1895.9000200,19.4000000,0.0000000,-1,-1,15); //Hydra
- Guerra [6] = AddStaticVehicleEx(425,202.2000000,1889.6999500,18.5000000,0.0000000,95,10,15); //Hunter
- Guerra [7] = AddStaticVehicleEx(425,226.6000100,1891.0000000,18.5000000,0.0000000,95,10,15); //Hunter
- Guerra [8] = AddStaticVehicleEx(432,276.7000100,1955.0999800,17.7000000,272.0000000,95,10,15); //Rhino
- Guerra [9] = AddStaticVehicleEx(432,278.7999900,1989.0999800,17.7000000,272.0000000,95,10,15); //Rhino
- Guerra [10] = AddStaticVehicleEx(432,277.5000000,2023.6999500,17.7000000,270.0000000,95,10,15); //Rhino
- Guerra [11] = AddStaticVehicleEx(470,287.2000100,2044.5000000,17.8000000,216.0000000,95,10,15); //Patriot
- Guerra [12] = AddStaticVehicleEx(520,307.8999900,2051.3000500,18.6000000,180.0000000,-1,-1,15); //Hydra
- Guerra [13] = AddStaticVehicleEx(520,423.6000100,2503.5000000,17.4000000,96.0000000,-1,-1,15); //Hydra
- Guerra [14] = AddStaticVehicleEx(425,364.7000100,2537.6999500,17.5000000,184.0000000,95,10,15); //Hunter
- Guerra [15] = AddStaticVehicleEx(447,347.3999900,2540.5000000,16.9000000,188.0000000,32,32,15); //Seasparrow
- Guerra [16] = AddStaticVehicleEx(432,391.2000100,2576.8999000,16.5000000,166.0000000,95,10,15); //Rhino
- Guerra [17] = AddStaticVehicleEx(433,426.1000100,2530.1001000,17.1000000,144.0000000,95,10,15); //Barracks
- Guerra [18] = AddStaticVehicleEx(522,423.0000000,2540.5000000,16.1000000,0.0000000,48,79,15); //NRG-500
- Guerra [19] = AddStaticVehicleEx(455,371.0000000,2471.1999500,17.1000000,20.0000000,95,10,15); //Flatbed
- Guerra [20] = AddStaticVehicleEx(490,344.3999900,2454.1999500,17.0000000,0.0000000,-1,-1,15); //FBI Rancher
- Guerra [21] = AddStaticVehicleEx(476,290.7000100,2541.1001000,18.0000000,182.0000000,245,245,15); //Rustler
- Guerra [22] = AddStaticVehicleEx(476,325.3999900,2539.1999500,18.0000000,180.0000000,111,130,15); //Rustler
- Guerra [23] = AddStaticVehicleEx(520,425.0000000,2491.8999000,17.4000000,92.0000000,-1,-1,15); //Hydra
- Guerra [24] = AddStaticVehicleEx(520,424.5000000,2518.1001000,17.4000000,94.0000000,-1,-1,15); //Hydra
- Guerra [25] = AddStaticVehicleEx(470,172.3000000,2529.3999000,16.9000000,210.0000000,95,10,15); //Patriot
- Guerra [26] = AddStaticVehicleEx(495,-555.0999800,2618.8000500,54.1000000,308.0000000,68,98,15); //Sandking
- Guerra [27] = AddStaticVehicleEx(432,-509.7999900,2554.6999500,53.5000000,306.0000000,95,10,15); //Rhino
- Guerra [28] = AddStaticVehicleEx(432,-537.0000000,2569.6999500,53.5000000,272.0000000,95,10,15); //Rhino
- Guerra [29] = AddStaticVehicleEx(433,-556.5000000,2569.5000000,54.1000000,270.0000000,95,10,15); //Barracks
- Guerra [30] = AddStaticVehicleEx(520,-523.5000000,2593.5000000,54.3000000,264.0000000,-1,-1,15); //Hydra
- Guerra [31] = AddStaticVehicleEx(425,-572.2999900,2595.8000500,66.7000000,270.0000000,95,10,15); //Hunter
- Guerra [32] = AddStaticVehicleEx(402,-511.5000000,2634.3000500,53.4000000,254.0000000,-1,-1,15); //Buffalo
- Guerra [33] = AddStaticVehicleEx(568,-378.5000000,2255.1999500,42.5000000,56.0000000,118,123,15); //Bandito
- Guerra [34] = AddStaticVehicleEx(464,-396.7000100,2254.1001000,41.8000000,0.0000000,214,218,15); //RC Baron
- Guerra [35] = AddStaticVehicleEx(464,-403.8999900,2263.1001000,41.6000000,346.0000000,214,218,15); //RC Baron
- Guerra [36] = AddStaticVehicleEx(432,-371.6000100,2224.6001000,42.6000000,36.0000000,95,10,15); //Rhino
- Guerra [37] = AddStaticVehicleEx(520,-388.7999900,2187.8000500,43.3000000,330.0000000,-1,-1,15); //Hydra
- Guerra [38] = AddStaticVehicleEx(432,-126.9000000,1680.9000200,20.2000000,320.0000000,95,10,15); //Rhino
- Guerra [39] = AddStaticVehicleEx(425,-171.8999900,1675.8000500,16.4000000,8.0000000,95,10,15); //Hunter
- Guerra [40] = AddStaticVehicleEx(432,-296.2000100,1751.5000000,42.8000000,334.0000000,95,10,15); //Rhino
- //Iala
- ammusawn = CreatePickup(350, 2, 2519.4856,-1487.9111,23.9939, -1);
- ammutec9 = CreatePickup(372, 2, 2385.7056,-1460.3362,23.5814, -1);
- ammupist = CreatePickup(346, 2, 2480.1804,-1364.6267,28.3947, -1);
- ammugran = CreatePickup(342, 2, 2756.2166,-1178.9684,68.9759, -1);
- ammusnip = CreatePickup(358, 2, 2527.9497,-1678.8857,19.9302, -1);
- return 1;
- }
- public OnGameModeExit()
- {
- DOF2_Exit();
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Data);
- TextDrawDestroy(Data);
- TextDrawHideForAll(Horas);
- TextDrawDestroy(Horas);
- TextDrawHideForAll(Textdraw3);
- TextDrawDestroy(Textdraw3);
- TextDrawHideForAll(Textdraw4);
- TextDrawDestroy(Textdraw4);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, -2615.8809,-294.8363,22.6588);
- SetPlayerFacingAngle(playerid, 279.8794);
- SetPlayerCameraPos(playerid, -2609.3801,-294.4808,22.9776);
- SetPlayerCameraLookAt(playerid, -2615.8809,-294.8363,22.6588);
- ApplyAnimation ( playerid , "PARK", "Tai_Chi_Loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, Data);
- TextDrawShowForPlayer(playerid, Horas);
- //AntBug
- SetPlayerVirtualWorld ( playerid , 0 ) ;
- SetPlayerInterior ( playerid , 0 ) ;
- ResetPlayerWeapons ( playerid ) ;
- JatemCarroSafado [ playerid ] = 0 ;
- //Msgs
- SendDeathMessage ( INVALID_PLAYER_ID , playerid , 200 ) ;
- format ( string2 , sizeof string2 , "{FFFFFF}%s {BABABA}Entrou no Servidor." , GetNick(playerid));
- SendClientMessageToAll( -1 , string2);
- //Mensagem ao Player
- SendClientMessage(playerid, -1,"||=================================( Bem Vindo )=================================||");
- SendClientMessage(playerid, LARANJA,"|| Aqui é seu servidor de death math!");
- SendClientMessage(playerid, AZUL_CLARO ,"|| Adicione nosso ip nos favoritos!");
- SendClientMessage(playerid, LARANJA,"|| Para obter uma ajuda básica, digite /Ajuda");
- SendClientMessage(playerid, AZUL_CLARO ,"|| Bom jogo! ");
- SendClientMessage(playerid, -1,"||=================================( Bem Vindo )=================================||");
- //Sa
- SetPlayerMapIcon(playerid,49,822.6,-1590.3,13.5,7,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,50,-2570.1,245.4,10.3,7,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,51,2726.6,-2026.4,17.5,7,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,52,2080.3,2119.0,10.8,7,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,53,675.7,-496.6,16.8,7,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,54,-1805.7,943.2,24.8,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,55,2750.9,2470.9,11.0,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,56,2351.8,2529.0,10.8,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,57,2635.5,1847.4,11.0,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,58,2083.4,2221.0,11.0,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,59,-1719.1,1359.4,8.6,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,60,2330.2,75.2,31.0,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,61,203.2,-200.4,6.5,29,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,62,812.9,-1616.1,13.6,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,63,1199.1,-924.0,43.3,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,64,2362.2,2069.9,10.8,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,65,2469.5,2033.8,10.8,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,66,2172.9,2795.7,10.8,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,67,1875.3,2072.0,10.8,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,68,1161.5,2072.0,10.8,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,69,-2356.0,1009.0,49.0,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,70,-1913.3,826.2,36.9,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,71,-2335.6,-165.6,39.5,10,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,72,2397.8,-1895.6,13.7,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,73,2421.6,-1509.6,24.1,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,74,-2671.6,257.4,4.6,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,75,2392.4,2046.5,10.8,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,76,2844.5,2401.1,11.0,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,77,2635.5,1674.3,11.0,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,78,2105.7,2228.7,11.0,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,79,-2154.0,-2461.2,30.8,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,80,-1816.2,620.8,37.5,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,81,-1216.0,1831.4,45.3,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,82,172.73,1176.76,13.7,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,83,932.0,-1353.0,14.0,14,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,84,1971.7,-2036.6,13.5,39,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,85,2071.6,-1779.9,13.5,39,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,86,2094.6,2119.0,10.8,39,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,87,-2490.5,-40.1,39.3,39,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,88,1372.9,-1278.8,12.5,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,89,2400.5,-1978.4,13.5,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,90,-2626.6,209.4,4.9,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,91,2535.9,2083.5,10.8,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,92,2156.5,943.2,10.8,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,93,779.7,1874.3,4.9,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,94,-2092.7,-2463.8,30.6,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,95,240.0,-178.2,2.0,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,96,-1509.4,2611.8,58.5,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,97,-315.67,829.87,13.43,6,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,98,2332.9,63.6,31.0,6,0,MAPICON_LOCAL);
- //Guerra
- for(new i; i < sizeof Guerra; ++i)
- {
- SetVehicleVirtualWorld(Guerra[i], 16);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- switch(reason)
- {
- case 0: format(string2,sizeof string2,"%s Saiu do servidor. (Conexão)",GetNick(playerid));
- case 1: format(string2,sizeof string2,"%s Saiu do servidor. (Correu)",GetNick(playerid));
- case 2: format(string2,sizeof string2,"%s Saiu do servidor. (Kick/Ban)",GetNick(playerid));
- }
- SendClientMessageToAll(0xC1C1C1FF,string2);
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- if(JatemCarroSafado[playerid] == 1)
- {
- DestroyVehicle(Vehicle[playerid]);
- }
- Mortes[playerid] = 0;
- JatemCarroSafado[playerid] = 0;
- KillTimer(TimerMV[playerid]);
- DOF2_Exit();
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- PlayerPlaySound(playerid, 1188, 0, 0, 0);
- pX1--;
- pX1W--;
- SetPlayerInterior ( playerid , 0 ) ;
- SetPlayerVirtualWorld(playerid,0);
- arena[playerid] = false ;
- X1[playerid] = false;
- X1W[playerid] = false;
- RecentlyShot[playerid] = 0;
- ResetPlayerWeapons(playerid);
- //Nacendo por ls
- new rand = random(sizeof(gRandomSpawns_LosSantos));
- SetPlayerPos(playerid, gRandomSpawns_LosSantos[rand][0], gRandomSpawns_LosSantos[rand][1], gRandomSpawns_LosSantos[rand][2]); // Warp the player
- SetPlayerFacingAngle(playerid, 270.0);
- //Kit de arma basico
- KitGuerra(playerid);
- //Text
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, Textdraw7);
- TextDrawShowForPlayer(playerid, Data);
- TextDrawShowForPlayer(playerid, Horas);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- //ChatKill
- SendDeathMessage(killerid, playerid, reason);
- GivePlayerMoney(killerid, 1000);
- //Score
- //SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- //X1
- if (X1W[playerid] == true)
- {
- format(string2, sizeof(string2), "{F81414}[X1W]{FFFFFF}%s{BABABA}[ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA}[ID:%i]{F81414} pra cova![X1W]", GetNick(killerid),killerid,GetNick(playerid),playerid);
- SendClientMessageToAll(-1, string2);
- GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
- GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
- SpawnPlayer(killerid);
- SetPlayerVirtualWorld(killerid, 0);
- SetPlayerInterior(killerid, 0);
- SetPlayerHealth(killerid, 100);
- SendClientMessage(killerid, -1, "{BABABA}[X1W]: Parabens você ganhou $3000!");
- GivePlayerMoney(killerid, 3000);
- X1W[playerid] = false ;
- pX1W--;
- X1W[killerid]= false;
- }
- if (X1[playerid] == true)
- {
- format(string2, sizeof(string2), "{F81414}[X1]{FFFFFF}%s{BABABA}[ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA}[ID:%i]{F81414} pra cova![X1]", GetNick(killerid),killerid,GetNick(playerid),playerid);
- SendClientMessageToAll(-1, string2);
- GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
- GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
- SpawnPlayer(killerid);
- SetPlayerVirtualWorld(killerid, 0);
- SetPlayerInterior(killerid, 0);
- SetPlayerHealth(killerid, 100);
- SendClientMessage(killerid, -1, "{BABABA}[X1]: Parabens você ganhou $3000!");
- GivePlayerMoney(killerid, 3000);
- X1[playerid] = false ;
- pX1--;
- X1[killerid]= false;
- }
- if (arena[playerid] == true)
- {
- new string22[140];
- format(string22, sizeof(string22), "{F81414}[ARENA]{FFFFFF}%s{BABABA} [ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA} [ID:%i]{F81414} visitar o satanas![ARENA]", GetNick(killerid),killerid,GetNick(playerid),playerid);
- SendClientMessageToAll(-1, string22);
- GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
- GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
- SetPlayerHealth(killerid, 100);
- GivePlayerMoney(killerid, 3000);
- arena[playerid] = false ;
- }
- //Anti Bug
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- ResetPlayerWeapons(playerid);
- Mortes[killerid]++;
- Mortes[playerid] = 0;
- if (Mortes[killerid] == 2)
- {
- format(string2, sizeof(string2), "[KILLS]: %s esta querendo virar um(a) assassino(a) ja matou 2 pessoas.!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SetPlayerWantedLevel(killerid, 1);
- }
- if (Mortes[killerid] == 5)
- {
- format(string2, sizeof(string2), "[KILLS]: %s ta tomando gosto pela coisa ja¡ matou 5 sem piedade!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SetPlayerWantedLevel(killerid, 2);
- }
- if (Mortes[killerid] == 10)
- {
- format(string2, sizeof(string2), "[KILLS]: %s ta querendo virar um assassino profissional ja¡ matou 10 negos!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SetPlayerWantedLevel(killerid, 3);
- }
- if (Mortes[killerid] == 15)
- {
- format(string2, sizeof(string2), "[KILLS]: Acho que %s e parente do Chuck Norris ja¡ tirou a vida de 15 infelizes!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 20)
- {
- format(string2, sizeof(string2), "[KILLS]: %s fez uma chasina em San Andreas ja¡ matou 20 pessoas!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SetPlayerWantedLevel(killerid, 4);
- }
- if (Mortes[killerid] == 25)
- {
- format(string2, sizeof(string2), "[KILLS]: %s nao teve uma boa infancia ja¡ matou 25 sem nenhuma compaixao!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 30)
- {
- format(string2, sizeof(string2), "[KILLS]: Acho que %s e o Sylvester Stallone disfarçado ja¡ mandou 30 para a cova!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 35)
- {
- format(string2, sizeof(string2), "[KILLS]: %s ja¡ matou 35, que isso? Ate eu estou com medo dele agora! O.o", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 40)
- {
- format(string2, sizeof(string2), "[KILLS]: %s ja¡ matou 40, puts esse cara e o Demo em pessoa!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SetPlayerWantedLevel(killerid, 5);
- }
- if (Mortes[killerid] == 45)
- {
- format(string2, sizeof(string2), "[KILLS]: %s simplesmente ja¡ mandou 45 para a cova! lol", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 50)
- {
- format(string2, sizeof(string2), "[KILLS]: Eu sei que eu sou um robo e robo´s nao sentem medo, mais fala serio, %s ja¡ matou 50!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SendClientMessageToAll(0xFB0000FF, "E se ele resolve me da um Curto Circuito? O.o");
- SetPlayerWantedLevel(killerid, 6);
- }
- if (Mortes[killerid] == 55)
- {
- format(string2, sizeof(string2), "[KILLS]: Caramba %s ja¡ matou 55 players, so pode esta possuido mesmo!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 60)
- {
- format(string2, sizeof(string2), "[KILLS]: Meu Deus!!! Matar deve ser a maior diversao do %s o cara ja¡ matou 60 alguem para ele por favor!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 65)
- {
- format(string2, sizeof(string2), "[KILLS]: Alguem tem papel ai? Acabei de me borrar todo de medo! %s ja¡ matou 65! To todo cagado! O.o", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 70)
- {
- format(string2, sizeof(string2), "[KILLS]: %s e um pissicopata ja¡ tirou a vida de 70 pessoas! Alguem mata ele por favor!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 75)
- {
- format(string2, sizeof(string2), "[KILLS]: Poha 75 ja¡ e de mais! Para um poco de matar %s ... Voce ja¡ passou dos limites!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 80)
- {
- format(string2, sizeof(string2), "[KILLS]: %s paraaaaaa! Vou ter que chamar o Militares e a Swat para tentar te matar seu infeliz!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SendClientMessage(killerid, 0xFB0000FF, "Tu ja¡ matou 80 players!");
- }
- if (Mortes[killerid] == 85)
- {
- format(string2, sizeof(string2), "[KILLS]: Todos que estao usando o skin do Militares ou da Swat peguem o %s esse FDP ja¡ matou 85!!! _|_", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 90)
- {
- format(string2, sizeof(string2), "[KILLS]: Puta que pariu! %s ja¡ matou 90 vai matar assim na Puta que te pariu! =X", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SendClientMessageToAll(0xFB0000FF, "(Robo´s tambem se estressam.)");
- }
- if (Mortes[killerid] == 95)
- {
- format(string2, sizeof(string2), "[KILLS]: Ninguem para esse cara ae??? ahh.. %s ja¡ matou simplesmente 95 players! O.o", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- }
- if (Mortes[killerid] == 100)
- {
- format(string2, sizeof(string2), "[KILLS]: %s voce passou dos limites! Tu ja¡ matou 100 pessoas cara! Me aposento...", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SendClientMessageToAll(0xFB0000FF, " Apartir de agora nao anuncio mais suas vitimas.");
- }
- if (Mortes[killerid] == 1000)
- {
- format(string2, sizeof(string2), "[KILLS]: Para tudo!!! Agora eu vou anunciar que %s matou simplesmente Mil pessoas! Ele bateu o Record!!!", GetNick(killerid));
- SendClientMessageToAll(0xFB0000FF, string2);
- SendClientMessageToAll(0xFB0000FF, "NAO é falha no sistema... Ele matou Mil mesmo! Nao e 100 nem 200! sao Mil!!! Todos pra cima dele! Goo Goo!!!");
- }
- if (IsPlayerSpawned(killerid))
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~r~MORTO!", 2000, 3);
- new Float: X,Float: Y,Float: Z,Float: X2,Float: Y2;
- PosicaoFrentePlayer(playerid, X2, Y2, -4);
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerCameraPos(playerid, X2, Y2, Z + 3);
- SetPlayerCameraLookAt(playerid, X, Y, Z);
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new string[129+5];
- format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
- SendPlayerMessageToAll(playerid,string);
- return 0;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if ( newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER )
- {
- format ( string2 , sizeof ( string2 ) , "~n~~n~~n~~n~~n~~n~~n~~n~~n~~p~[]~w~ %s ~p~[]", aVehicleNames [ GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) -400 ] ) ;
- GameTextForPlayer ( playerid , string2 , 2000 , 3 ) ;
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == ammusawn) GivePlayerWeapon(playerid, 26, 100);
- if(pickupid == ammutec9) GivePlayerWeapon(playerid, 32, 100);
- if(pickupid == ammupist) GivePlayerWeapon(playerid, 22, 100);
- if(pickupid == ammugran) GivePlayerWeapon(playerid, 16, 5);
- if(pickupid == ammusnip) GivePlayerWeapon(playerid, 34, 100);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
- {
- if(RecentlyShot[playerid] == 0)
- {
- RecentlyShot[playerid] = 1;
- SetTimerEx("AntiSpam", 1000, false, "d", playerid);
- if(GetPlayerWeapon(playerid) == 34)
- {
- new Float:blahx, Float:blahy, Float:blahz;
- HeadshotCheck(playerid, blahx, blahy, blahz);
- return 1;
- }
- return 1;
- }
- return 1;
- }
- return 1;
- }
- public AntiSpam(playerid)
- {
- RecentlyShot[playerid] = 0;
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == Vehicle_Dialog2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid, Bicycles2, 2, "Bicicletas", "Bike\nBMX\nMountain bike", "Selecionar", "Cancelar");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid, Bikes2, 2, "Motos", "NRG-500\nFaggio\nFCR-900\nPCJ-600\nFreeway\nBF-400\nPizzaboy\nWayfarer\nCop Bike\nSanchez\nQuad", "Selecionar", "Cancelar");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid, Monsters2, 2, "Monsters", "Dumper\nDuneride\nMonster\nMonster A\nMonster B", "Selecionar", "Cancelar");
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid, Boats2, 2, "Barcos", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSqualo\nTropic", "Selecionar", "Cancelar");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid, Helis2, 2, "Helis", "Cargobob\nHunter\nLeviathan\nMaverick\nPolice Maverick\nRaindance\nSeasparrow\nSparrow\nSAN News Maverick", "Selecionar", "Cancelar");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid, Planes122, 2, "Avioes", "Hydra\nRustler\nDodo\nNevada\nStuntPlane\nCropduster\nAt-400\nAndromada\nBeagle\nVortex\nSkimmer\nShamal", "Selecionar", "Cancelar");
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid, Cars2, 2, "Carros", "Lowriders\nStreet racers\nCarros Forte\nSuvs & Wagons\nCarros Sport\nRecreacao\nCivil Servant\nGoverno\n4 porta luxo\n2 Porta Sedans\nTrucks Pesados\nLight trucks", "Selecionar", "Cancel");
- }
- if (listitem == 7)
- {
- ShowPlayerDialog(playerid, RC2, 2, "RC Veiculos", "RC Goblin(interzis)\nRC Raider\nRC Barron\nRC Bandit\nRC Cam\nRC Tiger", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Cars2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid, Lowriders2, 2, "Lowriders", "Blade\nBroadway\nRemmington\nSavanna\nSlamvan\nTornado\nVoodoo", "Selecionar", "Cancelar");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid, Streets2, 2, "Street racers", "Elegy\nFlash\nJester\nStratum\nSultan\nUranus", "Selecionar", "Cancelar");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid, Muscles2, 2, "Muscle carros", "Buffalo\nClover\nPhoenix\nSabre", "Selecionar", "Cancelar");
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid, SuvWagon2, 2, "Suvs e Wagons", "Huntley\nLandstalker\nPerennial\nRancher\nRegina\nRomero\nSolair", "Selecionar", "Cancelar");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid, Sports2, 2, "Carros Sport", "Banshee\nBullet\nCheetah\nComet\nHotknife\nHotring racer\nInfernus\nSuper GT\nTurismo\nWindsor\nZR-350", "Selecionar", "Cancelar");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid, ReCreated2, 2, "Recreacao", "Bandito\nBF Injection\nBloodring banger\nCaddy\nCamper\nJourney\nKart\nMesa\nSandking\nVortex", "Selecionar", "Cancelar");
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid, CivilServ2, 2, "Funcionario", "Baggage\nBus\nCabbie\nCoach\nSweeper\nTaxi\nTowtruck\nTrashmaster\nUtility van", "Selecionar", "Cancelar");
- }
- if (listitem == 7)
- {
- ShowPlayerDialog(playerid, Govern2, 2, "Governo", "Ambulance\nBarracks\nEnforcer\nFBI Rancher\nFBI Truck\nFiretruck\nPatriot\nPolice Car SF\nRanger\nSecuricar\nS.W.A.T", "Selecionar", "Cancelar");
- }
- if (listitem == 8)
- {
- ShowPlayerDialog(playerid, Luxury42, 2, "Luxo4", "Admiral\nElegant\nEmperor\nEuros\nGlendale\nGreenwood\nIntruder\nMerit\nNebula\nOceanic\nProximo", "Selecionar", "Cancelar");
- }
- if (listitem == 9)
- {
- ShowPlayerDialog(playerid, TwoDoor2, 2, "TwoDoor", "Alpha\nBlista Compact\nBravura\nBuccaneer\nCadrona\nClub\nEsperanto\nFeltzer\nFortune\nProximo", "Selecionar", "Cancelar");
- }
- if (listitem == 10)
- {
- ShowPlayerDialog(playerid, Heavy2, 2, "Pesado", "Benson\nBoxville\nCement truck\nCombine Harvester\nDFT-30\nDozer\nFlatbed\nHotdog\nProximo", "Selecionar", "Cancelar");
- }
- if (listitem == 11)
- {
- ShowPlayerDialog(playerid, Light2, 2, "Basico", "Berkley's RC van\nBobcat\nBurrito\nForklift\nMoonbeam\nMower\nNewsvan\nProximo", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Bicycles2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 509);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 481);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 510);
- }
- }
- return 1;
- }
- if (dialogid == Bikes2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 522);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 462);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 521);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 461);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 463);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 581);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 448);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 586);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 523);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 468);
- }
- if (listitem == 10)
- {
- CriarVeiculo(playerid, 471);
- }
- }
- return 1;
- }
- if (dialogid == Monsters2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 406);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 573);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 444);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 556);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 557);
- }
- }
- return 1;
- }
- if (dialogid == Boats2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 472);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 473);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 493);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 595);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 484);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 430);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 453);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 452);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 446);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 454);
- }
- }
- return 1;
- }
- if (dialogid == Helis2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 548);//Limpo
- }
- if (listitem == 1)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 425);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 417);//Limpo
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 487);//Limpo
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 497);//Limpo
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 563);//Limpo
- }
- if (listitem == 6)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 447);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 469);//Limpo
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 488);//Limpo
- }
- }
- return 1;
- }
- if (dialogid == Planes122)
- {
- if (response)
- {
- if (listitem == 0)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 520);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 476);//Limpo
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 593);//Limpo
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 553);//Limpo
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 513);//Limpo
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 512);//Ok
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 577);//Ok
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 592);//Ok
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 511);//Ok
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 539);//Ok
- }
- if (listitem == 10)
- {
- CriarVeiculo(playerid, 460);//Ok
- }
- if (listitem == 11)
- {
- CriarVeiculo(playerid, 519);//Ok
- }
- }
- return 1;
- }
- if (dialogid == Lowriders2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 536);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 575);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 534);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 567);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 535);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 576);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 412);
- }
- }
- return 1;
- }
- if (dialogid == Streets2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 562);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 565);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 559);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 561);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 560);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 558);
- }
- }
- return 1;
- }
- if (dialogid == Muscles2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 402);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 542);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 603);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 475);
- }
- }
- return 1;
- }
- if (dialogid == SuvWagon2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 579);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 400);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 404);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 489);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 479);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 442);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 458);
- }
- }
- return 1;
- }
- if (dialogid == Sports2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 429);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 541);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 415);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 480);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 434);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 494);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 411);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 506);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 451);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 555);
- }
- if (listitem == 10)
- {
- CriarVeiculo(playerid, 477);
- }
- }
- return 1;
- }
- if (dialogid == ReCreated2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 568);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 424);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 504);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 457);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 483);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 508);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 571);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 500);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 495);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 539);
- }
- }
- return 1;
- }
- if (dialogid == CivilServ2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 485);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 431);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 438);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 437);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 574);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 420);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 525);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 408);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 552);
- }
- }
- return 1;
- }
- if (dialogid == Govern2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 416);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 433);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 427);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 490);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 528);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 407);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 570);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 597);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 599);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 428);
- }
- if (listitem == 10)
- {
- CriarVeiculo(playerid, 601);
- }
- }
- return 1;
- }
- if (dialogid == RC2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 501);
- }
- if (listitem == 1)
- {
- SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 465);
- }
- if (listitem == 2)
- {
- SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 464);
- }
- if (listitem == 3)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 441);
- }
- if (listitem == 4)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 594);
- }
- if (listitem == 5)
- {
- SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- //CriarVeiculo(playerid, 564);
- }
- }
- return 1;
- }
- if (dialogid == Luxury42)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 445);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 507);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 585);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 587);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 466);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 492);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 546);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 551);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 516);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 467);
- }
- if (listitem == 10)
- {
- ShowPlayerDialog(playerid, Luxury4_22, 2, "Luxo4_2", "Premier\nPrimo\nSentinel\nStretch\nSunrise\nTahoma\nVincent\nWashington\nWillard\nVoltar", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Luxury4_22)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 426);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 547);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 405);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 409);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 550);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 566);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 540);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 421);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 529);
- }
- if (listitem == 9)
- {
- ShowPlayerDialog(playerid, Luxury42, 2, "Luxo4", "Admiral\nElegant\nEmperor\nEuros\nGlendale\nGreenwood\nIntruder\nMerit\nNebula\nOceanic\nProximo", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == TwoDoor2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 602);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 496);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 401);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 518);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 527);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 589);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 419);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 533);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 526);
- }
- if (listitem == 9)
- {
- ShowPlayerDialog(playerid, TwoDoor2, 2, "TwoDoor2", "Hermes\nHustler\nMajestic\nManana\nPicador\nPrevion\nStafford\nStallion\nTampa\nVirgo\nVoltar", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == TwoDoor22)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 474);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 545);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 517);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 410);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 600);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 436);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 580);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 439);
- }
- if (listitem == 8)
- {
- CriarVeiculo(playerid, 549);
- }
- if (listitem == 9)
- {
- CriarVeiculo(playerid, 491);
- }
- if (listitem == 10)
- {
- ShowPlayerDialog(playerid, TwoDoor22, 2, "TwoDoor", "Alpha\nBlista Compact\nBravura\nBuccaneer\nCadrona\nClub\nEsperanto\nFeltzer\nFortune\nProximo", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Heavy2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 499);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 498);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 524);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 532);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 578);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 486);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 455);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 588);
- }
- if (listitem == 8)
- {
- ShowPlayerDialog(playerid, Heavy2, 2, "Pesados2", "Linerunner\nMr Whoopee\nMule\nPacker\nRoadtrain\nTanker\nTractor\nYankee\nVoltar", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Heavy22)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 403);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 423);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 414);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 443);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 515);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 514);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 531);
- }
- if (listitem == 7)
- {
- CriarVeiculo(playerid, 456);
- }
- if (listitem == 8)
- {
- ShowPlayerDialog(playerid, Heavy22, 2, "Pesados", "Benson\nBoxville\nCement truck\nCombine Harvester\nDFT-30\nDozer\nFlatbed\nHotdog\nProximo", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Light2)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 459);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 422);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 482);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 530);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 418);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 572);
- }
- if (listitem == 6)
- {
- CriarVeiculo(playerid, 582);
- }
- if (listitem == 7)
- {
- ShowPlayerDialog(playerid, Light2, 2, "Basico2", "Pony\nRumpo\nSadler\nTug\nWalton\nYosemite\nVoltar", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if (dialogid == Light22)
- {
- if (response)
- {
- if (listitem == 0)
- {
- CriarVeiculo(playerid, 413);
- }
- if (listitem == 1)
- {
- CriarVeiculo(playerid, 440);
- }
- if (listitem == 2)
- {
- CriarVeiculo(playerid, 543);
- }
- if (listitem == 3)
- {
- CriarVeiculo(playerid, 583);
- }
- if (listitem == 4)
- {
- CriarVeiculo(playerid, 478);
- }
- if (listitem == 5)
- {
- CriarVeiculo(playerid, 554);
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid, Light2, 2, "Basico", "Berkley's RC van\nBobcat\nBurrito\nForklift\nMoonbeam\nMower\nNewsvan\nSeguinte", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- return 1;
- }
- //==============================================================================
- //================================= V 1.1 ======================================
- //==============================================================================
- CMD:texton(playerid)
- {
- SetPlayerTime(playerid, 12, 0);
- SetPlayerWeather(playerid, 6);
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Data);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, Textdraw7);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Horas);
- TextDrawShowForPlayer(playerid, Textdraw4);
- SendClientMessage(playerid, VERMELHO,"Textdraw ativada.");
- return 1;
- }
- CMD:lag(playerid)
- {
- SetPlayerTime(playerid, 12, 0);
- SetPlayerWeather(playerid, 6);
- TextDrawHideForPlayer(playerid,Textdraw0);
- TextDrawHideForPlayer(playerid,Horas);
- TextDrawHideForPlayer(playerid,Data);
- TextDrawHideForPlayer(playerid,Textdraw5);
- TextDrawHideForPlayer(playerid,Textdraw3);
- TextDrawHideForPlayer(playerid,Textdraw6);
- TextDrawHideForPlayer(playerid,Textdraw7);
- TextDrawHideForPlayer(playerid,Textdraw4);
- SendClientMessage(playerid,VERMELHO,"Voce usou o comando Ant Lag!");
- return 1;
- }
- CMD:reparar(playerid, params[])
- {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if ( !IsPlayerSpawned ( playerid ) ) return 1;
- if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, VERMELHO, "[ERRO]: Você não está em um veículo como motorista.");
- if (GetPlayerMoney(playerid) < -100) return SendClientMessage(playerid, VERMELHO, "Malandro -100$ por reparar o carro");
- new vehicleid = GetPlayerVehicleID(playerid);
- RepairVehicle(vehicleid);
- SendClientMessage(playerid,-1, "{00FF00}Veiculo reparado!");
- return 1;
- }
- CMD:flip(playerid)
- {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if ( !IsPlayerSpawned ( playerid ) ) return 1;
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,-1,"Voce não esta em um veiculo como motorista." ) ;
- new
- VehicleID,
- Float:X,
- Float:Y,
- Float:Z,
- Float:Angle
- ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- VehicleID = GetPlayerVehicleID ( playerid ) ;
- GetVehicleZAngle ( VehicleID, Angle ) ;
- SetVehiclePos ( VehicleID , X , Y , Z ) ;
- SetVehicleZAngle ( VehicleID , Angle ) ;
- SetVehicleHealth ( VehicleID , 1000.0 ) ;
- GameTextForPlayer ( playerid , "~G~VEICULO VIRADO!" , 3000 , 5 ) ;
- return 1;
- }
- /*CMD:skin(playerid, params[])
- {
- new ID;
- if(sscanf(params, "d", ID)) return SendClientMessage(playerid, -1, "Erro: /skin [ID]");
- if ( strval ( params ) < 0 || strval ( params ) > 299 ) return SendClientMessage( playerid , 0x00C0FFFF , "Escolha a skin de 0 a 299!" ) ;
- SetPlayerSkin(playerid, ID);
- return 1;
- }*/
- CMD:kill(playerid,params[])
- {
- if(LifeBaixo(playerid)) return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if ( IsPlayerInAnyVehicle ( playerid ) )
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos ( playerid , x , y , z ) ;
- SetPlayerPos ( playerid , x , y , z +1 ) ;
- }
- SetPlayerHealth ( playerid , 0 ) ;
- PlayerPlaySound ( playerid , 1085 , 0.0 , 0.0 , 0.0 ) ;
- return 1;
- }
- CMD:mudar(playerid, params[])
- {
- if(LifeBaixo(playerid)) return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) return SendClientMessage( playerid, 0xFF9900AA, "Você não pode usar esse comando em veículos");
- if ( !IsPlayerSpawned ( playerid ) ) return 1;
- SetPlayerHealth(playerid,0.0);
- ForceClassSelection(playerid);
- format(string2, sizeof(string2), "%s foi mudar o Skin --> {F81414}[ /mudar ]",GetNick(playerid) );
- SendClientMessageToAll(LARANJA, string2);
- return 1;
- }
- //==============================================================================
- //=================================== V 1.0 ====================================
- //==============================================================================
- CMD:cm(playerid, params[])
- {
- if(arena[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid))
- {
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage( playerid, 0xE60000FF, "Você já esta em um veiculo, saia dele e tente novamente"); } else {
- ShowPlayerDialog(playerid, Vehicle_Dialog2, 2, "Veiculos", "Bicicletas\nMotos\nMonster trucks\nBarcos\nHelicoteros\nAvioes\nCarros\nRC veiculos", "Selecionar", "Cancelar" );
- }
- return 1;
- }
- CMD:tmc(playerid, params[])
- {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) return 1;
- if(GetPlayerState(playerid)!= PLAYER_STATE_ONFOOT) return SendClientMessage( playerid,0x00C0FFFF,"Você precisa estar a pé para usar este comando");
- if(LifeBaixo(playerid)) return SendClientMessage( playerid, -1,"Sua vida esta muito baixa para usar este comando");
- if(JatemCarroSafado[playerid] == 0) return SendClientMessage( playerid, 0xFF9900AA, "Você não tem veículo. Digite /CM para fazer um.");
- if(GetPlayerInterior(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "Você está dentro de um interior.");
- for(new i; i < GetMaxPlayers(); i++){
- if(IsPlayerConnected(i)){
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
- if(GetPlayerVehicleID(i) == Vehicle[playerid]){
- if(i != playerid){
- new Float:splayerposx,Float:splayerposy,Float:splayerposz;
- GetPlayerPos(i, splayerposx, splayerposy, splayerposz); SetPlayerPos(i,splayerposx, splayerposy, splayerposz+3); SetCameraBehindPlayer(i);
- SendClientMessage(i, -1, "Você foi ejetado pelo dono do veículo.");
- }
- }
- }
- }
- }
- new Float:playerposx, Float:playerposy,Float:playerposz;
- GetPlayerPos(playerid, playerposx, playerposy, playerposz);
- new Float:Angle;
- SetVehicleVirtualWorld(Vehicle[playerid], GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(Vehicle[playerid], GetPlayerInterior(playerid));
- GetPlayerFacingAngle(playerid,Angle); SetVehicleZAngle(Vehicle[playerid], Angle);
- SetVehiclePos(Vehicle[playerid], playerposx, playerposy, playerposz); PutPlayerInVehicle(playerid,Vehicle[playerid],0);
- SendClientMessage( playerid, 0xFF9900AA, "Seu veículo foi puxado para você");
- KillTimer(TimerMV[playerid]);
- return 1;
- }
- CMD:comandos(playerid, params[])
- {
- new Creditos4[700];
- strins(Creditos4,"{BABABA}Todos os comandos do {F81414}Servidor.\n",strlen(Creditos4));
- strins(Creditos4,"{BABABA}/PROCURADOS\n/HORAS\n/ADM\n",strlen(Creditos4));
- strins(Creditos4,"{BABABA}/REPORT\n/RESETSTATS\n/ADMINS\n",strlen(Creditos4));
- strins(Creditos4,"{BABABA}/MUDARSENHA\n/MUDARNICK\n/AJUDA\n",strlen(Creditos4));
- strins(Creditos4,"{BABABA}/TELEP\n/CREDITOS\n/REGRAS\n",strlen(Creditos4));
- strins(Creditos4,"{BABABA}/CM\n/TCM\n/SAIR(ARENAS APENAS).\n/TELESDM\n/NOVIDADES",strlen(Creditos4));
- ShowPlayerDialog(playerid,dialogajuda, DIALOG_STYLE_MSGBOX, "Comandos",Creditos4, "Ok", "Fechar");
- return 1;
- }
- CMD:novidades(playerid)
- {
- new Creditos7[700];
- strins(Creditos7,"{BABABA}Novidades do{F81414} Servidor\n",strlen(Creditos7));
- strins(Creditos7,"{BABABA}Versão 1.0 Fixado bug (/SAIR X1)\nAdicionado Carros por Los Santos.\n",strlen(Creditos7));
- ShowPlayerDialog(playerid,dialognovi, DIALOG_STYLE_MSGBOX, "NOVIDADES",Creditos7, "Ok", "Fechar");
- return 1;
- }
- CMD:telesdm(playerid, params[])
- {
- new Creditos6[700];
- strins(Creditos6,"{BABABA}Teleportes do {F81414}servidor {00FF00}DMs\n",strlen(Creditos6));
- strins(Creditos6,"{BABABA}/X1 -> {F81414} APENAS DUAS PESSOAS.\n",strlen(Creditos6));
- strins(Creditos6,"{BABABA}/X1W -> {F81414} APENAS DUAS PESSOAS.\n",strlen(Creditos6));
- strins(Creditos6,"{BABABA}/GUERRA -> {F81414} GUERRA OFICIAL DO SERVIDOR\n",strlen(Creditos6));
- strins(Creditos6,"{BABABA}/ARENA -> {F81414} ARENA OFICIAL DO SERVIDOR\n",strlen(Creditos6));
- ShowPlayerDialog(playerid,dialogtelesdm, DIALOG_STYLE_MSGBOX, "Teles DM",Creditos6, "Ok", "Fechar");
- return 1;
- }
- CMD:telep(playerid, params[])
- {
- new Creditos5[700];
- strins(Creditos5,"{BABABA}Teleportes do {F81414}servidor\n",strlen(Creditos5));
- strins(Creditos5,"{BABABA}/AEROLS\n/AEROLV\n/AEROSF\n/AA\n",strlen(Creditos5));
- strins(Creditos5,"{BABABA}/SF\n/LS\n/LV\n/AVENIDA\n/VN\n",strlen(Creditos5));
- strins(Creditos5,"{BABABA}/FAVELA\n/GROVE\n",strlen(Creditos5));
- ShowPlayerDialog(playerid,dialogteles, DIALOG_STYLE_MSGBOX, "TELEPORTES",Creditos5, "Ok", "Fechar");
- return 1;
- }
- CMD:ajuda(playerid, params[])
- {
- new Creditos3[700];
- strins(Creditos3,"{BABABA}Caso esteja perdido peça ajuda para um{F81414} Admin\n",strlen(Creditos3));
- strins(Creditos3,"{BABABA}Usando o comando {F81414}/Adm [mensagem].\n",strlen(Creditos3));
- strins(Creditos3,"{BABABA}Para ver os comandos digite{F81414} /Comandos\n",strlen(Creditos3));
- ShowPlayerDialog(playerid,dialogcomandos, DIALOG_STYLE_MSGBOX, "Ajuda",Creditos3, "Ok", "Fechar");
- return 1;
- }
- CMD:regras(playerid, params[])
- {
- new Creditos2[700];
- strins(Creditos2,"{F81414}Não usar nenhum programa que lhe de vantagem sobre os players\n",strlen(Creditos2));
- strins(Creditos2,"{F81414}Não usar minigun fora da arena /GUERRA\n",strlen(Creditos2));
- strins(Creditos2,"{F81414}Não abusar do DB.\n",strlen(Creditos2));
- strins(Creditos2,"{F81414}Não xingar admins/players\n",strlen(Creditos2));
- ShowPlayerDialog(playerid,dialogregras, DIALOG_STYLE_MSGBOX, "Regras",Creditos2, "Ok", "Fechar");
- return 1;
- }
- CMD:creditos(playerid, params[])
- {
- new Creditos[700];
- strins(Creditos,"{BABABA}GameMode Criado por {F81414}Tw0.P4c___.[Ac]\n",strlen(Creditos));
- strins(Creditos,"{BABABA}Com a ajuda de {F81414}Akatsuki_.[Ac]\n",strlen(Creditos));
- strins(Creditos,"{BABABA}Contem codigos de {F81414} Y_Less,ZeeX,Double-O-Seven\n",strlen(Creditos));
- ShowPlayerDialog(playerid,dialogcreditos, DIALOG_STYLE_MSGBOX, "Créditos do Servidor",Creditos, "Ok", "Fechar");
- return 1;
- }
- //==============================================================================
- //================================= Arenas =====================================
- //==============================================================================
- CMD:x1w(playerid, params[])
- {
- if(X1W[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(pX1W == 2)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]: Ja tem mais de 2 pessoas no X1, tente mais tarde.!");
- if(LifeBaixo(playerid))
- return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- SetPlayerInterior(playerid, 16);
- SetPlayerVirtualWorld(playerid,1);
- new gRand = random ( sizeof RandomSpawnsX1 ) ;
- SetPlayerPos ( playerid , RandomSpawnsX1 [ gRand ] [ SX ] , RandomSpawnsX1 [ gRand ] [ SY ] , RandomSpawnsX1 [ gRand ] [ SZ ] ) ;
- SetPlayerFacingAngle ( playerid , RandomSpawnsX1 [ gRand ] [ SA ] ) ;
- ArmamentoW(playerid);
- format(string2, sizeof(string2),"[X1W]: %s[ID:%i] foi para o x1W Quem vai ? [/X1W]",GetNick(playerid), playerid);
- SendClientMessageToAll(VERDE_AGUA,string2);
- pX1W++;
- X1W[playerid] = true;
- return 1;
- }
- CMD:guerra(playerid,params[])
- {
- if(X1[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(X1W[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(arena[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(LifeBaixo(playerid))
- return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- new skinsg[10] =
- {
- 179,
- 191,
- 213,
- 285,
- 286,
- 252,
- 265,
- 266,
- 267,
- 287
- };
- //Players
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid,16);
- ResetPlayerWeapons(playerid);
- //Pos
- new gRand = random ( sizeof RandomSpawnGuerra ) ;
- SetPlayerPos ( playerid , RandomSpawnGuerra [ gRand ] [ SX ] , RandomSpawnGuerra [ gRand ] [ SY ] , RandomSpawnGuerra [ gRand ] [ SZ ] ) ;
- SetPlayerFacingAngle ( playerid , RandomSpawnGuerra [ gRand ] [ SA ] ) ;
- //Armas
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,4,1);
- GivePlayerWeapon(playerid,18,1500);
- GivePlayerWeapon(playerid,22,4000);
- GivePlayerWeapon(playerid,28,4000);
- GivePlayerWeapon(playerid,31,4000);
- GivePlayerWeapon(playerid,38,500);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SetPlayerSkin(playerid,skinsg[random(10)]);
- SendClientMessage(playerid,ROXO,"[INFO - GUERRA]Mate a todos!Não tenha dó!\nAo matar ganhará + (1000$) e + 1 de score Boa sorte!");
- //Mensagem
- format(string2, sizeof(string2),"[INFO - ARENAS]: %s [ID:%i] foi para a Guerra quem vai ? [/GUERRA]",GetNick(playerid), playerid);
- SendClientMessageToAll(VERDE_AGUA,string2);
- arena[playerid] = true;
- return 1;
- }
- CMD:arena(playerid,params[])
- {
- if(X1[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(X1W[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(arena[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(LifeBaixo(playerid))
- return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- //Pos
- new gRand = random ( sizeof RandomSpawnArena ) ;
- SetPlayerPos ( playerid , RandomSpawnArena [ gRand ] [ SX ] , RandomSpawnArena [ gRand ] [ SY ] , RandomSpawnArena [ gRand ] [ SZ ] ) ;
- SetPlayerFacingAngle ( playerid , RandomSpawnArena [ gRand ] [ SA ] ) ;
- //Players
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid,16);
- ResetPlayerWeapons(playerid);
- //Armas
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,22,4000);
- GivePlayerWeapon(playerid,28,4000);
- GivePlayerWeapon(playerid,34,4000);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SendClientMessage(playerid,ROXO,"[INFO - ARENA]Mate a todos!Não tenha dó!\nAo matar ganhará + (1000$) e + 1 de score Boa sorte!");
- //Mensagem
- format(string2, sizeof(string2),"[INFO - ARENAS]: %s [ID:%i] foi para a Arena quem vai ? [/ARENA]",GetNick(playerid), playerid);
- SendClientMessageToAll(VERDE_AGUA,string2);
- arena[playerid] = true;
- return 1;
- }
- CMD:x1(playerid, params[])
- {
- if(X1[playerid] == true)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(pX1 == 2)
- return SendClientMessage(playerid, VERMELHO,"[ERRO]: Ja tem mais de 2 pessoas no X1, tente mais tarde.!");
- if(LifeBaixo(playerid))
- return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
- SetPlayerInterior(playerid, 16);
- SetPlayerVirtualWorld(playerid,2);
- new gRand = random ( sizeof RandomSpawnsX1 ) ;
- SetPlayerPos ( playerid , RandomSpawnsX1 [ gRand ] [ SX ] , RandomSpawnsX1 [ gRand ] [ SY ] , RandomSpawnsX1 [ gRand ] [ SZ ] ) ;
- SetPlayerFacingAngle ( playerid , RandomSpawnsX1 [ gRand ] [ SA ] ) ;
- Armamento(playerid);
- format(string2, sizeof(string2),"[X1]: %s[ID:%i] foi para o x1 Quem vai ? [/X1]",GetNick(playerid), playerid);
- SendClientMessageToAll(VERDE_AGUA,string2);
- pX1++;
- X1[playerid] = true;
- return 1;
- }
- CMD:sair(playerid, params[])
- {
- if (X1[playerid] == true)
- {
- SetPlayerHealth(playerid, 0.0);
- X1[playerid] = false;
- return 1;
- }
- if (arena[playerid] == true)
- {
- if (!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerHealth(playerid, 0.0);
- arena[playerid] = false;
- return 1;
- }
- if (X1W[playerid] == true)
- {
- SetPlayerHealth(playerid, 0.0);
- X1W[playerid] = false;
- return 1;
- }
- return 1;
- }
- //==============================================================================
- //================================= Fim Arenas =================================
- //==============================================================================
- /*public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
- {
- SetPlayerPosFindZ(playerid, fX, fY, fZ);
- return 1;
- }*/
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if ( success == 0 )
- {
- format ( string2 , sizeof ( string2 ) , "{FFFFFF}Erro: {0099FF}Comando \"{FFFFFF}%s\" {0099FF}não existe.", cmdtext ) ;
- SendClientMessage ( playerid , -1 , string2 ) ;
- }
- return 1;
- }
- public SendMSG()
- {
- new randMSG = random(sizeof(RandomMSG));
- SendClientMessageToAll(AZUL_CLARO, RandomMSG[randMSG]);
- return 0;
- }
- public CriarVeiculo(playerid, modelo)
- {
- if(!IsPlayerSpawned(playerid)) return 1;
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return 1;
- if(GetPlayerInterior(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "{BABABA}Você está dentro de um interior.");
- if (GetPlayerVirtualWorld(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "Você está em uma área não permitida para veículos.");
- if(modelo == 432) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
- if(modelo == 520) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
- if(modelo == 447) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
- if(modelo == 464) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- if(modelo == 465) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- if(modelo == 501) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 447) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 464) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
- }
- if(Vehicle[playerid] != 0) {
- DestroyVehicle ( Vehicle [ playerid ] ) ;
- Vehicle [ playerid ] = 0 ;
- }
- new Float:X,Float:Y,Float:Z,Float:Angle;
- GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
- Vehicle[playerid] = CreateVehicle ( modelo , X , Y , Z+1 , Angle , -1 , -1 , 90 ) ;
- AddVehicleComponent(Vehicle[playerid], 1010); SetVehicleVirtualWorld(Vehicle[playerid], GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(Vehicle[playerid], GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,Vehicle[playerid],0);
- SendClientMessage( playerid, 0xFF9900AA, "Veículo fornecido!");
- TotalVeiculos++;
- JatemCarroSafado[playerid] = 1;
- return 1;
- }
- public Kicka(p)
- {
- #undef Kick
- Kick(p);
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- return 1;
- }
- public Bana(p)
- {
- #undef Ban
- Ban(p);
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- return 1;
- }
- public UpdateTime()
- {
- new hour, minute, second;
- new string[500];
- new dia,mes,ano;
- gettime(hour, minute, second);
- getdate(ano,mes,dia);
- format(string,32,"%02d/%02d/%02d",dia,mes,ano);
- TextDrawSetString(Data,string);
- format(string,32,"%02d:%02d:%02d",hour,minute,second);
- TextDrawSetString(Horas,string);
- }
- CMD:aerolv(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),1705.7985,1481.9393,10.3573+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,1705.7985,1481.9393,10.3573); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de las venturas -> {F81414}[/AEROLV]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:avenida(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),2062.9380,809.8578,9.0879+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,2062.9380,809.8578,9.0879); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a avenida de lv -> {F81414}[/AEVNIDA]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:lv(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),2172.8481,945.4304,15.2356+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,2172.8481,945.4304,15.2356); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para las venturas -> {F81414}[/LV]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:favela(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),2159.8218,-1012.9626,62.3522+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,2159.8218,-1012.9626,62.3522); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a favela em LS -> {F81414}[/FAVELA]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:ls(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),1544.4202,-1353.4918,329.0461+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,1544.4202,-1353.4918,329.0461); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para los santos -> {F81414}[/LS]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:aerols(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),1972.9900,-2201.7126,13.1045+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,1972.9900,-2201.7126,13.1045); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de los santos -> {F81414}[/AEROLS]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:grove(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),2473.5525,-1711.1073,13.0765+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,2473.5525,-1711.1073,13.0765); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a grove street -> {F81414}[/GROVE]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:vn(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),1464.9005,-889.5593,55.5248+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,1464.9005,-889.5593,55.5248); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para vinewood -> {F81414}[/VN]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:sf(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),-2323.7454,113.2356,34.8764+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,-2323.7454,113.2356,34.8764); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para san fierro -> {F81414}[/SF]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:aerosf(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),-1416.3014,-310.9113,13.5622+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,-1416.3014,-310.9113,13.5622); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de san fierro -> {F81414}[/AEROSF]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:aa(playerid,params[]) {
- if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
- if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
- if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
- if(!IsPlayerSpawned(playerid)) { return 1; }
- SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid),432.5104,2507.4890,16.0512+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
- } else { SetPlayerPos(playerid,432.5104,2507.4890,16.0512); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
- format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto abandonado -> {F81414}[/AA]",GetNick(playerid), playerid);
- SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
- return 1;
- }
- stock ArmamentoW ( playerid )
- {
- SetPlayerHealth ( playerid,100);
- SetPlayerArmour (playerid,100);
- GivePlayerWeapon ( playerid , 24 , 9999 ) ;
- GivePlayerWeapon ( playerid , 27 ,9999 ) ;
- GivePlayerWeapon ( playerid , 34 ,9999 ) ;
- ResetPlayerWeapons( playerid ) ;
- GivePlayerWeapon ( playerid , 24 , 9999 ) ;
- GivePlayerWeapon ( playerid , 27 ,9999 ) ;
- GivePlayerWeapon ( playerid , 34 ,9999 ) ;
- return GameTextForPlayer ( playerid , "Voce e o melhor ?? ~r~Prove" , 300 , 0 ) , true ;
- }
- stock Armamento ( playerid )
- {
- SetPlayerArmour (playerid,100);
- SetPlayerHealth ( playerid,100);
- GivePlayerWeapon ( playerid , 26 , 9999 ) ;
- GivePlayerWeapon ( playerid , 31 ,9999 ) ;
- GivePlayerWeapon ( playerid , 22 ,9999 ) ;
- ResetPlayerWeapons( playerid ) ;
- GivePlayerWeapon ( playerid , 26 , 9999 ) ;
- GivePlayerWeapon ( playerid , 31 ,9999 ) ;
- GivePlayerWeapon ( playerid , 24 ,9999 ) ;
- return GameTextForPlayer ( playerid , "Voce e o melhor ?? ~r~Prove" , 300 , 0 ) , true ;
- }
- stock KitGuerra ( playerid )
- {
- GivePlayerWeapon ( playerid , 24 , 99 ) ;
- GivePlayerWeapon ( playerid , 34 , 99 ) ;
- GivePlayerWeapon ( playerid , 26 , 99 ) ;
- GivePlayerWeapon ( playerid , 18 , 1 ) ;
- GivePlayerWeapon ( playerid , 9 , 99 ) ;
- return 1;
- }
- stock Nome(playerid)
- {
- new pNome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pNome, 24);
- return pNome;
- }
- stock HeadshotCheck(playerid, &Float:x, &Float:y, &Float:z)
- {
- new Float:fx,Float:fy,Float:fz;
- GetPlayerCameraFrontVector(playerid, fx, fy, fz);
- new Float:cx,Float:cy,Float:cz;
- GetPlayerCameraPos(playerid, cx, cy, cz);
- for(new Float:i = 0.0; i < 50; i = i + 0.5)
- {
- x = fx * i + cx;
- y = fy * i + cy;
- z = fz * i + cz;
- #if defined SHOWPATH
- CreatePickup(1239, 4, x, y, z, -1);
- #endif
- for(new player = 0; player < MAX_PLAYERS; player ++)
- {
- if(IsPlayerConnected(playerid))
- {
- if(player != playerid)
- {
- if(GetPlayerSpecialAction(player) == SPECIAL_ACTION_DUCK)
- {
- if(IsPlayerInRangeOfPoint(player, 0.3, x, y, z))
- {
- //new string[128];
- // format(string, sizeof(string), "[NEWS]: %s levou um Headshot do %s", PlayerName(player), PlayerName(playerid));
- // SendClientMessageToAll(0xFF9900AA, string);
- GameTextForPlayer(playerid, "~r~HEADSHOT!", 2000, 6);
- GameTextForPlayer(player, "~r~HEADSHOT!", 2000, 6);
- SetPlayerHealth(player, 0.0);
- CallRemoteFunction("OnPlayerDeath", "ddd", player, playerid, 34);
- }
- }
- else
- {
- if(IsPlayerInRangeOfPoint(player, 0.3, x, y, z - 0.7))
- {
- // new string[128];
- // format(string, sizeof(string), "[NEWS]: %s levou um Headshot do %s", PlayerName(player), PlayerName(playerid));
- // SendClientMessageToAll(0xFF9900AA, string);
- GameTextForPlayer(playerid, "~r~HEADSHOT!", 2000, 6);
- GameTextForPlayer(player, "~r~HEADSHOT!", 2000, 6);
- SetPlayerHealth(player, 0.0);
- CallRemoteFunction("OnPlayerDeath", "ddd", player, playerid, 34);
- }
- }
- }
- }
- }
- }
- return 1;
- }
- stock LifeBaixo(playerid)
- {
- new Float:HP;
- GetPlayerHealth(playerid, HP);
- if(HP < 35) return 1;
- return 0;
- }
- stock PosicaoFrentePlayer( playerid, &Float:x, &Float:y, Float:distance)
- {
- new
- Float:a
- ;
- GetPlayerPos( playerid, x, y, a);
- GetPlayerFacingAngle( playerid, a);
- if(GetPlayerVehicleID( playerid ))
- {
- GetVehicleZAngle(GetPlayerVehicleID( playerid ), a);
- }
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- }
- IsPlayerSpawned(playerid)
- {
- new statex = GetPlayerState(playerid);
- if (statex != PLAYER_STATE_NONE && statex != PLAYER_STATE_WASTED && statex != PLAYER_STATE_SPAWNED)
- {
- if (statex != PLAYER_STATE_SPECTATING)
- {
- return true;
- }
- }
- return false;
- }
- stock GetNick(p)
- {
- static Nome2[24];
- GetPlayerName(p, Nome2, 24);
- return Nome2;
- }
- stock token_by_delim(const string[], return_str[], delim, start_index)
- {
- new x=0;
- while(string[start_index] != EOS && string[start_index] != delim)
- {
- return_str[x] = string[start_index];
- x++;
- start_index++;
- }
- return_str[x] = EOS;
- if(string[start_index] == EOS) start_index = (-1);
- return start_index;
- }
- stock LoadStaticVehiclesFromFile(const filename[])
- {
- new File:file_ptr,line[128],var_from_line[64],vehicletype,Float:SpawnX,Float:SpawnY,Float:SpawnZ,Float:SpawnRot,Color1,Color2,index,vehicles_loaded;
- file_ptr = fopen(filename,filemode:io_read);
- if(!file_ptr) return 0;
- vehicles_loaded = 0;
- while(fread(file_ptr,line,256) > 0) {
- index = 0;
- index = token_by_delim(line,var_from_line,',',index);
- if(index == (-1)) continue;
- vehicletype = strval(var_from_line);
- if(vehicletype < 400 || vehicletype > 611) continue;
- index = token_by_delim(line,var_from_line,',',index+1);
- if(index == (-1)) continue;
- SpawnX = floatstr(var_from_line);
- index = token_by_delim(line,var_from_line,',',index+1);
- if(index == (-1)) continue;
- SpawnY = floatstr(var_from_line);
- index = token_by_delim(line,var_from_line,',',index+1);
- if(index == (-1)) continue;
- SpawnZ = floatstr(var_from_line);
- index = token_by_delim(line,var_from_line,',',index+1);
- if(index == (-1)) continue;
- SpawnRot = floatstr(var_from_line);
- index = token_by_delim(line,var_from_line,',',index+1);
- if(index == (-1)) continue;
- Color1 = strval(var_from_line);
- index = token_by_delim(line,var_from_line,';',index+1);
- Color2 = strval(var_from_line);
- AddStaticVehicleEx(vehicletype,SpawnX,SpawnY,SpawnZ,SpawnRot,Color1,Color2,(30*60)); // respawn 30 minutes
- new numplate_test[32+1],vid;
- format(numplate_test,32,"AC{44AA33}%d",vid);
- SetVehicleNumberPlate(vid, numplate_test);
- vehicles_loaded++;
- }
- fclose(file_ptr);
- printf("Loaded %d vehicles from: %s",vehicles_loaded,filename);
- return vehicles_loaded;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement