Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*VISITE NOSSO SITE: http://www.sampknd.com/
- VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
- SAMP KND MELHOR BLOG DE SAMP DO BRASIL
- */
- #include <a_samp>
- #include <DOF2>
- #include <zcmd>
- #include <sscanf2>
- #include <dudb>
- #include <streamer>
- new bool:ServerOn;
- #include <Yiakin>
- //================================DEFINES/NEWS=======================================================
- #define DIALOG_REGISTRO 2
- #define DIALOG_LOGIN 1
- #define DIALOG_PM 3
- #define DIALOG_REGRA 4
- #define NomeServer "MIB TDM V1.0"
- #define COR_COP 0x0F04DEFF
- #define COR_EXE 0x089103FF
- #define COR_BOZ 0x820068FF
- #define COR_FRA 0xF7FF03FF
- #define COR_RIF 0x00D3D6FF
- #define COR_NAN 0xFC0303FF
- #define COR_TRI 0x636363FF
- #define COR_MOT 0x800000FF
- #define COR_PLA 0xFFFFFFFF
- #define COR_MEN 0x9E5C00FF
- #define COR_COP1 0x0F04DE98
- #define COR_EXE1 0x08910398
- #define COR_BOZ1 0x82006898
- #define COR_FRA1 0xF7FF0398
- #define COR_RIF1 0x00D3D698
- #define COR_NAN1 0xFC030398
- #define COR_TRI1 0x63636398
- #define COR_MOT1 0x80000098
- #define COR_PLA1 0xFFFFFF98
- #define COR_MEN1 0x9E5C0098
- #define WEAPON_RESPAWN_TIME 30
- #define MONEY_BAG_MONEY 0
- #define MONEY_BAG_MODE 0
- #define MAX_DISTANCE_UNIT 200.0
- //**BODY PARTS**//
- #define BODY_PART_HEAD 1
- #define BODY_PART_TORSO 2
- #define BODY_PART_LEGS 3
- #define IsValidSkin(%0) \
- (300 > (%0) > -1)
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
- new ii;
- new id;
- new Tx1;
- new Ftexto[MAX_PLAYERS][128];
- new bool:Logou[MAX_PLAYERS];
- new Text:ImagemEntrada;
- new bool:GanhouDim[MAX_PLAYERS];
- new bool:ComprouColete[MAX_PLAYERS];
- new Errou[MAX_PLAYERS];
- new anflood[MAX_PLAYERS];
- new avisou[MAX_PLAYERS];
- new Timerr[MAX_PLAYERS];
- new xx1;
- new ForbiddenWeapons[]= { 38, 44, 45 };
- new WeaponDrop[MAX_PLAYERS][14];
- new WeaponData[MAX_PLAYERS][14][2];
- new WeaponTimer[MAX_PLAYERS];
- new BagMoney = MONEY_BAG_MONEY;
- new BagMode = MONEY_BAG_MODE;
- new Text:Ranking[2];
- new bool:FoiX1[MAX_PLAYERS];
- enum pInfo{
- pDolar,
- pMatou,
- pMorreu,
- pAdmin,
- pTime,
- pCP,
- pPreso,
- pCalado,
- pMatouX1,
- pMorreuX1,
- };
- new PI[MAX_PLAYERS][pInfo];
- new Float:SpawnArena[4][4] = {
- {-1624.6821,-1746.8542,1201.5657,274.6148},
- {-1574.3131,-1720.3934,1201.5657,178.1073},
- {-1532.7137,-1750.7882,1201.5657,85.3596},
- {-1568.3573,-1790.0406,1201.5657,358.2522}
- };
- new gArmas[] = {
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 44,
- 45
- };
- new MsgMIB[4][128] = {
- "[MIB INFORMA] Afim de jogar um server RPG? Use /mibgames e veja o que guardamos pra você.",
- "[MIB INFORMA] Fique por dentro das novidades do Made In Brazil. Acesse: forum.mib-samp.com.",
- "[MIB INFORMA] Entrem em nosso Team Speak 3 e fale com seus amigos. IP: 69.195.128.54",
- "[MIB INFORMA] Esta perdido? Não conhece os comandos? Use /ajuda e resolva seu problema."
- };
- new CoresMsg[]={
- 0x9400D3FF,
- 0x00CED1FF,
- 0xFFD700FF,
- 0xFF1493FF,
- 0xFF0000FF,
- 0xFF4500FF,
- 0x0000FFFF,
- 0x00FF7FFF,
- 0x00FF00FF,
- 0xFFFAFAFF
- };
- new Text:Textodraw[MAX_PLAYERS][3];
- new Text:NomeServerTxt[2];
- new ContandoX1;
- new Dono[10];
- new GZ[10];
- new bool:Dominando[10];
- new Contando[10],Timer[10];
- new Matou[MAX_PLAYERS];
- new bool:Cagou[MAX_PLAYERS],bool:Comecou[MAX_PLAYERS],EnviarPM[MAX_PLAYERS];
- //====================================================================================================
- main()
- {
- printf("Contectando ao servidor %s",NomeServer);
- }
- public OnGameModeInit()
- {
- if(ServerOn == true) ServerOn = false;
- StatusServer();
- if(ServerOn == false){
- return GameModeExit();
- }
- OnWeaponDropInit();
- AllowInteriorWeapons(1);
- UsePlayerPedAnims();
- EnableStuntBonusForAll(0);
- SetGameModeText("Made In Brazil Team Death Match");
- SetTimer("AntiCheat", 100, true);
- SetTimer("ChecarGz",1000,true);
- SetTimer("MensagensMIB",1000*60*5,true);
- AddPlayerClass(285,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//BOPE
- AddPlayerClass(287,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//EXERCITO
- AddPlayerClass(264,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//BOZO
- AddPlayerClass(167,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//FRANGO
- AddPlayerClass(173,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//RIFAS
- AddPlayerClass(174,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//RIFAS
- AddPlayerClass(175,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//RIFAS
- AddPlayerClass(121,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//NANG
- AddPlayerClass(122,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//NANG
- AddPlayerClass(123,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//NANG
- AddPlayerClass(117,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//TRIADS
- AddPlayerClass(118,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//TRIADS
- AddPlayerClass(120,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//TRIADS
- AddPlayerClass(169,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//TRIADS
- AddPlayerClass(247,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MOTOQUEIRO
- AddPlayerClass(248,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MOTOQUEIRO
- AddPlayerClass(100,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MOTOQUEIRO
- AddPlayerClass(12,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//PLAYBOY
- AddPlayerClass(91,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//PLAYBOY
- AddPlayerClass(124,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//PLAYBOY
- AddPlayerClass(98,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//PLAYBOY
- AddPlayerClass(134,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MENDIGOS
- AddPlayerClass(136,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MENDIGOS
- AddPlayerClass(137,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MENDIGOS
- AddPlayerClass(200,1958.3783, 1343.1572, 15.3746,99.99,0,0,0,0,0,0);//MENDIGOS
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- CarregarTextos(i);
- }
- Ranking[0] = TextDrawCreate(215.000000, 156.000000, "~r~~h~~h~Rank ~g~~h~~h~Made In Brazil ~r~~h~~h~TDM~n~");
- TextDrawBackgroundColor(Ranking[0], 255);
- TextDrawFont(Ranking[0], 1);
- TextDrawLetterSize(Ranking[0], 0.500000, 1.000000);
- TextDrawColor(Ranking[0], -1);
- TextDrawSetOutline(Ranking[0], 0);
- TextDrawSetProportional(Ranking[0], 1);
- TextDrawSetShadow(Ranking[0], 1);
- TextDrawUseBox(Ranking[0], 1);
- TextDrawBoxColor(Ranking[0], 120);
- TextDrawTextSize(Ranking[0], 427.000000, 0.000000);
- Ranking[1] = TextDrawCreate(215.000000, 175.000000, "_");
- TextDrawBackgroundColor(Ranking[1], 255);
- TextDrawFont(Ranking[1], 1);
- TextDrawLetterSize(Ranking[1], 0.230000, 0.899999);
- TextDrawColor(Ranking[1], -1);
- TextDrawSetOutline(Ranking[1], 0);
- TextDrawSetProportional(Ranking[1], 1);
- TextDrawSetShadow(Ranking[1], 0);
- TextDrawUseBox(Ranking[1], 1);
- TextDrawBoxColor(Ranking[1], 100);
- TextDrawTextSize(Ranking[1], 427.000000, 33.000000);
- new aa = random(13)+1;
- new str[56];
- format(str,sizeof str,"loadsc%d:loadsc%d",aa,aa);
- ImagemEntrada = TextDrawCreate(1.000000, -1.000000, str);
- TextDrawBackgroundColor(ImagemEntrada, 255);
- TextDrawFont(ImagemEntrada, 4);
- TextDrawLetterSize(ImagemEntrada, 0.500000, 1.000000);
- TextDrawColor(ImagemEntrada, -1);
- TextDrawSetOutline(ImagemEntrada, 0);
- TextDrawSetProportional(ImagemEntrada, 1);
- TextDrawSetShadow(ImagemEntrada, 1);
- TextDrawUseBox(ImagemEntrada, 1);
- TextDrawBoxColor(ImagemEntrada, 255);
- TextDrawTextSize(ImagemEntrada, 645.000000, 450.000000);
- if(!DOF2_FileExists("MortesFix.ini")){
- DOF2_CreateFile("MortesFix.ini");
- new n[11];
- new s[11];
- for(new i = 1;i < 11;i++){
- format(n,sizeof n,"Rank%d",i);
- format(s,sizeof s,"Nome%d",i);
- DOF2_SetInt("MortesFix.ini",n,0);
- DOF2_SetString("MortesFix.ini",s,"Nenhum");
- DOF2_SaveFile();
- }
- }
- CreateVehicle(449,-1676.80004883,1262.90002441,8.50000000,46.00000000,-1,-1,6000); //Tram
- CreateVehicle(402,-1655.80004883,1314.59997559,7.00000000,135.99987793,17,1,6000); //Buffalo
- CreateVehicle(429,-1652.40002441,1311.09997559,6.80000019,133.99987793,17,1,6000); //Banshee
- CreateVehicle(560,-1648.80004883,1307.40002441,6.80000019,133.99987793,17,1,6000); //Sultan
- CreateVehicle(562,-1645.30004883,1304.09997559,6.80000019,133.99987793,17,1,6000); //Elegy
- CreateVehicle(550,-1641.59997559,1300.30004883,7.00000000,133.99987793,17,1,6000); //Sunrise
- CreateVehicle(579,-1638.40002441,1296.19995117,7.09999990,135.99987793,17,1,6000); //Huntley
- CreateVehicle(451,-1634.40002441,1293.50000000,6.80000019,135.99987793,17,1,6000); //Turismo
- CreateVehicle(559,-1630.80004883,1289.90002441,6.80000019,135.99987793,17,1,6000); //Jester
- CreateVehicle(522,-1640.80004883,1279.80004883,6.69999981,314.00000000,17,17,6000); //NRG-500
- CreateVehicle(522,-1642.19995117,1281.30004883,6.69999981,313.99475098,17,17,6000); //NRG-500
- CreateVehicle(522,-1643.40002441,1282.90002441,6.69999981,313.99475098,17,17,6000); //NRG-500
- CreateVehicle(463,-1644.90002441,1284.40002441,6.69999981,308.00000000,17,17,6000); //Freeway
- CreateVehicle(469,-1682.50000000,1339.09997559,17.39999962,135.99987793,-1,-1,6000); //Sparrow
- CreateVehicle(446,-1720.69995117,1435.19995117,0.00000000,0.00000000,-1,-1,6000); //Squalo
- CreateVehicle(473,-1721.40002441,1450.00000000,0.00000000,0.00000000,-1,-1,6000); //Dinghy
- CreateVehicle(433,-1243.59997559,452.39999390,7.80000019,89.99993896,-1,-1,6000); //Barracks
- CreateVehicle(433,-1243.90002441,462.70001221,7.80000019,89.99450684,-1,-1,6000); //Barracks
- CreateVehicle(468,-1241.80004883,458.89999390,6.90000010,86.00000000,65,65,6000); //Sanchez
- CreateVehicle(468,-1241.80004883,457.39999390,6.90000010,85.99548340,65,65,6000); //Sanchez
- CreateVehicle(468,-1241.90002441,455.70001221,6.90000010,85.99548340,65,65,6000); //Sanchez
- CreateVehicle(470,-1258.50000000,441.70001221,7.30000019,0.00000000,-1,-1,6000); //Patriot
- CreateVehicle(470,-1264.00000000,441.60000610,7.30000019,0.00000000,-1,-1,6000); //Patriot
- CreateVehicle(470,-1269.59997559,441.39999390,7.30000019,0.00000000,-1,-1,6000); //Patriot
- CreateVehicle(433,-1276.09997559,443.00000000,7.80000019,2.00000000,-1,-1,6000); //Barracks
- CreateVehicle(548,-1287.19995117,497.10000610,20.10000038,270.00000000,-1,-1,6000); //Cargobob
- CreateVehicle(548,-1261.09997559,497.50000000,20.10000038,269.99548340,-1,-1,6000); //Cargobob
- CreateVehicle(560,-1282.19995117,441.10000610,7.00000000,0.00000000,47,1,6000); //Sultan
- CreateVehicle(560,-1287.69995117,440.89999390,7.00000000,0.00000000,47,1,6000); //Sultan
- CreateVehicle(497,-1681.50000000,705.20001221,30.89999962,0.00000000,-1,1,6000); //Police Maverick
- CreateVehicle(597,-1587.59997559,652.00000000,7.09999990,0.00000000,-1,-1,6000); //Police Car (SFPD)
- CreateVehicle(597,-1593.50000000,652.20001221,7.09999990,0.00000000,-1,-1,6000); //Police Car (SFPD)
- CreateVehicle(597,-1599.30004883,652.09997559,7.09999990,0.00000000,-1,-1,6000); //Police Car (SFPD)
- CreateVehicle(597,-1605.30004883,652.00000000,7.09999990,0.00000000,-1,-1,6000); //Police Car (SFPD)
- CreateVehicle(599,-1610.59997559,652.29998779,7.59999990,0.00000000,-1,1,6000); //Police Ranger
- CreateVehicle(599,-1616.90002441,652.00000000,7.59999990,0.00000000,-1,1,6000); //Police Ranger
- CreateVehicle(528,-1588.30004883,673.90002441,7.40000010,181.99993896,-1,-1,6000); //FBI Truck
- CreateVehicle(528,-1594.00000000,673.79998779,7.40000010,181.99951172,-1,-1,6000); //FBI Truck
- CreateVehicle(427,-1599.90002441,672.90002441,7.40000010,179.99993896,-1,1,6000); //Enforcer
- CreateVehicle(523,-1622.59997559,651.90002441,6.80000019,0.00000000,-1,-1,6000); //HPV1000
- CreateVehicle(523,-1627.69995117,651.59997559,6.80000019,0.00000000,-1,-1,6000); //HPV1000
- CreateVehicle(522,-1606.40002441,673.59997559,6.80000019,181.99993896,-1,1,6000); //NRG-500
- CreateVehicle(522,-1611.69995117,673.20001221,6.80000019,181.99951172,-1,1,6000); //NRG-500
- CreateVehicle(463,-2538.50000000,1229.40002441,37.00000000,211.99993896,62,62,6000); //Freeway
- CreateVehicle(463,-2534.80004883,1230.00000000,37.00000000,211.99993896,62,62,6000); //Freeway
- CreateVehicle(463,-2530.50000000,1229.69995117,37.00000000,211.99768066,62,62,6000); //Freeway
- CreateVehicle(463,-2526.50000000,1229.80004883,37.00000000,211.99768066,62,62,6000); //Freeway
- CreateVehicle(463,-2521.89990234,1229.69995117,37.00000000,211.99768066,62,62,6000); //Freeway
- CreateVehicle(463,-2517.50000000,1229.80004883,37.00000000,211.99768066,62,62,6000); //Freeway
- CreateVehicle(463,-2513.19995117,1209.90002441,37.00000000,271.99768066,62,62,6000); //Freeway
- CreateVehicle(463,-2513.39990234,1205.80004883,37.00000000,271.99401855,62,62,6000); //Freeway
- CreateVehicle(522,-2173.60009766,655.79998779,49.09999847,141.99993896,0,0,6000); //NRG-500
- CreateVehicle(522,-2173.30004883,654.00000000,49.09999847,149.99829102,0,0,6000); //NRG-500
- CreateVehicle(522,-2173.00000000,652.00000000,49.09999847,149.99633789,0,0,6000); //NRG-500
- CreateVehicle(522,-2172.89990234,649.79998779,49.09999847,149.99633789,0,0,6000); //NRG-500
- CreateVehicle(451,-2175.30004883,636.70001221,49.20000076,90.00000000,0,0,6000); //Turismo
- CreateVehicle(541,-2175.10009766,640.20001221,49.09999847,90.00000000,0,0,6000); //Bullet
- CreateVehicle(402,-2175.19995117,643.59997559,49.40000153,90.00000000,0,0,6000); //Buffalo
- CreateVehicle(411,-2200.10009766,645.90002441,49.20000076,92.00000000,0,0,6000); //Infernus
- CreateVehicle(560,-2191.89990234,645.79998779,49.20000076,90.00000000,0,0,6000); //Sultan
- CreateVehicle(491,-2206.89990234,649.70001221,49.29999924,177.99993896,0,0,6000); //Virgo
- CreateVehicle(469,-2216.30004883,656.70001221,63.90000153,181.99993896,0,0,6000); //Sparrow
- CreateVehicle(402,-2131.00000000,173.50000000,35.20000076,272.00000000,2,1,6000); //Buffalo
- CreateVehicle(562,-2131.60009766,178.19999695,35.00000000,272.00000000,2,1,6000); //Elegy
- CreateVehicle(560,-2131.69995117,182.39999390,35.00000000,270.00000000,2,1,6000); //Sultan
- CreateVehicle(468,-2123.10009766,196.19999695,34.90000153,185.99993896,2,1,6000); //Sanchez
- CreateVehicle(468,-2124.50000000,196.10000610,34.90000153,185.99853516,2,1,6000); //Sanchez
- CreateVehicle(522,-2125.69995117,195.80000305,34.90000153,184.00000000,2,1,6000); //NRG-500
- CreateVehicle(522,-2127.00000000,195.69999695,34.90000153,184.00000000,2,1,6000); //NRG-500
- CreateVehicle(558,-2112.10009766,220.30000305,34.59999847,268.00000000,2,1,6000); //Uranus
- CreateVehicle(567,-2112.80004883,224.80000305,34.79999924,268.00000000,2,1,6000); //Savanna
- CreateVehicle(567,-2112.89990234,229.69999695,34.79999924,267.99499512,2,1,6000); //Savanna
- CreateVehicle(487,-2107.89990234,247.00000000,36.20000076,266.00000000,2,2,6000); //Maverick
- CreateVehicle(568,-2265.30004883,216.39999390,35.09999847,90.00000000,22,1,6000); //Bandito
- CreateVehicle(568,-2265.30004883,212.60000610,35.09999847,90.00000000,22,1,6000); //Bandito
- CreateVehicle(568,-2265.30004883,208.60000610,35.09999847,90.00000000,22,1,6000); //Bandito
- CreateVehicle(568,-2265.30004883,204.60000610,35.09999847,90.00000000,22,1,6000); //Bandito
- CreateVehicle(568,-2265.30004883,200.80000305,35.09999847,90.00000000,22,1,6000); //Bandito
- CreateVehicle(434,-2265.69995117,196.39999390,35.29999924,90.00000000,-1,-1,6000); //Hotknife
- CreateVehicle(434,-2265.69995117,192.39999390,35.29999924,90.00000000,-1,-1,6000); //Hotknife
- CreateVehicle(434,-2265.69995117,188.89999390,35.29999924,90.00000000,-1,-1,6000); //Hotknife
- CreateVehicle(434,-2265.69995117,185.10000610,35.29999924,90.00000000,-1,-1,6000); //Hotknife
- CreateVehicle(522,-2266.00000000,148.89999390,34.79999924,88.00000000,22,22,6000); //NRG-500
- CreateVehicle(522,-2265.89990234,144.69999695,34.79999924,87.99499512,22,22,6000); //NRG-500
- CreateVehicle(521,-2265.69995117,141.10000610,34.79999924,86.00000000,22,22,6000); //FCR-900
- CreateVehicle(521,-2265.60009766,137.60000610,34.79999924,85.99548340,22,22,6000); //FCR-900
- CreateVehicle(469,-2275.80004883,125.40000153,35.29999924,0.00000000,-1,-1,6000); //Sparrow
- CreateVehicle(481,-2099.39990234,-200.30000305,34.90000153,92.00000000,123,110,6000); //BMX
- CreateVehicle(481,-2099.39990234,-201.60000610,34.90000153,91.99951172,123,110,6000); //BMX
- CreateVehicle(481,-2099.60009766,-202.89999390,34.90000153,91.99951172,123,110,6000); //BMX
- CreateVehicle(481,-2099.60009766,-204.39999390,34.90000153,91.99951172,123,110,6000); //BMX
- CreateVehicle(481,-2099.60009766,-205.89999390,34.90000153,91.99951172,123,110,6000); //BMX
- CreateVehicle(462,-2099.69995117,-208.00000000,35.00000000,84.00000000,123,110,6000); //Faggio
- CreateVehicle(462,-2099.69995117,-209.50000000,35.00000000,83.99597168,123,110,6000); //Faggio
- CreateVehicle(549,-2101.30004883,-214.00000000,35.20000076,90.00000000,123,110,6000); //Tampa
- CreateVehicle(549,-2101.00000000,-218.30000305,35.20000076,90.00000000,123,110,6000); //Tampa
- CreateVehicle(549,-2100.69995117,-223.10000610,35.20000076,90.00000000,123,110,6000); //Tampa
- CreateVehicle(549,-2100.69995117,-227.89999390,35.20000076,90.00000000,123,110,6000); //Tampa
- CreateVehicle(542,-2100.69995117,-232.69999695,35.20000076,88.00000000,123,110,6000); //Sunrise
- CreateVehicle(542,-2100.89990234,-236.89999390,35.20000076,87.99499512,123,110,6000); //Sunrise
- CreateVehicle(478,-2101.10009766,-241.39999390,35.20000076,87.99499512,123,110,6000); //Sunrise
- CreateVehicle(542,-2102.19995117,-246.00000000,35.29999924,88.00000000,123,110,6000); //Phoenix
- CreateVehicle(603,-2102.19995117,-250.00000000,35.29999924,87.99499512,123,110,6000); //Phoenix
- CreateVehicle(451,-2663.19995117,-286.10000610,7.19999981,316.00000000,1,1,6000); //Turismo
- CreateVehicle(451,-2659.80004883,-289.89999390,7.19999981,315.99975586,1,1,6000); //Turismo
- CreateVehicle(411,-2656.19995117,-293.60000610,7.19999981,316.00000000,1,1,6000); //Infernus
- CreateVehicle(411,-2652.69995117,-297.10000610,7.19999981,316.00000000,1,1,6000); //Infernus
- CreateVehicle(541,-2655.30004883,-278.89999390,7.19999981,136.00000000,1,-1,6000); //Bullet
- CreateVehicle(560,-2652.10009766,-281.50000000,7.30000019,134.00000000,1,1,6000); //Sultan
- CreateVehicle(560,-2648.19995117,-285.00000000,7.30000019,133.99475098,1,1,6000); //Sultan
- CreateVehicle(560,-2644.80004883,-288.39999390,7.30000019,133.99475098,1,1,6000); //Sultan
- CreateVehicle(522,-2666.89990234,-282.79998779,7.09999990,322.00000000,1,1,6000); //NRG-500
- CreateVehicle(522,-2668.10009766,-281.50000000,7.09999990,321.99829102,1,1,6000); //NRG-500
- CreateVehicle(521,-2669.50000000,-280.10000610,6.90000010,322.00000000,1,1,6000); //FCR-900
- CreateVehicle(521,-2670.80004883,-278.70001221,6.90000010,321.99829102,1,1,6000); //FCR-900
- CreateVehicle(487,-2702.80004883,-246.60000610,7.30000019,42.00000000,1,1,6000); //Maverick
- CreateVehicle(487,-2691.30004883,-235.30000305,7.30000019,47.99523926,1,1,6000); //Maverick
- CreateVehicle(448,-2695.30004883,261.00000000,4.00000000,0.00000000,6,1,6000); //Pizzaboy
- CreateVehicle(448,-2693.50000000,260.79998779,4.00000000,0.00000000,6,1,6000); //Pizzaboy
- CreateVehicle(448,-2691.39990234,260.70001221,4.00000000,0.00000000,6,1,6000); //Pizzaboy
- CreateVehicle(521,-2688.80004883,261.29998779,4.30000019,0.00000000,6,1,6000); //FCR-900
- CreateVehicle(521,-2686.80004883,261.50000000,4.30000019,0.00000000,6,1,6000); //FCR-900
- CreateVehicle(588,-2694.89990234,268.10000610,4.19999981,0.00000000,6,1,6000); //Hotdog
- CreateVehicle(588,-2690.50000000,268.10000610,4.19999981,0.00000000,6,1,6000); //Hotdog
- CreateVehicle(588,-2685.80004883,268.20001221,4.19999981,0.00000000,6,1,6000); //Hotdog
- CreateVehicle(560,-2681.60009766,267.70001221,4.09999990,0.00000000,6,1,6000); //Sultan
- CreateVehicle(560,-2678.39990234,268.00000000,4.09999990,0.00000000,6,1,6000); //Sultan
- CreateVehicle(560,-2674.89990234,268.00000000,4.09999990,0.00000000,6,1,6000); //Sultan
- CreateVehicle(535,-2671.60009766,268.10000610,4.19999981,0.00000000,6,1,6000); //Slamvan
- CreateVehicle(535,-2668.10009766,268.10000610,4.19999981,0.00000000,6,1,6000); //Slamvan
- CreateVehicle(587,-2664.89990234,268.39999390,4.09999990,0.00000000,6,1,6000); //Euros
- CreateVehicle(565,-2586.60009766,304.00000000,4.50000000,92.00000000,-1,-1,6000); //Flash
- CreateVehicle(565,-2586.69995117,307.79998779,4.50000000,91.99951172,-1,-1,6000); //Flash
- CreateVehicle(518,-2586.69995117,311.29998779,4.69999981,90.00000000,-1,-1,6000); //Buccaneer
- CreateVehicle(518,-2586.39990234,314.50000000,4.69999981,90.00000000,-1,-1,6000); //Buccaneer
- CreateVehicle(438,-2587.30004883,318.29998779,5.09999990,90.00000000,-1,-1,6000); //Cabbie
- CreateVehicle(438,-2587.10009766,321.50000000,5.09999990,90.00000000,-1,-1,6000); //Cabbie
- CreateVehicle(553,-1665.69995117,-172.30000305,16.39999962,314.00000000,-1,-1,6000); //Nevada
- CreateVehicle(519,-1617.09997559,-256.50000000,20.29999924,0.00000000,-1,-1,6000); //Shamal
- CreateVehicle(519,-1637.69995117,-266.00000000,20.29999924,0.00000000,-1,-1,6000); //Shamal
- CreateVehicle(511,-1329.30004883,-277.29998779,16.20000076,0.00000000,-1,-1,6000); //Beagle
- CreateVehicle(511,-1305.59997559,-268.10000610,15.69999981,0.00000000,-1,-1,6000); //Beagle
- CreateVehicle(593,-1282.69995117,-258.79998779,14.69999981,0.00000000,-1,-1,6000); //Dodo
- CreateVehicle(512,-1382.90002441,-214.50000000,14.80000019,262.00000000,-1,-1,6000); //Cropdust
- CreateVehicle(512,-1380.59997559,-200.19999695,14.80000019,261.99645996,-1,-1,6000); //Cropdust
- CreateVehicle(513,-1378.80004883,-185.89999390,14.89999962,264.00000000,-1,-1,6000); //Stunt
- CreateVehicle(417,-1344.80004883,-252.00000000,13.10000038,314.00000000,-1,-1,6000); //Leviathan
- CreateVehicle(487,-1355.40002441,-240.00000000,14.39999962,316.00000000,-1,-1,6000); //Maverick
- CreateVehicle(487,-1365.50000000,-230.00000000,14.39999962,315.99975586,-1,-1,6000); //Maverick
- CreateVehicle(499,-1857.19995117,114.40000153,15.19999981,0.00000000,-1,-1,6000); //Benson
- CreateVehicle(609,-1849.09997559,114.19999695,15.30000019,0.00000000,-1,-1,6000); //Boxville
- CreateVehicle(414,-1841.90002441,114.90000153,15.30000019,0.00000000,-1,-1,6000); //Mule
- CreateVehicle(456,-1834.30004883,115.59999847,15.39999962,0.00000000,-1,-1,6000); //Yankee
- CreateVehicle(403,-1856.19995117,131.19999695,15.80000019,266.00000000,-1,-1,6000); //Linerunner
- CreateVehicle(403,-1856.09997559,136.50000000,15.80000019,265.99548340,-1,-1,6000); //Linerunner
- CreateVehicle(443,-1827.69995117,112.80000305,15.89999962,0.00000000,-1,-1,6000); //Packer
- CreateVehicle(515,-1854.59997559,143.19999695,16.29999924,264.00000000,-1,-1,6000); //Roadtrain
- CreateVehicle(515,-1853.59997559,150.10000610,16.29999924,263.99597168,-1,-1,6000); //Roadtrain
- CreateVehicle(406,-1852.69995117,160.80000305,15.89999962,268.00000000,-1,-1,6000); //Dumper
- CreateVehicle(402,-1926.09997559,585.29998779,35.09999847,178.00000000,-1,-1,6000); //Buffalo
- CreateVehicle(411,-1931.80004883,585.59997559,34.90000153,178.00000000,-1,-1,6000); //Infernus
- CreateVehicle(415,-1937.59997559,585.50000000,35.00000000,178.00000000,-1,-1,6000); //Cheetah
- CreateVehicle(480,-1943.59997559,585.59997559,35.00000000,176.00000000,-1,-1,6000); //Comet
- CreateVehicle(555,-1949.80004883,585.70001221,34.90000153,179.99993896,-1,-1,6000); //Windsor
- CreateVehicle(426,-1955.80004883,585.79998779,34.90000153,178.00000000,-1,-1,6000); //Premier
- CreateVehicle(448,-1805.30004883,951.79998779,24.60000038,266.00000000,3,1,6000); //Pizzaboy
- CreateVehicle(448,-1805.19995117,953.50000000,24.60000038,265.99548340,3,1,6000); //Pizzaboy
- CreateVehicle(448,-1805.09997559,955.20001221,24.60000038,265.99548340,3,1,6000); //Pizzaboy
- CreateVehicle(448,-1805.19995117,957.00000000,24.60000038,265.99548340,3,1,6000); //Pizzaboy
- CreateVehicle(451,280.89999390,1800.40002441,1053.90002441+6,44.00000000,-1,-1,1); //Turismo
- CreateVehicle(451,283.00000000,1802.80004883,1053.90002441+6,43.99475098,-1,-1,1); //Turismo
- CreateVehicle(451,285.29998779,1804.80004883,1053.90002441+6,43.99475098,-1,-1,1); //Turismo
- CreateVehicle(541,287.70001221,1807.00000000,1053.80004883+6,48.00000000,-1,-1,1); //Bullet
- CreateVehicle(541,289.89999390,1809.40002441,1053.80004883+6,47.99926758,-1,-1,1); //Bullet
- CreateVehicle(541,292.10000610,1811.59997559,1053.80004883+6,47.99926758,-1,-1,1); //Bullet
- CreateVehicle(411,294.20001221,1814.09997559,1053.90002441+6,44.00000000,-1,-1,1); //Infernus
- CreateVehicle(411,296.39999390,1816.50000000,1053.90002441+6,44.00000000,-1,-1,1); //Infernus
- CreateVehicle(411,298.79998779,1818.69995117,1053.90002441+6,43.99475098,-1,-1,1); //Infernus
- CreateVehicle(562,300.79998779,1821.00000000,1053.90002441+6,46.00000000,-1,-1,1); //Elegy
- CreateVehicle(562,303.39999390,1823.30004883,1053.90002441+6,45.99975586,-1,-1,1); //Elegy
- CreateVehicle(560,305.70001221,1825.30004883,1053.90002441+6,46.00000000,-1,-1,1); //Sultan
- CreateVehicle(560,308.00000000,1827.59997559,1053.90002441+6,45.99975586,-1,-1,1); //Sultan
- CreateVehicle(560,310.10000610,1829.80004883,1053.90002441+6,45.99975586,-1,-1,1); //Sultan
- CreateVehicle(545,312.39999390,1832.09997559,1054.09997559+6,44.00000000,-1,-1,1); //Hustler
- CreateVehicle(522,314.29998779,1834.59997559,1053.80004883+6,46.00000000,-1,-1,1); //NRG-500
- CreateVehicle(522,316.50000000,1837.40002441,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(522,318.70001221,1839.50000000,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(522,320.60000610,1841.50000000,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(522,323.10000610,1844.00000000,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(522,324.89999390,1846.40002441,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(522,327.79998779,1848.90002441,1053.80004883+6,45.99975586,-1,-1,1); //NRG-500
- CreateVehicle(557,323.70001221,1852.00000000,1054.40002441+6,138.00000000,-1,-1,1); //Monster B
- CreateVehicle(557,307.79998779,1867.00000000,1054.40002441+6,137.99926758,-1,-1,1); //Monster B
- CreateVehicle(539,301.20001221,1864.59997559,1053.80004883+6,228.00000000,-1,-1,1); //Vortex
- CreateVehicle(531,299.60000610,1862.59997559,1054.09997559+6,225.99993896,-1,-1,1); //Tractor
- CreateVehicle(494,297.79998779,1859.80004883,1054.09997559+6,225.99993896,-1,-1,1); //Hotring
- CreateVehicle(494,295.79998779,1857.50000000,1054.09997559+6,225.99975586,-1,-1,1); //Hotring
- CreateVehicle(437,261.20001221,1817.00000000,1054.40002441+6,316.00000000,-1,-1,1); //Coach
- CreateVehicle(437,258.50000000,1820.69995117,1054.40002441+6,136.00000000,-1,-1,1); //Coach
- CreateVehicle(424,293.10000610,1855.30004883,1054.00000000+6,230.00000000,-1,-1,1); //BF Injection
- CreateVehicle(495,290.70001221,1853.19995117,1054.69995117+6,229.99993896,-1,-1,1); //Sandking
- CreateVehicle(495,288.29998779,1851.00000000,1054.69995117+6,229.99877930,-1,-1,1); //Sandking
- CreateVehicle(495,285.89999390,1848.69995117,1054.69995117+6,229.99877930,-1,-1,1); //Sandking
- CreateVehicle(409,269.20001221,1829.80004883,1054.09997559+6,225.99993896,-1,-1,1); //Stretch
- CreateVehicle(409,271.60000610,1831.80004883,1054.09997559+6,225.99975586,-1,-1,20); //Stretch
- CreateVehicle(573,310.10000610,1864.00000000,1054.80004883+6,136.00000000,-1,-1,20); //Duneride
- CreateVehicle(524,319.70001221,1854.69995117,1055.00000000+6,136.00000000,-1,-1,20); //Cement Truck
- CreateVehicle(406,312.70001221,1857.40002441,1055.59997559+6,134.00000000,-1,-1,20); //Dumper
- CreateVehicle(530,273.39999390,1834.30004883,1053.90002441+6,224.00000000,-1,-1,20); //Forklift
- CreateVehicle(530,275.39999390,1836.59997559,1053.90002441+6,223.99475098,-1,-1,20); //Forklift
- CreateVehicle(489,284.10000610,1845.59997559,1054.50000000+6,224.00000000,-1,-1,20); //Rancher
- CreateVehicle(489,281.79998779,1843.00000000,1054.50000000+6,223.99475098,-1,-1,20); //Rancher
- CreateVehicle(471,277.29998779,1839.00000000,1053.69995117+6,224.00000000,-1,-1,20); //Quad
- CreateVehicle(471,279.39999390,1841.50000000,1053.69995117+6,223.99475098,-1,-1,20); //Quad
- CreateVehicle(451,-1183.9768,-486.2108,13.8553,45.8030,-1,-1,20); // a
- CreateVehicle(451,-1186.9561,-489.4417,13.8549,44.8927,-1,-1,20); // a
- CreateVehicle(451,-1190.3053,-492.7248,13.8552,44.1997,-1,-1,20); // a
- CreateVehicle(411,-1193.1714,-495.9659,13.8755,44.3840,-1,-1,20); // a
- CreateVehicle(411,-1196.0480,-498.9617,13.8755,44.7374,-1,-1,20); // a
- CreateVehicle(411,-1198.8105,-501.6311,13.8755,42.6785,-1,-1,20); // a
- CreateVehicle(560,-1201.7108,-504.6472,13.8538,45.0195,-1,-1,20);// a
- CreateVehicle(560,-1204.2449,-507.1839,13.8535,44.0512,-1,-1,20); // a
- CreateVehicle(562,-1206.9146,-509.9257,13.8081,43.1511,-1,-1,20); // a
- CreateVehicle(562,-1209.3405,-512.3433,13.8082,43.0017,-1,-1,20); // a
- CreateVehicle(541,-1211.8167,-514.8370,13.7733,45.2592,-1,-1,20); // a
- CreateVehicle(541,-1214.2749,-517.1995,13.7733,44.9883,-1,-1,20); // a
- CreateVehicle(557,-1220.9336,-522.8406,14.5234,46.1124,-1,-1,20); // a
- CreateVehicle(556,-1223.9945,-527.0887,14.5230,55.3126,-1,-1,20); // A
- CreateVehicle(522,-2237.9082,-1710.9894,480.4368,96.0005,-1,-1,20); //
- CreateVehicle(522,-2237.3833,-1712.2794,480.4471,96.6538,-1,-1,20); //
- CreateVehicle(522,-2237.3308,-1713.1232,480.4463,99.0342,-1,-1,20); //
- CreateVehicle(522,-2237.0911,-1714.6444,480.4474,100.3504,-1,-1,20); //
- CreateVehicle(522,-2199.3972,-1677.9700,375.3003,276.1049,-1,-1,20); //
- CreateVehicle(522,-2236.9839,-1716.0105,480.4464,100.1810,-1,-1,20); //
- CreateVehicle(522,-2236.7202,-1717.4774,480.4474,100.1810,-1,-1,20); //
- CreateVehicle(522,-2236.5088,-1718.6554,480.4483,100.1810,-1,-1,20); //
- CreateVehicle(522,-2236.2629,-1720.0248,480.4494,100.1810,-1,-1,20); //
- CreateVehicle(522,-2235.9348,-1721.8513,480.4507,100.1810,-1,-1,20); //
- CreateVehicle(522,-2235.9275,-1723.6858,480.4416,100.1810,-1,-1,20); //
- CreateVehicle(522,-2235.3923,-1726.6650,480.4439,100.1810,-1,-1,20); //
- CreateVehicle(522,-2235.0830,-1728.9392,480.4424,100.1810,-1,-1,20); //
- CreateVehicle(522,-2235.0535,-1730.3480,480.4362,100.1810,-1,-1,20); //
- CreateDynamicObject(1829, 1934.70, 996.60, 991.90, 0.00, 0.00, 0.00);
- CreateDynamicObject(1634, -1675.40, 1311.30, 7.50, 0.00, 0.00, 26.00);
- CreateDynamicObject(3256, -1537.20, 384.20, 6.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(3279, -1636.00, 651.90, 6.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(3279, -1578.00, 650.00, 6.20, 0.00, 0.00, 182.00);
- CreateDynamicObject(3279, -1576.60, 673.00, 6.20, 0.00, 0.00, 272.00);
- CreateDynamicObject(3279, -1540.00, 478.50, 6.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(12912, -1476.90, 457.00, 17.70, 0.00, 0.00, 88.00);
- CreateDynamicObject(3268, -1244.10, 457.30, 6.30, 0.00, 0.00, 0.00);
- CreateDynamicObject(980, -1334.30, 480.80, 7.90, 308.00, 0.00, 0.00);
- CreateDynamicObject(980, -1334.30, 482.60, 9.40, 310.00, 0.00, 0.00);
- CreateDynamicObject(1655, -1522.90, 500.90, 7.50, 0.00, 0.00, 268.00);
- CreateDynamicObject(1634, -1517.80, 502.60, 9.90, 12.00, 0.00, 268.00);
- CreateDynamicObject(1634, -1518.10, 498.50, 9.90, 12.00, 0.00, 267.99);
- CreateDynamicObject(6865, -2516.20, 1204.70, 44.30, 0.00, 0.00, 134.00);
- CreateDynamicObject(3524, -2485.70, 1203.80, 38.30, 0.00, 0.00, 0.00);
- CreateDynamicObject(3524, -2493.50, 1200.20, 38.30, 0.00, 2.00, 32.00);
- CreateDynamicObject(16778, -2481.30, 1209.90, 37.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(9482, -2245.40, 644.00, 55.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(9482, -2210.70, 576.70, 40.60, 0.00, 0.00, 268.00);
- CreateDynamicObject(2987, -2212.60, 645.50, 49.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(2098, -2212.60, 645.50, 50.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(2098, -2225.00, 651.40, 64.50, 0.00, 0.00, 90.00);
- CreateDynamicObject(2987, -2225.00, 651.40, 63.60, 0.00, 0.00, 90.00);
- CreateDynamicObject(3269, -2122.40, 296.50, 33.80, 0.00, 0.00, 256.00);
- CreateDynamicObject(1655, -1992.90, 182.00, 27.60, 0.00, 0.00, 220.00);
- CreateDynamicObject(1655, -1988.60, 176.80, 30.90, 8.00, 0.00, 222.00);
- CreateDynamicObject(1634, -1986.50, 171.20, 34.80, 18.00, 0.00, 222.00);
- CreateDynamicObject(1634, -1983.40, 173.90, 34.80, 18.00, 0.00, 221.99);
- CreateDynamicObject(850, -2135.60, -263.80, 34.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(850, -2131.90, -263.50, 34.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(850, -2128.20, -263.20, 34.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(850, -2130.20, -263.30, 34.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(849, -2133.30, -262.80, 34.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(5291, -2129.10, -239.60, 43.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(3270, -1506.20, 697.40, 6.20, 0.00, 0.00, 104.00);
- CreateDynamicObject(12956, -1521.90, 948.60, 10.00, 0.00, 0.00, 274.00);
- CreateDynamicObject(1655, -1508.10, 776.30, 7.50, 0.00, 0.00, 180.00);
- CreateDynamicObject(1655, -1508.10, 769.20, 11.90, 18.00, 0.00, 179.99);
- CreateDynamicObject(1655, -1508.10, 763.50, 17.90, 30.00, 0.00, 179.99);
- CreateDynamicObject(1634, -1505.80, 759.80, 23.60, 40.00, 0.00, 180.00);
- CreateDynamicObject(1634, -1510.10, 759.80, 23.60, 40.00, 0.00, 179.99);
- CreateDynamicObject(1225, -1503.90, 747.30, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1505.10, 747.40, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1506.30, 747.50, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1507.80, 747.60, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1509.00, 747.70, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1508.40, 748.40, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1506.90, 748.30, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1505.70, 747.90, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1504.40, 747.80, 38.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1509.60, 748.40, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1510.40, 747.70, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1511.40, 747.70, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1512.40, 747.70, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1511.90, 748.40, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1510.90, 748.40, 38.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(13650, -1575.80, -1750.30, 1207.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(13657, -1607.40, -1773.30, 1203.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(7617, -1645.40, -1707.50, 1211.70, 0.00, 0.00, 270.00);
- CreateDynamicObject(3037, -1614.30, -1801.50, 1202.80, 0.00, 0.00, 270.00);
- CreateDynamicObject(3057, -1619.50, -1753.40, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(3057, -1616.50, -1754.60, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(3057, -1617.80, -1758.10, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(3057, -1615.60, -1761.40, 1201.20, 52.84, 27.15, 337.77);
- CreateDynamicObject(3057, -1615.40, -1761.90, 1201.20, 52.83, 27.15, 337.77);
- CreateDynamicObject(1225, -1610.30, -1781.00, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1580.00, -1796.00, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1577.90, -1761.80, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1571.90, -1708.50, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1609.40, -1713.70, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1519.30, -1779.70, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1518.00, -1747.10, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1225, -1516.50, -1709.40, 1201.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(16337, -1512.70, -1766.90, 1200.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(16337, -1512.70, -1769.60, 1200.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(16337, -1629.60, -1738.70, 1200.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(16337, -1629.60, -1736.00, 1200.60, 0.00, 0.00, 0.00);
- CreateDynamicObject(18759, -1364.56, -490.37, 31.01, 0.00, 0.00, 297.84);
- CreateDynamicObject(18800, -1119.64, -438.01, 24.20, 0.00, 0.00, 11.70);
- CreateDynamicObject(18801, -1147.50, -457.08, 59.50, 0.00, 0.00, 197.82);
- CreateDynamicObject(18809, -1234.16, 3101.20, -498.00, 0.00, 0.00, 0.00);
- CreateDynamicObject(18809, -1223.76, -462.28, 39.01, 90.00, 0.00, 281.26);
- CreateDynamicObject(18809, -1174.65, -452.38, 39.03, 90.00, 0.00, 281.26);
- CreateDynamicObject(18826, -1261.52, -453.64, 38.72, -91.00, -16.00, 355.67);
- CreateDynamicObject(18827, -1203.00, 6337.00, -434.00, -4.00, 0.00, 0.00);
- CreateDynamicObject(18825, -1245.49, -432.44, 54.30, 0.00, 0.00, 200.70);
- CreateDynamicObject(18827, -1300.36, -455.46, 71.87, -2.00, 0.00, 293.18);
- CreateDynamicObject(18780, -1377.02, -489.58, 80.39, 0.00, 0.00, 204.64);
- CreateDynamicObject(16357, -939.20, 558.50, 96.90, 0.00, 326.00, 46.00);
- CreateDynamicObject(16357, -847.60, 653.40, 185.90, 0.00, 325.99, 46.00);
- CreateDynamicObject(16357, -757.40, 746.80, 273.50, 0.00, 326.00, 46.00);
- CreateDynamicObject(16357, -663.30, 844.30, 358.20, 0.00, 330.00, 46.00);
- CreateDynamicObject(16357, -567.40, 943.60, 437.90, 0.00, 330.00, 46.00);
- CreateDynamicObject(16357, -471.50, 1042.90, 517.60, 0.00, 330.00, 46.00);
- CreateDynamicObject(16357, -375.50, 1142.30, 597.40, 0.00, 330.00, 46.00);
- CreateDynamicObject(16357, -275.00, 1246.40, 661.80, 0.00, 342.00, 46.00);
- CreateDynamicObject(16357, -170.10, 1355.00, 710.90, 0.00, 341.99, 46.00);
- CreateDynamicObject(16357, -64.70, 1464.20, 760.20, 0.00, 341.99, 46.00);
- CreateDynamicObject(16357, 34.10, 1566.50, 829.60, 0.00, 325.99, 46.00);
- CreateDynamicObject(16357, 126.00, 1661.70, 918.90, 0.00, 325.99, 46.00);
- CreateDynamicObject(16357, 217.80, 1756.80, 1008.10, 0.00, 325.99, 46.00);
- CreateDynamicObject(1655, -976.70, 513.90, 59.80, 330.00, 0.00, 134.00);
- CreateDynamicObject(1655, -982.10, 519.50, 59.80, 330.00, 0.00, 133.99);
- CreateDynamicObject(1634, -981.30, 506.40, 61.10, 0.00, 0.00, 134.00);
- CreateDynamicObject(1634, -984.00, 509.20, 61.10, 0.00, 0.00, 133.99);
- CreateDynamicObject(1634, -986.70, 512.10, 61.10, 0.00, 0.00, 133.99);
- CreateDynamicObject(1634, -989.60, 515.10, 61.10, 0.00, 0.00, 133.99);
- CreateDynamicObject(1634, -986.80, 501.20, 65.80, 14.00, 0.00, 133.99);
- CreateDynamicObject(1634, -989.60, 504.20, 65.80, 14.00, 0.00, 133.99);
- CreateDynamicObject(1634, -992.10, 506.90, 65.80, 14.00, 0.00, 133.99);
- CreateDynamicObject(1634, -995.00, 509.90, 65.80, 14.00, 0.00, 133.99);
- CreateDynamicObject(1225, -804.10, 708.50, 234.10, 0.00, 318.00, 46.00);
- CreateDynamicObject(1225, -794.60, 699.30, 234.40, 0.00, 318.00, 46.00);
- CreateDynamicObject(1225, -333.60, 1193.90, 635.90, 292.00, 90.00, 320.00);
- CreateDynamicObject(1225, -334.60, 1194.70, 635.90, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -332.50, 1193.00, 635.90, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -331.50, 1192.20, 635.90, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -330.50, 1191.40, 636.00, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -329.30, 1190.50, 636.10, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -328.30, 1189.70, 636.10, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -326.90, 1188.60, 636.40, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -325.90, 1187.80, 636.40, 291.99, 90.00, 320.00);
- CreateDynamicObject(1225, -324.70, 1186.90, 636.40, 291.99, 90.00, 320.00);
- CreateDynamicObject(8040, 291.70, 1832.70, 1053.90, 0.00, 0.00, 226.00);
- CreateDynamicObject(4641, 259.20, 1811.20, 1054.80, 0.00, 0.00, 228.00);
- CreateDynamicObject(4641, 271.10, 1799.90, 1054.80, 0.00, 0.00, 224.00);
- CreateDynamicObject(10281, 318.90, 1859.90, 1056.00, 0.00, 0.00, 316.00);
- CreateDynamicObject(14467, 271.10, 1800.20, 1059.20, 0.00, 0.00, 136.00);
- CreateDynamicObject(2714, 312.80, 1866.80, 1057.50, 0.00, 0.00, 314.00);
- CreateDynamicObject(18813, -1472.18, -531.48, 70.57, 0.00, 0.00, 3.45);
- CreateDynamicObject(18824, 7201.13, 6278.16, -827.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(18804, -1607.83, -550.07, 63.88, 0.00, 0.00, 0.00);
- CreateDynamicObject(18794, -1701.85, -550.11, 60.11, 0.00, 6.00, 0.00);
- CreateDynamicObject(18807, -1758.43, -548.09, 71.43, 0.00, 0.00, 357.26);
- CreateDynamicObject(18794, -1518.69, -550.28, 49.95, 0.00, -28.00, 179.00);
- CreateDynamicObject(18832, -1477.41, -536.50, 42.47, -4.00, 263.00, 40.00);
- CreateDynamicObject(18831, -1490.48, -542.82, 57.33, 0.00, 55.00, 190.00);
- CreateDynamicObject(18801, -1793.66, -536.60, 104.43, 0.00, 7.00, 0.00);
- CreateDynamicObject(18852, -1847.11, -522.73, 73.17, 16.00, -104.00, 1.00);
- CreateDynamicObject(18830, -11500.93, -3829.89, -42.30, 0.00, 0.00, 0.00);
- CreateDynamicObject(18830, -1909.63, -520.06, 61.63, -1.00, 207.00, -1.00);
- CreateDynamicObject(13640, -2242, -1694.0999755859, 480.60000610352, 0, 0, 44);
- CreateDynamicObject(13640, -2238, -1690.4000244141, 480.5, 0, 0, 44);
- CreateDynamicObject(13640, -2226.3999023438, -1679.0999755859, 480.70001220703, 0, 0, 44);
- CreateDynamicObject(13640, -2222.6999511719, -1675.5, 481.29998779297, 0, 0, 44);
- CreateDynamicObject(13647, -2200.8000488281, -1655.5999755859, 480.79998779297, 0, 0, 44);
- CreateDynamicObject(13647, -2202.1999511719, -1654.4000244141, 480.89999389648, 0, 0, 44);
- CreateDynamicObject(13640, -2182.3000488281, -1643, 482.20001220703, 0, 0, 316);
- CreateDynamicObject(13640, -2178.3999023438, -1646.9000244141, 482.39999389648, 0, 0, 314);
- CreateDynamicObject(3515, -2174.6000976563, -1650.8000488281, 481.39999389648, 0, 0, 0);
- CreateDynamicObject(9316, -2177, -1663.3000488281, 479.5, 0, 0, 316);
- CreateDynamicObject(3865, -2185.3999023438, -1678.1999511719, 480.10000610352, 0, 0, 320);
- CreateDynamicObject(3865, -2191.3000488281, -1685.0999755859, 480.10000610352, 0, 0, 142);
- CreateDynamicObject(3865, -2196.8999023438, -1692.6999511719, 477.89999389648, 22, 0, 324);
- CreateDynamicObject(8632, -2198.8999023438, -1731.3000488281, 474.79998779297, 0, 0, 158);
- CreateDynamicObject(1503, -2207.3999023438, -1788.4000244141, 474.39999389648, 0, 0, 195.99993896484);
- CreateDynamicObject(16318, -2198.8000488281, -1812.3000488281, 480.39999389648, 0, 0, 290);
- CreateDynamicObject(16301, -2186.3999023438, -1841, 488.70001220703, 0, 0, 296);
- CreateDynamicObject(13593, -2179.3000488281, -1855.5999755859, 494.29998779297, 0, 0, 208);
- CreateDynamicObject(1395, -2149.8999023438, -1907, 500.20001220703, 273.99993896484, 180.00079345703, 210.00091552734);
- CreateDynamicObject(1634, -2137.3999023438, -1928.8000488281, 504, 0, 0, 210);
- CreateDynamicObject(8624, -2115, -1969.8000488281, 510.70001220703, 0, 0, 28);
- CreateDynamicObject(8624, -2086.8999023438, -2022.6999511719, 510.70001220703, 0, 0, 28);
- CreateDynamicObject(8624, -2058.6999511719, -2075.6000976563, 510.70001220703, 0, 0, 28);
- CreateDynamicObject(1634, -2044.4000244141, -2097.6999511719, 511.79998779297, 0, 0, 206);
- CreateDynamicObject(1634, -2048.1000976563, -2099.5, 511.79998779297, 0, 0, 205.99993896484);
- Dono[0] = 1;
- Dono[1] = 2;
- Dono[2] = 3;
- Dono[3] = 4;
- Dono[4] = 5;
- Dono[5] = 6;
- Dono[6] = 7;
- Dono[7] = 8;
- Dono[8] = 9;
- Dono[9] = 10;
- GZ[0] = GangZoneCreate(-1753.477, 625.6215, -1513.99, 803.1449);
- GZ[1] = GangZoneCreate(-1517.853, 420.4833, -1208.838, 598.0067);
- GZ[2] = GangZoneCreate(-2390.82, 65.43655, -2228.587, 329.7492);
- GZ[3] = GangZoneCreate(-2750.05, 191.6754, -2549.19, 345.529);
- GZ[4] = GangZoneCreate(-2155.196, 112.7761, -1992.963, 357.3639);
- GZ[5] = GangZoneCreate(-1780.516, 1296.265, -1475.364, 1509.293);
- GZ[6] = GangZoneCreate(-2263.351, 554.6121, -2085.668, 779.4751);
- GZ[7] = GangZoneCreate(-2626.444, 1173.972, -2406.271, 1323.88);
- GZ[8] = GangZoneCreate(-2800.265, -344.8398, -2583.954, -183.0962);
- GZ[9] = GangZoneCreate(-2209.274, -293.5552, -1996.826, -56.85734);
- return 1;
- }
- public OnGameModeExit()
- {
- DOF2_Exit();
- for(new i = 0;i<GetMaxPlayers();i++)
- {
- TextDrawDestroy(Textodraw[i][0]);
- TextDrawDestroy(Textodraw[i][1]);
- TextDrawDestroy(Textodraw[i][2]);
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(PlayerBope(playerid) && PI[playerid][pCP] == 1){
- if(Dono[0] != PI[playerid][pTime]){
- if(Dominando[0] == false){
- Dominando[0] = true;
- Timer[0] = SetTimerEx("ContandoBope",1000,true,"i",playerid);
- Contando[0] = 15;
- DominandoGZ(0,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerExercito(playerid) && PI[playerid][pCP] == 2){
- if(Dono[1] != PI[playerid][pTime]){
- if(Dominando[1] == false){
- Dominando[1] = true;
- Timer[1] = SetTimerEx("ContandoExercito",1000,true,"i",playerid);
- Contando[1] = 15;
- DominandoGZ(1,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerBozo(playerid) && PI[playerid][pCP] == 3){
- if(Dono[2] != PI[playerid][pTime]){
- if(Dominando[2] == false){
- Dominando[2] = true;
- Timer[2] = SetTimerEx("ContandoBozo",1000,true,"i",playerid);
- Contando[2] = 15;
- DominandoGZ(2,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerFrango(playerid) && PI[playerid][pCP] == 4){
- if(Dono[3] != PI[playerid][pTime]){
- if(Dominando[3] == false){
- Dominando[3] = true;
- Timer[3] = SetTimerEx("ContandoFrango",1000,true,"i",playerid);
- Contando[3] = 15;
- DominandoGZ(3,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerRifas(playerid) && PI[playerid][pCP] == 5){
- if(Dono[4] != PI[playerid][pTime]){
- if(Dominando[4] == false){
- Dominando[4] = true;
- Timer[4] = SetTimerEx("ContandoRifas",1000,true,"i",playerid);
- Contando[4] = 15;
- DominandoGZ(4,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerNang(playerid) && PI[playerid][pCP] == 6){
- if(Dono[5] != PI[playerid][pTime]){
- if(Dominando[5] == false){
- Dominando[5] = true;
- Timer[5] = SetTimerEx("ContandoNang",1000,true,"i",playerid);
- Contando[5] = 15;
- DominandoGZ(5,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerTriads(playerid) && PI[playerid][pCP] == 7){
- if(Dono[6] != PI[playerid][pTime]){
- if(Dominando[6] == false){
- Dominando[6] = true;
- Timer[6] = SetTimerEx("ContandoTriads",1000,true,"i",playerid);
- Contando[6] = 15;
- DominandoGZ(6,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerMotoqueiro(playerid) && PI[playerid][pCP] == 8){
- if(Dono[7] != PI[playerid][pTime]){
- if(Dominando[7] == false){
- Dominando[7] = true;
- Timer[7] = SetTimerEx("ContandoMotoqueiro",1000,true,"i",playerid);
- Contando[7] = 15;
- DominandoGZ(7,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerPlayBoy(playerid) && PI[playerid][pCP] == 9){
- if(Dono[8] != PI[playerid][pTime]){
- if(Dominando[8] == false){
- Dominando[8] = true;
- Timer[8] = SetTimerEx("ContandoPlayBoy",1000,true,"i",playerid);
- Contando[8] = 15;
- DominandoGZ(8,PI[playerid][pTime]);
- }
- }
- }
- else if(PlayerMendigo(playerid) && PI[playerid][pCP] == 10){
- if(Dono[9] != PI[playerid][pTime]){
- if(Dominando[9] == false){
- Dominando[9] = true;
- Timer[9] = SetTimerEx("ContandoMendigo",1000,true,"i",playerid);
- Contando[9] = 15;
- DominandoGZ(9,PI[playerid][pTime]);
- }
- }
- }
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(Logou[playerid] == false) return 1;
- SetPlayerPos(playerid, -2162.8064,460.9178,111.8750);
- SetPlayerFacingAngle(playerid,1.2349);
- SetPlayerCameraPos(playerid,-2162.9963,467.2214,111.8303);
- SetPlayerCameraLookAt(playerid, -2162.8064,460.9178,111.8750);
- switch(classid)
- {
- case 0:
- {
- PI[playerid][pTime] = 1;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~bope",3000,3);
- SetPlayerColor(playerid,COR_COP);
- }
- case 1:
- {
- PI[playerid][pTime] = 2;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~Exercito",3000,3);
- SetPlayerColor(playerid,COR_EXE);
- }
- case 2:
- {
- PI[playerid][pTime] = 3;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~bozo",3000,3);
- SetPlayerColor(playerid,COR_BOZ);
- }
- case 3:
- {
- PI[playerid][pTime] = 4;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~Frangolinos",3000,3);
- SetPlayerColor(playerid,COR_FRA);
- }
- case 4..6:
- {
- PI[playerid][pTime] = 5;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~Rifas",3000,3);
- SetPlayerColor(playerid,COR_RIF);
- }
- case 7..9:
- {
- PI[playerid][pTime] = 6;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~nang",3000,3);
- SetPlayerColor(playerid,COR_NAN);
- }
- case 10..13:
- {
- PI[playerid][pTime] = 7;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~triads",3000,3);
- SetPlayerColor(playerid,COR_TRI);
- }
- case 14..16:
- {
- PI[playerid][pTime] = 8;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~motoqueiros",3000,3);
- SetPlayerColor(playerid,COR_MOT);
- }
- case 17..20:
- {
- PI[playerid][pTime] = 9;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~playboys",3000,3);
- SetPlayerColor(playerid,COR_PLA);
- }
- case 21..25:
- {
- PI[playerid][pTime] = 10;
- GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~mendigos",3000,3);
- SetPlayerColor(playerid,COR_MEN);
- }
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- new Float: h,Float:c;
- GetPlayerArmour(playerid,c);
- GetPlayerHealth(playerid,h);
- if(PI[issuerid][pTime] == PI[playerid][pTime]){
- if(FoiX1[playerid] == false && FoiX1[issuerid] == false){
- SetPlayerHealth(playerid,h);
- SetPlayerArmour(playerid,c);
- }
- }
- else
- {
- if(Comecou[playerid] == true){
- if(!IsPlayerInAnyVehicle(issuerid)){
- if(IsPlayerAimingTargetBodyPart(issuerid, playerid, 1))
- {
- PlayAudioStreamForPlayer(playerid,"http://dl.dropbox.com/u/93733388/headshot183.mp3");
- PlayAudioStreamForPlayer(issuerid,"http://dl.dropbox.com/u/93733388/headshot183.mp3");
- GameTextForPlayer(issuerid, "~r~H~r~~h~E~r~~h~~h~A~r~~h~~h~~h~D ~r~~h~~h~~h~S~r~~h~~h~H~r~~h~O~r~T", 2000, 3);
- GameTextForPlayer(playerid, "~r~H~r~~h~E~r~~h~~h~A~r~~h~~h~~h~D ~r~~h~~h~~h~S~r~~h~~h~H~r~~h~O~r~T", 5000, 3);
- SetPlayerHealth(playerid, 0);
- GivePlayerMoneyEx(issuerid,3000);
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://dl.dropbox.com/u/93733388/gameofthronestheme.mp3");
- new arq[56];
- format(arq,sizeof arq,"Banidos/%s.ini",Nome(playerid));
- if(DOF2_FileExists(arq))
- {
- new str[250];
- format(str,sizeof str,"{EE0000}Conta %s Banida\n\n{FF4500}Administrador: {FFFFFF}%s\n\n{FF4500}Razão: {FFFFFF}%s\n\n\n{FFFFFF}Para solicitar seu desbanimento acesse:\n\n\n\t{00FF00}forum.mib-samp.com",Nome(playerid),DOF2_GetString(arq,"Admin"),DOF2_GetString(arq,"Razao"));
- ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"{EE0000}Banido",str,"Sair","");
- return Kick(playerid);
- }
- TextDrawShowForPlayer(playerid,NomeServerTxt[0]);
- TextDrawShowForPlayer(playerid,NomeServerTxt[1]);
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
- TextDrawShowForPlayer(playerid,ImagemEntrada);
- TextDrawShowForPlayer(playerid,Textodraw[playerid][1]);
- TextDrawShowForPlayer(playerid,Textodraw[playerid][2]);
- PI[playerid][pDolar] = 0;
- Matou[playerid] = 0;
- PI[playerid][pMatou] = 0;
- PI[playerid][pMorreu] = 0;
- PI[playerid][pAdmin] = 0;
- PI[playerid][pTime] = 0;
- Errou[playerid] = 0;
- PI[playerid][pCP] = 0;
- PI[playerid][pPreso] = 0;
- PI[playerid][pCalado] = 0;
- PI[playerid][pMorreuX1] = 0;
- PI[playerid][pMatouX1] = 0;
- EnviarPM[playerid] = 999;
- ResetPlayerWeapons(playerid);
- new str[500];
- format(str,sizeof str,"{FFFFFF}\tRegras {00FF00}Made {FFFF00}In {0000FF}Brazil {FFFFFF}Team Death Match v1.0\n\n\n\n{FFFFFF}Não utilize cheater's - Punição {FF0000}Banimento\n\n{FFFFFF}Não floodar - Punição {FF0000}Kick+Mute\n\n{FFFFFF}Não cometa Drive By ou Team Kill - Punição {FF0000}Prisão\n\n{FFFFFF}Não ofenda Admins/Players - Punição {FF0000}Kick+Mute\n\n{FFFFFF}Não divulgar outros Serve's - Punição {FF0000}Banimento\n\n");
- ShowPlayerDialog(playerid,DIALOG_REGRA,DIALOG_STYLE_MSGBOX,"Regras",str,"Concordo","Discordo");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- SalvarPlayer(playerid);
- Logou[playerid] = false;
- TextDrawHideForPlayer(playerid,Textodraw[playerid][0] );
- TextDrawHideForPlayer(playerid,Textodraw[playerid][1]);
- TextDrawHideForPlayer(playerid,Textodraw[playerid][2]);
- TextDrawHideForPlayer(playerid,NomeServerTxt[0]);
- TextDrawHideForPlayer(playerid,NomeServerTxt[1]);
- if(FoiX1[playerid] == true){
- for(new i = 0;i < GetMaxPlayers();i++){
- if(FoiX1[i] == true){
- VenceuX1(i,playerid);
- }
- }
- }
- if(PI[playerid][pPreso] > 1){
- KillTimer(Timerr[playerid]);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- ResetPlayerWeapons(playerid);
- TogglePlayerControllable(playerid,1);
- Cagou[playerid] = false;
- Comecou[playerid] = false;
- ComprouColete[playerid] = false;
- SetPlayerVirtualWorld(playerid,0);
- if(PI[playerid][pPreso] > 0){
- GameTextForPlayer(playerid,"~r~~n~~n~~n~Preso",5000,3);
- SetPlayerInterior(playerid,6);
- SetPlayerPos(playerid,264.7193,77.6862,1001.0391);
- SetPlayerFacingAngle(playerid,266.1212);
- SetCameraBehindPlayer(playerid);
- KillTimer(Timerr[playerid]);
- Timerr[playerid] = SetTimerEx("Prendeu",1000,true,"i",playerid);
- }
- else{
- Aviso(playerid,"Em 5 segundos o jogo começará.");
- SetTimerEx("Comecar",5000,false,"i",playerid);
- SetPlayerInterior(playerid,0);
- switch(PI[playerid][pTime])
- {
- case 1:
- {
- SetPlayerPos(playerid,-1606.0048,732.9753,-5.2344);
- SetPlayerFacingAngle(playerid,4.1702);
- }
- case 2:
- {
- SetPlayerPos(playerid,-1348.6628,492.0019,11.1953);
- SetPlayerFacingAngle(playerid,1.7673);
- }
- case 3:
- {
- SetPlayerPos(playerid,-2267.8135,160.3676,35.3056);
- SetPlayerFacingAngle(playerid,90.6546);
- }
- case 4:
- {
- SetPlayerPos(playerid,-2658.4312,261.9197,4.6328);
- SetPlayerFacingAngle(playerid,359.6839);
- }
- case 5:
- {
- SetPlayerPos(playerid,-2127.1082,238.1429,37.2629);
- SetPlayerFacingAngle(playerid,271.3542);
- }
- case 6:
- {
- SetPlayerPos(playerid,-1694.0107,1362.7961,9.8047);
- SetPlayerFacingAngle(playerid,224.7694);
- }
- case 7:
- {
- SetPlayerPos(playerid,-2184.7234,702.9671,53.8906);
- SetPlayerFacingAngle(playerid,267.4818);
- }
- case 8:
- {
- SetPlayerPos(playerid,-2567.7373,1221.7560,41.2109);
- SetPlayerFacingAngle(playerid,263.1116);
- }
- case 9:
- {
- SetPlayerPos(playerid,-2676.2302,-277.5471,7.1737);
- SetPlayerFacingAngle(playerid,313.9108);
- }
- case 10:
- {
- SetPlayerPos(playerid,-2105.8059,-270.3278,35.3203);
- SetPlayerFacingAngle(playerid,9.7480);
- }
- }
- }
- for(new k = 0;k<10;k++)
- {
- if(Dono[k] == 1)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_COP1);
- }
- else if(Dono[k] == 2)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_EXE1);
- }
- else if(Dono[k] == 3)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_BOZ1);
- }
- else if(Dono[k] == 4)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_FRA1);
- }
- else if(Dono[k] == 5)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_RIF1);
- }
- else if(Dono[k] == 6)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_NAN1);
- }
- else if(Dono[k] == 7)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_TRI1);
- }
- else if(Dono[k] == 8)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_MOT1);
- }
- else if(Dono[k] == 9)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_PLA1);
- }
- else if(Dono[k] == 10)
- {
- GangZoneShowForPlayer(playerid,GZ[k],COR_MEN1);
- }
- }
- SetCameraBehindPlayer(playerid);
- SetPlayerHealth(playerid,99999);
- StopAudioStreamForPlayer(playerid);
- new str[128];
- new frag = (PI[playerid][pMatou] - PI[playerid][pMorreu]);
- if(frag > -1) format(str,sizeof str,"~w~Matou: ~g~~h~%d~n~~w~Morreu: ~r~~h~%d~n~~w~Frag: ~b~~h~%d",PI[playerid][pMatou],PI[playerid][pMorreu],frag);
- else format(str,sizeof str,"~w~Matou: ~g~~h~%d~n~~w~Morreu: ~r~~h~%d~n~~w~Frag: ~r~~h~%d",PI[playerid][pMatou],PI[playerid][pMorreu],frag);
- TextDrawSetString(Text:Textodraw[playerid][1],str);
- TextDrawShowForPlayer(playerid,Textodraw[playerid][1]);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- SendDeathMessage(killerid, playerid, reason);
- if(IsPlayerInAnyVehicle(killerid) && !IsPlayerInAnyVehicle(playerid)){
- avisou[killerid] ++;
- new str[128];
- format(str,sizeof str,"{EE0000}O player %s cometeu Drive By e recebeu um aviso.",Nome(killerid));
- SendClientMessageToAll(-1,str);
- if(avisou[killerid] == 2){
- format(str,sizeof str,"{EE0000}O player %s foi preso por ter dois avisos.",Nome(killerid));
- SendClientMessageToAll(-1,str);
- PI[killerid][pPreso] += 30;
- avisou[killerid] = 0;
- SpawnPlayerEx(killerid);
- return true;
- }
- }
- if(FoiX1[killerid] == true && FoiX1[playerid] == true){
- VenceuX1(killerid,playerid);
- }
- else{
- if(PI[killerid][pTime] != PI[playerid][pTime])
- {
- PI[killerid][pMatou] ++;
- PI[playerid][pMorreu] ++;
- VerificarArquivo(killerid);
- GivePlayerMoneyEx(killerid,1000);
- GivePlayerMoneyEx(playerid,-200);
- SetPlayerScore(killerid,PI[killerid][pMatou]);
- GameTextForPlayer(playerid,"~r~~n~~n~~n~Olha quem te matou!!",6000,5);
- new str[128];
- new frag = (PI[killerid][pMatou] - PI[killerid][pMorreu]);
- if(frag > 0) format(str,sizeof str,"~w~Matou: ~g~%d~n~~w~Morreu: ~r~%d~n~~w~Frag: ~b~%d",PI[killerid][pMatou],PI[killerid][pMorreu],frag);
- else format(str,sizeof str,"~w~Matou: ~g~%d~n~~w~Morreu: ~r~%d~n~~w~Frag: ~r~%d",PI[killerid][pMatou],PI[killerid][pMorreu],frag);
- TextDrawSetString(Text:Textodraw[killerid][1],str);
- TextDrawShowForPlayer(killerid,Textodraw[killerid][1]);
- Matou[killerid] ++;
- OnWeaponDrop(playerid);
- //===============================================================================================================================
- if(Matou[killerid] == 5){
- format(str,sizeof str,"{EE0000}O player %s está ingressando na carreira do crime. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 10){
- format(str,sizeof str,"{EE0000}O player %s está tomando gosto pela coisa. Já mandou %d players pra cova.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 15){
- format(str,sizeof str,"{EE0000}Estou começando a ficar com medo do %s. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 20){
- format(str,sizeof str,"{EE0000}Ninguem segura o %s ta deitando todo mundo. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 30){
- format(str,sizeof str,"{EE0000}Manda alguem parar o %s, daqui a pouco vai matar o server inteiro. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 40){
- format(str,sizeof str,"{EE0000}Chama a mamãe que o %s ta matando todo mundo. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 50){
- format(str,sizeof str,"{EE0000}O player %s me fez borrar o disco rigido. Já matou %d players.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 75){
- format(str,sizeof str,"{EE0000}O player %s só pode estar usando Cheater. Já mandou %d pra cova.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 90){
- format(str,sizeof str,"{EE0000}Ah não dá, %s ja matou %d players, vou embora jogar tibia! ",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- else if(Matou[killerid] == 100){
- format(str,sizeof str,"{EE0000}Esse %s só pode ser discipulo do Chuck Norris. %d players já provaram de sua fúria.",Nome(killerid),Matou[killerid]);
- SendClientMessageToAll(-1,str);
- }
- //===============================================================================================================================
- if(IsPlayerInAnyVehicle(killerid)){
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(killerid), SPECTATE_MODE_NORMAL);
- }
- else{
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, killerid);
- }
- SetTimerEx("Pararespiar",5000,false,"d",playerid);
- }
- else if(PI[killerid][pTime] == PI[playerid][pTime]){
- avisou[killerid] ++;
- new str[128];
- format(str,sizeof str,"{EE0000}O player %s cometeu Team Kill e recebeu um aviso.",Nome(killerid));
- SendClientMessageToAll(-1,str);
- if(avisou[killerid] == 2){
- format(str,sizeof str,"{EE0000}O player %s foi preso por ter dois avisos.",Nome(killerid));
- SendClientMessageToAll(-1,str);
- PI[killerid][pPreso] += 30;
- avisou[killerid] = 0;
- SpawnPlayerEx(killerid);
- }
- }
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(Logou[playerid] == false) return Aviso(playerid,"Você não pode falar, pois não está logado.");
- if(PI[playerid][pCalado] > gettime()){
- new str[128];
- format(str,sizeof str,"Você ainda vai ficar calado por mais %d segundos.",PI[playerid][pCalado] - gettime());
- Aviso(playerid,str);
- return 0;
- }
- else PI[playerid][pCalado] = 0;
- if(strlen(text) == strlen(Ftexto[playerid]) && !strcmp(Ftexto[playerid], text, false))
- {
- SendClientMessage(playerid, -1, "{FF0000}[ERRO]{FFFFFF} Não repita a mesma mensagem!");
- format(Ftexto[playerid], 128, "%s", text);
- return 0;
- }
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(Logou[playerid] == true)
- {
- SpawnPlayerEx(playerid);
- }
- else return true;
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- OnWeaponDropPickup(playerid, pickupid);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_YES)
- {
- if(Comecou[playerid] == true){
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(PI[playerid][pDolar] > 999)
- {
- if(Cagou[playerid] == false)
- {
- GivePlayerMoneyEx(playerid,-1000);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- CreateObject(1225,x+0.5,y,z-0.55,0.00000000,0.00000000,0.00000000);
- GameTextForPlayer(playerid,"~p~~n~~n~~n~Voce cagou um barril",5000,5);
- if(PI[playerid][pAdmin] < 1)
- {
- Cagou[playerid] = true;
- }
- return true;
- }
- else return GameTextForPlayer(playerid,"~r~~n~~n~Cagaooo~n~voce ja cagou, so poderas cagar denovo assim que nascer novamente.",5000,5);
- }
- }
- else if(IsPlayerInAnyVehicle(playerid))
- {
- if(PI[playerid][pDolar] > 999)
- {
- if(Cagou[playerid] == false)
- {
- GivePlayerMoneyEx(playerid,-1000);
- new Float:x,Float:y,Float:z;
- GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
- GetXYInFrontOfVehicle(GetPlayerVehicleID(playerid), x, y, -5.0);
- CreateObject(1225,x,y,z-0.25,0.00000000,0.00000000,0.00000000);
- GameTextForPlayer(playerid,"~p~~n~~n~~n~Voce cagou um barril CARRO",5000,5);
- if(PI[playerid][pAdmin] < 1)
- {
- Cagou[playerid] = true;
- }
- return true;
- }
- else return GameTextForPlayer(playerid,"~r~~n~~n~Cagaooo~n~voce ja cagou, so poderas cagar denovo assim que nascer novamente.",5000,5);
- }
- }
- }
- }
- if (HOLDING( KEY_FIRE )){
- if(IsPlayerInAnyVehicle(playerid)) return AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- }
- else{
- RemoveVehicleComponent(GetPlayerVehicleID(playerid),1010);
- }
- if (HOLDING( KEY_NO )){
- if(IsPlayerConnected(playerid)){
- new str1[350];
- new str2[350];
- new str3[350];
- new str4[150];
- new str5[1024];
- new arq[24];
- format(arq,sizeof arq,"MortesFix.ini");
- TextDrawShowForPlayer(playerid,Ranking[0]);
- format(str1,sizeof str1,"~n~Posicao 1: Player %s - Matou %dx~n~~n~Posicao 2: Player %s - Matou %dx~n~~n~Posicao 3: Player %s - Matou %dx~n~",DOF2_GetString(arq,"Nome1"),DOF2_GetInt(arq,"Rank1"),DOF2_GetString(arq,"Nome2"),DOF2_GetInt(arq,"Rank2"),DOF2_GetString(arq,"Nome3"),DOF2_GetInt(arq,"Rank3"));
- format(str2,sizeof str2,"~n~Posicao 4: Player %s - Matou %dx~n~~n~Posicao 5: Player %s - Matou %dx~n~~n~Posicao 6: Player %s - Matou %dx~n~",DOF2_GetString(arq,"Nome4"),DOF2_GetInt(arq,"Rank4"),DOF2_GetString(arq,"Nome5"),DOF2_GetInt(arq,"Rank5"),DOF2_GetString(arq,"Nome6"),DOF2_GetInt(arq,"Rank6"));
- format(str3,sizeof str3,"~n~Posicao 7: Player %s - Matou %dx~n~~n~Posicao 8: Player %s - Matou %dx~n~~n~Posicao 9: Player %s - Matou %dx~n~",DOF2_GetString(arq,"Nome7"),DOF2_GetInt(arq,"Rank7"),DOF2_GetString(arq,"Nome8"),DOF2_GetInt(arq,"Rank8"),DOF2_GetString(arq,"Nome9"),DOF2_GetInt(arq,"Rank9"));
- format(str4,sizeof str4,"~n~Posicao 10: Player %s - Matou %dx",DOF2_GetString(arq,"Nome10"),DOF2_GetInt(arq,"Rank10"));
- strcat(str5,str1);
- strcat(str5,str2);
- strcat(str5,str3);
- strcat(str5,str4);
- TextDrawSetString(Text:Ranking[1],str5);
- TextDrawShowForPlayer(playerid,Ranking[1]);
- }
- }
- else{
- TextDrawHideForPlayer(playerid,Ranking[0]);
- TextDrawHideForPlayer(playerid,Ranking[1]);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DIALOG_REGISTRO:
- {
- if(!response)
- Kick(playerid);
- else
- {
- if(strlen(inputtext) < 5 || strlen(inputtext) > 20) return ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "{E066FF}Registro", "{EE0000}[Erro]{FFFFFF}Digite uma senha para se registrar.\n\n{FF0000}<!>A senha deve conter entre 5 e 20 caracteres.", "Registrar", "Sair");
- else
- {
- DOF2_CreateFile(Contas(playerid));
- DOF2_SetInt(Contas(playerid),"Senha",udb_hash(inputtext));
- DOF2_SetInt(Contas(playerid),"Matou",PI[playerid][pMatou]);
- DOF2_SetInt(Contas(playerid),"Morreu",PI[playerid][pMorreu]);
- DOF2_SetInt(Contas(playerid),"Dolar",5000);
- DOF2_SaveFile();
- new string[200];
- new IP[17];
- GetPlayerIp(playerid,IP,sizeof IP);
- format(string,sizeof(string),"{FFFFFF}Bem vindo ao {E066FF}%s\n\n\n\n\n{E066FF}Conta: {FFFFFF}%s.\n\n{E066FF}Status: {00EE00}Registrado\n\n{E066FF}IP: {FFFFFF}%s",NomeServer,Nome(playerid),IP);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{E066FF}Login",string,"Logar","Sair");
- }
- }
- }
- case DIALOG_LOGIN:
- {
- if(!response)
- Kick(playerid);
- else
- {
- if(strlen(inputtext) < 5 || strlen(inputtext) > 20) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{E066FF}Login", "{EE0000}[Erro] {FFFFFF}Digite uma senha para logar.\n\n{FF0000}<!>A senha deve conter entre 5 e 20 caracteres.", "Logar", "Sair");
- else
- {
- if(DOF2_GetInt(Contas(playerid),"Senha") == udb_hash(inputtext))
- {
- TextDrawHideForPlayer(playerid,ImagemEntrada);
- Errou[playerid] = 0;
- CarregarPlayer(playerid);
- Logou[playerid] = true;
- OnPlayerRequestClass(playerid,0);
- }
- else
- {
- Errou[playerid] ++;
- new string[128];
- format(string,sizeof string,"{FFFFFF}Você já errou a senha {EE0000}%d {FFFFFF}veze(s). Se errar 3 vezes serás kickado.",Errou[playerid]);
- Aviso(playerid,string);
- if(Errou[playerid] >= 3)
- {
- Kick(playerid);
- }
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{E066FF}Login", "{EE0000}[Erro] {FFFFFF}Digite uma senha para logar.\n\n{FF0000}<!>Senha incorreta.", "Logar", "Sair");
- }
- }
- }
- }
- case DIALOG_PM:
- {
- if(!response){
- Aviso(playerid,"Você cancelou o enviou de mensagem privado.");
- }
- else{
- new string[128];
- format(string,sizeof string,"{FFD700}[%s ID:%d] diz: %s",Nome(playerid),playerid,inputtext);
- SendClientMessage(EnviarPM[playerid],-1,string);
- format(string,sizeof string,"{FFD700}Você enviou uma mensagem ao player %s",Nome(EnviarPM[playerid]));
- SendClientMessage(playerid,-1,string);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- PlayerPlaySound(EnviarPM[playerid],1054,0.0,0.0,0.0);
- EnviarPM[playerid] = 999;
- }
- }
- case DIALOG_REGRA:
- {
- if(!response){
- Kick(playerid);
- }
- else{
- if(!DOF2_FileExists(Contas(playerid)))
- {
- new string[200];
- new IP[17];
- GetPlayerIp(playerid,IP,sizeof IP);
- format(string,sizeof(string),"{FFFFFF}Bem vindo ao {E066FF}%s\n\n\n\n\n{E066FF}Conta: {FFFFFF}%s.\n\n{E066FF}Status: {EE0000}Não Registrada\n\n{E066FF}IP: {FFFFFF}%s",NomeServer,Nome(playerid),IP);
- ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"{E066FF}Registro",string,"Registrar","Sair");
- }
- else
- {
- new string[200];
- new IP[17];
- GetPlayerIp(playerid,IP,sizeof IP);
- format(string,sizeof(string),"{FFFFFF}Bem vindo ao {E066FF}%s\n\n\n\n\n{E066FF}Conta: {FFFFFF}%s.\n\n{E066FF}Status: {00EE00}Registrado\n\n{E066FF}IP: {FFFFFF}%s",NomeServer,Nome(playerid),IP);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{E066FF}Login",string,"Logar","Sair");
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- if(clickedplayerid != INVALID_PLAYER_ID)
- {
- new string[128];
- format(string,sizeof string,"{FFA500}Deseja enviar uma mensagem privada ao player {FF8C00}%s {FFA500}ID: {FF8C00}%d?\n{FFA500}Caso queira digite abaixo a mensagem.",Nome(clickedplayerid),clickedplayerid);
- ShowPlayerDialog(playerid,DIALOG_PM,DIALOG_STYLE_INPUT,"Mensagem Privada",string,"Enviar","Cancelar");
- EnviarPM[playerid] = clickedplayerid;
- }
- return 1;
- }
- //=============================================COMANDOS===============================================
- CMD:gmx(playerid)
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- SendRconCommand("gmx");
- return 1;
- }
- CMD:vital(playerid){
- Vital();
- }
- CMD:credito(playerid){//NAO SEJA NOOB....NAO RETIRE OS CREDITOSSSSS
- if(IsPlayerConnected(playerid)){
- ShowPlayerDialog(playerid,3212,0,"Server Info","{FFFFFF}Criadores/Colaboradores para a criação do MIB TDM v1.0\n\n\n{FF6666}Donos: {FFFFFF}Yiakin_Ruffles,Fuca_Ruffles,Etton_Ruffles\n\n{FF6666}Scripter/Idealizador: {FFFFFF}Yiakin_Ruffles\n\n{FF6666}Sistema de Weapon Drop: {FFFFFF}Jeffry\n\n{FF6666}AntiCheater Base: {FFFFFF}Garfield","Sair","");
- }
- return true;
- }
- CMD:creditos(playerid){//NAO SEJA NOOB....NAO RETIRE OS CREDITOSSSSS
- if(IsPlayerConnected(playerid)){
- ShowPlayerDialog(playerid,3212,0,"Server Info","{FFFFFF}Criadores/Colaboradores para a criação do MIB TDM v1.0\n\n\n{FF6666}Donos: {FFFFFF}Yiakin_Ruffles,Fuca_Ruffles,Etton_Ruffles\n\n{FF6666}Scripter/Idealizador: {FFFFFF}Yiakin_Ruffles\n\n{FF6666}Sistema de Weapon Drop: {FFFFFF}Jeffry\n\n{FF6666}AntiCheater Base: {FFFFFF}Garfield","Sair","");
- }
- return true;
- }
- CMD:desbug(playerid){
- Vital();
- }
- CMD:serverinfo(playerid){//NAO SEJA NOOB....NAO RETIRE OS CREDITOSSSSS
- if(IsPlayerConnected(playerid)){
- ShowPlayerDialog(playerid,3212,0,"Server Info","{FFFFFF}Criadores/Colaboradores para a criação do MIB TDM v1.0\n\n\n{FF6666}Donos: {FFFFFF}Yiakin_Ruffles,Fuca_Ruffles,Etton_Ruffles\n\n{FF6666}Scripter/Idealizador: {FFFFFF}Yiakin_Ruffles\n\n{FF6666}Sistema de Weapon Drop: {FFFFFF}Jeffry\n\n{FF6666}AntiCheater Base: {FFFFFF}Garfield","Sair","");
- }
- return true;
- }
- CMD:rank(playerid)
- {
- if(IsPlayerConnected(playerid)){
- Aviso(playerid,"Para ver o ranking pressione a tecla {FF0000}'N'");
- }
- return true;
- }
- CMD:id(playerid,params[])
- {
- if(IsPlayerConnected(playerid)){
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE: /id [Nickplayer]");
- if(IsPlayerConnected(id))
- {
- new str[78];
- format(str,sizeof str,"Player: %s [ID: %d]",Nome(id),id);
- Informe(playerid,str);
- }
- }
- return true;
- }
- CMD:relatorio(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(anflood[playerid] > gettime()) return Aviso(playerid,"[ANTI-FLOOD]Aguarde para poder enviar outro relatório");
- new texto[128];
- new str[128];
- if(sscanf(params,"s[128]",texto)) return Aviso(playerid,"USE: /relatorio [texto]");
- anflood[playerid] = gettime()+5;
- SendClientMessage(playerid,-1,"Relatório enviado...");
- format(str,sizeof str,"{00FFFF}[%s][ID:%d]: %s",playerid,Nome(playerid),texto);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(PI[i][pAdmin] > 0)
- {
- SendClientMessage(i,-1,str);
- PlayerPlaySound(i,1054,0.0,0.0,0.0);
- }
- }
- }
- return 1;
- }
- CMD:relato(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(anflood[playerid] > gettime()) return Aviso(playerid,"[ANTI-FLOOD]Aguarde para poder enviar outro relatório");
- new texto[128];
- new str[128];
- if(sscanf(params,"s[128]",texto)) return Aviso(playerid,"USE: /relatorio [texto]");
- anflood[playerid] = gettime()+5;
- SendClientMessage(playerid,-1,"Relatório enviado...");
- format(str,sizeof str,"{00FFFF}[%s][ID:%d]: %s",playerid,Nome(playerid),texto);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(PI[i][pAdmin] > 0)
- {
- SendClientMessage(i,-1,str);
- PlayerPlaySound(i,1054,0.0,0.0,0.0);
- }
- }
- }
- return 1;
- }
- CMD:nrg(playerid){
- new pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, -2245.6714,-1718.3846,480.3323);
- GetPlayerName(playerid, pname, sizeof (pname));
- UsouComando(playerid,"nrg");
- return 1;
- }
- CMD:colete(playerid)
- {
- if(ComprouColete[playerid] == false){
- if(PI[playerid][pDolar] > 1000){
- GivePlayerMoneyEx(playerid,-1000);
- SetPlayerArmour(playerid,100);
- Informe(playerid,"Você comprou colete por $: 1000");
- if(PI[playerid][pAdmin] < 3){
- ComprouColete[playerid] = true;
- UsouComando(playerid,"colete");
- }
- return true;
- }
- else return GameTextForPlayer(playerid,"~n~~n~~n~~r~Sem dinheiro!",5000,5);
- }
- else return Aviso(playerid,"Você já comprou um colete.");
- }
- CMD:skin(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"i",ii)) return Aviso(playerid,"USE:/skin [Nº skin]");
- if(IsValidSkin(ii))
- {
- SetPlayerSkin(playerid,ii);
- return Informe(playerid,"Skin atualizada com sucesso");
- }
- else return Aviso(playerid,"[ERROR]Escolha a skin entre 0 e 299.");
- }
- CMD:dararma(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 2) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"ud",id,ii)) return Aviso(playerid,"USE:/arma [playerid][ID Arma]");
- new str[128];
- format(str,sizeof str,"{00FFFF}O admin %s deu uma arma ao player %s",Nome(playerid),Nome(id));
- SendClientMessageToAll(-1,str);
- GivePlayerWeapon(id,ii,999);
- return true;
- }
- CMD:pagar(playerid,params[])
- {
- if(sscanf(params,"ud",id,ii)) return Aviso(playerid,"USE:/arma [playerid][quantia]");
- if(PI[playerid][pDolar] < ii) return Aviso(playerid,"Sem dinheiro");
- if(id == INVALID_PLAYER_ID) return Aviso(playerid,"Player não encontrado");
- GivePlayerMoneyEx(id,ii);
- GivePlayerMoneyEx(playerid,-ii);
- new str[128];
- format(str,sizeof str,"{FFFFFF}O player {00FFFF}%s {FFFFFF}pagou {00FFFF}$ %d {FFFFFF}para o player {00FFFF}%s",Nome(playerid),ii,Nome(id));
- SendClientMessageToAll(-1,str);
- return true;
- }
- CMD:mibgames(playerid)
- {
- if(IsPlayerConnected(playerid)){
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Made In Brazil Games","{FFFFFF}Com vontade de jogar um server RPG?\n\nNão há opção melhor do que o Made In Brazil LS RPG.\nGame Mode único, com sistemas diferenciados e administradores atenciosos...\n\nEntão não perca tempo {EE0000}MIB RPG IP: 69.195.128.54:7777\n\n{FFFFFF}E claro {EE0000}MIB TDM IP: 69.195.128.54:7778\n\n\t{FFFFFF}Mais informações acesse: {00EE00}forum.mib-samp.com.","Sair","");
- }
- return true;
- }
- CMD:rs(playerid){
- Vital();
- }
- CMD:comandos(playerid)
- {
- if(IsPlayerConnected(playerid)){
- new str4[500];
- format(str4,sizeof str4,"\n{9932CC}Teleportes:\n {FFFFFF}/aero - /nrg - /minirampa - /arena - /x1 - /sf\n\n{9932CC}Comandos Utéis:\n{FFFFFF}/mibgames - /colete - /kit - /pm - /relatorio - /admins - /status - /rank\n\n{9932CC}Dicas:\n{FFFFFF}Apertando {9932CC}Y {FFFFFF}você pode criar um barril explosivo por $ 1000\n{FFFFFF}Apertando {9932CC}N {FFFFFF}você pode ver o ranking de mortes do servidor\n{FFFFFF}Apertando {9932CC}ALT {FFFFFF}você ganhará nitro permanente.");
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Ajuda",str4,"Sair","");
- }
- return true;
- }
- CMD:ajuda(playerid)
- {
- if(IsPlayerConnected(playerid)){
- new str4[500];
- format(str4,sizeof str4,"\n{9932CC}Teleportes:\n {FFFFFF}/aero - /minirampa - /arena - /x1 - /sf\n\n{9932CC}Comandos Utéis:\n{FFFFFF}/mibgames - /colete - /kit - /pm - /relatorio - /admins - /status - /rank\n\n{9932CC}Dicas:\n{FFFFFF}Apertando {9932CC}Y {FFFFFF}você pode criar um barril explosivo por $ 1000\n{FFFFFF}Apertando {9932CC}N {FFFFFF}você pode ver o ranking de mortes do servidor\n{FFFFFF}Apertando {9932CC}ALT {FFFFFF}você ganhará nitro permanente.");
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Ajuda",str4,"Sair","");
- }
- return true;
- }
- CMD:stats(playerid)
- {
- if(IsPlayerConnected(playerid)){
- new str4[500];
- format(str4,sizeof str4,"{00FFFF}Status {FFFFFF}%s\n\n\n{00FFFF}Matou: {FFFFFF}%d\n\n{00FFFF}Morreu: {FFFFFF}%d\n\n{00FFFF}Frag: {FFFFFF}%d\n\n{00FFFF}Matou X1: {FFFFFF}%d\n\n{00FFFF}Morreu X1: {FFFFFF}%d\n\n{00FFFF}Dolar: {FFFFFF}%d",Nome(playerid),PI[playerid][pMatou],PI[playerid][pMorreu],PI[playerid][pMatou]-PI[playerid][pMorreu],PI[playerid][pMatouX1],PI[playerid][pMorreuX1],PI[playerid][pDolar]);
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Status",str4,"Sair","");
- }
- return true;
- }
- CMD:status(playerid)
- {
- if(IsPlayerConnected(playerid)){
- new str4[500];
- format(str4,sizeof str4,"{00FFFF}Status {FFFFFF}%s\n\n\n{00FFFF}Matou: {FFFFFF}%d\n\n{00FFFF}Morreu: {FFFFFF}%d\n\n{00FFFF}Frag: {FFFFFF}%d\n\n{00FFFF}Matou X1: {FFFFFF}%d\n\n{00FFFF}Morreu X1: {FFFFFF}%d\n\n{00FFFF}Dolar: {FFFFFF}%d",Nome(playerid),PI[playerid][pMatou],PI[playerid][pMorreu],PI[playerid][pMatou]-PI[playerid][pMorreu],PI[playerid][pMatouX1],PI[playerid][pMorreuX1],PI[playerid][pDolar]);
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Status",str4,"Sair","");
- }
- return true;
- }
- CMD:aa(playerid)
- {
- if(IsPlayerConnected(playerid)){
- new str[150];
- new str2[128];
- new str3[128];
- new str4[500];
- if(PI[playerid][pAdmin] == 1){
- format(str,sizeof str,"{FFA07A}Comandos Moderador\n{FFFFFF}/espiar - /pararespiar - /a - /desmutar - /mutar - /ir\n{FFFFFF}/trazer - /tapa - /ban - /kick - /prender");
- }
- else if(PI[playerid][pAdmin] == 2){
- format(str,sizeof str,"{FFA07A}Comandos Moderador\n{FFFFFF}/espiar - /pararespiar - /a - /desmutar - /mutar - /ir\n{FFFFFF}/trazer - /tapa - /ban - /kick - /prender");
- format(str2,sizeof str2,"\n\n{FF4500}Comandos Administrador\n{FFFFFF}/dararma - /explodir - /desban - /dolar");
- }
- else if(PI[playerid][pAdmin] == 3){
- format(str,sizeof str,"{FFA07A}Comandos Moderador\n{FFFFFF}/espiar - /pararespiar - /a - /desmutar - /mutar - /ir\n{FFFFFF}/trazer - /tapa - /ban - /kick - /prender");
- format(str2,sizeof str2,"\n\n{FF4500}Comandos Administrador\n{FFFFFF}/dararma - /explodir - /desban - /dolar - /aviso");
- format(str3,sizeof str3,"\n\n{EE0000}Comandos Dono\n{FFFFFF}/gmx - /skin - /veh - /fixveh - /daradmin");
- }
- else{
- return Aviso(playerid,"Sem permissão.");
- }
- format(str4,sizeof str4,"%s%s%s",str,str2,str3);
- ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Comandos",str4,"Sair","");
- }
- return true;
- }
- CMD:pararespiar(playerid)
- {
- if(PI[playerid][pAdmin] > 0){
- TogglePlayerSpectating(playerid, 0);
- SpawnPlayerEx(playerid);
- }
- else{
- Aviso(playerid,"Sem permissão.");
- }
- return true;
- }
- CMD:uou(playerid){
- Vital();
- }
- CMD:espiar(playerid,params[])
- {
- if(IsPlayerConnected(playerid)){
- if(PI[playerid][pAdmin] > 0){
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE: /espiar [playerid]");
- if(id == playerid) return Aviso(playerid,"Você não pode espiar a si próprio.");
- if(IsPlayerConnected(id)){
- new str[128];
- if(IsPlayerInAnyVehicle(id)){
- format(str,sizeof str,"Você está espiando o player %s. (/pararespiar)",Nome(id));
- Informe(playerid,str);
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(id), SPECTATE_MODE_NORMAL);
- }
- else{
- format(str,sizeof str,"Você está espiando o player %s",Nome(id));
- Informe(playerid,str);
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, id);
- }
- }
- else return Aviso(playerid,"Player não encontrado.");
- }
- else return Aviso(playerid,"Sem permissão.");
- }
- return true;
- }
- CMD:x1(playerid)
- {
- if(IsPlayerConnected(playerid)){
- if(FoiX1[playerid] == true) return Aviso(playerid,"Você já esta no x1, aguarde seu adversário entrar.");
- if(xx1 == 0){
- SetPlayerPos(playerid,-1382.2594,-499.7868,32.0100);
- SetPlayerFacingAngle(playerid,297.9940);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0);
- UsouComando(playerid,"x1");
- FoiX1[playerid] = true;
- xx1 ++;
- Tx1 = SetTimerEx("EsperandoComecar",1000*60,false,"i",playerid);
- Aviso(playerid,"Tem 1 minuto para o jogo começar.");
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- }
- else if(xx1 == 1){
- SetPlayerPos(playerid,-1348.6866,-480.4431,32.0100);
- SetPlayerFacingAngle(playerid,118.7421);
- TogglePlayerControllable(playerid,0);
- SetCameraBehindPlayer(playerid);
- UsouComando(playerid,"x1");
- FoiX1[playerid] = true;
- xx1 ++;
- KillTimer(Tx1);
- ContandoX1 = 5;
- Tx1 = SetTimer("ComecaX1",1000,true);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- }
- else Aviso(playerid,"Já há uma partida de x1 acontecendo, espere acabar.");
- }
- return true;
- }
- CMD:minirampa(playerid)
- {
- if(IsPlayerConnected(playerid)){
- SetPlayerPosEx(playerid,300.8014,1841.2706,1054.3063+3);
- SetPlayerFacingAngle(playerid,135.3409);
- SetCameraBehindPlayer(playerid);
- UsouComando(playerid,"minirampa");
- }
- return true;
- }
- CMD:aero(playerid)
- {
- if(IsPlayerConnected(playerid)){
- if(FoiX1[playerid] == true) return Aviso(playerid,"Você esta no x1");
- SetPlayerPosEx(playerid,-1260.2542,-487.5527,14.2539);
- SetPlayerFacingAngle(playerid,296.9659);
- SetCameraBehindPlayer(playerid);
- UsouComando(playerid,"aero");
- }
- return true;
- }
- CMD:arena(playerid)
- {
- if(IsPlayerConnected(playerid)){
- if(FoiX1[playerid] == true) return Aviso(playerid,"Você esta no x1");
- new r = random(sizeof(SpawnArena));
- SetPlayerPos(playerid,SpawnArena[r][0],SpawnArena[r][1],SpawnArena[r][2]+4);
- SetPlayerFacingAngle(playerid,SpawnArena[r][3]);
- SetCameraBehindPlayer(playerid);
- UsouComando(playerid,"arena");
- }
- return true;
- }
- CMD:kit(playerid,params[])
- {
- if(Comecou[playerid] == false) return Aviso(playerid,"Você só pode comprar um kit apos o tempo de spawn.");
- if(sscanf(params,"d",ii)){
- Aviso(playerid,"USE:/kit [Nº do kit]");
- Aviso(playerid,"{ADD8E6}Kit 1: Eagle,Escopeta,MP5,AK47,Sniper Rifle,Granada. [$:2000]");
- Aviso(playerid,"{ADD8E6}Kit 2: Eagle,Combat,UZI,M4,Sniper Rifle,Granada. [$:5000]");
- Aviso(playerid,"{ADD8E6}Kit 3: Faca,Eagle,Sawn,Tec9,M4,Sniper Rifle,Granada. [$:7000]");
- return true;
- }
- if(ii == 1)
- {
- if(PI[playerid][pDolar] < 2000) return GameTextForPlayer(playerid,"~n~~n~~n~~r~Sem dinheiro!",5000,5);
- GivePlayerMoneyEx(playerid,-2000);
- GivePlayerWeapon(playerid,24,200);
- GivePlayerWeapon(playerid,25,150);
- GivePlayerWeapon(playerid,29,500);
- GivePlayerWeapon(playerid,30,500);
- GivePlayerWeapon(playerid,34,70);
- GivePlayerWeapon(playerid,16,5);
- Informe(playerid,"Você comprou o kit 1 por $:2000.");
- }
- else if(ii == 2)
- {
- if(PI[playerid][pDolar] < 5000) return GameTextForPlayer(playerid,"~n~~n~~n~~r~Sem dinheiro!",5000,5);
- GivePlayerMoneyEx(playerid,-5000);
- GivePlayerWeapon(playerid,24,400);
- GivePlayerWeapon(playerid,27,200);
- GivePlayerWeapon(playerid,28,700);
- GivePlayerWeapon(playerid,31,700);
- GivePlayerWeapon(playerid,34,150);
- GivePlayerWeapon(playerid,16,10);
- Informe(playerid,"Você comprou o kit 2 por $:5000.");
- }
- else if(ii == 3)
- {
- if(PI[playerid][pDolar] < 7000) return GameTextForPlayer(playerid,"~n~~n~~n~~r~Sem dinheiro!",5000,5);
- GivePlayerMoneyEx(playerid,-7000);
- GivePlayerWeapon(playerid,4,1);
- GivePlayerWeapon(playerid,24,500);
- GivePlayerWeapon(playerid,32,999);
- GivePlayerWeapon(playerid,26,300);
- GivePlayerWeapon(playerid,31,999);
- GivePlayerWeapon(playerid,34,150);
- GivePlayerWeapon(playerid,16,20);
- Informe(playerid,"Você comprou o kit 3 por $:7000.");
- }
- else
- {
- Aviso(playerid,"USE:/kit [Nº do kit]");
- Aviso(playerid,"{ADD8E6}Kit 1: Eagle,Escopeta,MP5,AK47,Sniper Rifle,Granada. [$:2000]");
- Aviso(playerid,"{ADD8E6}Kit 2: Eagle,Combat,UZI,M4,Sniper Rifle,Granada. [$:5000]");
- Aviso(playerid,"{ADD8E6}Kit 3: Faca,Eagle,Sawn,Tec9,M4,Sniper Rifle,Granada. [$:7000]");
- return true;
- }
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- UsouComando(playerid,"kit");
- return true;
- }
- CMD:criarveiculo(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"d",ii)) return Aviso(playerid,"USE:/criarveiculo [veiculo ID]");
- if(ii < 400 || ii > 611) return Aviso(playerid,"Veiculo ID inválido.Use entre 400 e 611");
- new Float:x,Float:y,Float:z;
- CreateVehicle(ii,x,y+1.0,z,0.0,-1,-1,6000);
- Informe(playerid,"Veiculo Criado!");
- return true;
- }
- CMD:veh(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"d",ii)) return Aviso(playerid,"USE:/criarveiculo [veiculo ID]");
- if(ii < 400 || ii > 611) return Aviso(playerid,"Veiculo ID inválido.Use entre 400 e 611");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- CreateVehicle(ii,x+1.0,y,z,0.0,-1,-1,6000);
- Informe(playerid,"Veiculo Criado!");
- return true;
- }
- CMD:fixveh(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- SetVehicleHealth(GetPlayerVehicleID(playerid),10000);
- RepairVehicle(GetPlayerVehicleID(playerid));
- Informe(playerid,"Veiculo consertado!");
- return true;
- }
- CMD:explodir(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 2) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE:/explodir [playerid]");
- if(id != INVALID_PLAYER_ID)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(id,x,y,z);
- CreateExplosion(x, y , z, 7, 10);
- CreateExplosion(x, y , z, 7, 10);
- CreateExplosion(x, y , z, 7, 10);
- new string[128];
- format(string,sizeof string,"Você explodiu o player %s",Nome(id));
- Informe(playerid,string);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:admins(playerid,params[])
- {
- new str[64];
- new cargo[16];
- new bool:achou;
- SendClientMessage(playerid,-1,"___________ADMINISTRADORES___________");
- for(new i = 0;i<GetMaxPlayers();i++)
- {
- if(IsPlayerConnected(i)){
- if(PI[i][pAdmin] > 0){
- if(PI[i][pAdmin] == 1) cargo = "Moderador";
- else if(PI[i][pAdmin] == 2)cargo = "Administrador";
- else if(PI[i][pAdmin] == 3)cargo = "Dono";
- format(str,sizeof str,"{FF7F50}[%s] %s [ID: %d]",cargo,Nome(i),i);
- SendClientMessage(playerid,-1,str);
- achou = true;
- }
- }
- }
- if(achou == false) SendClientMessage(playerid,-1,"{FF7F50}[Dono] Pedrão_PãoDeBatata [ID: 999]");
- return true;
- }
- CMD:a(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 1) return true;
- new texto[128];
- new str[128];
- new cargo[20];
- if(sscanf(params,"s[128]",texto)) return Aviso(playerid,"USE:/a [texto]");
- if(PI[playerid][pAdmin] == 1)cargo = "Moderador";
- else if(PI[playerid][pAdmin] == 2)cargo = "Administrador";
- else if(PI[playerid][pAdmin] == 3)cargo = "Dono";
- format(str,sizeof str,"{EE82EE}[%s]%s: %s",cargo,Nome(playerid),texto);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(PI[i][pAdmin] > 0)
- {
- SendClientMessage(i,-1,str);
- }
- }
- return true;
- }
- CMD:r(playerid,params[])
- {
- if(Logou[playerid] == false) return Aviso(playerid,"Você não pode falar, pois não está logado.");
- if(PI[playerid][pCalado] > gettime()){
- new str[128];
- format(str,sizeof str,"Você ainda vai ficar calado por mais %d segundos.",PI[playerid][pCalado] - gettime());
- Aviso(playerid,str);
- return 1;
- }
- else PI[playerid][pCalado] = 0;
- new texto[128];
- new str[128];
- if(sscanf(params,"s[128]",texto)) return Aviso(playerid,"USE:/r [texto]");
- format(str,sizeof str,"{4169E1}[%s] diz: {FFFFFF}%s",Nome(playerid),texto);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(PI[playerid][pTime] == PI[i][pTime])
- {
- SendClientMessage(i,-1,str);
- }
- }
- return true;
- }
- CMD:par(playerid,params[])
- {
- if(Logou[playerid] == false) return Aviso(playerid,"Você não pode falar, pois não está logado.");
- if(PI[playerid][pCalado] > gettime()){
- new str[128];
- format(str,sizeof str,"Você ainda vai ficar calado por mais %d segundos.",PI[playerid][pCalado] - gettime());
- Aviso(playerid,str);
- return 1;
- }
- else PI[playerid][pCalado] = 0;
- new texto[128];
- if(sscanf(params,"us[128]",id,texto)) return Aviso(playerid,"USE:/par [playerid][texto]");
- if(id != INVALID_PLAYER_ID)
- {
- new string[128];
- format(string,sizeof string,"{FFD700}[%s ID:%d] diz: %s",Nome(playerid),playerid,texto);
- SendClientMessage(id,-1,string);
- format(string,sizeof string,"{FFD700}Você enviou uma mensagem ao player %s",Nome(id));
- SendClientMessage(playerid,-1,string);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- PlayerPlaySound(id,1054,0.0,0.0,0.0);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:desmutar(playerid,params[])
- {
- if(IsPlayerConnected(playerid)){
- if(PI[playerid][pAdmin] > 0){
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE: /desmutar [playerid]");
- if(IsPlayerConnected(id)){
- PI[id][pCalado] = 0;
- new str[128];
- format(str,sizeof str,"{EE0000}O administrador %s descalou o player %s.",Nome(playerid),Nome(id));
- SendClientMessageToAll(-1,str);
- }
- else return Aviso(playerid,"Player não encontrado");
- }
- else return Aviso(playerid,"Sem autorização.");
- }
- return true;
- }
- CMD:mutar(playerid,params[])
- {
- if(IsPlayerConnected(playerid)){
- if(PI[playerid][pAdmin] > 0){
- if(sscanf(params,"ui",id,ii)) return Aviso(playerid,"USE: /mutar [playerid] [tempo em minutos]");
- if(IsPlayerConnected(id)){
- PI[id][pCalado] = gettime()+(ii*60);
- new str[128];
- format(str,sizeof str,"{EE0000}O administrador %s calou o player %s por %d minuto(s)",Nome(playerid),Nome(id),ii);
- SendClientMessageToAll(-1,str);
- }
- else return Aviso(playerid,"Player não encontrado");
- }
- else return Aviso(playerid,"Sem autorização.");
- }
- return true;
- }
- CMD:pm(playerid,params[])
- {
- if(Logou[playerid] == false) return Aviso(playerid,"Você não pode falar, pois não está logado.");
- if(PI[playerid][pCalado] > gettime()){
- new str[128];
- format(str,sizeof str,"Você ainda vai ficar calado por mais %d segundos.",PI[playerid][pCalado] - gettime());
- Aviso(playerid,str);
- return 1;
- }
- else PI[playerid][pCalado] = 0;
- new texto[128];
- if(sscanf(params,"us[128]",id,texto)) return Aviso(playerid,"USE:/par [playerid][texto]");
- if(id != INVALID_PLAYER_ID)
- {
- new string[128];
- format(string,sizeof string,"{FFD700}[%s ID:%d] diz: %s",Nome(playerid),playerid,texto);
- SendClientMessage(id,-1,string);
- format(string,sizeof string,"{FFD700}Você enviou uma mensagem ao player %s",Nome(id));
- SendClientMessage(playerid,-1,string);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- PlayerPlaySound(id,1054,0.0,0.0,0.0);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:ir(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE:/ir [playerid]");
- if(id != INVALID_PLAYER_ID)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(id,x,y,z);
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
- SetPlayerPosEx(playerid,x,y,z);
- new string[128];
- format(string,sizeof string,"Você foi até o player %s",Nome(id));
- Informe(playerid,string);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:trazer(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"u",id)) return Aviso(playerid,"USE:/trazer [playerid]");
- if(id != INVALID_PLAYER_ID)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPlayerInterior(id,GetPlayerInterior(playerid));
- SetPlayerVirtualWorld(id,GetPlayerVirtualWorld(playerid));
- SetPlayerPosEx(id,x,y,z);
- new string[128];
- format(string,sizeof string,"Você trouxe o player %s",Nome(id));
- Informe(playerid,string);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:sf(playerid,params[])
- {
- if(Comecou[playerid] == true){
- if(FoiX1[playerid] == true) return Aviso(playerid,"Você esta no x1");
- SetPlayerPosEx(playerid,-1492.5144,832.0471,7.1875);
- UsouComando(playerid,"sf");
- }
- return true;
- }
- CMD:tapa(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"us",id)) return Aviso(playerid,"USE:/tapa [playerid]");
- if(id != INVALID_PLAYER_ID)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(id,x,y,z);
- SetPlayerPos(id,x,y,z+10);
- new string[128];
- format(string,sizeof string,"Você deu tapa no player %s",Nome(id));
- Informe(playerid,string);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:ban(playerid,params[])
- {
- new texto[26];
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"us[26]",id,texto)) return Aviso(playerid,"USE:/ban [playerid][motivo]");
- if(id != INVALID_PLAYER_ID)
- {
- new str[128];
- format(str,sizeof str,"{EE0000}O player %s foi banido pelo admin %s. Motivo: %s.",Nome(id),Nome(playerid),texto);
- SendClientMessageToAll(-1,str);
- format(str,sizeof str,"%s",texto);
- BanPlayer(id,playerid,str);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:kick(playerid,params[])
- {
- new texto[26];
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"us[26]",id,texto)) return Aviso(playerid,"USE: /kick [playerid][motivo]");
- if(id != INVALID_PLAYER_ID)
- {
- new str[128];
- format(str,sizeof str,"{EE0000}O player %s foi kickado pelo admin %s. Motivo: %s.",Nome(id),Nome(playerid),texto);
- SendClientMessageToAll(-1,str);
- Kick(id);
- }
- else return Aviso(playerid,"Player não encontrado");
- return true;
- }
- CMD:desban(playerid,params[])
- {
- new texto[30];
- if(PI[playerid][pAdmin] < 2) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"s[30]",texto)) return Aviso(playerid,"USE: /desban [insira o nome da conta]");
- new arq[56];
- format(arq,sizeof arq,"Banidos/%s.ini",texto);
- if(DOF2_FileExists(arq))
- {
- new str[128];
- format(str,sizeof str,"{EE0000}Você debaniu o player %s.",texto);
- SendClientMessage(playerid,-1,str);
- DOF2_RemoveFile(arq);
- }
- else return Aviso(playerid,"Conta não encontrada");
- return true;
- }
- CMD:dolar(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 2) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"ud",id,ii)) return Aviso(playerid,"USE:/dolar [playerid][quantia]");
- GanhouDim[id] = true;
- GivePlayerMoneyEx(id,ii);
- new str[128];
- format(str,sizeof str,"Você deu %d dolares ao player %s",ii,Nome(id));
- Informe(playerid,str);
- format(str,sizeof str,"O admin %s deu %d dolares para você.",Nome(playerid),ii);
- Informe(id,str);
- return 1;
- }
- CMD:daradmin(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 3) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"ud",id,ii)) return Aviso(playerid,"USE:/daradmin [playerid][level]");
- if(ii > 3) return Aviso(playerid,"ERRO. Admin level máximo é o 3.");
- PI[id][pAdmin] = ii;
- new str[128];
- format(str,sizeof str,"Você deu admin level %d ao player %s",ii,Nome(id));
- Informe(playerid,str);
- format(str,sizeof str,"{00FFFF}O player %s é o novo administrador.",Nome(id));
- SendClientMessageToAll(-1,str);
- return 1;
- }
- CMD:prender(playerid,params[])
- {
- if(PI[playerid][pAdmin] < 1) return Aviso(playerid,"Sem autorização.");
- if(sscanf(params,"ud",id,ii)) return Aviso(playerid,"USE:/prender [playerid][tempo]");
- PI[id][pPreso] = ii;
- new str[128];
- format(str,sizeof str,"{FF0000}O administrador %s prendeu o player %s por %d segundos",Nome(playerid),Nome(id),ii);
- SendClientMessageToAll(-1,str);
- SpawnPlayerEx(id);
- return 1;
- }
- //====================================================================================================
- //=============================================STOCKS/CALLBACKS=======================================
- stock GivePlayerMoneyEx(aa,bb)
- {
- new str[15];
- if(bb >= 0) format(str,sizeof str,"~g~+%d",bb);
- else format(str,sizeof str,"~r~%d",bb);
- TextDrawSetString(Text:Textodraw[aa][0],str);
- TextDrawShowForPlayer(aa,Textodraw[aa][0]);
- SetTimerEx("ApagarTexto",2000,false,"d",aa);
- PI[aa][pDolar] += bb;
- ResetPlayerMoney(aa);
- GivePlayerMoney(aa,PI[aa][pDolar]);
- GanhouDim[aa] = false;
- return 1;
- }
- forward ApagarTexto(playerid);
- public ApagarTexto(playerid)
- {
- TextDrawHideForPlayer(playerid,Textodraw[playerid][0]);
- return true;
- }
- stock SpawnPlayerEx(playerid) {
- if(IsPlayerInAnyVehicle(playerid)) {
- RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid, 10.0,10.0,10.0);
- }
- return SpawnPlayer(playerid);
- }
- forward Comecar(playerid);
- public Comecar(playerid)
- {
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~~n~~n~~n~~n~O jogo comecou",5000,3);
- Comecou[playerid] = true;
- switch(PI[playerid][pTime])
- {
- case 1:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,3,1);
- GivePlayerWeapon(playerid,22,150);
- GivePlayerWeapon(playerid,27,75);
- GivePlayerWeapon(playerid,32,150);
- GivePlayerWeapon(playerid,31,200);
- }
- case 2:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,24,70);
- GivePlayerWeapon(playerid,25,50);
- GivePlayerWeapon(playerid,29,150);
- GivePlayerWeapon(playerid,16,5);
- }
- case 3:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,23,70);
- GivePlayerWeapon(playerid,26,50);
- GivePlayerWeapon(playerid,30,150);
- GivePlayerWeapon(playerid,33,40);
- }
- //parei aqui...
- case 4:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,22,70);
- GivePlayerWeapon(playerid,27,50);
- GivePlayerWeapon(playerid,30,200);
- GivePlayerWeapon(playerid,16,5);
- }
- case 5:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,24,70);
- GivePlayerWeapon(playerid,25,50);
- GivePlayerWeapon(playerid,29,150);
- GivePlayerWeapon(playerid,34,10);
- }
- case 6:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,23,70);
- GivePlayerWeapon(playerid,8,1);
- GivePlayerWeapon(playerid,26,50);
- GivePlayerWeapon(playerid,28,150);
- GivePlayerWeapon(playerid,30,200);
- }
- case 7:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,8,1);
- GivePlayerWeapon(playerid,22,70);
- GivePlayerWeapon(playerid,27,50);
- GivePlayerWeapon(playerid,28,150);
- GivePlayerWeapon(playerid,33,40);
- }
- case 8:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,1,1);
- GivePlayerWeapon(playerid,22,70);
- GivePlayerWeapon(playerid,25,50);
- GivePlayerWeapon(playerid,28,50);
- GivePlayerWeapon(playerid,31,150);
- }
- case 9:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,23,70);
- GivePlayerWeapon(playerid,26,50);
- GivePlayerWeapon(playerid,31,200);
- GivePlayerWeapon(playerid,34,40);
- }
- case 10:
- {
- SetPlayerHealth(playerid,100);
- GivePlayerWeapon(playerid,24,70);
- GivePlayerWeapon(playerid,25,50);
- GivePlayerWeapon(playerid,31,150);
- GivePlayerWeapon(playerid,16,5);
- }
- }
- return true;
- }
- stock Contas(playerid)
- {
- new c[40],no[26];
- GetPlayerName(playerid,no,sizeof no);
- format(c,sizeof c,"Contas/%s.ini",no);
- return c;
- }
- stock Aviso(playerid,msg[])
- {
- new string[128];
- format(string,sizeof string,"{FF0000}<!> {CDCDB4}%s.",msg);
- return SendClientMessage(playerid,-1,string);
- }
- stock Informe(playerid,msg[])
- {
- new string[128];
- format(string,sizeof string,"{FF0000}<!> {7FFFD4}%s.",msg);
- return SendClientMessage(playerid,-1,string);
- }
- stock Nome(i)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(i,nome,sizeof nome);
- return nome;
- }
- stock InformeArma(i,w)
- {
- new str[128];
- format(str,sizeof str,"{EE0000}[ADMIN BOT] %s foi kickado suspeita de Weapon Hack ( %s ).",Nome(i),NomeArma(w));
- return SendClientMessageToAll(-1,str);
- }
- stock NomeArma(w)
- {
- new arma[12];
- switch(w)
- {
- case 0:arma = "Bazuka";
- case 1:arma = "Bazuka";
- case 2:arma = "Laça Chamas";
- case 3:arma = "Mini Gun";
- case 4..5:arma = "Mochilinha";
- case 6..7:arma = "Oculos";
- }
- return arma;
- }
- forward SalvarPlayer(playerid);
- public SalvarPlayer(playerid)
- {
- if(Logou[playerid] == true)
- {
- if(DOF2_FileExists(Contas(playerid)))
- {
- DOF2_SetInt(Contas(playerid),"Matou",PI[playerid][pMatou]);
- DOF2_SetInt(Contas(playerid),"Morreu",PI[playerid][pMorreu]);
- DOF2_SetInt(Contas(playerid),"Dolar",PI[playerid][pDolar]);
- DOF2_SetInt(Contas(playerid),"Admin",PI[playerid][pAdmin]);
- DOF2_SetInt(Contas(playerid),"Preso",PI[playerid][pPreso]);
- DOF2_SetInt(Contas(playerid),"Calado",PI[playerid][pCalado]);
- DOF2_SetInt(Contas(playerid),"MorreuX1",PI[playerid][pMorreuX1]);
- DOF2_SetInt(Contas(playerid),"MatouX1",PI[playerid][pMatouX1]);
- DOF2_SaveFile();
- printf("Salvou");
- }
- }
- return 1;
- }
- forward CarregarPlayer(playerid);
- public CarregarPlayer(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- PI[playerid][pMatou] = DOF2_GetInt(Contas(playerid),"Matou");
- PI[playerid][pMorreu] = DOF2_GetInt(Contas(playerid),"Morreu");
- PI[playerid][pDolar] = DOF2_GetInt(Contas(playerid),"Dolar");
- PI[playerid][pAdmin] = DOF2_GetInt(Contas(playerid),"Admin");
- PI[playerid][pPreso] = DOF2_GetInt(Contas(playerid),"Preso");
- PI[playerid][pCalado] = DOF2_GetInt(Contas(playerid),"Calado");
- PI[playerid][pMorreuX1] = DOF2_GetInt(Contas(playerid),"MorreuX1");
- PI[playerid][pMatouX1] = DOF2_GetInt(Contas(playerid),"MatouX1");
- GivePlayerMoney(playerid,PI[playerid][pDolar]);
- SetPlayerScore(playerid,PI[playerid][pMatou]);
- }
- return 1;
- }
- forward AntiCheat();
- public AntiCheat()
- {
- for(new i, e = GetMaxPlayers(); i != e; ++i){
- if(PI[i][pAdmin] < 1){
- if(GetPlayerWeapon(i) > 34){
- if(IsPlayerConnected(i)){
- for(new w; w != sizeof(gArmas); ++w){
- if(GetPlayerWeapon(i) == gArmas[w]){
- ResetPlayerWeapons(i);
- InformeArma(i,w);
- Kick(i);
- }
- }
- if(GanhouDim[i] == false){
- if(PI[i][pDolar] < GetPlayerMoney(i)){
- ResetPlayerMoney(i);
- GivePlayerMoney(i,PI[i][pDolar]);
- }
- else if(PI[i][pDolar] > GetPlayerMoney(i)){
- PI[i][pDolar] = GetPlayerMoney(i);
- }
- }
- }
- }
- }
- }
- }
- forward BanPlayer(banido,admin,razao[]);
- public BanPlayer(banido,admin,razao[])
- {
- new arq[56];
- format(arq,sizeof arq,"Banidos/%s.ini",Nome(banido));
- DOF2_CreateFile(arq);
- DOF2_SetString(arq,"Admin",Nome(admin));
- DOF2_SetString(arq,"Razao",razao);
- DOF2_SaveFile();
- Kick(banido);
- }
- forward Pararespiar(playerid);
- public Pararespiar(playerid)
- {
- TogglePlayerSpectating(playerid, 0);
- }
- stock PlayerBope(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -1753.477 && y >= 625.6215 && x <= -1513.99 && y <= 803.1449) return true;
- else return false;
- }
- stock PlayerExercito(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -1517.853 && y >= 420.4833 && x <= -1208.838 && y <= 598.0067) return true;
- else return false;
- }
- stock PlayerBozo(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2390.82&& y >= 65.43655&& x <= -2228.587&& y <= 329.7492) return true;
- else return false;
- }
- stock PlayerFrango(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2750.05 && y >= 191.6754 && x <= -2549.19 && y <= 345.529) return true;
- else return false;
- }
- stock PlayerRifas(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2155.196 && y >= 112.7761 && x <= -1992.963 && y <= 357.3639) return true;
- else return false;
- }
- stock PlayerNang(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -1780.516 && y >= 1296.265 && x <= -1475.364 && y <= 1509.293) return true;
- else return false;
- }
- stock PlayerTriads(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2263.351 && y >= 554.6121 && x <= -2085.668 && y <= 779.4751 ) return true;
- else return false;
- }
- stock PlayerMotoqueiro(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2626.444 && y >= 1173.972 && x <= -2406.271 && y <= 1323.88) return true;
- else return false;
- }
- stock PlayerPlayBoy(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2800.265 && y >= -344.8398 && x <= -2583.954 && y <= -183.0962) return true;
- else return false;
- }
- stock PlayerMendigo(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= -2209.274 && y >= -293.5552 && x <= -1996.826 && y <= -56.85734) return true;
- else return false;
- }
- stock CarregarTextos(playerid)
- {
- Textodraw[playerid][0] = TextDrawCreate(503.000000, 105.000000, "_");
- TextDrawBackgroundColor(Textodraw[playerid][0] , 255);
- TextDrawFont(Textodraw[playerid][0] , 3);
- TextDrawLetterSize(Textodraw[playerid][0] , 0.450000, 1.100000);
- TextDrawColor(Textodraw[playerid][0] , 16711935);
- TextDrawSetOutline(Textodraw[playerid][0] , 1);
- TextDrawSetProportional(Textodraw[playerid][0] , 1);
- Textodraw[playerid][1] = TextDrawCreate(546.000000, 20.000000, "_");
- TextDrawBackgroundColor(Textodraw[playerid][1], 255);
- TextDrawFont(Textodraw[playerid][1], 2);
- TextDrawLetterSize(Textodraw[playerid][1], 0.180000, 0.899999);
- TextDrawColor(Textodraw[playerid][1], -1);
- TextDrawSetOutline(Textodraw[playerid][1], 0);
- TextDrawSetProportional(Textodraw[playerid][1], 1);
- TextDrawSetShadow(Textodraw[playerid][1], 1);
- TextDrawUseBox(Textodraw[playerid][1], 1);
- TextDrawBoxColor(Textodraw[playerid][1], 100);
- TextDrawTextSize(Textodraw[playerid][1], 595.000000, 0.000000);
- NomeServerTxt[0] = TextDrawCreate(2.000000, 431.000000, " forum.mib-samp.com mib-TDM V1.0");
- TextDrawBackgroundColor(NomeServerTxt[0], 255);
- TextDrawFont(NomeServerTxt[0], 2);
- TextDrawLetterSize(NomeServerTxt[0], 0.450000, 1.600000);
- TextDrawColor(NomeServerTxt[0], 16711935);
- TextDrawSetOutline(NomeServerTxt[0], 0);
- TextDrawSetProportional(NomeServerTxt[0], 1);
- TextDrawSetShadow(NomeServerTxt[0], 1);
- TextDrawUseBox(NomeServerTxt[0], 1);
- TextDrawBoxColor(NomeServerTxt[0], 100);
- TextDrawTextSize(NomeServerTxt[0], 640.000000, 80.000000);
- Textodraw[playerid][2] = TextDrawCreate(21.000000, 324.000000, "_");
- TextDrawBackgroundColor(Textodraw[playerid][2], 255);
- TextDrawFont(Textodraw[playerid][2], 1);
- TextDrawLetterSize(Textodraw[playerid][2], 0.350000, 1.100000);
- TextDrawColor(Textodraw[playerid][2], -1);
- TextDrawSetOutline(Textodraw[playerid][2], 0);
- TextDrawSetProportional(Textodraw[playerid][2], 1);
- TextDrawSetShadow(Textodraw[playerid][2], 1);
- NomeServerTxt[1] = TextDrawCreate(588.000000, 430.000000, "~y~Yiakin ~r~- ~y~Fuca~n~~y~Etton ~r~- ~y~Scott");
- TextDrawBackgroundColor(NomeServerTxt[1], 255);
- TextDrawFont(NomeServerTxt[1], 2);
- TextDrawLetterSize(NomeServerTxt[1], 0.160000, 0.899999);
- TextDrawColor(NomeServerTxt[1], -65281);
- TextDrawSetOutline(NomeServerTxt[1], 0);
- TextDrawSetProportional(NomeServerTxt[1], 1);
- TextDrawSetShadow(NomeServerTxt[1], 0);
- }
- forward ChecarGz();
- public ChecarGz()
- {
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInAnyVehicle(i)){
- if(GetPlayerVehicleID(i) > 167 && GetPlayerVehicleID(i) < 232){
- new Float:h;
- GetVehicleHealth(GetPlayerVehicleID(i),h);
- if(h < 999){
- SetVehicleHealth(GetPlayerVehicleID(i),99999);
- RepairVehicle(GetPlayerVehicleID(i));
- GameTextForPlayer(i,"~b~~n~~n~~n~~h~Veiculo reparado",3000,5);
- }
- }
- }
- if(PlayerBope(i))
- {
- if(PI[i][pCP] != 1)
- {
- PI[i][pCP] = 1;
- SetPlayerCheckpoint(i,-1615.9286,685.1993,7.1875,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Bope");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerExercito(i))
- {
- if(PI[i][pCP] != 2)
- {
- PI[i][pCP] = 2;
- SetPlayerCheckpoint(i,-1314.8594,495.7732,18.2344,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Exercito");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerBozo(i))
- {
- if(PI[i][pCP] != 3)
- {
- PI[i][pCP] = 3;
- SetPlayerCheckpoint(i,-2315.6755,198.0226,35.3984,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Bozo");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerFrango(i))
- {
- if(PI[i][pCP] != 4)
- {
- PI[i][pCP] = 4;
- SetPlayerCheckpoint(i,-2658.6428,276.3374,4.3359,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Frango");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerRifas(i))
- {
- if(PI[i][pCP] != 5)
- {
- PI[i][pCP] = 5;
- SetPlayerCheckpoint(i,-2087.0298,303.8562,41.1309,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Rifas");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerNang(i))
- {
- if(PI[i][pCP] != 6)
- {
- PI[i][pCP] = 6;
- SetPlayerCheckpoint(i,-1687.9135,1331.6653,17.2432,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Nang");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerTriads(i))
- {
- if(PI[i][pCP] != 7)
- {
- PI[i][pCP] = 7;
- SetPlayerCheckpoint(i,-2179.3279,609.3130,35.1641,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Triads");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerMotoqueiro(i))
- {
- if(PI[i][pCP] != 8)
- {
- PI[i][pCP] = 8;
- SetPlayerCheckpoint(i,-2520.8586,1216.2838,37.4283,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Motoqueiro");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerPlayBoy(i))
- {
- if(PI[i][pCP] != 9)
- {
- PI[i][pCP] = 9;
- SetPlayerCheckpoint(i,-2745.2581,-251.9947,7.1952,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ PlayBoy");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else if(PlayerMendigo(i))
- {
- if(PI[i][pCP] != 10)
- {
- PI[i][pCP] = 10;
- SetPlayerCheckpoint(i,-2178.8064,-234.2019,36.5220,3.0);
- new str[56];
- format(str,sizeof str,"Territorio HQ Mendigo");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- else
- {
- if(PI[i][pCP] != 0)
- {
- DisablePlayerCheckpoint(i);
- PI[i][pCP] = 0;
- new str[56];
- format(str,sizeof str,"Territorio Desconhecido");
- TextDrawSetString(Text:Textodraw[i][2],str);
- TextDrawShowForPlayer(i,Textodraw[i][2]);
- }
- }
- }
- }
- }
- forward ContandoBope(playerid);
- public ContandoBope(playerid){
- new str[30];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-1615.9286,685.1993,7.1875)){
- if(Contando[0] > 1){
- Contando[0] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[0]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(0,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[0]);
- Dominando[0] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[0]);
- Dominando[0] = false;
- GangZoneStopFlashForAll(GZ[0]);
- }
- }
- forward ContandoExercito(playerid);
- public ContandoExercito(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-1314.8594,495.7732,18.2344)){
- if(Contando[1] > 1){
- Contando[1] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[1]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(1,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[1]);
- Dominando[1] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[1]);
- Dominando[1] = false;
- GangZoneStopFlashForAll(GZ[1]);
- }
- }
- forward ContandoBozo(playerid);
- public ContandoBozo(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2315.6755,198.0226,35.3984)){
- if(Contando[2] > 1){
- Contando[2] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[2]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(2,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[2]);
- Dominando[2] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[2]);
- Dominando[2] = false;
- GangZoneStopFlashForAll(GZ[2]);
- }
- }
- forward ContandoFrango(playerid);
- public ContandoFrango(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2658.6428,276.3374,4.3359)){
- if(Contando[3] > 1){
- Contando[3] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[3]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(3,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[3]);
- Dominando[3] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[3]);
- Dominando[3] = false;
- GangZoneStopFlashForAll(GZ[3]);
- }
- }
- forward ContandoRifas(playerid);
- public ContandoRifas(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2087.0298,303.8562,41.1309)){
- if(Contando[4] > 1){
- Contando[4] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[4]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(4,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[4]);
- Dominando[4] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[4]);
- Dominando[4] = false;
- GangZoneStopFlashForAll(GZ[4]);
- }
- }
- forward ContandoNang(playerid);
- public ContandoNang(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-1687.9135,1331.6653,17.2432)){
- if(Contando[5] > 1){
- Contando[5] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[5]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(5,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[5]);
- Dominando[5] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[5]);
- Dominando[5] = false;
- GangZoneStopFlashForAll(GZ[5]);
- }
- }
- forward ContandoTriads(playerid);
- public ContandoTriads(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2179.3279,609.3130,35.1641)){
- if(Contando[6] > 1){
- Contando[6] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[6]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(6,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[6]);
- Dominando[6] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[6]);
- Dominando[6] = false;
- GangZoneStopFlashForAll(GZ[6]);
- }
- }
- forward ContandoMotoqueiro(playerid);
- public ContandoMotoqueiro(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2745.2581,-251.9947,7.1952)){
- if(Contando[7] > 1){
- Contando[7] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[7]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(7,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[7]);
- Dominando[7] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[7]);
- Dominando[7] = false;
- GangZoneStopFlashForAll(GZ[7]);
- }
- }
- forward ContandoPlayBoy(playerid);
- public ContandoPlayBoy(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-1615.9286,685.1993,7.1875)){
- if(Contando[8] > 1){
- Contando[8] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[8]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(8,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[8]);
- Dominando[8] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[8]);
- Dominando[8] = false;
- GangZoneStopFlashForAll(GZ[8]);
- }
- }
- forward ContandoMendigo(playerid);
- public ContandoMendigo(playerid){
- new str[15];
- if(IsPlayerInRangeOfPoint(playerid,3.0,-2178.8064,-234.2019,36.5220)){
- if(Contando[9] > 1){
- Contando[9] --;
- format(str,sizeof str,"~r~~n~~n~~n~%d",Contando[9]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- DominouGZ(9,PI[playerid][pTime]);
- GivePlayerMoneyEx(playerid,2000);
- KillTimer(Timer[9]);
- Dominando[9] = false;
- GameTextForPlayer(playerid,"~g~~n~~n~~n~dominado",5000,5);
- GivePlayerMoneyEx(playerid,2000);
- }
- }
- else{
- KillTimer(Timer[9]);
- Dominando[9] = false;
- GangZoneStopFlashForAll(GZ[9]);
- }
- }
- stock DominandoGZ(g,time)
- {
- new x[30];
- new area[30];
- switch(time)
- {
- case 1:GangZoneFlashForAll(GZ[g],COR_COP1),x = "BOPE";
- case 2:GangZoneFlashForAll(GZ[g],COR_EXE1),x = "EXERCITO";
- case 3:GangZoneFlashForAll(GZ[g],COR_BOZ1),x = "BOZO";
- case 4:GangZoneFlashForAll(GZ[g],COR_FRA1),x = "FRANGO";
- case 5:GangZoneFlashForAll(GZ[g],COR_RIF1),x = "RIFAS";
- case 6:GangZoneFlashForAll(GZ[g],COR_NAN1),x = "NANG";
- case 7:GangZoneFlashForAll(GZ[g],COR_TRI1),x = "TRIADS";
- case 8:GangZoneFlashForAll(GZ[g],COR_MOT1),x = "MOTOQUEIRO";
- case 9:GangZoneFlashForAll(GZ[g],COR_PLA1),x = "PLAYBOYS";
- case 10:GangZoneFlashForAll(GZ[g],COR_MEN1),x = "MENDIGOS";
- }
- switch(g)
- {
- case 0: area = "BOPE";
- case 1: area = "EXERCITO";
- case 2: area = "BOZO";
- case 3: area = "FRANGO";
- case 4: area = "RIFAS";
- case 5: area = "NANG";
- case 6: area = "TRIADS";
- case 7: area = "MOTOQUEIRO";
- case 8: area = "PLAYBOYS";
- case 9: area = "MENDIGOS";
- }
- new string[128];
- format(string,sizeof string,"{FFFF00}[GangZones] {FFFFFF}A gang {FFFF00}%s {FFFFFF}esta dominando a HQ dos {FFFF00}%s.",x,area);
- SendClientMessageToAll(-1,string);
- format(string,sizeof string,"{FFFF00}A gang %s esta dominando um território seu.",x);
- Radio(Dono[g],string);
- }
- stock Radio(org,msg[])
- {
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(PI[i][pTime] == org)
- {
- SendClientMessage(i,-1,msg);
- }
- }
- }
- stock DominouGZ(g,equipe)
- {
- new x[15];
- new area[15];
- switch(equipe)
- {
- case 1:GangZoneShowForAll(GZ[g],COR_COP1),x = "BOPE";
- case 2:GangZoneShowForAll(GZ[g],COR_EXE1),x = "EXERCITO";
- case 3:GangZoneShowForAll(GZ[g],COR_BOZ1),x = "BOZO";
- case 4:GangZoneShowForAll(GZ[g],COR_FRA1),x = "FRANGO";
- case 5:GangZoneShowForAll(GZ[g],COR_RIF1),x = "RIFAS";
- case 6:GangZoneShowForAll(GZ[g],COR_NAN1),x = "NANG";
- case 7:GangZoneShowForAll(GZ[g],COR_TRI1),x = "TRIADS";
- case 8:GangZoneShowForAll(GZ[g],COR_MOT1),x = "MOTOQUEIRO";
- case 9:GangZoneShowForAll(GZ[g],COR_PLA1),x = "PLAYBOYS";
- case 10:GangZoneShowForAll(GZ[g],COR_MEN1),x = "MENDIGOS";
- }
- switch(g)
- {
- case 0: area = "BOPE";
- case 1: area = "EXERCITO";
- case 2: area = "BOZO";
- case 3: area = "FRANGO";
- case 4: area = "RIFAS";
- case 5: area = "NANG";
- case 6: area = "TRIADS";
- case 7: area = "MOTOQUEIRO";
- case 8: area = "PLAYBOYS";
- case 9: area = "MENDIGOS";
- }
- new string[128];
- format(string,sizeof string,"{FFFF00}[GangZones] {FFFFFF}A gang {FFFF00}%s {FFFFFF}dominou a HQ dos {FFFF00}%s.",x,area);
- SendClientMessageToAll(-1,string);
- format(string,sizeof string,"{FFFF00}A gang %s dominou um território seu.",x);
- Radio(Dono[g],string);
- Dono[g] = equipe;
- }
- stock GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
- {//Thanks for who made this function.
- new Float:a;
- GetVehiclePos(vehicleid, x, y, a);
- GetVehicleZAngle(vehicleid, a);
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- }
- forward Prendeu(playerid);
- public Prendeu(playerid){
- if(PI[playerid][pPreso] > 1){
- new str[24];
- PI[playerid][pPreso] --;
- format(str,sizeof str,"~r~Tempo: ~w~%d",PI[playerid][pPreso]);
- GameTextForPlayer(playerid,str,2000,5);
- }
- else{
- GameTextForPlayer(playerid,"~b~voce esta livre!",2000,5);
- PI[playerid][pPreso] = 0;
- SpawnPlayerEx(playerid);
- KillTimer(Timerr[playerid]);
- }
- }
- stock UsouComando(playerid,comando[]){
- new str[128];
- format(str,sizeof str,"{90EE90}[MIB INFORMA] O player {4876FF}%s {90EE90}usou o comando {4876FF}/%s",Nome(playerid),comando);
- SendClientMessageToAll(-1,str);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- return true;
- }
- forward ComecaX1();
- public ComecaX1()
- {
- new str[10];
- if(ContandoX1 > 0){
- ContandoX1 --;
- format(str,sizeof str,"~r~%d",ContandoX1);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(FoiX1[i] == true){
- GameTextForPlayer(i,str,2000,5);
- }
- }
- }
- else{
- KillTimer(Tx1);
- for(new i = 0;i < GetMaxPlayers();i++)
- {
- if(FoiX1[i] == true){
- TogglePlayerControllable(i,1);
- GameTextForPlayer(i,"~g~fight",5000,5);
- }
- }
- }
- }
- forward EsperandoComecar(playerid);
- public EsperandoComecar(playerid)
- {
- Aviso(playerid,"Sem jogadores suficientes para começar uma disputa..");
- VenceuX1(playerid,999);
- }
- stock VerificarArquivo(playerid){
- new arq[24];
- new n[10];
- new s[10];
- new n1[10];
- new s1[10];
- format(arq,sizeof arq,"MortesFix.ini");
- if(!DOF2_FileExists(arq)) DOF2_CreateFile(arq),DOF2_SaveFile();
- else{
- for(new i = 1;i < 11;i++){
- format(n,sizeof n,"Rank%d",i);
- format(s,sizeof s,"Nome%d",i);
- if(PI[playerid][pMatou] > DOF2_GetInt(arq,n)){
- format(n1,sizeof n1,"Rank%d",i+1);
- format(s1,sizeof s1,"Nome%d",i+1);
- if(strcmp(Nome(playerid), DOF2_GetString(arq,s), true) == 0){
- DOF2_SetInt(arq,n,PI[playerid][pMatou]);
- }
- else{
- DOF2_SetInt(arq,n1,DOF2_GetInt(arq,n));
- DOF2_SetString(arq,s1,DOF2_GetString(arq,s));
- DOF2_SetInt(arq,n,PI[playerid][pMatou]);
- DOF2_SetString(arq,s,Nome(playerid));
- new str[160];
- format(str,sizeof str,"{FF0000}[RANK] {FFFFFF}O player {FF0000}%s {FFFFFF}agora ocupa a posição {FF0000}%d {FFFFFF}no ranking de mortes.{FF0000}(/rank)",Nome(playerid),i);
- SendClientMessageToAll(-1,str);
- DOF2_SaveFile();
- }
- break;
- }
- }
- }
- }
- stock VenceuX1(venceu,perdeu){
- xx1 = 0;
- FoiX1[venceu] = false;
- KillTimer(Tx1);
- if(perdeu < 999){
- FoiX1[perdeu] = false;
- new str[128],ha[12];
- new Float:h;
- GetPlayerArmour(venceu,h);
- PI[venceu][pMatouX1] ++;
- PI[perdeu][pMorreuX1] ++;
- PI[venceu][pMatou] ++;
- PI[perdeu][pMorreu] ++;
- VerificarArquivo(venceu);
- if( h == 100){
- ha = "PERFECT!!";
- }
- format(str,sizeof str,"{FF7F50}O player %s venceu a disputa de x1 contra o player %s. {00FF00}%s",Nome(venceu),Nome(perdeu),ha);
- SendClientMessageToAll(-1,str);
- PlayAudioStreamForPlayer(venceu,"https://dl.dropbox.com/s/saayilmqq21qbbs/Announcer%20Flawless%20Victory.mp3");
- GivePlayerMoneyEx(venceu,3000);
- }
- else{
- SendClientMessageToAll(-1,"Não houve jogadores suficientes na disputa do x1.");
- }
- SetTimerEx("TSpawn",5000,false,"i",venceu);
- return true;
- }
- stock SetPlayerPosEx(playerid,Float:ix,Float:iy,Float:iz)
- {
- if(IsPlayerInAnyVehicle(playerid)){
- SetVehiclePos(GetPlayerVehicleID(playerid),ix,iy,iz);
- }
- else{
- SetPlayerPos(playerid,ix,iy,iz);
- }
- }
- forward MensagensMIB();
- public MensagensMIB()
- {
- new string[128];
- new random1 = random(sizeof(MsgMIB));
- new random2 = random(sizeof(CoresMsg));
- format(string, sizeof(string), "%s", MsgMIB[random1]);
- SendClientMessageToAll(CoresMsg[random2],string);
- }
- //=====================================================================================================
- forward TSpawn(playerid);
- public TSpawn(playerid)
- {
- SpawnPlayerEx(playerid);
- }
- stock IsPlayerAimingBodyPart(playerid, bodypart)
- {
- // Get the camera's positions
- new Float:x, Float:y, Float:z;
- new Float:vx, Float:vy, Float:vz;
- new Float:cx, Float:cy, Float:cz;
- GetPlayerCameraFrontVector(playerid, vx, vy, vz);
- GetPlayerCameraPos(playerid, cx, cy, cz);
- // Check if the player is aiming in a certain distance
- for(new Float:d; d < MAX_DISTANCE_UNIT; d += 0.5)
- {
- x = vx*d+cx;
- y = vy*d+cy;
- z = vz*d+cz;
- new Float:dist = floatsqroot((x-cx)*(x-cx)+(y-cy)*(y-cy));
- new Float:offset;
- switch (GetPlayerWeapon(playerid))
- {
- case 24, 29, 22, 23, 25, 26, 27, 28, 32: offset = 0.1122047500310059125919013005129;
- case 30, 31: offset = 0.07867820613690007867820613690008;
- case 33, 34: offset = 0.0;
- }
- new Float:height;
- if (z > cz) height = z-cz;
- else height = cz-z;
- offset *= dist;
- height /= dist;
- new Float:part;
- if (bodypart == BODY_PART_HEAD) part = -0.4;
- else if (bodypart == BODY_PART_TORSO) part = 0.3;
- else if (bodypart == BODY_PART_LEGS) part = 1.0;
- z = z+offset-height+part;
- for(new i, m = GetMaxPlayers(); i < m; i++)
- {
- if (!IsPlayerConnected(i)) continue;
- if (playerid == i) continue;
- if (IsPlayerInRangeOfPoint(i, 0.5, x, y, z-0.5)) return 1;
- }
- }
- return 0;
- }
- /*
- ---[IsPlayerAimingTargetBodyPart]---
- »playerid: the player
- »targetid: the target
- »bodypart: the body part you want to check
- *Return: 1 if true, 0 if false
- *-------------------------------------------------------------------*
- | Checks if the player is aiming at target's specific body part. |
- *-------------------------------------------------------------------*
- */
- stock IsPlayerAimingTargetBodyPart(playerid, targetid, bodypart)
- {
- // Get the camera's positions
- new Float:x, Float:y, Float:z;
- new Float:vx, Float:vy, Float:vz;
- new Float:cx, Float:cy, Float:cz;
- GetPlayerCameraFrontVector(playerid, vx, vy, vz);
- GetPlayerCameraPos(playerid, cx, cy, cz);
- // Check if the player is aiming in a certain distance
- new Float:px, Float:py, Float:pz;
- GetPlayerPos(targetid, px, py, pz);
- new Float:dist = floatsqroot(((cx-px)*(cx-px)) + ((cy-py)*(cy-py)) + ((cz-pz)*(cz-pz)));
- x = vx*dist+cx;
- y = vy*dist+cy;
- z = vz*dist+cz;
- new Float:offset;
- switch (GetPlayerWeapon(playerid))
- {
- case 24, 29, 22, 23, 25, 26, 27, 28, 32: offset = 0.1122047500310059125919013005129;
- case 30, 31: offset = 0.07867820613690007867820613690008;
- case 33, 34: offset = 0.0;
- }
- new Float:height;
- if (z > cz) height = z-cz;
- else height = cz-z;
- offset *= dist;
- height /= dist;
- new Float:part;
- if (bodypart == BODY_PART_HEAD) part = -0.4;
- else if (bodypart == BODY_PART_TORSO) part = 0.3;
- else if (bodypart == BODY_PART_LEGS) part = 1.0;
- z = z+offset-height+part;
- if (IsPlayerInRangeOfPoint(targetid, 0.5, x, y, z-0.5)) return 1;
- return 0;
- }
- /*======================================================================================================*
- * This Weapon-Drop Filterscript is made by Jeffry! *
- * *
- * *
- * Made in April 2011. *
- * *
- * Your Rights: *
- * *
- * -You are allowed to modify this Filterscript, aslong as you DO NOT remove credits or re-upload it. *
- * *
- * -You are NOT allowed to re-upload this Filterscript. *
- * -You are NOT allowed to claim this as your own. *
- * -You are NOT allowed to remove any credits. *
- * *
- * Thank you. *
- * Have fun. I would be happy if you give me /credits. :D *
- * *
- //=============The Functions====================================================*/
- stock OnWeaponDropInit()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- for(new a=0; a<14; a++)
- {
- WeaponDrop[i][a] = -1;
- WeaponData[i][a][0] = -1;
- WeaponData[i][a][1] = -1;
- }
- WeaponTimer[i] = -1;
- }
- print("\n--------------------------------------");
- print("[FS] WeaponDrop v1.0 by Jeffry loaded!");
- print("--------------------------------------\n");
- return 1;
- }
- stock OnWeaponDropPickup(playerid, pickupid)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- for(new a=0; a<13; a++)
- {
- if(WeaponDrop[i][a] == pickupid)
- {
- WeaponDrop[i][a] = -1;
- DestroyPickup(pickupid);
- GivePlayerWeapon(playerid, WeaponData[i][a][0], WeaponData[i][a][1]);
- WeaponData[i][a][0] = -1;
- WeaponData[i][a][1] = -1;
- }
- }
- if(WeaponDrop[i][13] == pickupid)
- {
- WeaponDrop[i][13] = -1;
- DestroyPickup(pickupid);
- GivePlayerMoney(playerid, WeaponData[i][13][0]);
- WeaponData[i][13][0] = -1;
- WeaponData[i][13][1] = -1;
- }
- }
- return 1;
- }
- stock OnWeaponDrop(playerid)
- {
- RemovePickups(playerid);
- new Float:x, Float:y, Float:z, dropped;
- GetPlayerPos(playerid,x,y,z);
- for(new i=0; i<13; i++)
- {
- new weapon, ammo;
- GetPlayerWeaponData(playerid, i, weapon, ammo);
- if((ammo > 0 || weapon == 1) && weapon != 0)
- {
- new model = GetModel(weapon);
- if(model != -1)
- {
- WeaponData[playerid][i][0] = weapon;
- WeaponData[playerid][i][1] = ammo;
- dropped++;
- }
- }
- }
- if(BagMoney != 0)
- {
- if(BagMoney == -1 && GetPlayerMoney(playerid) > 0)
- {
- WeaponData[playerid][13][0] = GetPlayerMoney(playerid);
- if(BagMode) GivePlayerMoney(playerid, -WeaponData[playerid][13][0]);
- WeaponDrop[playerid][13] = CreatePickup(1550, 1, x, y, z);
- if(dropped <= 0) dropped=1;
- }
- if(BagMoney > 0)
- {
- WeaponData[playerid][13][0] = BagMoney;
- if(BagMode) GivePlayerMoney(playerid, -WeaponData[playerid][13][0]);
- WeaponDrop[playerid][13] = CreatePickup(1550, 1, x, y, z);
- if(dropped <= 0) dropped=1;
- }
- }
- if(dropped > 0)
- {
- new radius;
- if(dropped < 3) radius = 1;
- if(dropped < 6) radius = 2; /*If you want another radius, change it here.*/
- if(dropped < 9) radius = 3;
- if(dropped > 8) radius = 4;
- new Float:degree, Float:tmp;
- degree = 360.0 / (float(dropped));
- tmp = degree;
- if(WeaponTimer[playerid] != -1) KillTimer(WeaponTimer[playerid]);
- WeaponTimer[playerid] = SetTimerEx("RemovePickups", WEAPON_RESPAWN_TIME*1000, 0, "d", playerid);
- for(new i=0; i<13; i++)
- {
- if((WeaponData[playerid][i][1] > 0 || WeaponData[playerid][i][0] == 1) && WeaponData[playerid][i][0] > 0)
- {
- new model = GetModel(WeaponData[playerid][i][0]);
- if(model != -1)
- {
- WeaponDrop[playerid][i] = CreatePickup(model, 1, x+(floatsin(degree, degrees)*radius), y+(floatcos(degree, degrees)*radius), z);
- degree = degree + tmp;
- }
- }
- }
- }
- return 1;
- }
- stock GetModel(weaponid)
- {
- for(new i=0; i<sizeof(ForbiddenWeapons); i++)
- {
- if(weaponid == ForbiddenWeapons[i])
- {
- return -1;
- }
- }
- switch(weaponid)
- {
- case 1: return 331;
- case 2: return 333;
- case 3: return 334;
- case 4: return 335;
- case 5: return 336;
- case 6: return 337;
- case 7: return 338;
- case 8: return 339;
- case 9: return 341;
- case 10: return 321;
- case 11: return 322;
- case 12: return 323;
- case 13: return 324;
- case 14: return 325;
- case 15: return 326;
- case 16: return 342;
- case 17: return 343;
- case 18: return 344;
- case 22: return 346;
- case 23: return 347;
- case 24: return 348;
- case 25: return 349;
- case 26: return 350;
- case 27: return 351;
- case 28: return 352;
- case 29: return 353;
- case 30: return 355;
- case 31: return 356;
- case 32: return 372;
- case 33: return 357;
- case 34: return 358;
- case 35: return 359;
- case 36: return 360;
- case 37: return 361;
- case 38: return 362;
- case 39: return 363;
- case 40: return 364;
- case 41: return 365;
- case 42: return 366;
- case 43: return 367;
- case 44: return 368;
- case 45: return 369;
- case 46: return 371;
- default: return -1;
- }
- return -1;
- }
- forward RemovePickups(playerid);
- public RemovePickups(playerid)
- {
- if(WeaponTimer[playerid] != -1) KillTimer(WeaponTimer[playerid]);
- WeaponTimer[playerid] = -1;
- for(new a=0; a<14; a++)
- {
- if(WeaponDrop[playerid][a] != -1)
- {
- DestroyPickup(WeaponDrop[playerid][a]);
- WeaponDrop[playerid][a] = -1;
- WeaponData[playerid][a][0] = -1;
- WeaponData[playerid][a][1] = -1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement