Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////////////
- // //
- // ///////////////////////////////////////////////////////////////// //
- // /// /// //
- // /// ========= ============ /// //
- // /// ========= === ============ /// //
- // /// ==== === === === === === === /// //
- // /// ==== === === === === === === /// //
- // /// ==== ====== === === === === ============ /// //
- // /// ==== ======= === === === === ============ /// //
- // /// ==== ======== ==== ==== === /// //
- // /// ==== === === ==== ==== === /// //
- // /// ========= === === ==== ==== ============ /// //
- // /// ========= === === ==== ==== ============ /// //
- // /// /// //
- // ///////////////////////////////////////////////////////////////// //
- // //
- /////////////////////////////////////////////////////////////////////////
- //veiculo mafia
- #define CAR_MAFIA 13
- #define CAR_MILITARES 23
- #define CAR_TERRORISTA 21
- #define CAR_TRIADS 18
- new Car_Militares[CAR_MILITARES];
- new Car_Mafia[CAR_MAFIA];
- new Car_Terrorista[CAR_TERRORISTA];
- new Car_Triads[CAR_TRIADS];
- //gangzones
- new Militar;
- new Mafiosos;
- new Terrorista;
- new Triad;
- //=========================
- //ANTI AMX
- AntiDeAMX()
- {
- new a[][] = { "Unarmed (Fist)", "Brass K" };
- #pragma unused a
- }
- #define MES_LIMITE 12
- //===========================================
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Total = 0;
- forward hora(playerid);
- #include a_samp
- #include zcmd
- #include <dini>
- #include <sscanf>
- // TextDraw
- new Text:BemVindo;
- new Text:GM;
- new Text:GM1;
- new Text:Site;
- //equipes
- new gTeam[MAX_PLAYERS];
- #define Mafia 0
- #define Militares 1
- #define Terroristas 2
- #define Triads 3
- #define CorMafia 0x0101DFFF
- #define CorMilitares 0x0B610BFF
- #define CorTerroristas 0x8A0808FF
- #define CorTriads 0xFE2EF7FF
- //==== ADMINS ====
- #define Ajudante 1
- #define Administrador 2
- #define Moderador 3
- #define Master 4
- //====================================
- new nrg[80];
- main()
- {
- print("=======================================================");
- print("-------------------------------------------------------");
- print(" +++++++++++++++++++++++++++++++++++++++++++++++++++ ");
- print(" ++ Gamemode Foi iniciado Corretamente ++ ");
- print(" ++ Gamemode Criado por [NNF]ChryyS ++ ");
- print(" ++ FilterScripts Criado/Editado por [NNF]ChryyS ++ ");
- print(" ++ ============================================ ++ ");
- print(" ++ Este GM Só Rodará se o Autor Permitir ++ ");
- print(" +++++++++++++++++++++++++++++++++++++++++++++++++++ ");
- print("-------------------------------------------------------");
- print("=======================================================");
- }
- //========================================
- //========== Cores ==========
- #define COLOR_DARKGREEN 0x088A08FF
- #define COLOR_CINZA 0x848484FF
- #define COLOR_CONNECT 0x009EB0AA
- #define COLOR_TOPOC 0x089CFFAA
- #define COLOR_ROSITA 0xFF0080FF
- #define COLOR_TIMES 0x089CFFAA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_BLUE 0x33CCFFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_DARKBLUE 0x0000FFAA
- #define COLOR_ORANGE 0xFF5604AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_COCONUT 0x96D742FF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIGHTBLUE 0x33CCFFFF
- #define COLOR_LIGHTYELLOW 0xFAEAA9FF
- #define COLOR_LIGHTGREEN 0x5BC476FF
- #define COLOR_LIMON 0x00FF00FF
- #define COLOR_LIGHTORANGE 0xF7A26FFF
- #define COLOR_LIGHTRED 0xFF6A6AFF
- #define COLOR_MARROM 0x673B15FF
- #define COLOR_BARRAS 0x96D742AA
- #define COLOR_GOLD 0xFFD700AA
- #define COLOR_PINK 0xDF01D7FF
- #define COLOR_BARRAS 0x96D742AA
- //Nome dos veiculos
- new vehName[][] =
- {
- "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
- "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
- "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
- "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
- "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
- "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
- "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
- "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
- "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
- "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
- "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
- "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
- "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
- "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
- "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
- "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
- "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "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", "Hustler", "Intruder", "Primo",
- "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
- "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
- "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
- "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
- "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
- "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
- "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
- "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
- "Tiller", "Utility Trailer"
- };
- //==============================================================================
- //========================================
- public OnGameModeInit()
- {
- //ANTI AMX
- AntiDeAMX();
- ShowNameTags(1);
- EnableStuntBonusForAll(0);
- AllowInteriorWeapons(0); //bloquea armas em interiores
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- {
- new Data[3];
- getdate(Data[0], Data[1], Data[2]); // Ano, mes, dia
- if(Data[1] > MES_LIMITE) // Se o mês atual é maior que o permitido, o servidor fechará.
- {
- printf("Proteção por Data ativada.");
- printf("Você não tem permissão para usar este GameMode.");
- SendRconCommand("exit");
- return true;
- }
- }
- //==========================
- {
- SetTimer("hora",1000,1);
- }
- //GangZone
- Militar = GangZoneCreate(-1485.684692, 481.744476, -1231.547485, 524.751647);
- Mafiosos = GangZoneCreate(-2517.578125, 507.8125, -2376.953125, 566.40625);
- Terrorista = GangZoneCreate(-2159.059, -273.8304, -2008.414, -60.80231);
- Triad = GangZoneCreate(-2247.901, 945.1636, -2139.745, 1122.687);
- //=================
- //***
- //***
- //*** CADA VEÍCULO QUE É CRIADO, SEJA COM CREATEVEHICLE OU ADDSTATICVEHICLE, ELE GERA UM ID DE VEÍCULO DO SERVIDOR. Se um servidor tiver 1000 veículos, cada veículo terá o seu id
- //*** E cada função de CreateVehicle ou AddStaticVehicle gera um ID.
- //***
- // Base mafia
- Car_Mafia[0] = AddStaticVehicleEx(545,-2413.8999000,535.9000200,29.9000000,254.0000000,223,223,100); //hustler ****** ID 0
- Car_Mafia[1] = AddStaticVehicleEx(580,-2413.3000000,539.7999900,29.8000000,268.0000000,223,223,100); //Stafford
- Car_Mafia[2] = AddStaticVehicleEx(461,-2441.5000000,495.7999900,29.8000000,0.0000000,223,223,100); //PCJ-600
- Car_Mafia[3] = AddStaticVehicleEx(461,-2442.8000000,495.3999900,29.8000000,0.0000000,223,223,100); //PCJ-600
- Car_Mafia[4] = AddStaticVehicleEx(461,-2444.3999000,494.8999900,29.8000000,0.0000000,223,223,100); //PCJ-600
- Car_Mafia[5] = AddStaticVehicleEx(461,-2446.6001000,494.2999900,29.8000000,0.0000000,223,223,100); //PCJ-600
- Car_Mafia[6] = AddStaticVehicleEx(461,-2448.2000000,493.7000100,29.8000000,0.0000000,223,223,100); //PCJ-600
- Car_Mafia[7] = AddStaticVehicleEx(419,-2414.7000000,531.7999900,29.9000000,248.0000000,223,223,100); //Esperanto
- Car_Mafia[8] = AddStaticVehicleEx(580,-2416.7000000,528.7000100,29.8000000,237.9950000,223,223,100); //Stafford
- Car_Mafia[9] = AddStaticVehicleEx(545,-2419.5000000,525.0999800,29.9000000,227.9980000,223,223,100); //Hustler
- Car_Mafia[10] = AddStaticVehicleEx(489,-2425.8999000,517.9000200,30.3000000,220.0000000,223,223,100); //Rancher
- Car_Mafia[11] = AddStaticVehicleEx(489,-2429.5000000,514.7999900,30.3000000,219.9960000,223,223,100); //Rancher
- Car_Mafia[12] = AddStaticVehicleEx(519,-2489.2000000,522.7999900,52.1000000,272.0000000,223,223,100); //Shamal ****** ID 12
- //Base Militares
- Car_Militares[0] = AddStaticVehicleEx(548,-1406.9000000,491.6000100,20.1000000,0.0000000,160,128,100); //Cargobob ****** ID 13
- Car_Militares[1] = AddStaticVehicleEx(548,-1421.0000000,491.5000000,20.1000000,0.0000000,160,128,100); //Cargobob
- Car_Militares[2] = AddStaticVehicleEx(476,-1439.5996000,505.5996100,19.4000000,272.0000000,160,128,100); //Rustler
- Car_Militares[3] = AddStaticVehicleEx(476,-1366.0000000,507.2002000,19.4000000,270.0000000,160,128,100); //Rustler
- Car_Militares[4] = AddStaticVehicleEx(476,-1303.3000000,506.8999900,19.4000000,270.0000000,160,128,100); //Rustler
- Car_Militares[5] = AddStaticVehicleEx(487,-1310.5000000,496.2999900,18.5000000,0.0000000,160,128,100); //Maverick
- Car_Militares[6] = AddStaticVehicleEx(487,-1289.9000000,496.1000100,18.5000000,0.0000000,160,128,100); //Maverick
- Car_Militares[7] = AddStaticVehicleEx(487,-1267.7000000,496.2999900,18.5000000,0.0000000,160,128,100); //Maverick
- Car_Militares[8] = AddStaticVehicleEx(595,-1441.9004000,507.4003900,0.0000000,87.9950000,160,128,100); //Launch
- Car_Militares[9] = AddStaticVehicleEx(473,-1443.6000000,492.5000000,0.0000000,88.0000000,160,128,100); //Dinghy
- Car_Militares[10] = AddStaticVehicleEx(473,-1443.5000000,497.2000100,0.0000000,87.9950000,160,128,100); //Dinghy
- Car_Militares[11] = AddStaticVehicleEx(473,-1451.4004000,501.4003900,0.0000000,87.9950000,160,128,100); //Dinghy
- Car_Militares[12] = AddStaticVehicleEx(430,-1481.5000000,486.5996100,0.0000000,2.0000000,160,128,100); //Predator
- Car_Militares[13] = AddStaticVehicleEx(470,-1529.3000000,459.3999900,7.3000000,90.0000000,160,128,100); //Patriot
- Car_Militares[14] = AddStaticVehicleEx(470,-1529.2000000,448.6000100,7.3000000,90.0000000,160,128,100); //Patriot
- Car_Militares[15] = AddStaticVehicleEx(470,-1529.0000000,436.2999900,7.3000000,90.0000000,160,128,100); //Patriot
- Car_Militares[16] = AddStaticVehicleEx(455,-1530.3000000,425.3999900,7.8000000,87.9950000,160,128,100); //Flatbed
- Car_Militares[17] = AddStaticVehicleEx(455,-1530.4000000,419.2000100,7.8000000,87.9950000,160,128,100); //Flatbed
- Car_Militares[18] = AddStaticVehicleEx(433,-1530.2002000,431.0000000,7.8000000,87.9950000,160,128,100); //Barracks
- Car_Militares[19] = AddStaticVehicleEx(470,-1529.2000000,454.7000100,7.3000000,90.0000000,160,128,100); //Patriot
- Car_Militares[20] = AddStaticVehicleEx(470,-1529.2000000,443.2999900,7.3000000,90.0000000,160,128,100); //Patriot
- Car_Militares[21] = AddStaticVehicleEx(519,-1467.4004000,467.5000000,8.2000000,270.0000000,160,128,100); //Shamal
- Car_Militares[22] = AddStaticVehicleEx(595,-1476.5000000,491.0996100,0.0000000,359.9950000,160,128,100); //Launch ****** ID 35
- //base Terroristas
- Car_Terrorista[0] = AddStaticVehicleEx(411,-2127.0000000,-198.5000000,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[1] = AddStaticVehicleEx(411,-2122.6001000,-198.3999900,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[2] = AddStaticVehicleEx(411,-2118.1001000,-198.3999900,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[3] = AddStaticVehicleEx(411,-2113.3999000,-198.5000000,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[4] = AddStaticVehicleEx(411,-2108.1001000,-198.3000000,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[5] = AddStaticVehicleEx(411,-2102.1001000,-198.5000000,35.1000000,180.0000000,3,3,100); //Infernus
- Car_Terrorista[6] = AddStaticVehicleEx(522,-2155.6001000,-191.6000100,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[7] = AddStaticVehicleEx(522,-2155.8000000,-193.3000000,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[8] = AddStaticVehicleEx(522,-2155.6001000,-195.6000100,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[9] = AddStaticVehicleEx(522,-2155.8000000,-198.5000000,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[10] = AddStaticVehicleEx(522,-2155.7000000,-203.5000000,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[11] = AddStaticVehicleEx(522,-2155.7000000,-200.8000000,35.0000000,92.0000000,3,3,100); //NRG-500
- Car_Terrorista[12] = AddStaticVehicleEx(470,-2134.6609000,-242.2063000,35.3138000,271.1147000,3,3,100); //Patriot
- Car_Terrorista[13] = AddStaticVehicleEx(470,-2134.6001000,-238.3999900,35.4000000,270.0000000,3,3,100); //Patriot
- Car_Terrorista[14] = AddStaticVehicleEx(470,-2134.6001000,-233.8999900,35.4000000,270.0000000,3,3,100); //Patriot
- Car_Terrorista[15] = AddStaticVehicleEx(470,-2134.6001000,-228.3000000,35.4000000,270.0000000,3,3,100); //Patriot
- Car_Terrorista[16] = AddStaticVehicleEx(476,-2021.2998000,-273.2002000,36.8000000,358.1380000,3,3,100); //Rustler
- Car_Terrorista[17] = AddStaticVehicleEx(513,-2058.0000000,-271.7000100,36.1000000,0.0000000,3,3,100); //Stunt
- Car_Terrorista[18] = AddStaticVehicleEx(513,-2071.8000000,-271.3999900,36.1000000,0.0000000,3,3,100); //Stunt
- Car_Terrorista[19] = AddStaticVehicleEx(476,-2038.2000000,-272.7999900,36.5000000,358.1380000,3,3,100); //Rustler
- Car_Terrorista[20] = AddStaticVehicleEx(487,-2115.5000000,-186.8000000,46.5000000,90.0000000,3,3,100); //Maverick
- //Veiculos Triads
- Car_Triads[0] = AddStaticVehicleEx(487,-2190.5996100,1045.5000000,88.6000000,180.0000000,146,146,100); //Maverick
- Car_Triads[1] = AddStaticVehicleEx(513,-2204.8999000,968.9000200,85.6000000,0.0000000,146,146,100); //Stunt
- Car_Triads[2] = AddStaticVehicleEx(470,-2197.7000000,1032.5000000,80.1000000,182.0000000,146,146,100); //Patriot
- Car_Triads[3] = AddStaticVehicleEx(470,-2190.2000000,1032.6000000,80.1000000,182.0000000,146,146,100); //Patriot
- Car_Triads[4] = AddStaticVehicleEx(470,-2182.7000000,1032.7000000,80.1000000,182.0000000,146,146,100); //Patriot
- Car_Triads[5] = AddStaticVehicleEx(451,-2198.3000000,965.2999900,79.8000000,270.0000000,146,146,100); //Turismo
- Car_Triads[6] = AddStaticVehicleEx(451,-2198.2000000,971.5000000,79.8000000,270.0000000,146,146,100); //Turismo
- Car_Triads[7] = AddStaticVehicleEx(451,-2198.3000000,977.7999900,79.8000000,270.0000000,146,146,100); //Turismo
- Car_Triads[8] = AddStaticVehicleEx(451,-2198.5000000,983.7999900,79.8000000,270.0000000,146,146,100); //Turismo
- Car_Triads[9] = AddStaticVehicleEx(415,-2198.6001000,990.0000000,79.8000000,270.0000000,146,146,100); //Cheetah
- Car_Triads[10] = AddStaticVehicleEx(415,-2198.3999000,996.0000000,79.8000000,270.0000000,146,146,100); //Cheetah
- Car_Triads[11] = AddStaticVehicleEx(415,-2198.5000000,1002.3000000,79.8000000,270.0000000,146,146,100); //Cheetah
- Car_Triads[12] = AddStaticVehicleEx(415,-2198.3000000,1008.3000000,79.8000000,270.0000000,146,146,100); //Cheetah
- Car_Triads[13] = AddStaticVehicleEx(522,-2235.3999000,1012.9000000,83.5000000,272.0000000,146,146,100); //NRG-500
- Car_Triads[14] = AddStaticVehicleEx(522,-2235.3999000,1015.8000000,83.5000000,272.0000000,146,146,100); //NRG-500
- Car_Triads[15] = AddStaticVehicleEx(522,-2235.3999000,1018.6000000,83.3000000,272.0000000,146,146,100); //NRG-500
- Car_Triads[16] = AddStaticVehicleEx(522,-2235.3999000,1021.6000000,83.4000000,272.0000000,146,146,100); //NRG-500
- Car_Triads[17] = AddStaticVehicleEx(522,-2235.6001000,1025.1000000,83.5000000,272.0000000,146,146,100); //NRG-500
- //***
- //***
- //*** Se tu for adicionar mais Orgs, coisa que envolva mais veículos, faz um "new PrimeiroCarroOrgX = CreateVehicle(....);"
- //*** Aí depois na hora de contar tu só joga o nome da var ao invés de ficar contando.
- //***
- //Objetos Triads
- CreateObject(3475,-2161.3999000,1010.6000000,81.4000000,0.0000000,0.0000000,0.0000000); //object(vgsn_fncelec_pst) (1)
- CreateObject(3475,-2162.1001000,1028.3000000,81.4000000,0.0000000,0.0000000,182.0000000); //object(vgsn_fncelec_pst) (2)
- CreateObject(3934,-2190.3999000,1045.5000000,87.3000000,0.0000000,0.0000000,88.0000000); //object(helipad01) (1)
- CreateObject(8613,-2207.8999000,1053.7000000,82.9000000,0.0000000,0.0000000,0.0000000); //object(vgssstairs03_lvs) (1)
- CreateObject(8615,-2205.5000000,961.2999900,81.8000000,0.0000000,0.0000000,358.0000000); //object(vgssstairs04_lvs) (1)
- CreateObject(987,-2237.1001000,1029.2000000,82.8000000,0.0000000,0.0000000,268.0000000); //object(elecfence_bar) (1)
- CreateObject(987,-2237.3999000,1017.3000000,82.6000000,0.0000000,0.0000000,267.9950000); //object(elecfence_bar) (2)
- //==============================================================================
- //terroristas
- CreateObject(3934,-2114.8999000,-186.8999900,45.3000000,0.0000000,0.0000000,0.0000000); //object(helipad01) (1)
- CreateObject(14407,-2099.8000000,-278.7000100,37.5000000,0.0000000,0.0000000,92.0000000); //object(carter-stairs01) (2)
- CreateObject(14407,-2093.1001000,-278.7000100,37.5000000,0.0000000,0.0000000,270.0000000); //object(carter-stairs01) (3)
- CreateObject(14407,-2109.1001000,-178.2000000,37.5000000,0.0000000,0.0000000,89.9950000); //object(carter-stairs01) (4)
- CreateObject(14407,-2100.6001000,-178.2000000,42.9000000,0.0000000,0.0000000,89.9950000); //object(carter-stairs01) (6)
- //==============================================================================
- CreateObject(8615,-2453.7000000,523.2000100,47.3000000,0.0000000,0.0000000,90.0000000); //object(vgssstairs04_lvs) (1)
- CreateObject(3279,-2464.5000000,503.5000000,29.1000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
- //Helipad
- CreateObject(3934,-1407.1000000,495.0000000,17.3000000,0.0000000,0.0000000,90.0000000); //object(helipad01) (1)
- CreateObject(3934,-1409.2000000,491.7000100,17.2000000,0.0000000,0.0000000,90.0000000); //object(helipad01) (2)
- CreateObject(3934,-1421.1000000,496.5000000,17.3000000,0.0000000,0.0000000,270.0000000); //object(helipad01) (3)
- CreateObject(3934,-1310.7000000,496.7999900,17.3000000,0.0000000,0.0000000,270.0000000); //object(helipad01) (4)
- CreateObject(3934,-1290.0000000,497.5000000,17.4000000,0.0000000,0.0000000,270.0000000); //object(helipad01) (5)
- CreateObject(3934,-1267.6000000,497.0000000,17.4000000,0.0000000,0.0000000,270.0000000); //object(helipad01) (6)
- //==============================================================================
- CreateObject(987,-1641.8000000,360.6000100,6.2000000,0.0000000,0.0000000,356.0000000); //object(elecfence_bar) (1)
- CreateObject(987,-1630.0000000,359.7000100,6.2000000,0.0000000,0.0000000,357.9950000); //object(elecfence_bar) (2)
- CreateObject(987,-1618.3000000,359.3999900,6.2000000,0.0000000,0.0000000,357.9950000); //object(elecfence_bar) (3)
- CreateObject(1698,-1467.1000000,485.3999900,0.0000000,0.0000000,0.0000000,180.0000000); //object(esc_step8) (1)
- CreateObject(1698,-1468.6000000,486.8999900,0.0000000,0.0000000,0.0000000,180.0000000); //object(esc_step8) (2)
- CreateObject(1698,-1461.1000000,491.0000000,0.0000000,0.0000000,0.0000000,270.0000000); //object(esc_step8) (3)
- CreateObject(1698,-1464.4000000,491.0000000,0.0000000,0.0000000,0.0000000,269.9950000); //object(esc_step8) (4)
- CreateObject(1698,-1467.7000000,491.0000000,0.0000000,0.0000000,0.0000000,269.9950000); //object(esc_step8) (5)
- CreateObject(1698,-1468.6000000,488.7999900,0.0000000,0.0000000,0.0000000,179.9950000); //object(esc_step8) (6)
- CreateObject(1698,-1467.1000000,488.7000100,0.0000000,0.0000000,0.0000000,179.9950000); //object(esc_step8) (7)
- CreateObject(1698,-1467.6000000,488.8999900,0.0000000,0.0000000,0.0000000,179.9950000); //object(esc_step8) (8)
- CreateObject(1698,-1468.1000000,486.8999900,0.0000000,0.0000000,0.0000000,179.9950000); //object(esc_step8) (9)
- CreateObject(18446,-1437.5000000,514.0000000,17.0000000,0.0000000,2.0000000,200.9980000); //object(mtbfence43) (1)
- CreateObject(18446,-1391.5000000,514.0999800,17.0000000,0.0000000,2.0000000,200.9950000); //object(mtbfence43) (2)
- CreateObject(18446,-1367.4000000,514.2999900,17.0000000,0.0000000,2.0000000,200.9950000); //object(mtbfence43) (3)
- CreateObject(18446,-1343.5000000,514.2999900,17.0000000,0.0000000,2.0000000,200.9950000); //object(mtbfence43) (4)
- CreateObject(18446,-1325.2000000,514.2999900,17.0000000,0.0000000,2.0000000,200.9950000); //object(mtbfence43) (5)
- //==============================================================================
- BemVindo = TextDrawCreate(300.0, 436.5," ~h~Seja ~h~Bem ~h~Vindo");
- TextDrawAlignment(BemVindo, 2);
- TextDrawColor(BemVindo, COLOR_WHITE);
- TextDrawFont(BemVindo, 0);
- TextDrawLetterSize(BemVindo, 1.0 ,1.0);
- TextDrawSetShadow(BemVindo, 0);
- TextDrawUseBox(BemVindo, 2);
- TextDrawBoxColor(BemVindo, 0x000000FF);
- //texdraw
- GM = TextDrawCreate(490.0, 350.0," ~h~Death");
- TextDrawColor(GM, 0xFF0000FF);
- TextDrawFont(GM, 0);
- TextDrawLetterSize(GM, 0.90, 2.4);
- TextDrawSetShadow(GM, 2);
- TextDrawBackgroundColor(GM, 0x000000FF );
- //texdraw death
- GM1 = TextDrawCreate(560.0, 350.0," ~h~Match");
- TextDrawColor(GM1, 0x0000FFFF);
- TextDrawFont(GM1, 0);
- TextDrawLetterSize(GM1, 0.80, 2.4);
- TextDrawSetShadow(GM1, 2);
- TextDrawBackgroundColor(GM1, 0x000000FF );
- //site
- Site = TextDrawCreate(500.0, 375.0," portalsampbr.forumeiros.com");
- TextDrawColor(Site, 0xFFFFFFFF);
- TextDrawFont(Site, 1);
- TextDrawLetterSize(Site, 0.25, 1.0);
- TextDrawSetShadow(Site, 0);
- TextDrawBackgroundColor(Site, 0x000000FF );
- //relogio e data
- Textdraw0 = TextDrawCreate(565.0, 390.0, "00:00:00");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.30, 1.0);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- Textdraw1 = TextDrawCreate(503.0, 390.0, "(00/00/00)");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.30, 1.0);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- // arena DM
- CreateObject(987,2387.8999000,1543.8000000,27.9000000,0.0000000,0.0000000,180.0000000); //object(elecfence_bar) (1)
- CreateObject(987,2376.2000000,1543.8000000,27.9000000,0.0000000,0.0000000,180.0000000); //object(elecfence_bar) (2)
- CreateObject(987,2364.7000000,1543.8000000,27.9000000,0.0000000,0.0000000,180.0000000); //object(elecfence_bar) (3)
- CreateObject(987,2375.7000000,1602.8000000,27.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (4)
- CreateObject(987,2363.7000000,1602.8000000,27.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (5)
- CreateObject(987,2351.8999000,1602.8000000,27.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (6)
- SetGameModeText("Brazil TDM Basic 2.0");//Nome do Gamemode
- // =========================== MILITARES =======================================
- AddPlayerClass(121,-1359.6172,489.7504,24.2969,89.8915,16,10,0,0,0,0); // 0
- AddPlayerClass(287,-1461.9897,490.5496,18.2344,276.1779,16,10,0,0,0,0); // 1
- AddPlayerClass(117,-1277.5145,497.7430,18.2344,343.4592,16,10,0,0,0,0); // 2
- // =========================== MAFIA =======================================
- AddPlayerClass(123,-2445.7893,526.7397,30.1211,27.0658,16,10,0,0,0,0) ; // 3
- AddPlayerClass(124,-2464.1338,503.3128,37.7782,92.1591,16,10,0,0,0,0); // 4
- AddPlayerClass(126,-2457.7957,539.4711,30.0721,261.2480,16,10,0,0,0,0); // 5
- //========================== TERRORISTAS ===================================
- AddPlayerClass(28,-2064.9551,-277.0950,35.3203,335.1935,18,10,0,0,0,0); // 6
- AddPlayerClass(29,-2182.5837,-223.2722,36.5156,33.3441,18,10,0,0,0,0); // 7
- AddPlayerClass(46,-2155.0957,-114.0387,35.3203,181.0893,18,10,0,0,0,0); // 8
- //=========================== TRIADS =======================================
- AddPlayerClass(117,-2209.5002,963.2730,84.8594,325.5063,18,10,0,0,0,0); // 9
- AddPlayerClass(118,-2185.9351,1053.2732,88.3125,3.0440,18,10,0,0,0,0); // 10
- AddPlayerClass(120,-2229.6597,1019.3564,83.6849,274.7444,18,10,0,0,0,0); // 11
- return 1;
- }
- public OnPlayerRequestClass (playerid, classid)
- {
- SetPlayerPos(playerid,-325.1284,1505.5378,84.5203); // PLAYER Fica para a escolha
- SetPlayerCameraPos(playerid,-323.8512,1500.7587,87.2668); // CAMERA
- SetPlayerCameraLookAt(playerid,-325.1284,1505.5378,84.5203); // Para aonde a Camera Vira
- SetPlayerFacingAngle(playerid, 189.9624); //Angulo que o Player Olha
- ApplyAnimation(playerid, "DANCING","DAN_LOOP_A", 4.0,1,0,0,0,-1); // Animação No Inicio =D
- if((classid >= 0) && (classid <= 2))
- {
- gTeam[playerid] = Mafia;
- GameTextForPlayer(playerid,"~n~~n~~n~~g~Militares",5000,5);
- SetPlayerColor(playerid, CorMilitares);
- }
- if((classid >= 3) && (classid <= 5))
- {
- gTeam[playerid] = Militares;
- GameTextForPlayer(playerid,"~n~~n~~n~~b~Mafia",5000,5);
- SetPlayerColor(playerid, CorMafia);
- }
- if((classid >= 6) && (classid <= 8))
- {
- gTeam[playerid] = Terroristas;
- GameTextForPlayer(playerid,"~n~~n~~n~~r~Terroristas",5000,5);
- SetPlayerColor(playerid, CorTerroristas);
- }
- if((classid >= 9) && (classid <= 11))
- {
- gTeam[playerid] = Triads;
- GameTextForPlayer(playerid,"~p~~u~Triads~d~",5000,5);
- SetPlayerColor(playerid, CorTriads);
- }
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
- TextDrawShowForPlayer(playerid,BemVindo);
- TextDrawShowForPlayer(playerid,GM);
- TextDrawShowForPlayer(playerid,GM1);
- TextDrawShowForPlayer(playerid,Site);
- TextDrawShowForPlayer(playerid, Textdraw0);//nome da draw no caso a que definimos la emcima
- TextDrawShowForPlayer(playerid, Textdraw1);
- {
- SendClientMessage(playerid, COLOR_LIMON, "==================================================================");
- SendClientMessage(playerid, COLOR_YELLOW,"Seja Bem Vindo, Project Death Match");
- SendClientMessage(playerid, COLOR_ORANGE,"Mate ou Morra Aqui é Death Match");
- SendClientMessage(playerid, COLOR_DARKGREEN,"Agradecimentos a Equipe StrategyPoint www.strategypoint.com.br");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Qualquer Dúvida , Contate um Administrador ou Digite &[mensagem]");
- SendClientMessage(playerid, COLOR_RED,"Gamemode Criado por [NNF]ChryyS.");
- SendClientMessage(playerid, COLOR_DARKBLUE,"Agradecimentos à [NNF]Minds.");
- SendClientMessage(playerid, COLOR_PINK,"Em Breve Sistema de Equipes");
- SendClientMessage(playerid, COLOR_LIMON, "==================================================================");
- }
- {
- RemoveBuildingForPlayer(playerid, 966,-1526.3906, 481.38281, 6.17969, 200.0);
- RemoveBuildingForPlayer(playerid, 968,-1526.4375, 481.38281, 6.90625, 200.0);
- return 1;
- }
- }
- public OnPlayerDisconnect(playerid)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- }
- //==========COMANDOS==========
- CMD:afk (playerid, params[])
- {
- SetPlayerInterior(playerid, 17);
- SetPlayerVirtualWorld(playerid, 1);
- SetPlayerPos(playerid, 488.3956,-1.9185,1002.3828,175.0163);
- ResetPlayerWeapons(playerid);
- ResetPlayerMoney(playerid);
- SendClientMessage(playerid, COLOR_LIGHTYELLOW,"[AFK] Você está em modo AFK,Para sair digite /AFKOFF");
- return 1;
- }
- CMD:afkoff (playerid, params[])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SpawnPlayer(playerid);
- SendClientMessage(playerid, COLOR_LIGHTYELLOW,"[AFK] Você não está mais em modo AFK");
- return 1;
- }
- CMD:kill (playerid, parms [])
- {
- SetPlayerHealth(playerid, 0);
- SetTimerEx("Kill", 5000, false, "i", playerid);
- SendClientMessage(playerid,COLOR_RED,"[KILL]Você se suicidou.");
- ResetPlayerMoney(playerid);
- return 1;
- }
- CMD:vida (playerid, parms [])
- {
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid,COLOR_YELLOW,"[COMPRA]Vida comprada com sucesso." );
- return 1;
- }
- CMD:colete (playerid, parms [])
- {
- SetPlayerArmour(playerid, 100);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid,COLOR_YELLOW,"[COMPRA]Colete comprado com sucesso." );
- return 1;
- }
- CMD:kit(playerid, parms [])
- {
- GivePlayerWeapon(playerid, 26,499);
- GivePlayerWeapon(playerid, 31,499);
- GivePlayerWeapon(playerid, 28,499);
- GivePlayerWeapon(playerid, 16,10);
- GivePlayerWeapon(playerid, 42,500);
- GivePlayerWeapon(playerid, 9,1);
- GivePlayerMoney(playerid, -15000);
- SendClientMessage(playerid,COLOR_YELLOW,"[COMPRA] Kit comprado com sucesso." );
- return 1;
- }
- CMD:comandos(playerid, parms [])
- {
- SendClientMessage(playerid, COLOR_BLUE,"||====================[ Comandos ]====================||");
- SendClientMessage(playerid, -1 ,"||>> /ajuda, /admins, /regras, /dm ");
- SendClientMessage(playerid, -1 ,"||>> /Vida, /Colete, /Kill, /Kit, /nrg, /infernus");
- SendClientMessage(playerid, COLOR_BLUE,"||====================[ Comandos ]====================||");
- return 1;
- }
- CMD:ajuda(playerid, parms [])
- {
- SendClientMessage(playerid, COLOR_BLUE,"||=========================[ Ajuda ]=========================||");
- SendClientMessage(playerid, -1 ,"||>> Digite: /Comandos > Mostra todos os comandos do servidor,");
- SendClientMessage(playerid, -1 ,"||>> Digite: /Regras > Para ver as regras do servidor,");
- SendClientMessage(playerid, -1 ,"||>> Digite: /Admins > Para saber ver os admins do servidor,");
- SendClientMessage(playerid, -1 ,"||>> ");
- SendClientMessage(playerid, COLOR_YELLOW,"|| Em breve mais funções");
- SendClientMessage(playerid, -1 ,"||>> ");
- SendClientMessage(playerid, COLOR_BLUE,"||=========================[ Ajuda ]=========================||");
- return 1;
- }
- CMD:regras(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_BLUE,"||=========================[ Regras ]=========================||");
- SendClientMessage(playerid, COLOR_WHITE,"* Proibido Bater/matar dentro de Ammu-Nation");
- SendClientMessage(playerid, COLOR_WHITE,"* Não ofender ou desrespeitar os outros jogadores");
- SendClientMessage(playerid, COLOR_WHITE,"* Não fazer propaganda de Sites/Servidores/Comunidades");
- SendClientMessage(playerid, COLOR_WHITE,"* Proibido qualquer Mod(hack) que lhe traga vantagem");
- SendClientMessage(playerid, COLOR_WHITE,"* Evite Flood (mensagens repetidas).");
- SendClientMessage(playerid, COLOR_WHITE,"* Cadastrar no forum com seu nick do jogo.");
- SendClientMessage(playerid, COLOR_BLUE,"||=========================[ Regras ]=========================||");
- return 1;
- }
- CMD:nrg(playerid)
- {
- new Float:pX, Float:pY, Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- nrg[playerid] = CreateVehicle(522, pX, pY, pZ, 0.0,-1,-1, -1);
- PutPlayerInVehicle(playerid, nrg[playerid], 0);
- return true;
- }
- CMD:hydra(playerid)
- {
- new Float:pX, Float:pY, Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- nrg[playerid] = CreateVehicle(520, pX, pY, pZ, 0.0,-1,-1, -1);
- PutPlayerInVehicle(playerid, nrg[playerid], 0);
- return true;
- }
- CMD:infernus(playerid)
- {
- new Float:pX, Float:pY, Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- nrg[playerid] = CreateVehicle(411, pX, pY, pZ, 0.0,-1,-1, -1);
- PutPlayerInVehicle(playerid, nrg[playerid], 0);
- return true;
- }
- CMD:dm(playerid)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Bem Vindo 'ARENA DM', Mate quantos puder.");
- SetPlayerVirtualWorld(playerid, 3);
- SetPlayerPos(playerid, 2371.6279,1568.9275,27.9443,36.5975);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 16,9999);
- GivePlayerWeapon(playerid, 24,9999);
- GivePlayerWeapon(playerid, 26,9999);
- GivePlayerWeapon(playerid, 31,9999);
- GivePlayerWeapon(playerid, 32,9999);
- GivePlayerWeapon(playerid, 34,9999);
- return 1;
- }
- CMD:limparchat(playerid, params[])
- {
- for(new a = 0; a < 95; a++)
- {
- SendClientMessageToAll(0x33CCFFAA, " ");
- }
- return 1;
- }
- //Comandos para Admin
- //==================
- public OnPlayerDeath(playerid,killerid,reason)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- SendDeathMessage(killerid,playerid,reason);
- }
- {
- new specid;
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, killerid, 1);
- SetTimerEx("OwnedNoob", 5000, false, "d", playerid);
- return 1;
- }
- {
- SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
- return 1;
- }
- return true;
- }
- public OnPlayerSpawn(playerid)
- {
- GangZoneShowForAll(Militar, 0x008000FF);
- GangZoneShowForAll(Mafiosos, 0x0000A0FF);
- GangZoneShowForAll(Terrorista, 0x8A0808FF);
- GangZoneShowForAll(Triad, 0xFE2EF7FF);
- ResetPlayerMoney(playerid);
- GivePlayerWeapon(playerid,24,500);
- GivePlayerWeapon(playerid,26,500);
- GivePlayerWeapon(playerid,32,500);
- GivePlayerWeapon(playerid,31,500);
- GivePlayerWeapon(playerid,34,500);
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, 30000);
- return true;
- if(gTeam[playerid] == Mafia)
- {
- SetPlayerPos(playerid, -2445.7893,526.7397,30.1211,27.0658);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Militares)
- {
- SetPlayerPos(playerid, -1427.1178,495.4426,11.1953,318.1845);
- SetPlayerInterior(playerid, 0);
- if(gTeam[playerid] == Terroristas)
- {
- SetPlayerPos(playerid, -2064.9551,-277.0950,35.3203,335.1935);
- SetPlayerInterior(playerid, 0);
- }
- return true;
- }
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success)
- return SendClientMessage(playerid, COLOR_RED, "[ERRO] Digite '/comandos' para ver a lista de todos os comandos.");
- return 1;
- }
- public hora(playerid)
- {
- new str[128],//criamos a primeira string
- str2[128],//criamos a segunda string
- year, //criamos a variavel Ano
- month,//criamos a Varivel mes
- day,//criamos a Variavel dia
- hour,//criamos a Variavel hora
- minute;//criamos a Variavel minutos
- getdate(day, month, year); //getamos a data em ANO:MES:DIA
- gettime(hour,minute); //getamos o tempo em HORAS:MINUTOS:SEGUNDOS
- new mes[12];//definimos uma Array para armarzenar os meses
- if(month == 1) { mes = "1"; }//criamos a primeira IF do mes 1 Voce poderia EX:colocar janeiro no lugar de '1'
- else if(month == 2) {mes = "2";}//getamos o mes 2
- else if(month == 3) {mes = "3";}//getamos o mes 3
- else if(month == 4) {mes = "4";}// Assim em diante lembrando, voce podera colocar o mes em nome! Nao em numeros ai fica a criterio!
- else if(month == 5) {mes = "5";}
- else if(month == 6) {mes = "6";}
- else if(month == 7) {mes = "7";}
- else if(month == 8) {mes = "8";}
- else if(month == 9) {mes = "9";}
- else if(month == 10) {mes = "10";}
- else if(month == 11) {mes = "11";}
- else if(month == 12) {mes= "12";}
- format(str, sizeof(str), "(%d/%s/%d)", day, mes,year);//criamos o formato da string sempre usando o '%d' no caso'DIA/MES/ANO' por isso %d/%d/%d
- TextDrawSetString(Text:Textdraw0, str);//aki a Draw para definir a string,Text:Textdraw0 e o nome da draw la no inicio, a 'str' e a que colocamos no inicio
- format(str2, sizeof(str2), "(%d:%d:)", hour, minute);//aqui usaremos a str2 usamos '%d:%d:%d' de Horas:minutos:segundos
- TextDrawSetString(Text:Textdraw1, str2);//se seu GM usa outra Draw no lugar da Text:Textdraw1 mude
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- /* new string[128];
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- for(new i = Car_Mafia[0]; i < Car_Mafia[12]; i++)
- {
- if(gTeam[playerid] == Mafia)
- {
- if(GetPlayerVehicleID(playerid) != i)
- {
- format(string, sizeof(string), "Você entrou no veiculo id: %d", GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- RemovePlayerFromVehicle(playerid);
- break;
- }
- }
- }
- for(new j = Car_Militares[0]; j < Car_Militares[22]; j++)
- {
- if(gTeam[playerid] == Militares)
- {
- if(GetPlayerVehicleID(playerid) != j)
- {
- format(string, sizeof(string), "Você entrou no veiculo id: %d", GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- RemovePlayerFromVehicle(playerid);
- break;
- }
- }
- }
- }*/
- new str[75];
- new oldnew;
- if (oldnew == 0)
- {
- format(str, sizeof(str), "~g~%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- GameTextForPlayer(playerid, str, 5000, 1);
- }
- }
- public OnPlayerEnterVehicle(playerid,vehicleid, ispassenger)
- {
- if(gTeam[playerid] != Mafia)
- {
- if(vehicleid <= Car_Militares[22] && vehicleid >= Car_Militares[0])
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+0.5);
- SendClientMessage(playerid, 0xFF0000FF,"Você não é Militar.");
- return 0;
- }
- }
- if(gTeam[playerid] != Militares)
- {
- if(vehicleid <= Car_Mafia[12] && vehicleid >= Car_Mafia[0])
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+0.5);
- SendClientMessage(playerid, 0xFF0000FF,"Você não é da Mafia.");
- return 0;
- }
- }
- if(gTeam[playerid] != Triads)
- {
- if(vehicleid <= Car_Triads[17] && vehicleid >= Car_Triads[0])
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+0.5);
- SendClientMessage(playerid, 0xFF0000FF,"Você não é da Triads.");
- return 0;
- }
- }
- if(gTeam[playerid] != Terroristas)
- {
- if(vehicleid <= Car_Terrorista[20] && vehicleid >= Car_Terrorista[0])
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+0.5);
- SendClientMessage(playerid, 0xFF0000FF,"Você não é Terrorista.");
- return 0;
- }
- }
- }
- public OwnedNoob(playerid)
- {
- TogglePlayerSpectating(playerid, false);
- SpawnPlayer(playerid);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new string[256];
- format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
- SendPlayerMessageToAll(playerid,string);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment