Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- ||||||||||||||||||||||||||||||||||||Versao1.5|||||||||||||||||||||||||||||||||||
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- */
- #include <a_samp> //
- #include <zcmd> //
- #include <YSI\y_ini>//
- #include <sscanf2> //
- #include <foreach>
- #include <streamer>
- //------------------------------------------------------------------------------
- #define COL_RED "{F81414}"
- #define COL_LIGHTBLUE "{00C0FF}"
- #define COL_LRED "{FFA1A1}"
- #define COL_GREEN "{6EF83C}"
- #define COL_GREY "{C3C3C3}"
- #define CRED "{FB0000}"
- #define CAFK "{6AF7E1}"
- #define CGREY "{AFAFAF}"
- #define CBLUE "{0000FF}"
- #define CPINK "{FF66FF}"
- #define CAQUA "{7CFC00}"
- #define CGREEN "{33AA33}"
- #define CBLACK "{000000}"
- #define CWHITE "{FFFFFF}"
- #define CWHITEP "{FFFFD5}"
- #define CORANGE "{FF8000}"
- #define CSYSTEM "{EFEFF7}"
- #define CPURPLE "{FF00FF}"
- #define CYELLOW "{FFFF00}"
- #define CLIGHTRED "{FF8080}"
- #define CDARKPINK "{E100E1}"
- #define CDARKGREEN "{008040}"
- #define CLIGHTBLUE "{33CCFF}"
- #define CLIGHTGREEN "{38FF06}"
- #define COL_YELLOW 0xFFFA00FF
- #define CANNOUNCEMENT "{00CACA}"
- //------------------------------------------------------------------------------
- #define MAX_CONNECTIONS_FROM_IP 3
- #define NaoPodeUsarCmD "[ERRO]: Você Não e Um Admin Ou Não Tem Level Alto Para Tal Açao."
- //------------------------------------------------------------------------------
- #define GangWar 1
- #define Creditos 2
- #define registro 3
- #define login 4
- #define Evento 5
- #define Admin 6
- #define Dialog_Arma 7
- #define VIPS 8
- //------------------------------------------------------------------------------
- #define GROVECOLOR 0x00C31EFF
- #define VAGOSCOLOR 0xF5D400FF
- #define BALLASCOLOR 0xCF00EAFF
- #define AZTECSCOLOR 0x0069FFFF
- //------------------------------------------------------------------------------
- #define versao "1.5"
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 150
- #undef MAX_VEHICLES
- #define MAX_VEHICLES 850
- #undef MAX_PICKUPS
- #define MAX_PICKUPS 50
- #define MAXAVISOS (3)
- //------------------------------------------------------------------------------
- #define PlaySound(%0,%1) PlayerPlaySound(%0,%1,0,0,0)
- #define SendFMessage(%0,%1,%2,%3) SendClientMessage(%0,%1,%2)
- #define SendFMessageToAll(%1,%2,%3) SendClientMessageToAll(%1,%2)
- #define CDO CreateDynamicObject //RsRs
- //------------------------------------------------------------------------------
- #define UserPath "Accs/%s.ini" // Salva As Contas
- native WP_Hash(buffer[],len,const str[]);
- //------------------------------------------------------------------------------
- new VehicleNames[212][] = {
- "Landstalker","Bravura","Buffalo","Linerunner",
- "Pereniel","Sentinel","Dumper","Firetruck",
- "Trashmaster","Stretch","Manana","Infernus",
- "Voodoo","Pony","Mule","Cheetah","Ambulance",
- "Leviathan","Moonbeam","Esperanto","Taxi",
- "Washington","Bobcat","Mr Whoopee","BF Injection",
- "Hunter","Premier","Enforcer","Securicar",
- "Banshee","Predator","Bus","Rhino",
- "Barracks","Hotknife","Trailer",
- "Previon","Coach","Cabbie",
- "Stallion","Rumpo","RC Bandit","Romero","Packer",
- "Monster","Admiral","Squalo","Seasparrow",
- "Pizzaboy","Tram","Trailer","Turismo","Speeder",
- "Reefer","Tropic","Flatbed","Yankee",
- "Caddy","Solair","Berkley's RC Van",
- "Skimmer","PCJ-600","Faggio",
- "Freeway","RC Baron","RC Raider",
- "Glendale","Oceanic","Sanchez","Sparrow",
- "Patriot","Quad","Coastguard","Dinghy",
- "Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
- "Comet","BMX","Burrito","Camper","Marquis",
- "Baggage","Dozer","Maverick","News Chopper",
- "Rancher","FBI Rancher","Virgo","Greenwood",
- "Jetmax","Hotring","Sandking","Blista Compact",
- "Police Maverick","Boxville","Benson","Mesa",
- "RC Goblin","Hotring Racer A","Hotring Racer B",
- "Bloodring Banger","Rancher","Super GT","Elegant",
- "Journey","Bike","Mountain Bike","Beagle",
- "Cropdust","Stunt","Tanker","RoadTrain",
- "Nebula","Majestic","Buccaneer","Shamal","Hydra"
- ,"FCR-900","NRG-500","HPV1000","Cement Truck",
- "Tow Truck","Fortune","Cadrona","FBI Truck",
- "Willard","Forklift","Tractor","Combine","Feltzer",
- "Remington","Slamvan","Blade","Freight","Streak",
- "Vortex","Vincent","Bullet","Clover",
- "Sadler","Firetruck","Hustler","Intruder","Primo",
- "Cargobob","Tampa","Sunrise","Merit","Utility",
- "Nevada","Yosemite","Windsor","Monster A",
- "Monster B","Uranus","Jester","Sultan","Stratum",
- "Elegy","Raindance","RC Tiger","Flash","Tahoma",
- "Savanna","Bandito","Freight","Trailer",
- "Kart","Mower","Duneride","Sweeper","Broadway",
- "Tornado","AT-400","DFT-30","Huntley","Stafford",
- "BF-400","Newsvan","Tug","Trailer A","Emperor",
- "Wayfarer","Euros","Hotdog","Club","Trailer B",
- "Trailer C","Andromada","Dodo","RC Cam","Launch",
- "Police Car (LSPD)","Police Car (SFPD)",
- "Police Car (LVPD)","Police Ranger","Picador",
- "S.W.A.T. Van","Alpha","Phoenix","Glendale",
- "Sadler","Luggage Trailer A","Luggage Trailer B",
- "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
- };
- //------------------------------------------------------------------------------
- new Float:gRandomSpawns_LosSantos[][4] =
- {
- {1751.1097,-2106.4529,13.5469,183.1979}, // El-Corona - Outside random house
- {2652.6418,-1989.9175,13.9988,182.7107}, // Random house in willowfield - near playa de seville and stadium
- {2489.5225,-1957.9258,13.5881,2.3440}, // Hotel in willowfield - near cluckin bell
- {2689.5203,-1695.9354,10.0517,39.5312}, // Outside stadium - lots of cars
- {2770.5393,-1628.3069,12.1775,4.9637}, // South in east beach - north of stadium - carparks nearby
- {2807.9282,-1176.8883,25.3805,173.6018}, // North in east beach - near apartments
- {2552.5417,-958.0850,82.6345,280.2542}, // Random house north of Las Colinas
- {2232.1309,-1159.5679,25.8906,103.2939}, // Jefferson motel
- {2388.1003,-1279.8933,25.1291,94.3321}, // House south of pig pen
- {2481.1885,-1536.7186,24.1467,273.4944}, // East LS - near clucking bell and car wash
- {2495.0720,-1687.5278,13.5150,359.6696}, // Outside CJ's house - lots of cars nearby
- {2306.8252,-1675.4340,13.9221,2.6271}, // House in ganton - lots of cars nearby
- {2191.8403,-1455.8251,25.5391,267.9925}, // House in south jefferson - lots of cars nearby
- {1830.1359,-1092.1849,23.8656,94.0113}, // Mulholland intersection carpark
- {2015.3630,-1717.2535,13.5547,93.3655}, // Idlewood house
- {1654.7091,-1656.8516,22.5156,177.9729}, // Right next to PD
- {1219.0851,-1812.8058,16.5938,190.0045}, // Conference Center
- {1508.6849,-1059.0846,25.0625,1.8058}, // Across the street of BANK - lots of cars in intersection carpark
- {1421.0819,-885.3383,50.6531,3.6516}, // Outside house in vinewood
- {1133.8237,-1272.1558,13.5469,192.4113}, // Near hospital
- {1235.2196,-1608.6111,13.5469,181.2655}, // Backalley west of mainstreet
- {590.4648,-1252.2269,18.2116,25.0473}, // Outside "BAnk of San Andreas"
- {842.5260,-1007.7679,28.4185,213.9953}, // North of Graveyard
- {911.9332,-1232.6490,16.9766,5.2999}, // LS Film Studio
- {477.6021,-1496.6207,20.4345,266.9252}, // Rodeo Place
- {255.4621,-1366.3256,53.1094,312.0852}, // Outside propery in richman
- {281.5446,-1261.4562,73.9319,305.0017}, // Another richman property
- {790.1918,-839.8533,60.6328,191.9514}, // Mulholland house
- {1299.1859,-801.4249,84.1406,269.5274}, // Maddoggs
- {1240.3170,-2036.6886,59.9575,276.4659}, // Verdant Bluffs
- {2215.5181,-2627.8174,13.5469,273.7786}, // Ocean docks 1
- {2509.4346,-2637.6543,13.6453,358.3565} // Ocean Docks spawn 2
- };
- //------------------------------------------------------------------------------
- new MSGS[12][115] =
- {
- "{FF0000}[INFO]: {FFFFFF}Servidor Gang War Los Santos Team Death Match{FF0000}.",
- "{FF0000}[INFO]: {FFFFFF}Servidor em Versão Beta Ou Seja Não Terminada ! {FF0000}Versão 1.0.",
- "{FF0000}[INFO]: {FFFFFF}Use {FF0000}/GangWar {FFFFFF}Para Entar No Modo De Guerras De Gangs!.",
- "{FF0000}[INFO]: {FFFFFF}Coloque Seu Tempo De Dia {FF0000}/Dia.",
- "{FF0000}[INFO]: {FFFFFF}Coloque Seu Tempo De Noite {FF0000}/Noite.",
- "{FF0000}[INFO]: {FFFFFF}A Cada Spawn Você nasce Aleatoriamente Por LoS SantoS.",
- "{FF0000}[INFO]: {FFFFFF}Quer Sair Do GangWar ?{FF0000}/Sairdm.",
- "{FF0000}[INFO]: {FFFFFF}Veja Os Criadores Do Servidor{FF0000}/Creditos.",
- "{FF0000}[INFO]: {FFFFFF}Está Perdido ? Use{FF0000}/Ajuda.",
- "{FF0000}[INFO]: {FFFFFF}A Cada Spawn Você Nasce Com Armas Aleatorias.",
- "{FF0000}[INFO]: {FFFFFF}Seu Carro Capoto?{FF0000}/Flip.",
- "{FF0000}[INFO]: {FFFFFF}Tem Um Mané Querendo Roubar Seu Carro ? Use : {FF0000}/Trancar."
- };
- new cores[] =
- {
- 0xFFFFFF
- };
- //------------------------------------------------------------------------------
- new
- diogo [ 129 ],
- Text:Textdraw1,
- pname [ MAX_PLAYER_NAME ],
- Vagoskatana,
- VagosVida,
- GroveGranadas,
- GroveVida,
- BallasVida,
- BallasMolotov,
- PickupID [ MAX_PICKUPS ],
- Vagoskills,
- Text3D:Vagoslabel,
- Aztecskills,
- Text3D:Aztecslabel,
- Ballaskills,
- Text3D:Ballaslabel,
- Grovekills,
- Text3D:Grovelabel,
- grovezone,
- ballaszone,
- vagoszone,
- aztecaszone,
- gText [ 200 ],
- EventoVW,
- EventoInt,
- Float:EventoPos [ 4 ],
- bool:EventoStatus,
- bool:NoEvento[ 150 ],
- giveplayerid,
- nivel,
- bool:temon=false,
- objco [ 150 ],
- TeleLockTimer [ 150 ],
- bool:EstaEmUmaArena [ 150 ],
- AdminRank [ 60 ],
- LoaderFreezer = 1,
- BotTolerance,
- X1Q,
- bool:X1L,
- ArenaTipo [ 150 ] ,
- pDrunkLevelLast [ 150 ],
- pFPS [ 150 ],
- drunknew [ 150 ]
- ;
- //------------------------- Enum -----------------------------------------------
- enum PlayerInfo
- {
- InDM,
- Pass[129],
- Adminlevel,
- VIPlevel,
- Money,
- Scores,
- Kills,
- Aviso,
- Inx1,
- Deaths,
- Avisos
- }
- new PInfo [ MAX_PLAYERS ] [ PlayerInfo ] ;
- //------------------------------------------------------------------------------
- static l_temp [ 150 ] ;
- //Pos Arenas
- new Float:ArenaPos [ ] [ 4 ] = { { -2177.9773,-237.2060,36.5220,326.8106 } , { -2165.1016,-224.2348,36.5156,333.0773 } , { -2178.1077,-222.5904,36.5156,312.6871 } , { -2167.9951,-242.1403,40.7195,277.8834 } , { -2177.2915,-242.9925,40.7195,199.2594 } , { -2183.4895,-244.6649,40.7195,275.7134 } , { -2182.8665,-250.6636,40.7195,271.3267 } } ; //Arena Pos
- new Float:SpawnArena [ 3 ] [ 3 ] = { { 1349.1758,2113.0493,11.0156} , { 1353.1586,2173.5320,11.0156} , { 1307.1490,2144.3647,11.0234} };//Arena Pós
- new Float:SpawnArenaPistola [ 2 ] [ 3 ] = { { 1454.0076,-1084.9932,213.3828 } , { 1451.5397,-1052.3337,213.3828 } };//Pistola Pós
- new Float:SpawnArenaSniper [ 6 ] [ 3 ] = { { 246.8540,1410.7755,23.3750 } , { 246.8031,1434.8627,23.3750 } , { 215.7127,1469.5493,23.7344 } , { 188.6683,1374.2574,23.7344 } , { 202.0411,1392.5692,43.0946 } , { 244.5911,1453.7500,43.0946 } };//Sniper Pós
- //CoreS De Nick
- new PlayerColors[144] = {
- 0xFF8C13AA,0xC715FFAA,0x20B2AAAA,0xDC143CAA,
- 0x6495EDAA,0xf0e68cAA,0x778899AA,0xFF1493AA,
- 0xF4A460AA,0xEE82EEAA,0xFFD720AA,0x8b4513AA,
- 0x4949A0AA,0x148b8bAA,0x14ff7fAA,0x556b2fAA,
- 0x0FD9FAAA,0x10DC29AA,0x534081AA,0x0495CDAA,
- 0xEF6CE8AA,0xBD34DAAA,0x247C1BAA,0x0C8E5DAA,
- 0x635B03AA,0xCB7ED3AA,0x65ADEBAA,0x5C1ACCAA,
- 0xF2F853AA,0x11F891AA,0x7B39AAAA,0x53EB10AA,
- 0x54137DAA,0x275222AA,0xF09F5BAA,0x3D0A4FAA,
- 0x22F767AA,0xD63034AA,0x9A6980AA,0xDFB935AA,
- 0x3793FAAA,0x90239DAA,0xE9AB2FAA,0xAF2FF3AA,
- 0x057F94AA,0xB98519AA,0x388EEAAA,0x028151AA,
- 0xA55043AA,0x0DE018AA,0x93AB1CAA,0x95BAF0AA,
- 0x369976AA,0x18F71FAA,0x4B8987AA,0x491B9EAA,
- 0x829DC7AA,0xBCE635AA,0xCEA6DFAA,0x20D4ADAA,
- 0x2D74FDAA,0x3C1C0DAA,0x12D6D4AA,0x48C000AA,
- 0x2A51E2AA,0xE3AC12AA,0xFC42A8AA,0x2FC827AA,
- 0x1A30BFAA,0xB740C2AA,0x42ACF5AA,0x2FD9DEAA,
- 0xFAFB71AA,0x05D1CDAA,0xC471BDAA,0x94436EAA,
- 0xC1F7ECAA,0xCE79EEAA,0xBD1EF2AA,0x93B7E4AA,
- 0x3214AAAA,0x184D3BAA,0xAE4B99AA,0x7E49D7AA,
- 0x4C436EAA,0xFA24CCAA,0xCE76BEAA,0xA04E0AAA,
- 0x9F945CAA,0xDCDE3DAA,0x10C9C5AA,0x70524DAA,
- 0x0BE472AA,0x8A2CD7AA,0x6152C2AA,0xCF72A9AA,
- 0xE59338AA,0xEEDC2DAA,0xD8C762AA,0x3FE65CAA,
- 0xFF8C13AA,0xC715FFAA,0x20B2AAAA,0xDC143CAA,
- 0x6495EDAA,0xf0e68cAA,0x778899AA,0xFF1493AA,
- 0xF4A460AA,0xEE82EEAA,0xFFD720AA,0x8b4513AA,
- 0x4949A0AA,0x148b8bAA,0x14ff7fAA,0x556b2fAA,
- 0x0FD9FAAA,0x10DC29AA,0x534081AA,0x0495CDAA,
- 0xEF6CE8AA,0xBD34DAAA,0x247C1BAA,0x0C8E5DAA,
- 0x635B03AA,0xCB7ED3AA,0x65ADEBAA,0x5C1ACCAA,
- 0xF2F853AA,0x11F891AA,0x7B39AAAA,0x53EB10AA,
- 0x54137DAA,0x275222AA,0xF09F5BAA,0x3D0A4FAA,
- 0x22F767AA,0xD63034AA,0x9A6980AA,0xDFB935AA,
- 0x3793FAAA,0x90239DAA,0xE9AB2FAA,0xAF2FF3AA };
- //------------------------------------------------------------------------------
- main()
- {
- print ( "\n----------------------------------" ) ;
- print ( " Carregando ..." ) ;
- print ( " Carregando ......" ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( "\n|||||" ) ;
- print ( "\n||||||||||" ) ;
- print ( "\n|||||||||||||||" ) ;
- print ( "\n||||||||||||||||||||" ) ;
- print ( "\n|||||||||||||||||||||||||" ) ;
- print ( "\n||||||||||||||||||||||||||||||" ) ;
- print ( "\n|||||||||||||||||||||||||||||||||||" ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( " " ) ;
- print ( "Carregado Com Exito 100% !" ) ;
- print ( "----------------------------------\n" ) ;
- }
- //------------------------------------------------------------------------------
- public OnGameModeInit()
- {
- X1Q=0;
- //Gang Zone LS
- grovezone = GangZoneCreate ( 2220.3711,-1937.0173,2737.8306,-1372.4310 ) ;
- ballaszone = GangZoneCreate ( 1867.1725,-1365.6667,2715.0942,-996.6191 ) ;
- vagoszone = GangZoneCreate ( 1812.8558,-1944.3761,2194.5898,-1298.6549 ) ;
- aztecaszone = GangZoneCreate ( 1757.1777,-2172.8696,2665.1956,-1959.5331 ) ;
- //3DText
- Grovelabel = CreateDynamic3DTextLabel ( "Grove kills :\n 0", GROVECOLOR , 2517.0881,-1666.7532,13.0520,50 ) ;
- Vagoslabel = CreateDynamic3DTextLabel ( "Vagos kills :\n 0", VAGOSCOLOR , 2517.0881,-1666.7532,14.0520,50 ) ;
- Ballaslabel = CreateDynamic3DTextLabel ( "Ballas kills :\n 0", BALLASCOLOR , 2517.0881,-1666.7532,15.0520,50 ) ;
- Aztecslabel = CreateDynamic3DTextLabel ( "Aztecs kills :\n 0", AZTECSCOLOR , 2517.0881,-1666.7532,16.0520,50 ) ;
- //Pickups
- Vagoskatana = CreateDynamicPickup ( 339,3,331.3098,1129.0006,1083.8828,-1 ) ;
- VagosVida = CreateDynamicPickup ( 1240,3,326.7141,1119.1772,1083.8828,-1 ) ;
- GroveGranadas = CreateDynamicPickup ( 342,3,2493.1768,-1710.1627,1014.7422,-1 ) ;
- GroveVida = CreateDynamicPickup ( 1240,3,2492.5857,-1701.4929,1018.3438,-1 ) ;
- BallasMolotov = CreateDynamicPickup ( 344,3,2251.4812,-1157.7870,1029.7969,-1 ) ;
- BallasVida = CreateDynamicPickup ( 1240,3,2201.4048,-1151.7777,29.8044,-1 ) ;
- //Skins ;)
- AddPlayerClass (149 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (86 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (5 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (6 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (273 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (289 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (208 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (119 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (165 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (240 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (163 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (164 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (29 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (3 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (190 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (193 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (192 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (195 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- AddPlayerClass (190 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
- //Config -soqn
- SetGameModeText ( "•DM•4Fun•TDM•" ) ;
- SendRconCommand ( "hostname ••• Ultimate Team Death Match © » v"versao" •••" ) ;
- SendRconCommand ( "weburl www.google.com" ) ;//ÇRÇRÇRÇR
- SendRconCommand ( "rcon_password eserioessaporra?" ) ;//ÇRÇRÇRÇRÇRÇRÇR
- EnableStuntBonusForAll ( 1 ) ;
- UsePlayerPedAnims ( ) ;
- //3DText
- CreateDynamic3DTextLabel ( " Admin \n {FFFFFF}» [Gv]{F81414}RaideN{FFFFFF}[Ac] « " , 0xFFFF00FF , 1070.4620, -1133.6030 ,23.8281 , 20.0 , 0 , 0 ) ;//Área Nobre Los Santos Na Missao q Sequestra o Will Smith
- CreateDynamic3DTextLabel ( " Admin \n {FFFFFF}» [Gv]{F81414}2P4c{FFFFFF}[Ac] « " , 0xFFFF00FF , 1066.1373, -1133.6641 ,23.8281 , 20.0 , 0 , 0 ) ;//Área Nobre Los Santos Na Missao q Sequestra o Will Smith
- //Text Básica '-'
- Textdraw1 = TextDrawCreate ( 200.000000 , 420.000000 ,"www.betsa.com.net " ) ;
- TextDrawTextSize ( Textdraw1 , 0.620000 , 1.900000 ) ;
- TextDrawAlignment ( Textdraw1 , 0 ) ;
- TextDrawBackgroundColor ( Textdraw1 , 0x33AA33AA ) ;
- TextDrawFont ( Textdraw1 , 1 ) ;
- TextDrawLetterSize ( Textdraw1 , 0.899999 , 2.699999 ) ;
- TextDrawColor ( Textdraw1 , 255 ) ;
- TextDrawSetOutline ( Textdraw1 , 1 ) ;
- TextDrawSetProportional ( Textdraw1 , 1 ) ;
- //Tempo no Jogo
- SetWeather ( 11 ) ;
- //MSG
- SetTimer("RandomMSG",10000,1);
- //MAXIP
- printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnVehicleMod(playerid,vehicleid,componentid)
- {
- new model = GetVehicleModel(vehicleid);
- switch(componentid)
- {
- case 1000:
- {
- switch(model)
- {
- case 589,492,516,404,547,489,505,405,421,9917,91275,91754,92755,1915711,912346,8124613,715185,11111,0,2: return 1;
- }
- }
- case 1001:
- {
- switch(model)
- {
- case 496,401,518,527,415,585,546,410,603,426,436,405,580,439,550,549,420,540,529: return 1;
- }
- }
- case 1002:
- {
- switch(model)
- {
- case 496,546,517,551,418,516,404,489,505: return 1;
- }
- }
- case 1003:
- {
- switch(model)
- {
- case 496,401,518,415,585,517,410,551,426,436,547,439,550,549,420,491,529: return 1;
- }
- }
- case 1004:
- {
- switch(model)
- {
- case 401,589,492,546,516,600,426,489,505,550,420,540,478: return 1;
- }
- }
- case 1005:
- {
- switch(model)
- {
- case 401,518,589,492,551,600,426,489,505,550,420,478: return 1;
- }
- }
- case 1006:
- {
- switch(model)
- {
- case 496,401,518,589,585,492,546,551,418,603,600,426,436,489,505,580,550,540,529,477: return 1;
- }
- }
- case 1007,1017:
- {
- switch(model)
- {
- case 496,422,401,518,527,415,589,585,546,517,410,516,404,603,600,436,580,439,549,540,491,529,477: return 1;
- }
- }
- case 1011:
- {
- switch(model)
- {
- case 496,549,529: return 1;
- }
- }
- case 1012:
- {
- switch(model)
- {
- case 549,478,529: return 1;
- }
- }
- case 1013:
- {
- switch(model)
- {
- case 422,401,518,589,585,400,410,500,404,600,436,489,505,478,439: return 1;
- }
- }
- case 1014:
- {
- switch(model)
- {
- case 527,542,405,491,421: return 1;
- }
- }
- case 1015:
- {
- switch(model)
- {
- case 527,542,516: return 1;
- }
- }
- case 1016:
- {
- switch(model)
- {
- case 589,492,517,551,418,516,404,547,489,505,421: return 1;
- }
- }
- case 1018:
- {
- switch(model)
- {
- case 518,527,415,542,589,585,546,400,517,551,516,603,600,547,489,505,405,580,550,549,540,491,421,529,477: return 1;
- }
- }
- case 1019:
- {
- switch(model)
- {
- case 496,422,401,415,542,585,546,400,517,410,551,500,516,404,603,426,436,547,489,505,405,550,549,420,540,491,421,529,477: return 1;
- }
- }
- case 1020:
- {
- switch(model)
- {
- case 496,422,401,518,527,542,589,585,400,517,410,551,500,418,516,404,603,600,436,547,489,505,405,580,550,549,540,491,478,421,529,477: return 1;
- }
- }
- case 1021:
- {
- switch(model)
- {
- case 422,527,542,400,410,551,500,418,516,404,426,436,547,405,420,491,478,421,477: return 1;
- }
- }
- case 1022:
- {
- switch(model)
- {
- case 600,436,478: return 1;
- }
- }
- case 1023:
- {
- switch(model)
- {
- case 496,518,415,585,546,517,410,551,603,405,580,439,550,549,540,491,421,529: return 1;
- }
- }
- case 1024:
- {
- switch(model)
- {
- case 589,546,400,410,500,603,489,505,540,478: return 1;
- }
- }
- case 1008..1010, 1025, 1073..1087, 1096..1098:
- {
- if(IsTransfenderVehicle(model) || IsLocolowVehicle(model) || IsWAAVehicle(model)) return 1;
- }
- case 1190..1193, 1134..1137:
- {
- if(model == 576) return 1;
- }
- case 1186..1189, 1129..1133, 1102:
- {
- if(model == 567) return 1;
- }
- case 1181..1184, 1128, 1107..1108, 1103..1105:
- {
- if(model == 536) return 1;
- }
- case 1185, 1178..1180, 1122..1127, 1106, 1100..1101:
- {
- if(model == 534) return 1;
- }
- case 1174..1177, 1099, 1042..1044:
- {
- if(model == 575) return 1;
- }
- case 1173, 1158..1162, 1065..1072:
- {
- if(model == 559) return 1;
- }
- case 1171..1172, 1146..1149, 1034..1041:
- {
- if(model == 562) return 1;
- }
- case 1169..1170, 1138..1141, 1026..1033:
- {
- if(model == 560) return 1;
- }
- case 1163..1168, 1088..1095:
- {
- if(model == 558) return 1;
- }
- case 1154..1157, 1055..1064:
- {
- if(model == 561) return 1;
- }
- case 1150..1153, 1045..1054:
- {
- if(model == 565) return 1;
- }
- case 1109..1121:
- {
- if(model == 535) return 1;
- }
- case 1142..1145:
- {
- switch(model)
- {
- case 401,518,542,589,585,546,517,603,439,550,549,540,491: return 1;
- }
- }
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- forward CrasharPlayer(playerid,Metodo);
- public CrasharPlayer(playerid,Metodo) {
- if( Metodo == 1 ) {
- for ( new i=0;i<=1000;i++ ) CreatePlayerObject ( playerid , 4108,0,0,0,0,0,0 ) ;
- return 1;
- }
- if ( Metodo == 2 ) {
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- CreatePlayerObject ( playerid , 310 , X , Y , Z-5 , 0 , 0 , 0 ) ;
- return 1;
- }
- if ( Metodo == 3 ) {
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- CreatePlayerObject ( playerid , 300 , X , Y , Z-5 , 0 , 0 , 0 ) ;
- return 1;
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- public OnPlayerUpdate(playerid)
- {
- drunknew[playerid] = GetPlayerDrunkLevel(playerid);
- if (drunknew[playerid] < 100) {
- SetPlayerDrunkLevel(playerid, 2000);
- } else {
- if (pDrunkLevelLast[playerid] != drunknew[playerid])
- {
- new wfps = pDrunkLevelLast[playerid] - drunknew[playerid];
- if ((wfps > 0) && (wfps < 200))
- pFPS[playerid] = wfps;
- pDrunkLevelLast[playerid] = drunknew[playerid];
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerRequestClass(playerid, classid) {
- SetPlayerFacingAngle ( playerid , 151.7758 ) ;
- SetPlayerCameraPos ( playerid , 2237.3972, -1646.6178, 16.3376 ) ;
- SetPlayerCameraLookAt ( playerid , 2239.9063, -1641.9432, 15.5267 ) ;
- GameTextForPlayer ( playerid , "~g~~h~Precione Shift" , 500 , 3 ) ;
- ApplyAnimation ( playerid , "DANCING" , "dance_loop" , 4.1 , 1 , 1 , 1 , 0 , 0 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- forward loadaccount_user(playerid, name[], value[]);
- public loadaccount_user(playerid, name[], value[])
- {
- INI_String("Password", PInfo [ playerid ] [ Pass ] , 129 ) ;
- INI_Int("AdminLevel", PInfo [ playerid ] [ Adminlevel ] ) ;
- INI_Int("VIPLevel", PInfo [ playerid ] [ VIPlevel ] ) ;
- INI_Int("Money", PInfo [ playerid ] [ Money ] ) ;
- INI_Int("Scores", PInfo [ playerid ] [ Scores ] ) ;
- INI_Int("Kills", PInfo [ playerid ] [ Kills ] ) ;
- INI_Int("Deaths", PInfo [ playerid ] [ Deaths ] ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerConnect(playerid) {
- PInfo [ playerid ] [ Avisos ] = 0;
- SetTimer ( "InfiniteNitro" , 10200 , 1 ) ;
- ArenaTipo [ playerid ] = 0 ;
- ProcessarBOT ( playerid ) ;
- BotTolerance = 0 ;
- SetPlayerColor ( playerid , PlayerColors [ playerid ] ) ;
- if ( IsPlayerNPC ( playerid ) ) BanEx ( playerid , "NPC" ) ;
- KillTimer ( TeleLockTimer [ playerid ] ) ;
- NoEvento [ playerid ] = false ;
- GameTextForPlayer(playerid,"~g~ESPERA MALANDRO ",1000,4);
- GetPlayerName ( playerid , pname , sizeof ( pname ) ) ;
- if ( fexist ( Path ( playerid ) ) )
- {
- INI_ParseFile ( Path ( playerid ) ,"loadaccount_%s", .bExtra = true, .extra = playerid ) ;
- ShowPlayerDialog ( playerid , login , DIALOG_STYLE_INPUT , "{00FF00}Login","Bem-Vindo De Novo!.\n Sua Conta Esta Registrada!.\nInsira a Senha Para Logar-se","Login","Sair" ) ;
- } else {
- ShowPlayerDialog ( playerid , registro , DIALOG_STYLE_INPUT , "{F81414}Registro","{00FF00}Bem Vindo!!\n Sua Conta nao esta registrada em nosso bando de dados! .\nColoque uma Senha e Registre-se!.","Registrar","Sair" ) ;
- return 1;
- }
- SendDeathMessage ( INVALID_PLAYER_ID , playerid , 200 ) ;
- GetPlayerName ( playerid , pname , sizeof ( pname ) ) ;
- format ( diogo , sizeof ( diogo ) , "{66CC66}[ %s ]{00FFFF}( %d ){6633CC} Entrou {FFFFFF}No Servidor!" , pname , playerid ) ;
- SendClientMessageToAll ( -1 , diogo ) ;
- //Gzs
- GangZoneShowForPlayer ( playerid , grovezone , 0x00C714AA ) ;
- GangZoneShowForPlayer ( playerid , ballaszone , 0xB400FFAA ) ;
- GangZoneShowForPlayer ( playerid , vagoszone , 0xF5FF00AA ) ;
- GangZoneShowForPlayer ( playerid , aztecaszone , 0x00A5FFAA ) ;
- //InDm
- EstaEmUmaArena [ playerid ] = false ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- //Map Icons
- SetPlayerMapIcon ( playerid ,49,822.6,-1590.3,13.5,7,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,50,-2570.1,245.4,10.3,7,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,51,2726.6,-2026.4,17.5,7,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,52,2080.3,2119.0,10.8,7,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,53,675.7,-496.6,16.8,7,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,54,-1805.7,943.2,24.8,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,55,2750.9,2470.9,11.0,29,0, MAPICON_LOCAL ) ;//LS AREARURAL
- SetPlayerMapIcon ( playerid ,56,2351.8,2529.0,10.8,29,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,57,2635.5,1847.4,11.0,29,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,58,2083.4,2221.0,11.0,29,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,59,-1719.1,1359.4,8.6,29,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,60,2330.2,75.2,31.0,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,61,203.2,-200.4,6.5,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,62,812.9,-1616.1,13.6,10,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,63,1199.1,-924.0,43.3,10,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,64,2362.2,2069.9,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,65,2469.5,2033.8,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,66,2172.9,2795.7,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,67,1875.3,2072.0,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,68,1161.5,2072.0,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,69,-2356.0,1009.0,49.0,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,70,-1913.3,826.2,36.9,10,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,71,-2335.6,-165.6,39.5,10,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,72,2397.8,-1895.6,13.7,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,73,2421.6,-1509.6,24.1,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,74,-2671.6,257.4,4.6,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,75,2392.4,2046.5,10.8,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,76,2844.5,2401.1,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,77,2635.5,1674.3,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,78,2105.7,2228.7,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,79,-2154.0,-2461.2,30.8,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,80,-1816.2,620.8,37.5,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,81,-1216.0,1831.4,45.3,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,82,172.73,1176.76,13.7,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,83,932.0,-1353.0,14.0,14,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,84,1971.7,-2036.6,13.5,39,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,85,2071.6,-1779.9,13.5,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,86,2094.6,2119.0,10.8,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,87,-2490.5,-40.1,39.3,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,88,1372.9,-1278.8,12.5,6,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,89,2400.5,-1978.4,13.5,6,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,90,-2626.6,209.4,4.9,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,91,2535.9,2083.5,10.8,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,92,2156.5,943.2,10.8,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,93,779.7,1874.3,4.9,6,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,94,-2092.7,-2463.8,30.6,6,0, MAPICON_LOCAL ) ;//LS
- SetPlayerMapIcon ( playerid ,95,240.0,-178.2,2.0,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL
- SetPlayerMapIcon ( playerid ,96,-1509.4,2611.8,58.5,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,97,-315.67,829.87,13.43,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
- SetPlayerMapIcon ( playerid ,98,2332.9,63.6,31.0,6,0, MAPICON_LOCAL ) ;//LS AREA NOBRE
- //MAXIP
- new connecting_ip [ 32+1 ] ;
- GetPlayerIp ( playerid , connecting_ip , 32 ) ;
- new num_players_on_ip = GetNumberOfPlayersOnThisIP ( connecting_ip ) ;
- if ( num_players_on_ip > MAX_CONNECTIONS_FROM_IP ) {
- printf ( "MAXIPs: Connecting player(%d) exceeded %d IP connections from %s." , playerid , MAX_CONNECTIONS_FROM_IP , connecting_ip ) ;
- Ban ( playerid ) ;
- return 1;
- }
- //Carros Sem Ser Das Gangs
- //Skate Park
- AddStaticVehicle(481,1909.9021,-1415.0138,13.0811,4.4923,0,0); //
- AddStaticVehicle(481,1911.4156,-1414.8970,13.0996,4.4920,0,0); //
- AddStaticVehicle(481,1912.8657,-1414.7828,13.1143,4.5040,0,0); //
- AddStaticVehicle(481,1914.2861,-1414.6720,13.1257,4.5134,0,0); //
- AddStaticVehicle(481,1916.4268,-1414.5029,13.1257,4.5135,0,0); //
- AddStaticVehicle(481,1919.1868,-1414.2853,13.1258,4.5134,0,0); //
- AddStaticVehicle(481,1920.7882,-1414.1589,13.1258,4.5136,0,0); //
- AddStaticVehicle(481,1922.8983,-1413.9923,13.1258,4.5134,0,0); //
- AddStaticVehicle(481,1924.2908,-1413.8824,13.1258,4.5135,0,0); //
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerDisconnect(playerid, reason) {
- ArenaTipo [ playerid ] = 0 ;
- if ( PInfo [ playerid ] [ Inx1 ] == 1) { X1Q-- ; }
- KillTimer ( TeleLockTimer [ playerid ] ) ;
- DestroyObject ( objco [ playerid ] ) ;
- NoEvento [ playerid ] = false ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- switch ( reason )
- {
- case 0: SendFMessageToAll ( 0x00C0FFFF , "[ %s ]Saiu Do Servidor. (Conexão).", GetPName ( playerid ) ) ;
- case 1: SendFMessageToAll ( 0x00C0FFFF , "[ %s ]Saiu Do Servidor. (Por que Quis)", GetPName ( playerid ) ) ;
- case 2: SendFMessageToAll ( 0x00C0FFFF , "[ %s ]Saiu Do Servidor. (Kickado / Bannido)", GetPName ( playerid ) ) ;
- }
- if ( fexist ( Path ( playerid ) ) )
- {
- new INI:file = INI_Open ( Path ( playerid ) ) ;
- INI_SetTag ( file ,"Player's Data" ) ;
- INI_WriteInt ( file ,"AdminLevel", PInfo [ playerid ] [ Adminlevel ] ) ;
- INI_WriteInt ( file ,"VIPLevel", PInfo [ playerid ] [ VIPlevel ] ) ;
- INI_WriteInt ( file ,"Money", GetPlayerMoney ( playerid ) ) ;
- INI_WriteInt ( file ,"Scores", GetPlayerScore ( playerid ) ) ;
- INI_WriteInt ( file ,"Kills", PInfo [ playerid ] [ Kills ] ) ;
- INI_WriteInt ( file ,"Deaths", PInfo [ playerid ] [ Deaths ] ) ;
- INI_Close ( file ) ;
- return 1;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- forward Contar(Contagem);
- public Contar(Contagem)
- {
- format ( diogo , 3 , "%d" , Contagem ) ;
- if ( Contagem > 0 ) {
- GameTextForAll ( diogo , 700 , 5 ) ;
- SetTimerEx ( "Contar" , 1000 , false , "i" , Contagem-1 ) ;
- }
- else GameTextForAll ( "~r~Go Go Go!" , 1000 , 5 ) ;
- }
- //------------------------------------------------------------------------------
- public OnPlayerSpawn(playerid)
- {
- ArenaTipo [ playerid ] = 0 ;
- EstaEmUmaArena [ playerid ] = false ;
- NoEvento [ playerid ] = false ;
- new rand = random ( sizeof ( gRandomSpawns_LosSantos ) ) ;//criando a random para o spawn
- SetPlayerPos ( playerid , gRandomSpawns_LosSantos [ rand ] [ 0 ] , gRandomSpawns_LosSantos [ rand ] [ 1 ] , gRandomSpawns_LosSantos [ rand ] [2 ] ) ; //setando a posições adequadas!
- SetPlayerHealth ( playerid , 75 ) ;
- SetPlayerInterior ( playerid , 0 ) ;
- SetPlayerVirtualWorld ( playerid , 0 ) ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- TextDrawShowForPlayer ( playerid , Text:Textdraw1 ) ;
- if ( PInfo [ playerid ] [ InDM ] == 12 )
- OnDialogResponse ( playerid , GangWar , 1 , 0 , "" ) ;
- else if ( PInfo [ playerid ] [ InDM ] == 13 )
- OnDialogResponse ( playerid , GangWar , 1 , 1 , "" ) ;
- else if ( PInfo [ playerid ] [ InDM ] == 14 )
- OnDialogResponse ( playerid , GangWar , 1 , 2 , "" ) ;
- else if ( PInfo [ playerid ] [ InDM ] == 15 )
- OnDialogResponse ( playerid , GangWar , 1 , 3 , "" ) ;
- new
- Hour
- ;
- gettime ( Hour ) ;
- switch ( Hour ) {
- case 0..5: {
- format ( diogo , sizeof ( diogo ) , "~b~Boa Madruga" ) ;
- GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
- }
- case 6..11: {
- format ( diogo , sizeof ( diogo ) , "~b~Bom Dia " ) ;
- GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
- }
- case 12..18: {
- format ( diogo , sizeof ( diogo ) , "~b~Boa Tarde " ) ;
- GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
- }
- case 19..23: {
- format ( diogo , sizeof ( diogo ) , "~b~Boa Noite" ) ;
- GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
- }
- }
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_PISTOL , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_PISTOL_SILENCED , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_DESERT_EAGLE , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_SHOTGUN , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_SAWNOFF_SHOTGUN , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_SPAS12_SHOTGUN , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_MICRO_UZI , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_MP5 , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_AK47 , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_M4 , 9999 ) ;
- SetPlayerSkillLevel ( playerid, WEAPONSKILL_SNIPERRIFLE , 9999 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- new
- level[25],
- tenso[60],
- strc[400],
- getfps[25],
- getping[25]
- ;
- if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 5 ) { level = "Dono Do Servidor" ; }
- else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 4 ) { level = "Sub Dono Servidor" ; }
- else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 3 ) { level ="Administrador Experiente" ; }
- else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 2 ) { level ="Administrador Regular" ; }
- else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 1 ) { level ="Administrador" ; }
- else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 0 ) { level ="Player Normal" ; }
- if ( pFPS [ clickedplayerid ] <= 10 ) { getfps = "{FF0000}Péssimo" ; }
- else if ( pFPS [clickedplayerid ] >= 10 && pFPS [ clickedplayerid ] <= 20 ) { getfps= "{FF8000}Ruim" ; }
- else if ( pFPS [clickedplayerid ] >= 20 && pFPS [ clickedplayerid ] <= 30 ) { getfps= "{FFFF00}Normal" ; }
- else if ( pFPS [clickedplayerid ] >= 30 && pFPS [ clickedplayerid ] <= 40 ) { getfps= "{00FF00}Bom" ; }
- else if ( pFPS [clickedplayerid ] >= 40) { getfps = "{FF0080}Excelente" ; }
- if ( GetPlayerPing ( clickedplayerid ) < 50 ) { getping = "{FF0080}Excelente" ; }
- else if ( GetPlayerPing ( clickedplayerid ) >= 50 && GetPlayerPing ( clickedplayerid ) <= 100 ) { getping ="{00FF00}Bom" ; }
- else if ( GetPlayerPing ( clickedplayerid ) >= 100 && GetPlayerPing ( clickedplayerid ) <= 300 ) { getping ="{FFFF00}Normal" ; }
- else if ( GetPlayerPing ( clickedplayerid ) >= 300 && GetPlayerPing ( clickedplayerid ) <= 450 ) { getping ="{FF8000}Ruim" ; }
- else if ( GetPlayerPing ( clickedplayerid ) >= 450) { getping = "{FF0000}Péssimo" ; }
- new
- Float:mortesr
- ;
- if ( PInfo [ clickedplayerid ] [ Deaths ] == 0 )
- {
- mortesr = 1;
- }
- else
- {
- mortesr = PInfo [ clickedplayerid ] [ Deaths ] ; }
- new
- Float:Ratio = GetPlayerScore ( clickedplayerid )/mortesr
- ;
- new
- strratio [ 25 ]
- ;
- if ( Ratio == 0 ) strratio = "{EAFF00}Sossegado";
- if ( Ratio > 0 && Ratio <= 0.3 ) strratio = "{FF0000}Fracassado" ;
- if ( Ratio > 0.3 && Ratio <= 0.5 ) strratio = "{FF3C00}Péssimo" ;
- if ( Ratio > 0.5 && Ratio <= 0.7 ) strratio = "{FF8800}Muito ruim" ;
- if ( Ratio > 0.7 && Ratio <= 0.9 ) strratio = "{FFBF00}Ruim" ;
- if ( Ratio > 0.9 && Ratio < 1.0 ) strratio = "{FFD900}Fraco" ;
- if ( Ratio == 1.0 ) strratio = "{EAFF00}Médio" ;
- if ( Ratio > 1.0 && Ratio <= 2 ) strratio = "{BBFF00}Quase bom" ;
- if ( Ratio > 2 && Ratio <= 4 ) strratio = "{8CFF00}Bom" ;
- if ( Ratio > 4 && Ratio <= 6 ) strratio = "{37FF00}Muito bom" ;
- if ( Ratio > 6 && Ratio <= 8 ) strratio = "{00FF00}Excelente" ;
- if ( Ratio > 8 && Ratio <= 10 ) strratio = "{00FF00}Viciado" ;
- if ( Ratio > 10 ) strratio = "{00FF00}Rei" ;
- format(tenso, sizeof(tenso),"{FFFF00}%s\n",level);strcat(strc,tenso);
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Score: {00FF00}[ %d ]\n" , GetPlayerScore ( clickedplayerid ) ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Kiils: {00FF00}[ %d ]\n" , PInfo [ clickedplayerid ] [ Kills ] ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Morreu: {00FF00}[ %d ]\n" , PInfo [ clickedplayerid ] [ Deaths ] ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Dinheiro: {00FF00}[ %d ]\n" , GetPlayerMoney ( clickedplayerid ) ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Ping: {00FF00}[ %d %s ]\n" , GetPlayerPing ( clickedplayerid ) , getping ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}FPS: {00FF00}[ %d %s ]\n" , pFPS [ clickedplayerid ] , getfps ) ; strcat ( strc , tenso ) ;
- format ( tenso , sizeof ( tenso ) , "{FFFF00}Ratio: {00FF00}[ %0.2f %s ]\n" , Ratio , strratio ) ; strcat ( strc , tenso ) ;
- ShowPlayerDialog ( playerid , 24 , DIALOG_STYLE_MSGBOX , Path ( clickedplayerid ) , strc ,"Fechar","" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- forward mute(p);
- public mute(p)
- return SendClientMessage ( p , 0x00C0FFFF , "Agora você pode falar!" ) ;
- //------------------------------------------------------------------------------
- public OnPlayerDeath(playerid, killerid, reason)
- {
- //Armas Bônus
- if ( reason == 42 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO EXTINTOR: $250 ]" ) ; GivePlayerMoney ( killerid , 250 ) ;
- if ( reason == 41 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SPRAY: $500 ]]]" ) ; GivePlayerMoney ( killerid , 500 ) ;
- if ( reason == 9 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA MOTOSSERRA: $750 ]" ) ; GivePlayerMoney ( killerid , 750 ) ;
- if ( reason == 24 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA DESERT EAGLE: $1000 ]" ) ; GivePlayerMoney ( killerid , 1000 ) ;
- if ( reason == 23 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA PISTOLA: $1250 ]" ) ; GivePlayerMoney ( killerid , 1250 ) ;
- if ( reason == 22 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NAS PISTOLAS: $1500 ]" ) ; GivePlayerMoney ( killerid , 1500 ) ;
- if ( reason == 34 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SNIPER RIFLE: $1750 ]" ) ; GivePlayerMoney ( killerid , 1750 ) ;
- if ( reason == 33 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO RIFLE: $2000 ]" ) ; GivePlayerMoney ( killerid , 2000 ) ;
- if ( reason == 1 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SOCO INGLES: $2250 ]" ) ; GivePlayerMoney ( killerid , 2200 ) ;
- if ( reason == 0 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA PORRADA: $2500 ]" ) ; GivePlayerMoney ( killerid , 2500 ) ;
- ArenaTipo [ playerid ] = 0 ;
- //Mortes
- if ( ArenaTipo [ playerid ] == 1 )
- {
- if ( ArenaTipo [ playerid ] == 1
- || ArenaTipo [ playerid ] == 2
- || ArenaTipo [ playerid ] == 3
- || ArenaTipo [ playerid ] == 4
- || ArenaTipo [ playerid ] == 5
- || ArenaTipo [ playerid ] == 6
- || ArenaTipo [ playerid ] == 7
- || ArenaTipo [ playerid ] == 8
- || ArenaTipo [ playerid ] == 9
- || ArenaTipo [ playerid ] == 10
- || ArenaTipo [ playerid ] == 11
- || ArenaTipo [ playerid ] == 12
- || ArenaTipo [ playerid ] == 13
- || ArenaTipo [ playerid ] == 14
- || ArenaTipo [ playerid ] == 15
- || ArenaTipo [ playerid ] == 16
- || ArenaTipo [ playerid ] == 17
- || ArenaTipo [ playerid ] == 18
- || ArenaTipo [ playerid ] == 19
- || ArenaTipo [ playerid ] == 20
- || ArenaTipo [ playerid ] == 21 )
- {
- format ( diogo , sizeof ( diogo ) , "{00FF00}[ARENA DM]: {FFFFFF}[ %s ]{00FF00}derrotou {FFFFFF}[ %s ]", pname , pname ) ;
- SetPlayerHealth ( killerid , 100 ) ;
- SetPlayerArmour ( killerid , 100 ) ;
- GameTextForPlayer ( playerid , "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!" , 3000 , 5 ) ;
- GameTextForPlayer ( killerid , " ~g~~n~~n~~n~~n~MUITO BOM!" , 3000, 5 ) ;
- if ( ArenaTipo [ playerid ] != 4 && ArenaTipo [ playerid ] != 5 )
- {
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- }
- }
- }
- //
- if ( PInfo [ playerid ] [ Inx1 ] == 1 && PInfo [ killerid ] [ Inx1 ] == 1 && X1Q == 2 )
- {
- new n1[25],n2[25];
- GetPlayerName ( killerid , n1 , sizeof ( n1 ) ) , GetPlayerName ( playerid , n2 , sizeof ( n2 ) ) ;
- format ( diogo , sizeof ( diogo ) , "[X1] {FFFFFF}[ %s ]{00FFFF} Aniquilou {FFFFFF}%s{00FFFF} na arena de x1 ( /x1 )" , n1 , n2 ) ;
- SendClientMessageToAll ( 0x00FFFFFF , diogo ) ;
- X1Q = 0;
- PInfo [ playerid ] [ Inx1 ] =0 ;
- PInfo [ killerid ] [ Inx1 ] =0 ;
- SetPlayerVirtualWorld ( killerid , 0 ) ;
- SetPlayerVirtualWorld ( playerid , 0 ) ;
- SpawnPlayer ( killerid ) ;
- SetPlayerArmour ( killerid , 0.00000 ) ;
- }
- EstaEmUmaArena [ playerid ] = false ;
- KillTimer ( TeleLockTimer [ playerid ] ) ;
- PInfo [ killerid ] [ Kills ] ++ ;
- PInfo [ playerid ] [ Deaths ] ++ ;
- ResetPlayerWeapons ( playerid ) ;
- GameTextForPlayer ( playerid , "~n~~n~~n~~n~~n~~n~~n~~n~~r~MORTO!" , 2000 , 3 ) ;
- new
- Float:X ,
- Float:Y ,
- Float:Z ,
- Float:X2 ,
- Float:Y2
- ;
- MatarPlayer ( playerid , X2 , Y2 , -4 ) ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- SetPlayerCameraPos ( playerid , X2 , Y2 , Z +3 ) ;
- SetPlayerCameraLookAt ( playerid , X , Y , Z ) ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- SetPlayerScore ( killerid , GetPlayerScore ( killerid ) +1 ) ;
- SendDeathMessage ( killerid , playerid , reason ) ;
- if ( PInfo [ killerid ] [ InDM ] > 0 ) {
- GivePlayerMoney ( killerid , 1000 ) ;
- if ( PInfo [ playerid ] [ InDM ] != 0 ) {
- if ( PInfo [ killerid ] [ InDM ] != PInfo [ playerid ] [ InDM ] ) {
- if ( PInfo [ killerid ] [ InDM ] == 12 ) {
- Grovekills++;
- format ( diogo , sizeof diogo , "Grove kills :\n %i" , Grovekills ) ;
- UpdateDynamic3DTextLabelText ( Grovelabel , GROVECOLOR , diogo ) ;
- }
- else if ( PInfo [ killerid ] [ InDM ] == 13 ) {
- Vagoskills++;
- format ( diogo , sizeof diogo , "Vagos kills :\n %i" , Vagoskills ) ;
- UpdateDynamic3DTextLabelText ( Vagoslabel , VAGOSCOLOR , diogo ) ;
- }
- else if ( PInfo [ killerid ] [ InDM ] == 14 ) {
- Ballaskills++;
- format ( diogo , sizeof diogo , "Ballas kills :\n %i" , Ballaskills ) ;
- UpdateDynamic3DTextLabelText ( Ballaslabel , BALLASCOLOR , diogo ) ;
- }
- else if ( PInfo [ killerid ] [ InDM ] == 15 ) {
- Aztecskills++;
- format ( diogo , sizeof diogo , "Aztecs kills :\n %i" , Aztecskills ) ;
- UpdateDynamic3DTextLabelText ( Aztecslabel , AZTECSCOLOR , diogo ) ;
- }
- }
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- forward API_Teleporte(playerid, Float:X,Float:Y,Float:Z,Float:angulo,nome[],EmObjeto,interior);
- public API_Teleporte(playerid, Float:X,Float:Y,Float:Z,Float:angulo,nome[],EmObjeto,interior)
- {
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage (playerid , 0x00C0FFFF , "Você está em Uma Arena Use /Sair") ;
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- format ( diogo , sizeof ( diogo ) , "{00FF00}%s {74118F}Foi Para {00FF00}[ %s ]", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- SetPlayerInterior ( playerid , interior ) ;
- if ( GetPlayerState ( playerid ) == PLAYER_STATE_DRIVER )
- {
- SetVehiclePos ( GetPlayerVehicleID ( playerid ) , X , Y , Z+10 ) ;
- SetVehicleZAngle ( GetPlayerVehicleID ( playerid ) , angulo ) ;
- }
- else
- {
- SetPlayerPos ( playerid , X , Y , Z ) ;
- SetCameraBehindPlayer ( playerid ) ;
- if ( EmObjeto == 1 )
- {
- Carregar ( playerid ) ;
- }
- SetPlayerFacingAngle ( playerid , angulo ) ;
- }
- if ( IsPlayerInAnyVehicle ( playerid ) && EmObjeto == 1 )
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "Se Objetos Estiverem Invisiveis :Saia Do Veiculo e Entre Novamente" ) ;
- }
- SetCameraBehindPlayer ( playerid ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- forward Carregar(playerid);
- public Carregar(playerid)
- {
- if ( LoaderFreezer == 0 )
- return 1;
- new
- loadtime
- ;
- if ( GetPlayerPing ( playerid ) < 2000 ) loadtime = 1000 + GetPlayerPing ( playerid ) ;
- else loadtime = 2000 ;
- TogglePlayerControllable ( playerid , 0 ) ;
- GameTextForPlayer ( playerid , "~y~ESPERE UM MOMENTO" , loadtime , 5 ) ;
- KillTimer ( TeleLockTimer [ playerid ] ) ;
- TeleLockTimer [ playerid ] = SetTimerEx ( "Destravar" , loadtime , 0 , "i" , playerid ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerText(playerid, text[]) {
- if ( l_temp [ playerid ] > gettime ( ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Você foi tomou mute e não pode falar no chat por alguns minutos!" ) , false ;
- if ( strlen ( text ) > 100 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Mensagem Muito Grande !" ) ;
- if ( text [ 0 ] == '!' && PInfo [ playerid ] [ InDM ] != 0 ) {
- foreach (Player, i ) {
- if ( PInfo [ playerid ] [ InDM ] == 12 ) {
- if ( PInfo [ i ] [ InDM ] == 12 ) {
- SendFMessage ( i ,0x00C31EFF ,"(Grove) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
- }
- }
- else if ( PInfo [ playerid ] [ InDM ] == 13 ) {
- if ( PInfo [ i ] [ InDM ] == 13 ) {
- SendFMessage ( i , 0xF5D400FF ,"(Vagos) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
- }
- }
- else if ( PInfo [ playerid ] [ InDM ] == 14 ) {
- if ( PInfo [ i ] [ InDM ] == 14 ) {
- SendFMessage ( i , 0xCF00EAFF ,"(Ballas) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
- }
- }
- else if ( PInfo [ playerid ] [ InDM ] == 15 ) {
- if ( PInfo [ i ] [ InDM ] == 15 ) {
- SendFMessage ( i , 0x0069FFFF ,"(Aztecas) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
- }
- }
- }
- return 0;
- }
- format ( gText , sizeof gText ,"%s(%i): "CWHITE"%s", GetPName ( playerid ) , playerid ,text ) ;
- SendClientMessageToAll ( GetPlayerColor ( playerid ) , gText ) ;
- gText [ 0 ] = EOS ;
- SetPlayerChatBubble ( playerid ,text , 0x00C0FFFF , 35.0 , 7000 ) ;
- //Ant Divulger
- if(strfind ( text , "189." , true ) != -1
- || strfind ( text , "201." , true ) != -1
- || strfind ( text , "200." , true ) != -1
- || strfind ( text , "69." , true ) != -1
- || strfind ( text , "187." , true ) != -1
- || strfind ( text , "64." , true ) != -1
- || strfind ( text , "120." , true ) != -1
- || strfind ( text , "165." , true ) != -1
- || strfind ( text , "85." , true ) != -1
- || strfind ( text , ":7771" , true ) != -1
- || strfind ( text , ":7770" , true ) != -1
- || strfind ( text , "7777" , true ) != -1
- || strfind ( text , ":7776" , true ) != -1
- || strfind ( text , ":7777" , true ) != -1
- || strfind ( text , ":7778" , true ) != -1
- || strfind ( text , ":7779" , true ) != -1
- || strfind ( text , "1." , true ) != -1
- || strfind ( text , "plagiou" , true ) != -1
- || strfind ( text , "blody" , true ) != -1
- || strfind ( text , "plagiaram" , true ) != -1
- || strfind ( text , ".forum" , true ) != -1
- || strfind ( text , "b.v" , true ) != -1
- || strfind ( text , "plagio" , true ) != -1
- || strfind ( text , "bv" , true ) != -1
- || strfind ( text , "www." , true ) != -1
- || strfind ( text , ".org" , true ) != -1
- || strfind ( text , "gnrls" , true ) != -1
- || strfind ( text , "bloody" , true ) != -1
- || strfind ( text , "http" , true ) != -1)
- {
- format ( diogo , sizeof ( diogo ) , " {FF0000}[ %s ]{00FF00}foi kickado por divulgação." , pname ) ;
- SendClientMessageToAll ( -1 , diogo ) ;
- Kick ( playerid ) ;
- return 0;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerStateChange(playerid, newstate, oldstate) {
- if ( newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER ) {
- format ( diogo , sizeof ( diogo ) , "~r~%s" , VehicleNames [ GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) -400 ] ) ;
- GameTextForPlayer ( playerid , diogo , 6000 , 1 ) ;
- }
- if ( newstate == PLAYER_STATE_PASSENGER ) {
- new weap = GetPlayerWeapon ( playerid ) ;
- if ( weap == 24 || weap == 34) {
- SetPlayerArmedWeapon ( playerid , 0 ) ;
- }
- }
- if ( GetPlayerState ( playerid ) == PLAYER_STATE_DRIVER )
- {
- new vehicleid = GetPlayerVehicleID ( playerid ) ;
- if ( CheckVehicle ( vehicleid ) )
- AddVehicleComponent ( vehicleid , 1010 ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- forward RandomMSG();
- public RandomMSG() {
- new random1 = random ( sizeof ( MSGS ) ) ;
- new random2 = random ( sizeof ( cores ) ) ;
- format ( diogo , sizeof ( diogo ) , "%s", MSGS [ random1 ] ) ;
- SendClientMessageToAll ( cores [ random2 ] , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- forward InfiniteNitro();
- public InfiniteNitro() {
- new vehicleid;
- for(new i; i < GetMaxPlayers(); i++) {
- if ( GetPlayerState ( i ) == PLAYER_STATE_DRIVER ) {
- vehicleid = GetPlayerVehicleID ( i ) ;
- if ( CheckVehicle ( vehicleid ) )
- AddVehicleComponent ( vehicleid , 1010 ) ;
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnRconLoginAttempt(ip[], password[], success) {
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if ( dialogid == GangWar ) {
- if ( response ) {
- if ( listitem == 0 ) {
- new skinsg[3] = {
- 105,106,107
- };
- SetPlayerPos ( playerid , 2511.7305,-1677.8981,13.5469 ) ;
- SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pela {2D8B00}Grove {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
- PInfo [ playerid ] [ InDM ] = 12 ;
- SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
- SetPlayerTeam ( playerid , 1 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 50.0 ) ;
- GivePlayerWeapon ( playerid , 30 , 500 ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- GivePlayerWeapon ( playerid , 28 , 750 ) ;
- SetPlayerColor ( playerid , 0x00C31EFF ) ;
- }
- else if ( listitem == 1 ) {
- new skinsg[3] = {
- 108,109,110
- };
- SetPlayerPos ( playerid , 2169.0574,-1683.1960,15.0859 ) ;
- SendFMessageToAll ( 0xFF1400FF , "[GANGWAR] {00D128}%s Foi Para a Guerra Pelos {EBFF00}Vagos {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
- PInfo [ playerid ] [ InDM ] = 13 ;
- SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
- SetPlayerTeam ( playerid , 2 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 50.0 ) ;
- GivePlayerWeapon ( playerid , 30 , 500 ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- GivePlayerWeapon ( playerid , 28 , 750 ) ;
- SetPlayerColor ( playerid , 0xF5D400FF ) ;
- }
- else if ( listitem == 2 ) {
- new skinsg[3] ={
- 102,103,104
- };
- SetPlayerPos ( playerid , 2211.4592,-1158.7871,25.7266 ) ;
- SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pelos {B400FF}Ballas {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
- PInfo [ playerid ] [ InDM ] = 14 ;
- SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
- SetPlayerTeam ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 50.0 ) ;
- GivePlayerWeapon ( playerid , 30 , 500 ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- GivePlayerWeapon ( playerid , 28 , 750 ) ;
- SetPlayerColor ( playerid , 0xCF00EAFF ) ;
- }
- else if ( listitem == 3 ) {
- new skinsg[3] = {
- 114,115,116
- };
- SetPlayerPos ( playerid , 1834.0247,-1995.9055,13.5469 ) ;
- SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pelos "CBLUE"Aztecas {00FFF0}(/gangwar)",GetPName ( playerid ) ) ;
- PInfo [ playerid ] [ InDM ] = 15 ;
- SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
- SetPlayerTeam ( playerid , 4 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 50.0 ) ;
- GivePlayerWeapon ( playerid , 30 , 500 ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- GivePlayerWeapon ( playerid , 28 , 750 ) ;
- SetPlayerColor ( playerid , 0x0069FFFF ) ;
- }
- }
- }
- if ( dialogid == registro ) {
- if ( !response ) return Kick ( playerid ) ;
- if ( response ) {
- if ( !strlen ( inputtext ) ) {
- ShowPlayerDialog ( playerid , registro , DIALOG_STYLE_INPUT ,"{F81414}Registro","{00FF00}Bem Vindo!!\n Sua Conta Nao Esta Registrada Em Nosso Bando De Dados! .\nColoque Uma Senha e Registre-se!","Registrar","Sair" ) ;
- return 1;
- }
- new hashpass[129];
- WP_Hash ( hashpass , sizeof ( hashpass ) , inputtext ) ;
- new INI:file = INI_Open ( Path ( playerid ) ) ;
- INI_SetTag ( file ,"Player's Data" ) ;
- INI_WriteString ( file ,"Password" , hashpass ) ;
- INI_WriteInt ( file ,"AdminLevel",0 ) ;
- INI_WriteInt ( file ,"VIPLevel",0 ) ;
- INI_WriteInt ( file ,"Money",0 ) ;
- INI_WriteInt ( file ,"Scores",0 ) ;
- INI_WriteInt ( file ,"Kills",0 ) ;
- INI_WriteInt ( file ,"Deaths",0 ) ;
- INI_Close ( file ) ;
- SendClientMessage(playerid,0x00C0FFFF,"Voce foi registrado com sucesso!");
- return 1;
- }
- }
- if ( dialogid == login ) {
- if ( !response ) return Kick ( playerid ) ;
- if ( response ) {
- new hashpass [ 129 ] ;
- WP_Hash ( hashpass , sizeof ( hashpass ) , inputtext ) ;
- if ( !strcmp ( hashpass , PInfo [ playerid ] [ Pass ] ) ) {
- INI_ParseFile ( Path ( playerid ) ,"loadaccount_%s",.bExtra = true, .extra = playerid ) ;
- SetPlayerScore ( playerid , PInfo [ playerid ] [ Scores ] ) ;
- GivePlayerMoney ( playerid , PInfo [ playerid ] [ Money ] ) ;
- SendClientMessage ( playerid,0x00C0FFFF,"Bem Vindo De Novo! Voce Logou Com Sucesso!");
- } else {
- ShowPlayerDialog(playerid,login,DIALOG_STYLE_INPUT,"{00FF00}Login","Bem Vindo De Novo!\n.Sua Conta Esta Registrada!. \nInsira o Login Para Logar-se.\nSenha Incorreta!","Login","Sair");
- return 1;
- }
- }
- }
- //Armas Menu
- if(dialogid == Dialog_Arma)
- {
- if(response)
- {
- if(listitem == 0) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+1, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\nCane", "Selecionar", "Cancelar");
- }
- if(listitem == 1) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+2, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "9mm\nSilenced 9mm\nDesert Eagle", "Selecionar", "Cancelar");
- }
- if(listitem == 2) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+3, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Uzi\nSMG\nTec9", "Selecionar", "Cancelar");
- }
- if(listitem == 3) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+4, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Country Rifle\nSniper Rifle", "Selecionar", "Cancelar");
- }
- if(listitem == 4) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+5, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "AK-47\nM4", "Selecionar", "Cancelar");
- }
- if(listitem == 5) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+6, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Selecionar", "Cancelar");
- }
- if(listitem == 6) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+7, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Granade\nTear Gas", "Selecionar", "Cancelar");
- }
- if(listitem == 7) //
- {
- ShowPlayerDialog(playerid, Dialog_Arma+8, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+1) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerMoney(playerid,-500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 2, 1);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 3, 1);
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 4, 1);
- }
- if(listitem == 4)
- {
- GivePlayerWeapon(playerid, 5, 1);
- }
- if(listitem == 5)
- {
- GivePlayerWeapon(playerid, 6, 1);
- }
- if(listitem == 6)
- {
- GivePlayerWeapon(playerid, 7, 1);
- }
- if(listitem == 7)
- {
- GivePlayerWeapon(playerid, 8, 1);
- }
- if(listitem == 8)
- {
- GivePlayerWeapon(playerid, 10, 1);
- }
- if(listitem == 9)
- {
- GivePlayerWeapon(playerid, 41, 500);
- }
- if(listitem == 10)
- {
- GivePlayerWeapon(playerid, 15, 1);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+2) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 22, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 23, 500);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 24, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+3) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 28, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 29, 500);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 32, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+4) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 33, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 34, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+5) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 30, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 31, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+6) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 25, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 26, 500);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 27, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+7) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 16, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 17, 500);
- }
- }
- return 1;
- }
- if(dialogid == Dialog_Arma+8) //
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 42, 500);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 39, 500);
- GivePlayerWeapon(playerid, 40, 1);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 46, 1);
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 44, 1);
- }
- if(listitem == 4)
- {
- GivePlayerWeapon(playerid, 14, 1);
- }
- }
- return 1;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if ( !success )
- {
- format ( diogo , 128 , "[ERRO]: O Comando {FF0000}[ %s ]{FF8C00}Não Existe." , cmdtext ) ;
- return SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- }
- return true;
- }
- //------------------------------------------------------------------------------
- public OnPlayerPickUpDynamicPickup(playerid, pickupid) {
- if ( pickupid == VagosVida ) {
- new Float:health;
- GetPlayerHealth ( playerid , health ) ;
- if ( health == 100 ) return 0;
- PlaySound ( playerid , 1138 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- return 1;
- }
- else if ( pickupid == GroveVida ) {
- new Float:health;
- GetPlayerHealth ( playerid , health ) ;
- if ( health == 100 ) return 0;
- PlaySound ( playerid , 1138 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- return 1;
- }
- else if ( pickupid == BallasVida ) {
- new Float:health;
- GetPlayerHealth ( playerid , health ) ;
- if ( health == 100 ) return 0;
- PlaySound ( playerid , 1138 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- return 1;
- }
- else if ( pickupid == Vagoskatana ) {
- GivePlayerWeapon ( playerid , 8 , 1 ) ;
- PlaySound ( playerid , 1150 ) ;
- return 1;
- }
- else if ( pickupid == GroveGranadas ) {
- GivePlayerWeapon ( playerid , 16 , 10 ) ;
- PlaySound ( playerid , 1150 ) ;
- return 1;
- }
- else if ( pickupid == BallasMolotov ) {
- GivePlayerWeapon ( playerid , 18 , 10 ) ;
- PlaySound ( playerid , 1150 ) ;
- return 1;
- }
- for ( new i = 0; i < MAX_PICKUPS; i++ ) {
- if ( pickupid == PickupID [ i ] ) {
- DestroyDynamicPickup ( PickupID [ i ] ) ;
- }
- }
- return 1;
- }
- //------------------------ Comandos Players ---------- Teleportes --------------
- CMD:fl(playerid,API_Teleporte []) return ( playerid , -771.7738,-2127.8652,25.4152,347.5520 , " A Floresta ( /Fl )" , 0 , 0 ) ;//Floresta Back On Beyond
- CMD:bl(playerid,API_Teleporte []) return ( playerid , 1829.1617,-1682.2830,13.5469,266.7216 , " A Balada ( /Bl )" , 0 , 0 ) ;//Balada Los Santos
- CMD:lps(playerid,API_Teleporte []) return ( playerid , -237.1826,2772.8008,62.2386,184.5670 , " Las Payasadas ( /Lps )" , 0 , 0 ) ;//LaS PayAsadas
- CMD:eq(playerid,API_Teleporte []) return ( playerid , -1410.1918,2640.2693,55.6875,92.6603 , " El Quebrados ( /Eq )" , 0 , 0 ) ;//El Quebrados
- CMD:lb(playerid,API_Teleporte []) return ( playerid , -771.2502,1597.7498,27.1172,181.6947 , " Las Barrancas ( /Lb )" , 0 , 0 ) ;//Las Barrancas
- CMD:fc(playerid,API_Teleporte []) return ( playerid , -368.8701,1128.0531,19.7820,270.1514 , " Fort Carson ( /Fc )" , 0 , 0 ) ;//ForT CarsoN
- CMD:ap(playerid,API_Teleporte []) return ( playerid , -2236.5901,-2309.8745,30.5704,231.6492 , " Angel Pine ( /Ap )" , 0 , 0 ) ;//AngeL Pine
- CMD:mansao(playerid,API_Teleporte []) return ( playerid , 1268.9714,-2037.8242,59.1531,87.8452 , " Mansao Ls ( /Mansao )" , 0 , 0 ) ;//Mansao Los Santos
- CMD:bb(playerid,API_Teleporte []) return ( playerid , 269.6278,17.6261,2.4277,96.6690 , " Blue Berry ( /Bb )" , 0 , 0 ) ;//Mansao Los Santos
- CMD:dlm(playerid,API_Teleporte []) return ( playerid , 701.0360,-462.5034,16.3359,180.9987 , " Dillimore ( /Dlm )" , 0 , 0 ) ;//Dillimore
- CMD:pc(playerid,API_Teleporte []) return ( playerid , 1986.0226,114.4512,29.5353,261.9359 , " Palomino Creek ( /Pc )" , 0 , 0 ) ;//Palomino Creek
- CMD:mgm(playerid,API_Teleporte []) return ( playerid , 1358.1156,476.5627,20.2109,153.5695 , " Mont Gomery ( /Mgm )" , 0 , 0 ) ;//Mont Gomery
- CMD:bs(playerid,API_Teleporte []) return ( playerid , -2311.2595,2379.3811,5.5932,56.6381 , " Bay Side ( /Bs )" , 0 , 0 ) ;//Bay Side
- CMD:egls(playerid,API_Teleporte []) return ( playerid , 2605.2822,-1475.1600,16.6964,176.8642 , " Esgoto Los Santos ( /EgLs )" , 0 , 0 ) ;//Esgoto Los Santos
- CMD:mls(playerid,API_Teleporte []) return ( playerid , 2223.0193,-1173.6896,25.7266,358.8891 , " Motel Los Santos ( /Mls )" , 0 , 0 ) ;//Motel Los Santos
- CMD:favela(playerid,API_Teleporte []) return ( playerid , 2218.3149,-1113.6479,25.7586,358.8424 , " Favela ( /Favela )" , 0 , 0 ) ;//Favela
- CMD:sk8(playerid,API_Teleporte []) return ( playerid , 1918.4010,-1409.1611,13.5703,102.8702 , " Pista De Skate ( /sk8 )" , 0 , 0 ) ;//Pista De Skate ( SK8 )
- CMD:jrz(playerid,API_Teleporte []) return ( playerid , -372.5666,2189.7903,42.0559,13.0280 , " Juarez ( /jrz )" , 0 , 0 ) ;//Juarez Abandonado Perto Hoover Dan
- CMD:nvp(playerid,API_Teleporte []) return ( playerid , 2001.5778,1566.4055,15.3672,181.6025 , " Navio Pirata ( /Nvp )" , 0 , 0 ) ;//Navio Pirata Las Venturas
- CMD:lv(playerid,API_Teleporte []) return ( playerid , 2033.5898,1007.9355,10.8203 , " Las Venturas ( /Lv )" , 0 , 0 ) ;//Las Venturas
- CMD:avenida(playerid,API_Teleporte []) return ( playerid , 2057.0847,840.1503,6.7337 , " Avenida ( /Avenida )" , 0 , 0 ) ;//Las Venturas Avenida
- CMD:aerosf(playerid,API_Teleporte []) return ( playerid , -1556.7877,-441.9134,6.0000 , " AeroSf ( /AeroSf )" , 0 , 0 ) ;//Aeroporto SF
- CMD:grove(playerid,API_Teleporte []) return ( playerid , 2500.9519,-1668.9618,13.3554 , " Grove Street ( /Grove )" , 0 , 0 ) ;//Grove Street
- CMD:drift(playerid,API_Teleporte []) return ( playerid , -302.9801,1517.7507,75.3594 , " Drift ( /Drift )" , 0 , 0 ) ;//Drift ( Deserto Perto Represa Hoover )
- CMD:deserto(playerid,API_Teleporte []) return ( playerid , -700.7104,2342.8298,127.4474 , " Deserto ( /Deserto )" , 0 , 0 ) ;//Deserto El Castilho Del Diablo ( Perto El Quebrados )
- CMD:ls(playerid,API_Teleporte []) return ( playerid , 1130.1051,-1450.3822,15.7969 , " Los Santos ( /Ls )" , 0 , 0 ) ;//Los Santos
- CMD:pls(playerid,API_Teleporte []) return ( playerid , 227.9339,-1815.5609,4.2493 , " Praia Los Santos ( /Pls )" , 0 , 0 ) ;//Praia Los Santos
- CMD:rally(playerid,API_Teleporte []) return ( playerid , -303.9771,-2250.1445,29.4735 , " Rally ( /Rally )" , 0 , 0 ) ;//Rally
- CMD:chilliad(playerid,API_Teleporte []) return ( playerid , -2321.0469,-1625.6339,483.7063 , " Chilliad ( /Chilliad )" , 0 , 0 ) ;//Mont Chilliad
- CMD:sf(playerid,API_Teleporte []) return ( playerid , -1994.1210,108.9522,27.5391 , " San Fierro ( /Sf )" , 0 , 0 ) ;//San Fierro
- CMD:rh(playerid,API_Teleporte []) return ( playerid , -950.8074,1921.5872,132.4391 , " Represa Hoover ( /Rh )" , 0 , 0 ) ;//Represa Hoover Dam
- CMD:area51(playerid,API_Teleporte []) return ( playerid , 215.3240,1907.3092,17.6406 , " Area 51 ( /Area51 )" , 0 , 0 ) ;//Area 69
- CMD:aerolv(playerid,API_Teleporte []) return ( playerid , 1634.3506,1560.3524,10.8112 , " AeroLv ( /AeroLv )" , 0 , 0 ) ;//Aeroporto Las Venturas
- CMD:fz(playerid,API_Teleporte []) return ( playerid , -1150.5137,-1115.0033,128.2725 , " Fazenda ( /Fz )" , 0 , 0 ) ;//Fazenda Interior San Fierro
- CMD:re(playerid,API_Teleporte []) return ( playerid , 277.6962,1349.1051,10.1260 , " Refinaria ( /Re )" , 0 , 0 ) ;//Refinaria Deserto Lv
- CMD:jump(playerid,API_Teleporte []) return ( playerid , -1810.5317,575.7595,234.8906 , " Jump ( /Jump )" , 0 , 0 ) ;//Jump Sf Predio Mais Alto
- CMD:aeroab(playerid,API_Teleporte []) return ( playerid , 426.0770,2501.6980,16.4844,90.7143 , " AeroAb ( /AeroAb )" , 0 , 0 ) ;//Aeroporto Abandonado
- CMD:aerols(playerid,API_Teleporte []) return ( playerid , 1918.0791,-2248.0149,13.1541 , " AeroLs ( /AeroLs )" , 0 , 0 ) ;//Aeroporto Abandonado
- //~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
- //------------------------------------------------------------------------------
- //Comandos Basicos '-'
- CMD:comandos(playerid,params[])
- {
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- SendClientMessage(playerid,-1,"{00FF00}| Comandos Do Servidor |");
- SendClientMessage(playerid,-1,"{00FF00}| /Settime /Reparar /Flip |");
- SendClientMessage(playerid,-1,"{00FF00}| /Trancar /Destrancar /Setweather |");
- SendClientMessage(playerid,-1,"{00FF00}| /Creditos /Eu /Estilodeluta |");
- SendClientMessage(playerid,-1,"{00FF00}| /Noite /Dia /Kill /Sair |");
- SendClientMessage(playerid,-1,"{00FF00}");
- SendClientMessage(playerid,-1,"{00FF00}| Use : /Comandos2 |");
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:comandos2(playerid,params[])
- {
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- SendClientMessage(playerid,-1,"{00FF00}| Comandos Do Servidor 2 |");
- SendClientMessage(playerid,-1,"{00FF00}| /Transferir /GangWar /Pm |");
- SendClientMessage(playerid,-1,"{00FF00}| /Skin /Pintar /Kit01 |");
- SendClientMessage(playerid,-1,"{00FF00}| /Kit02 /Kit03 /Armas |");
- SendClientMessage(playerid,-1,"{00FF00}");
- SendClientMessage(playerid,-1,"{00FF00}| Fim Dos Comandos |");
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ajuda(playerid,params[])
- {
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- SendClientMessage(playerid,-1,"{00FF00}| Ajuda Do Servidor |");
- SendClientMessage(playerid,-1,"{00FF00}| A Cada Player Que Você Mata Ganha + 1 De Score |");
- SendClientMessage(playerid,-1,"{00FF00}| Use /Report Para Reportar Um Hack |");
- SendClientMessage(playerid,-1,"{00FF00}| /Comandos/2 Para Ver Os Comandos Do Servidor |");
- SendClientMessage(playerid,-1,"{00FF00}");
- SendClientMessage(playerid,-1,"{00FF00}| /Teles Para Ver Os Teleportes |");
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:teles(playerid,params[])
- {
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- SendClientMessage(playerid,-1,"{00FF00}| Teles Do Servidor |");
- SendClientMessage(playerid,-1,"{00FF00}| /Fl /Bl /Lps /Eq /Lb /Fc /Ap /Mansao /Jump |");
- SendClientMessage(playerid,-1,"{00FF00}| /Bb /Dlm /Pc /Mgm /Bs /EgLs /Mls /Fz /AeroAb |");
- SendClientMessage(playerid,-1,"{00FF00}| /Favela /Sk8 /Jrz /Nvp /Lv /Avenida /Re /AeroLs |");
- SendClientMessage(playerid,-1,"{00FF00}| /AeroSf /Grove /Drift /Deserto /Ls /AeroLv |");
- SendClientMessage(playerid,-1,"{00FF00}| /Pls /Rally /Chilliad /Sf /Rh /Area51 |");
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:settime(playerid,params[]) {
- new
- time,
- minutes
- ;
- if ( sscanf ( params ,"iI(0)" , time , minutes ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/settime (horas)" ) ;
- if ( time < 0 && time > 24)
- return SendClientMessage ( playerid , 0x00C0FFFF , "De 0 a 24 Horas !" ) ;
- SetPlayerTime ( playerid , time , minutes ) ;
- TogglePlayerClock ( playerid , 0 ) ;
- if ( time >= 6 && time < 11 ) {
- PlaySound ( playerid , 1057 ) ;
- }
- else if ( time >= 12 && time < 17 ) {
- PlaySound ( playerid , 1057 ) ;
- }
- else if ( time > 17 && time < 21 ) {
- PlaySound ( playerid , 1057 ) ;
- }
- else if ( time > 19 && time <= 24 ) {
- PlaySound ( playerid , 1057 ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:reparar(playerid,params[])
- {
- if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
- return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
- new vID = GetPlayerVehicleID ( playerid ) ;
- SetVehicleHealth ( vID , 1000.0 ) ;
- RepairVehicle ( vID ) ;
- PlaySound ( playerid , 1133 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:flip(playerid,params[])
- {
- if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
- return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
- new Float:PX, Float:PY, Float:PZ, Float:PA, vID = GetPlayerVehicleID ( playerid ) ;
- GetPlayerPos ( playerid , PX , PY , PZ ) ;
- GetVehicleZAngle ( vID , PA ) ;
- SetVehiclePos ( vID , PX , PY , PZ+1 ) ;
- SetVehicleZAngle ( vID , PA ) ;
- PlaySound ( playerid , 1085 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:trancar(playerid,params[]) {
- if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER)
- return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
- foreach (Player,i) {
- if ( i == playerid ) continue;
- SetVehicleParamsForPlayer ( GetPlayerVehicleID ( playerid) , i , 0 , 1 ) ;
- }
- GameTextForPlayer ( playerid , "~r~TRANCADO !" , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:destrancar(playerid,params[]) {
- if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
- return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
- foreach(Player,i) {
- SetVehicleParamsForPlayer ( GetPlayerVehicleID ( playerid ) , i , 0 , 0 ) ;
- }
- GameTextForPlayer ( playerid , "~g~DESTRANCADO!" , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setweather(playerid,params[]) {
- new
- weather
- ;
- if ( sscanf ( params ,"i" , weather ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setweather (weather)" ) ;
- SetPlayerWeather ( playerid , weather ) ;
- PlaySound ( playerid , 1057 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:creditos(playerid,params[]) {
- ShowPlayerDialog ( playerid , Creditos , 0 ,""CYELLOW"Creditos",""CBLUE"Gamemode "CRED"» Rodrigo(The_EV1L),Diogo123 \n"CBLUE"Mapping "CRED"» Forum - Samp , Script - Samp \n"CGREEN"Creditos Includes"CYELLOW"» Y_Less, Incognito","OK","");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:eu(playerid,params[]) {
- if ( sscanf ( params , "s[128]" , diogo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/me (menssagem)" ) ;
- SendFMessageToAll ( 0x9BFF00FF , "» %s(%d) %s", GetPName ( playerid ) , playerid , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:estilodeluta(playerid,params[]) {
- new
- fs [ 9 ]
- ;
- if ( strlen ( params ) > 9 )
- return SendClientMessage (playerid , 0x00C0FFFF ,"USO: "CWHITE"/fightstyle (normal/boxing/kungfu/kneehead/grabkick/elbow)" ) ;
- if ( sscanf ( params ,"s[9]" , fs ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/fightstyle (normal/boxing/kungfu/kneehead/grabkick/elbow)" ) ;
- if ( !strcmp ( fs , "normal" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_NORMAL ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"normal" ) ;
- }
- else if ( !strcmp ( fs , "boxing" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_BOXING ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"boxing" ) ;
- }
- else if ( !strcmp ( fs , "kungfu" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_KUNGFU ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"kungfu" ) ;
- }
- else if ( !strcmp ( fs , "kneehead" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_KNEEHEAD ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"kneehead" ) ;
- }
- else if ( !strcmp ( fs , "grabkick" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_GRABKICK ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"grabkick" ) ;
- }
- else if ( !strcmp ( fs , "elbow" , true ) ) {
- SetPlayerFightingStyle ( playerid , FIGHT_STYLE_ELBOW ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"elbow" ) ;
- }
- PlaySound ( playerid , 1054 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:noite(playerid,params[]) {
- SetPlayerTime ( playerid , 0 , 0 ) ;
- GameTextForPlayer ( playerid ,"~p~Noite!" , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:dia(playerid,params[]) {
- SetPlayerTime ( playerid , 12 , 0 ) ;
- GameTextForPlayer ( playerid , "~y~~h~Dia!" , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kill(playerid,params[])
- {
- if ( PInfo [ playerid ] [ InDM ] >= 1 )
- {
- SetPlayerHealth ( playerid , 100 ) ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- SpawnPlayer ( playerid ) ;
- SetCameraBehindPlayer ( playerid ) ;
- }
- if ( PInfo [ playerid ] [ Inx1 ] == 1 )
- {
- X1Q--;
- }
- if ( IsPlayerInAnyVehicle ( playerid ) )
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos ( playerid , x , y , z ) ;
- SetPlayerPos ( playerid , x , y , z +1 ) ;
- }
- SetPlayerHealth ( playerid , 0 ) ;
- PlayerPlaySound ( playerid , 1085 , 0.0 , 0.0 , 0.0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:sair(playerid,params[])
- {
- if ( PInfo [ playerid ] [ Inx1 ] == 1 )
- {
- X1Q--;
- }
- if ( PInfo [ playerid ] [ InDM ] >= 1 )
- {
- SetPlayerHealth ( playerid , 100 ) ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- PInfo [ playerid ] [ InDM ] = 0 ;
- SpawnPlayer ( playerid ) ;
- SetCameraBehindPlayer ( playerid ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:gangwar(playerid,params[]) {
- ShowPlayerDialog ( playerid , GangWar , 2 ,"{00FF00}GANG WAR ","{37BE00}Grove\n{FFFF00}Vagos\n{AA00FF}Ballas\n{007DFF}Aztecas","Pronto!","Sair" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:transferir(playerid, params[])
- {
- new
- giveid,
- value
- ;
- if ( sscanf ( params , "ui" , giveid , value ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{FF0000}Use /transferir [ ID-Nome ] [ $$ ]" ) ;
- if ( GetPlayerMoney ( playerid ) < value )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]:Voce não tem todo esse dinheiro!" ) ;
- GivePlayerMoney ( playerid , -value ) ;
- GivePlayerMoney ( giveid , value ) ;
- format ( diogo , 128 , "[BANCO] Você transferiu R$%d para o jogador %s." , value , pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , 128 , "[BANCO] %s transferiu R$%d para voce." , pname , value ) ;
- SendClientMessage ( giveid , 0x00C0FFFF , diogo);
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:pm(playerid,params[]) return cmd_mp(playerid,params);
- CMD:mp(playerid, params[])
- {
- new
- str [ 500 ],
- str2 [ 500 ],
- id,
- pname2 [ MAX_PLAYER_NAME ]
- ;
- if ( sscanf ( params , "us[500]" , id , str2 ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}Use /mp [ Id ] [ Menssagem ]" ) ;
- if( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Player não conectado!" ) ;
- if ( playerid == id )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não pode mandar MP para si mesmo!" ) ;
- {
- GetPlayerName ( id , pname2 , sizeof ( pname2 ) ) ;
- format ( str , sizeof ( str ) , "PM Enviada para %s{FF0000}[{FFFFFF}ID:%i{FF0000}]:{00FF00} %s", pname , id , str2 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , str ) ;
- PlayerPlaySound ( id , 1057, 0.0, 0.0, 0.0 ) ;
- GameTextForPlayer ( id , "~r~MENSAGEM RECEBIDA" , 1000 , 4 ) ;
- format ( str , sizeof ( str ) , "PM Recebida de %s{FF0000}[{FFFFFF}ID:%i{FF0000}]:{00FF00} %s" , pname , playerid , str2 ) ;
- SendClientMessage ( id , 0x00C0FFFF , str ) ;
- PlayerPlaySound ( playerid , 1057 , 0.0 , 0.0 , 0.0 ) ;
- GameTextForPlayer ( playerid , "~B~MENSAGEM ENVIADA", 7000 , 3 ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:skin(playerid, params[])
- {
- if( isnull( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}Uso: /skin [0-299]" ) ;
- if ( strval ( params ) < 0 || strval ( params ) > 299 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]:Escolha a skin de 0 a 299!" ) ;
- SetPlayerSkin ( playerid , strval ( params ) ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:pintar(playerid, params[])
- {
- static c1 , c2 ;
- if ( IsPlayerInAnyVehicle ( playerid ) ) {
- if ( sscanf ( params , "ii" , c1 , c2 ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO] Use /pintar [ cor1 ] [ cor2 ] !" ) ;
- ChangeVehicleColor ( GetPlayerVehicleID ( playerid ) , c1 , c2 ) ;
- PlayerPlaySound ( playerid , 1133 , 257.6206 , -41.5307 , 1002.0234 ) ;
- format ( diogo , 128 , "{0000FF}[INFO] Você Mudou As Cores Para: {FFFFFF}[ %i ] - [ %i ]" , c1 , c2 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1 ;
- }
- else return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Voce tem que estar em um veiculo." ) ;
- }
- //------------------------------------------------------------------------------
- CMD:kit01(playerid,params[])
- {
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você Deve Sair Do Veiculo." ) ;
- if ( GetPlayerMoney ( playerid ) < 3000 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não tem $3.000 para comprar este Kit!" ) ;
- GivePlayerMoney ( playerid , -3000 ) ;
- GivePlayerWeapon ( playerid , 5 , 200 ) ;
- GivePlayerWeapon ( playerid , 14 , 200 ) ;
- GivePlayerWeapon ( playerid , 23 , 200 ) ;
- GivePlayerWeapon ( playerid , 25 , 200 ) ;
- GivePlayerWeapon ( playerid , 29 , 200 ) ;
- GivePlayerWeapon ( playerid , 30 , 200 ) ;
- GivePlayerWeapon ( playerid , 33 , 200 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{836FFF}Comprou o Kit01 {FF0000}( /Kit01 )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kit02(playerid,params[])
- {
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO] Você Deve Sair Do Veiculo." ) ;
- if ( GetPlayerMoney ( playerid ) < 6000 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não tem $6.000 para comprar este Kit!" ) ;
- GivePlayerMoney ( playerid , -6000 ) ;
- GivePlayerWeapon ( playerid , 9 , 300);
- GivePlayerWeapon ( playerid , 10 , 300);
- GivePlayerWeapon ( playerid , 22 , 300);
- GivePlayerWeapon ( playerid , 27 , 300);
- GivePlayerWeapon ( playerid , 28 , 300);
- GivePlayerWeapon ( playerid , 30 , 300);
- GivePlayerWeapon ( playerid , 33 , 300);
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{836FFF}Comprou o Kit02 {FF0000}( /Kit02 )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kit03(playerid,params[])
- {
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO]: Você Deve Sair Do Veiculo." ) ;
- if ( GetPlayerMoney ( playerid ) < 9000 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO]: Você não tem $9.000 para comprar este Kit!" ) ;
- GivePlayerMoney ( playerid ,-9000);
- GivePlayerWeapon ( playerid , 1 , 500 ) ;
- GivePlayerWeapon ( playerid , 4 , 500 ) ;
- GivePlayerWeapon ( playerid , 15 , 500 ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 26 , 500 ) ;
- GivePlayerWeapon ( playerid , 31 , 500 ) ;
- GivePlayerWeapon ( playerid , 32 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{836FFF}Comprou o Kit03 {FF0000}( /Kit03 )", pname);
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:armas(playerid,params[])
- return ShowPlayerDialog(playerid, Dialog_Arma , DIALOG_STYLE_LIST, "Lista De Armas", "{00FF00}Basicas\n{F81414}Pistolas\n{00FF00}Sub-Machine\n{F81414}Rifle's\n{00FF00}Assalto\n{F81414}Shotgun\n{00FF00}Thrown\n{F81414}Misc", "Selecionar", "Cancelar");
- //------------------------------ AdM SysTeM ------------------------------------
- CMD:abrirevento(playerid)
- {
- if ( EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O evento já está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- EventoStatus = true;
- NoEvento[playerid] = true;
- GetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
- GetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
- EventoInt = GetPlayerInterior ( playerid ) ;
- EventoVW = GetPlayerVirtualWorld ( playerid ) ;
- SendClientMessageToAll ( 0xFFFFFFFF," " ) ;
- SendClientMessageToAll ( 0xFF00FFFF,"[EVENTO]: EVENTO ABERTO PELO ADMIN, DIGITE /EVENTO !" ) ;
- SendClientMessageToAll ( 0xFFFFFFFF," " ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:efechar(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O evento já está fechado." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- for ( new v , b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- NoEvento [ v ] = true ;
- EventoStatus = false ;
- SendClientMessageToAll ( 0xFF00FFFF ,"[EVENTO]: O ADMIN FECHOU O EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:evento(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 )
- return SendClientMessage ( playerid, 0xFF0000FF, "{F81414}[ERRO] Você nao pode se teleportar com pouca vida." ) ;
- NoEvento [ playerid ] = true ;
- ResetPlayerWeapons ( playerid ) ;
- format ( diogo , sizeof ( diogo ) , "{FFFFFF}[ %s ] {F81414}Foi para o evento {FFFFFF}( /EVENTO )", pname ) ;
- SendClientMessageToAll ( 0x88FF9FFF , diogo ) ;
- SetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
- SetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
- SetPlayerInterior ( playerid , EventoInt ) ;
- SetPlayerVirtualWorld ( playerid , EventoVW ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ecar(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Modelo,
- Cor1,
- Cor2
- ;
- if ( sscanf ( params , "ddd" , Modelo , Cor1 , Cor2 ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ecar [ ID ] [ Cor1 ] [ Cor2 ]" ) ;
- new Float:CarPos[4], CarID;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] ) {
- GetPlayerFacingAngle ( v , CarPos [ 3 ] ) ;
- GetPlayerPos ( v , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] ) ;
- CarID = CreateVehicle ( Modelo , CarPos [ 0 ] +2 , CarPos [ 1 ] , CarPos [ 2 ] , CarPos [ 3 ] , Cor1 , Cor2 , 0x00C0FFFF ) ;
- LinkVehicleToInterior ( CarID , EventoInt ) ;
- SetVehicleVirtualWorld ( CarID , EventoVW ) ;
- PutPlayerInVehicle ( v , CarID , 0 ) ;
- }
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU UM VEICULO PARA TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:earma(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Arma,
- Municao
- ;
- if ( sscanf ( params , "dd" , Arma , Municao ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Earma [ Arma ID ] [ Munição ]" ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- GivePlayerWeapon ( v , Arma , Municao ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU ARMAS PARA TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ecolete(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new Float:Colete;
- if ( sscanf ( params , "f", Colete ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ecolete [ Quantidade ]" ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- SetPlayerArmour ( v , Colete ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU COLETE PARA TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:evida(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new Float:Vida;
- if ( sscanf ( params , "f" , Vida ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Evida [ Quantidade ]" ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- SetPlayerArmour ( v , Vida ) ;
- SendClientMessageToAll ( 0x33CCFFFF ,"[EVENTO]: O ADMIN DEU VIDA PARA TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:contar(playerid)
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- Contar ( 5 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ekickar(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( sscanf ( params , "r" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ekickar [ ID ]" ) ;
- if ( !NoEvento [ ID ] )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Este jogador não está no evento." ) ;
- SpawnPlayer ( ID ) ;
- SendClientMessage ( ID , 0x00C0FFFF , "[INFO]: Você foi kickado do evento." ) ;
- NoEvento [ ID ] = false ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:econgelar(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- TogglePlayerControllable ( v , false ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN CONGELOU TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:edescongelar(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 3 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- TogglePlayerControllable ( v , true ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DESCONGELOU TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:edesarmar(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- ResetPlayerWeapons ( v ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DESARMOU TODOS DO EVENTO!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:eskin(playerid, params[])
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new Skin;
- if ( sscanf ( params , "d" , Skin ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Eskin [ ID Skin ]" ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] )
- SetPlayerSkin ( v , Skin ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN SETOU SKIN PARA TODOS DO EVENTO !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:eterminar(playerid)
- {
- if ( !EventoStatus )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN TERMINOU O EVENTO !" ) ;
- for ( new v, b = GetMaxPlayers(); v != b; v++ )
- if ( NoEvento [ v ] ) {
- NoEvento [ v ] = false;
- SpawnPlayer ( v ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ecmd(playerid, params[])
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new EventoS [1450];
- strins ( EventoS ,"{FF0000}Comandos Eventos\n",strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/evw {FF54BF}Para Mudar O Seu Mundo Virtual. \n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/abrirevento {FF54BF}Para Abrir Um Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/evento {FF54BF}Para Ir Até O Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/ecar {FF54BF}Para Dar Um Veiculo A Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/earma {FF54BF}Para Dar Uma Arma A Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/ecolete {FF54BF}Para Dar Colete A Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/evida {FF54BF}Para Dar Vida A Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/contar {FF54BF}Para Começar Uma Contagem De 5 Segundos.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/ekickar {FF54BF}Para Dar Um Kick Em Alguém Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/econgelar {FF54BF}Para Congelar Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/edescongelar {FF54BF}Para Descongelar Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/edesarmar {FF54BF}Para Desarmar Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/eskin {FF54BF}Para Setar Uma Skin A Todos Do Evento.\n", strlen ( EventoS ) ) ;
- strins ( EventoS ,"{FFFFFF}/eterminar{FF54BF}Para Terminar O Evento.\n", strlen ( EventoS ) ) ;
- ShowPlayerDialog ( playerid , Evento , DIALOG_STYLE_MSGBOX , "Comandos" , EventoS , "Sair", "" ) ;
- return 1;
- }
- //---------------------------------- ADM CoManDoS ------------------------------
- CMD:multiv(playerid, params[]) {
- if ( PInfo [ playerid ] [ Adminlevel ] < 3 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Carro,
- Colunas,
- Filas
- ;
- if ( sscanf ( params , "ddd" , Carro , Colunas , Filas ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Multiv [ Carro ] [ Colunas ] [ Filas ]" ) ;
- if ( Carro < 400 || Carro > 611 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}O número do veículo deve ser entre 400 e 611." ) ;
- if ( Colunas < 0 || Colunas > 8 )
- return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}Número de colunas deve ser entre 0 e 8." ) ;
- if ( Filas < 0 || Filas > 8 )
- return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}Número de filas deve ser entre 0 e 8." ) ;
- new Float:CarPos [ 5 ] ;
- GetPlayerPos ( playerid , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] ) ;
- GetPlayerFacingAngle ( playerid , CarPos [ 3 ] ) ;
- CarPos [ 4 ] = CarPos [ 0 ] ;
- new
- CarID ,
- v ,
- b
- ;
- for ( v = 0; v < Filas; v++ ) {
- for ( b = 0; b < Colunas; b++ ) {
- CarID = CreateVehicle ( Carro , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] , CarPos [ 3 ] , random ( 300 ) , random ( 300 ) , 0x00C0FFFF ) ;
- LinkVehicleToInterior ( CarID , GetPlayerInterior ( playerid ) ) ;
- SetVehicleVirtualWorld ( CarID , GetPlayerVirtualWorld ( playerid ) ) ;
- CarPos [ 0 ] += 5 ;
- }
- CarPos [ 0 ] = CarPos [ 4 ] ;
- CarPos [ 1 ] += 6 ;
- }
- return true;
- }
- //------------------------------------------------------------------------------
- CMD:admins(playerid,params[])
- {
- static string12 [ 800 ] ;
- for ( new p; p < GetMaxPlayers(); ++p )
- {
- if ( IsPlayerConnected ( p ) )
- {
- if ( PInfo [ p ] [ Adminlevel ] > 0)
- {
- GetPlayerName ( p , pname , sizeof ( pname ) ) ;
- format ( string12 , sizeof ( string12 ) , "%s {FF0000}%s [ID: {FFFF00}%d{FF0000} ] [Level: {FFFF00}%d{FF0000} ]\n", string12 , pname , p , PInfo [ p ] [ Adminlevel ] ) ;
- temon = true ;
- }
- }
- }
- if ( temon == false )
- {
- ShowPlayerDialog ( playerid , Admin , DIALOG_STYLE_MSGBOX ,"Adminis","{FF0000}Nenhum administrador online\n.\n","Fechar","");
- }
- else
- {
- ShowPlayerDialog ( playerid , 9585 , DIALOG_STYLE_MSGBOX , "Administradores" , string12 , "Fechar","" ) ;
- }
- strdel ( string12 , 0 , sizeof ( string12 ) ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:x9(playerid,params[]) return cmd_report(playerid,params);
- CMD:report(playerid, params[])
- {
- new
- iddocara,
- motivo [ 50 ]
- ;
- if ( sscanf ( params , "ds[50]" , iddocara , motivo ) )
- return SendClientMessage ( playerid , 0xFFFF00FF , "[USE]: /report [ ID ] [ Motivo ]" ) ;
- if ( !strlen ( motivo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O report nao pode ficar vazio!" ) ;
- if ( !IsPlayerConnected ( iddocara ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO] Jogador não encontrado." ) ;
- new nome2 [ 25 ] ;
- GetPlayerName ( iddocara , nome2 , sizeof ( nome2 ) ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ATENÇÃO] %s [ID:%d] Reportou %s [ID:%d] |Motivo: %s",playerid , nome2 , iddocara , motivo ) ;
- foreach (Player,Admins)
- {
- if ( IsPlayerConnected ( Admins ) && PInfo [ Admins ] [ Adminlevel ] > 0 )
- {
- SendClientMessage ( Admins , 0x00C0FFFF , diogo ) ;
- GameTextForPlayer ( Admins , "~r~NOVO REPORT" , 1000 , 4 ) ;
- PlayerPlaySound ( playerid , 1057 , 0.0 , 0.0 , 0.0 ) ;
- }
- }
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}» [INFO]: Seu report foi enviado para os adminis!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:dcarro(playerid, params[])
- {
- if ( PInfo [ playerid ] [ Adminlevel ] >= 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Modelo,
- Float:X,
- Float:Y,
- Float:Z,
- Float:A,
- ID,
- LECAR
- ;
- if ( sscanf ( params , "dd" , ID , Modelo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Uso: /dcarro [ Id ] [ Modelo ]" ) ;
- GetPlayerPos ( ID , X , Y , Z ) ;
- GetPlayerFacingAngle ( ID , A ) ;
- LECAR = CreateVehicle ( Modelo , X , Y , Z , A , -1 , -1 , -1 ) ;
- SetVehicleVirtualWorld ( LECAR , GetPlayerVirtualWorld ( ID ) ) ;
- LinkVehicleToInterior ( LECAR , GetPlayerInterior ( ID ) ) ;
- PutPlayerInVehicle ( ID , LECAR , 0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:delc(playerid)
- {
- if(PInfo[playerid][Adminlevel] >= 2)
- return SendClientMessage ( playerid , -1 , NaoPodeUsarCmD ) ;
- DestroyVehicle ( GetPlayerVehicleID ( playerid ) ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:mo(playerid, params[])
- {
- if(PInfo[playerid][Adminlevel] >= 2)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Distancia,
- Velocidade,
- Velo2 [ 6 ]
- ;
- if ( sscanf ( params , "dds[6]" , Distancia , Velocidade , Velo2 ) )
- return SendClientMessage(playerid,0x00C0FFFF,"Uso: /mo [distancia] [velocidade] [cima/baixo/leste/oeste/sul/norte]");
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- if ( !strcmp ( Velo2 , "cima" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X , Y , Z +Distancia , Velocidade ) ;
- }
- if ( !strcmp ( Velo2 , "baixo" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X , Y , Z -Distancia , Velocidade ) ;
- }
- if ( !strcmp ( Velo2 , "norte" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X , Y +Distancia , Z , Velocidade ) ;
- }
- if ( !strcmp ( Velo2 , "sul" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X , Y-Distancia , Z , Velocidade ) ;
- }
- if ( !strcmp ( Velo2 , "leste" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X+Distancia , Y , Z , Velocidade ) ;
- }
- if ( !strcmp ( Velo2 , "oeste" , true ) )
- {
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X-Distancia , Y , Z , Velocidade ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:moa(playerid)
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Float:A,
- Float:X,
- Float:Y,
- Float:Z
- ;
- GetPlayerFacingAngle ( playerid , A ) ;
- GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
- MoveObject ( objco [ playerid ] , X , Y , Z , 0.5 , -1 , -1 , A ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:co(playerid, params[])
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID ;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Uso: /Co [ ID Objeto ]" ) ;
- new
- Float:X,
- Float:Y,
- Float:Z,
- Float:A
- ;
- DestroyObject ( objco [ playerid ] ) ;
- GetPlayerPos ( playerid , X , Y , Z );
- GetPlayerFacingAngle ( playerid , A ) ;
- objco[playerid] = CreateObject ( ID , X , Y , Z , 0 , 0 , A , 0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:delo(playerid, params[])
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( objco [ playerid ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "ERRO: Você Não Tem Objecto" ) ;
- DestroyObject ( objco [ playerid ] ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:a(playerid, params[])
- {
- if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( isnull ( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[USE]: /A [ texto ]" ) ;
- format ( params , strlen ( params ) + 48, "{FFFF00}[ADMIN CHAT]: %s diz: %s", pname , params ) ;
- foreach (Player,x)
- {
- if ( PInfo [ x ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( x ) ) continue ;
- SendClientMessage ( x , 0xFFFF00AA , params ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:lc(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- foreach (Player,i) SendClientMessageToAll ( -1 , " ") ;
- format ( diogo , 129 , "~r~[~w~Chat Limpo~r~]" , pname ) ;
- GameTextForAll ( diogo , 6000 , 1 ) ;
- return true;
- }
- //------------------------------------------------------------------------------
- CMD:kick(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new motivo [ 60 ] ;
- if ( sscanf ( params , "us" , giveplayerid , motivo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Use: /kick [ ID ] [ Motivo ]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Jogador não está conectado." ) ;
- if ( PInfo [ giveplayerid ] [ Adminlevel ] != 0 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO] Você não pode kickar outro administrador!" ) ;
- format ( diogo , sizeof ( diogo ) , "[ %s ]Foi kickado pelo Admin [ %s ] | Motivo | : [ %s ]" , Path ( giveplayerid ) , Path ( playerid ) , motivo ) ;
- SendClientMessageToAll ( 0xFF5604AA , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ir(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "u" , giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /Ir [ ID ]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- new intgiveplayerid = GetPlayerInterior ( giveplayerid ) ;
- GetPlayerPos ( giveplayerid , X , Y , Z ) ;
- SetPlayerPos ( playerid , X+1 , Y , Z ) ;
- SetPlayerInterior ( playerid , intgiveplayerid ) ;
- format ( diogo , sizeof ( diogo ) , "Você Se Teleportou Até o Player {FF0000}[ %s ]{FFFFFF}.", pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O Admin {FF0000}[ %s ]{FFFFFF}Teleportou Até Você.", pname ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kmae(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "us" , giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Use: /kick [ ID ] " ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
- format ( diogo , sizeof ( diogo ) , "[ %s ] Kickou [ %s ] Por - Ofensas a parentesco" , pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- Kick ( giveplayerid ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:tapa(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- ID,
- Float:posx,
- Float:posy,
- Float:posz
- ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( sscanf ( params , "d" ,ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USE: /tapa [playerid]" ) ;
- GetPlayerPos ( ID , posx , posy , posz ) ;
- SetPlayerPos ( ID , posx , posy , posz +20 ) ;
- format ( diogo , sizeof ( diogo ) , "[ADMIN]: Você deu tapa no player {FF0000}%s {FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:explodir(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- ID,
- Float:posx,
- Float:posy,
- Float:posz
- ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( sscanf ( params , "u" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /explodir [playerid]" ) ;
- GetPlayerPos ( ID , posx , posy , posz ) ;
- CreateExplosion ( posx , posy , posz , 12 , 10.0 ) ;
- format ( diogo , sizeof ( diogo ) , "[ADMIN]: Você explodiu o player {FF0000}%s {FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:avisar(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- OtherName[25],
- outroplayer
- ;
- if ( sscanf ( params , "ds[128]" , outroplayer , diogo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /avisar [ Id ] [ Motivo ]" ) ;
- if ( GetTickCount() - PInfo [ outroplayer ] [ Aviso ] > 10000 )
- {
- GetPlayerName ( outroplayer , OtherName , 25 ) ;
- SetPVarInt ( outroplayer , "Avisado" , GetPVarInt ( outroplayer , "Avisado" ) +1 ) ;
- format ( diogo , 128 , "[ %s ]Foi avisado pelo administrador:[ %s ], motivo:[ %s ] | [%d/3 Avisos] | ", OtherName , pname , diogo , GetPVarInt ( outroplayer , "Avisado" ) ) ;
- SendClientMessageToAll ( 0xFFFF00FF , diogo ) ;
- PInfo [ outroplayer ] [ Aviso ] = GetTickCount() ;
- if ( GetPVarInt ( outroplayer , "Avisado" ) == 3 )
- {
- format ( diogo , 128 , "[ %s ]Foi kickado, motivo: [%d/3 Avisos]", OtherName , GetPVarInt ( outroplayer , "Avisado" ) ) ;
- SendClientMessageToAll ( 0x38FF06FF , diogo ) ;
- Kick ( outroplayer ) ;
- }
- else
- {
- SendClientMessage ( playerid , 0x00C0FFFF ,"[ERRO] Esse jogador ja foi avisado aguarde 10 segundos!" ) ;
- }
- return 1;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:espiar(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /espiar [ id ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( !IsPlayerInAnyVehicle ( ID ) )
- {
- TogglePlayerSpectating ( playerid , 1 ) ;
- PlayerSpectatePlayer ( playerid , ID ) ;
- SetPlayerInterior ( playerid , GetPlayerInterior ( ID ) ) ;
- SetPlayerVirtualWorld ( playerid , GetPlayerVirtualWorld ( ID ) ) ;
- return 1;
- }
- else
- {
- TogglePlayerSpectating ( playerid , 1 ) ;
- PlayerSpectateVehicle ( playerid , GetPlayerVehicleID ( ID ) ) ;
- SetPlayerInterior ( playerid , GetPlayerInterior ( ID ) ) ;
- SetPlayerVirtualWorld ( playerid , GetPlayerVirtualWorld ( ID ) ) ;
- return 1;
- }
- }
- //------------------------------------------------------------------------------
- CMD:specoff(playerid,params[]) {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- TogglePlayerSpectating ( playerid , 0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:x1fechar(playerid)
- {
- if ( PInfo [ playerid ] [ Adminlevel ] == 6 ) { X1L=false; }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:x1abrir(playerid)
- {
- if ( PInfo [ playerid ] [ Adminlevel ] == 6 ) { X1L=true; }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ban(playerid,params[])
- {
- new
- Dia,
- Mes,
- Ano,
- Hora,
- Minuto,
- Segundo,
- vitima,
- NomeDoBanido [ MAX_PLAYER_NAME ],
- nome [ MAX_PLAYERS ],
- IP [ 15 ],
- Motivo [ 128 ]
- ;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "us[60]" , vitima , Motivo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[USE]: /ban [id] [motivo]" ) ;
- if ( PInfo [ vitima ] [ Adminlevel ] != 0 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"[ERRO] Você não pode banir outro administrador!");
- getdate ( Ano , Mes , Dia ) ;
- gettime ( Hora , Minuto , Segundo ) ;
- GetPlayerName ( playerid , nome , sizeof ( nome ) ) ;
- GetPlayerName ( vitima , NomeDoBanido , sizeof ( NomeDoBanido ) ) ;
- GetPlayerIp ( vitima , IP , sizeof ( IP ) ) ;
- if ( !IsPlayerConnected ( vitima ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Jogador não está conectado" ) ;
- format ( diogo , sizeof ( diogo ) , "[ %s ]Foi banido pelo administrador [ %s ] |Motivo|: %s", NomeDoBanido , nome , Motivo ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- BanEx(vitima,Motivo);
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:calar(playerid,params[])
- {
- static id,tempo;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "ud" , id , tempo ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"Use: /calar [ id ] [ tempo ]" ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Jogador não conectado" ) ;
- if ( 1 > tempo < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Você só pode calar um player entre 1 ~ 5 minutos!" ) ;
- l_temp [ id ] = gettime() + tempo*60 ;
- SetTimerEx ( #mute , 60*1000*tempo , false , "i" , id ) ;
- format ( diogo , sizeof ( diogo ) ,"Você calou o player{FF0000}[ %s ]{FFFFFF}.",pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O admin {FF0000}%s {FFFFFF}calou você.",pname ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:cv(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( params [ 0 ] == 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USE: {F6E500}/cv [ texto ]" ) ;
- SendClientMessageToAll ( 0x00C0FFFF , " " ) ;
- format ( diogo , sizeof ( diogo ) , "[ADM]: %s: %s" , Path(playerid) , params ) ;
- SendClientMessageToAll ( 0x33CCFFFF , diogo ) ;
- SendClientMessageToAll ( 0x00C0FFFF , " " ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:limpo(playerid,params[])
- {
- new texto;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "s[100]" , texto ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /Limpo [ ID ]" ) ;
- format ( diogo , sizeof ( diogo ) , "~b~Admin: ~r~ID: %s ~b~Limpo" , texto ) ;
- GameTextForAll ( diogo , 3000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setskin(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new skin;
- if ( sscanf ( params , "ud" , giveplayerid , skin ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setskin [ID] [Skin]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"Jogador não está conectado." ) ;
- format ( diogo , sizeof ( diogo ) , "O Administrador {FF0000}[ %s ]{FFFFFF}trocou sua skin para {FF0000}[ %d ] .{FFFFFF}", Path ( playerid ) , skin ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- SetPlayerSkin ( giveplayerid , skin ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:trazer(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "u" , giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /trazer [ID]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- new intplayerid = GetPlayerInterior ( playerid ) ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- SetPlayerPos ( giveplayerid , X+1 , Y , Z ) ;
- SetPlayerInterior ( giveplayerid , intplayerid ) ;
- format ( diogo , sizeof ( diogo ) , "Você trouxe o player {FF0000}[ %s ]{FFFFFF}até você." , pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O admin {FF0000}[ %s ]{FFFFFF}puxo você até ele." , pname ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:congelar(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /congelar [playerid]" ) ;
- TogglePlayerControllable ( ID , false ) ;
- format ( diogo , sizeof ( diogo ) , "[INFO]: Você congelou o player {FF0000}[ %s ]{FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:descongelar(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /descongelar [playerid]" ) ;
- TogglePlayerControllable ( ID , true ) ;
- format ( diogo , sizeof ( diogo ) , "[INFO]: Você descongelou o player {FF0000}[ %s ]{FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:desarmar(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /desarmar [ id ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- ResetPlayerWeapons ( ID ) ;
- format ( diogo , sizeof ( diogo ) , "[INFO]: Você desarmou o player {FF0000}[ %s ]{FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:spawn(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /spawn [ id ]" ) ;
- SpawnPlayer ( ID ) ;
- SetPlayerInterior ( ID , 0 ) ;
- SetPlayerVirtualWorld ( ID , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "Você deu spawn no player{FF0000}[ %s ]{FFFFFF}.",pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF ,diogo ) ;
- format ( diogo , sizeof ( diogo ),"O admin {FF0000}[ %s ]{FFFFFF}lhe deu spawn.",pname ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF ,diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setvida(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID,Vida;
- if ( sscanf ( params , "dd" , ID , Vida ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setvida [ id ] [ vida ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- SetPlayerHealth ( ID , Vida ) ;
- format ( diogo , sizeof ( diogo ) , "Você setou a vida do player {FF0000}[ %s ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}.",Path ( ID ) , Vida ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setcolete(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID,CLT;
- if ( sscanf ( params , "dd" , ID , CLT ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setcolete [ id ] [ colete ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- SetPlayerArmour ( ID , CLT ) ;
- format ( diogo , sizeof ( diogo ) , "Você setou o colete de {FF0000}[ %s ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:dararma(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- ID,
- IDA,
- BLS
- ;
- if ( sscanf ( params , "unn" , ID , IDA , BLS ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /dararma [ id ] [ id da arma ] [ munição ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- GivePlayerWeapon ( ID , IDA , BLS ) ;
- format ( diogo , sizeof ( diogo ),"Você deu á {FF0000}[ %s ]{FFFFFF}uma arma ID: {FF0000}[ %d ]{FFFFFF}com {FF0000}[ %d ]{FFFFFF}de munição!",Path ( ID ) , IDA , BLS ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O(a)Administrador(a) {FF0000}[ %s ]{FFFFFF}lhe deu uma arma ID: {FF0000}[ %d ]{FFFFFF}com {FF0000}[ %d ]{FFFFFF}de munição!",Path ( playerid ) , IDA , BLS ) ;
- SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:skick(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "us" , giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /skick [ ID ]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não está conectado." ) ;
- format ( diogo , sizeof ( diogo ) , "Você kickou silênciosamente o player {FF0000}[ %s ]{FFFFFF}.",pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- Kick ( giveplayerid ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:sban(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Banido,
- Rasao [ 70 ]
- ;
- if ( sscanf ( params , "ds[70]" , Banido ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /sban [ playerid ]" ) ;
- if ( strlen ( Rasao ) > 70)
- return SendClientMessage ( playerid , 0x00C0FFFF , "No maximo 70 caracteres na Razão!" ) ;
- if ( !IsPlayerConnected ( Banido ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"O jogador não está conectado" ) ;
- format ( diogo , sizeof ( diogo ) , "Você deu ban silênciosamente o player {FF0000}%s {FFFFFF}.",pname ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- Ban ( Banido ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setscore(playerid, params[])
- {
- new
- score,
- Player
- ;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "dd" , Player , score ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setscore [ playerid ] [ score ]" ) ;
- if ( !IsPlayerConnected ( Player ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player nao encontrado" ) ;
- SetPlayerScore ( Player , score ) ;
- format ( diogo , sizeof ( diogo ) , "Você setou o score do player{FF0000}[ %s ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}.",pname , score ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O admin {FF0000}[ %s ]{FFFFFF}setou seu score para {FF0000}[ %d ]{FFFFFF} ." , pname , score ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setgrana(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- ID,
- Tanto
- ;
- if ( sscanf ( params , "dd" , ID , Tanto ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setgrana [ id ] [ quantia ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- SetPlayerMoney ( ID , Tanto ) ;
- format ( diogo , sizeof ( diogo ) , "Você setou a grana de{FF0000}[ %s ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}." , Path ( ID ) , Tanto ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "O(a)Administrador(a) {FF0000}[ %s ]{FFFFFF}setou sua grana para {FF0000}[ %d ]{FFFFFF}." , Path ( playerid ) , Tanto ) ;
- SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:dargrana(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- ID,
- Tanto
- ;
- if ( sscanf ( params , "dd" , ID , Tanto ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /dargrana [ id ] [ quantia ]" ) ;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
- GivePlayerMoney ( ID , Tanto ) ;
- format ( diogo , sizeof ( diogo ) , "Você deu á {FF0000}[ %s ]{FFFFFF}a quantia de {FF0000}[ %d ]{FFFFFF}de dinheiro.",Path ( ID ) , Tanto ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) ,"O(a)Administrador(a) {FF0000}[ %s ]{FFFFFF}lhe deu {FF0000}[ %d ]{FFFFFF}de dinheiro.",Path ( playerid ) , Tanto ) ;
- SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:reloadbans(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- SendRconCommand ( "reloadbans" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF ,"[INFO]: O Arquivo SA-MP BAN foi apagado !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:rc(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new bool:vehicle;
- format ( diogo , 128 , "O Admin{FF0000}[ %s ]Resetou todos os veiculos inutilizados!" , diogo ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- foreach (Player,j)
- {
- vehicle = false;
- foreach (Player,i)
- {
- if ( !IsPlayerInAnyVehicle ( i ) || !IsPlayerConnected ( i ) ) continue;
- if ( IsPlayerInVehicle ( i , j ) ) {
- vehicle = true;
- break;
- }
- }
- if ( !vehicle )
- {
- SetVehicleToRespawn ( j ) ;
- }
- }
- return 1;
- }
- //------------------Comandos Lvl 5 Sub-Dono Lvl 6 Dono--------------------------
- CMD:setadmin(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 6 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "ud" , giveplayerid , nivel ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /daradmin [ ID ] [ Level ]" ) ;
- if ( !IsPlayerConnected ( giveplayerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não está conectado." ) ;
- if ( nivel < 0 || nivel > 6 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Os niveis são de 0 a 6 [Para tirar admin coloque level 0]" ) ;
- PInfo [ giveplayerid ] [ Adminlevel ] = nivel;
- format ( diogo , sizeof ( diogo ) , "Você setou o player {FF0000}[ %s ]{FFFFFF}para administrador level {FF0000}[ %d ]{FFFFFF}." , pname , nivel ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "Você foi setado como administrador level {FF0000}[ %d ]{FFFFFF}pelo admin {FF0000}[ %s ]{FFFFFF}." , nivel , pname ) ;
- SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:crashar(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new ID;
- if ( !IsPlayerConnected ( ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: O jogador não está conectado." ) ;
- if ( sscanf ( params , "d" , ID ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /crash [ playerid ]" ) ;
- CrasharPlayer ( ID , 3 ) ;
- format ( diogo , sizeof ( diogo ) , "Você crashou o player {FF0000}[ %s ]{FFFFFF}.",Path ( ID ) ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:gmx(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5)
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- GameTextForAll ( "~g~Reiniciando ~w~Servidor" , 13000 , 0 ) ;
- SendRconCommand ( "gmx" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:esconder(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- SetPlayerColor ( playerid , 0x00000000 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Voce esta com o nick escondido" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:trancarserver(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( isnull ( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , " Digite: /trancarserver [ senha ]" ) ;
- format ( params , strlen ( params ) + 10 , "password %s" , params ) ;
- SendRconCommand ( params ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Servidor Trancado." ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:destrancarserver(playerid)
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- SendRconCommand ( "password 0" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Servidor Destrancado." ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kickartodos(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- foreach (Player,i)
- {
- if ( i != playerid )
- {
- Kick ( i ) ;
- }
- }
- SendClientMessageToAll ( 0x00C0FFFF , "O Administrador kickou todos do servidor!");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:trazertodos(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- GetPlayerPos ( playerid , X , Y , Z ) ;
- foreach (Player,i)
- {
- SetPlayerPos ( i , X , Y , Z ) ;
- }
- format ( diogo , sizeof ( diogo ) , "O Admin[ %s ]Puxou todos os players até ele!", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:hostname(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( isnull ( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Digite /hostname [ Nome ]" ) ;
- format ( diogo , sizeof ( diogo ) , "hostname %s", params ) ;
- SendRconCommand ( diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:jetpack(playerid,params[])
- {
- if ( !PInfo [ playerid ] [ Adminlevel ] )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- SetPlayerSpecialAction ( playerid , 2 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "Jetpack adquirido com sucesso!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ricos(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new count = 0, iMoney ;
- SendClientMessage ( playerid , COL_YELLOW ,
- "------------------------------------------------------------------------------------" ) ;
- foreach (Player,i) {
- iMoney = GetPlayerMoney ( i ) ;
- if ( iMoney > 500000 ) {
- SendFMessage ( playerid , 0x00C0FFFF , "» [ %s ](%i) Possui $[ %i ]", GetPName ( i ) , i , iMoney ) ;
- count++ ;
- }
- }
- SendClientMessage ( playerid , COL_YELLOW ,
- "------------------------------------------------------------------------------------" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setworld(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- id,
- world
- ;
- if ( sscanf ( params , "ui" , id , world ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setworld ( id ) ( world id )" ) ;
- SetPlayerVirtualWorld ( id , world ) ;
- return SendClientMessage ( playerid , 0x00C0FFFF , "Voce Setou O Player Com Sucesso No Mundo Novo" ) ;
- }
- //------------------------------------------------------------------------------
- CMD:disarmar(playerid,params[])
- {
- new id;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "u" , id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/disarm ( playerid / nick ) " ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
- ResetPlayerWeapons ( id ) ;
- format ( diogo , sizeof ( diogo ), "» Admin [ %s ]( %d )Lhe Desarmou!", Path ( playerid ) , playerid ) ;
- SendClientMessage ( id , 0x00C0FFFF ,diogo ) ;
- PlaySound ( id , 1057 ) ;
- GameTextForPlayer ( id , "~r~~h~Disarmado !" , 4000 , 3 ) ;
- format ( diogo , sizeof ( diogo ) , "» Voce Desarmou [ %s ] ( %d ) !" , GetPName ( id ) , id ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- PlaySound ( playerid , 1057 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:desarmartodos(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- foreach (Player,i)
- {
- ResetPlayerWeapons ( i ) ;
- PlaySound ( i , 1057 ) ;
- }
- format ( diogo , sizeof ( diogo ) , "» Admin [ %s ] ( %d ) Desarmou Todos!" , GetPName ( playerid ) , playerid ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- GameTextForAll ( "~r~~h~Disarmed!" , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:akill(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- id
- ;
- if ( sscanf ( params , "u" , id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/akill ( id )" ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado " ) ;
- SetPlayerHealth ( id , 0 ) ;
- SendFMessage ( id , 0x00C0FFFF , "Voce Foi Morto Pelo Admin : [ %s ] ( %i )" , GetPName ( playerid ) , playerid ) ;
- SendFMessage ( playerid , 0x00C0FFFF , "Voce Foi Morto [ %s ] ( %i )" , GetPName ( id ) , id ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ann(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new text [ 128 ] ;
- if ( sscanf ( params , "s[128]" , text ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/announce ( texto )" ) ;
- format ( diogo , sizeof ( diogo ) ,"~w~%s" , text ) ;
- GameTextForAll ( diogo , 4000 , 3 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:asay(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new text [ 128 ] ;
- if ( sscanf ( params , "s[160]" , text ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/asay ( texto )" ) ;
- format ( diogo , sizeof ( diogo ) , "***** "CYELLOW"Admin"CBLUE": {FF1111}%s {FF0000}*****" , text ) ;
- SendClientMessageToAll ( 0x00C0FFFF ,diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:checararmas(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- id
- ;
- if ( sscanf ( params , "u" , id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/checkweaps ( id / nick ) " ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
- new
- weapons,
- ammo,
- weapname [ 20 ]
- ;
- SendClientMessage ( playerid , COL_YELLOW , "------------------------------------------------------------------------------------" ) ;
- format ( diogo , sizeof ( diogo ) , "%s(%i)'s Armas:" , GetPName ( id ) , id ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- foreach (Player,i)
- {
- GetPlayerWeaponData ( id , i , weapons , ammo ) ;
- if ( weapons != 0 )
- {
- GetWeaponName ( weapons , weapname , 20 ) ;
- format ( diogo , sizeof ( diogo ) , "» %s - Ammo %d" , weapname , ammo ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- }
- }
- SendClientMessage ( playerid , COL_YELLOW ,"------------------------------------------------------------------------------------");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:setint(playerid,params[])
- {
- new
- id,
- int
- ;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "ii" , id , int ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setint ( id ) ( interior ID )" ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
- SetPlayerInterior ( id , int ) ;
- SendFMessage ( playerid , 0x00C0FFFF , " Voce Setou Com Sucesso o Interior De [ %s's ] interior: [ %i ]!" , GetPName ( id ) , int ) ;
- SendFMessage ( id , 0x00C0FFFF , "Admin [ %s ]Setou Seu Interior Para [ %i ]!" , GetPName ( playerid ) , int ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:gotoxyz(playerid,params[])
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params , "fff" , x , y , z ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/gotoxyz ( x ) ( y ) ( z )" ) ;
- SetPlayerPos ( playerid , x , y , z ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ip(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- id
- ;
- if ( sscanf ( params , "u" , id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/ip ( id / nick )" ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado " ) ;
- SendFMessage ( playerid , 0x00C0FFFF , "[ %s ] ( %i ) IP Info: "CGREY"[ IP: %s ]", GetPName ( id ) , id , GetIP ( id ) ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:tocarmusica(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( isnull ( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/tocarmusica ( link )" ) ;
- foreach(Player,p)
- {
- if(IsPlayerConnected(p))
- {
- PlayAudioStreamForPlayer(p,params);
- }
- }
- format ( diogo , sizeof ( diogo ) , "O(a)Admin(a) [ %s ] colocou uma musica na pista!" , pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:mae(playerid, params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( isnull ( params ) )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/mae [ id ]" ) ;
- if ( !IsPlayerConnected ( strval ( params ) ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
- PInfo [ strval ( params ) ] [ Avisos ] ++ ;
- if ( PInfo [ strval ( params ) ] [ Avisos ] == MAXAVISOS )
- {
- format ( diogo , sizeof ( diogo ),"O(a) Admin(a) [ %s ] Kickou '%s' [Motivo: Proibido Xingamento De Mãe Ou Parentesco ] [Aviso: %d/%d]" , pname , Path ( strval ( params ) ),PInfo [ strval ( params ) ] [ Avisos ] , MAXAVISOS ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- Kick ( strval ( params ) ) ;
- }
- else
- {
- format ( diogo , sizeof ( diogo ) , "O(a)Admin(a) [ %s ] Avisou '%s' [Motivo: Proibido Xingamento De Mãe Ou Parentesco ] [Aviso: %d/%d]" , pname , Path ( strval ( params ) ) , PInfo [ strval ( params ) ] [ Avisos ] , MAXAVISOS ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:miniguns(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Count
- ;
- new
- slot,
- weap,
- ammo
- ;
- foreach(Player,i)
- {
- for ( slot = 0; slot < 13; slot++ )
- {
- GetPlayerWeaponData ( i , slot , weap , ammo ) ;
- if ( ammo != 0 && weap == 38 )
- {
- Count++ ;
- SendFMessage ( playerid , 0x00C0FFFF ,""CGREY"[ %s ] ( %d ) || Ammo: %d ", GetPName ( i ) , i , ammo ) ;
- }
- }
- }
- if ( Count == 0 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,"Nao Foram Encontradas Miniguns!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:tapatodos(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- Float:x,
- Float:y,
- Float:z
- ;
- foreach(Player,i)
- {
- if ( i == playerid ) continue;
- GetPlayerPos ( i , x , y , z ) ;
- SetPlayerPos ( i , x , y , z+14 ) ;
- }
- SendFMessageToAll ( 0x00C0FFFF , "» Admin [ %s ] ( %d ) Deu Um Tapao Em Todos.", GetPName ( playerid ) , playerid ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:giveallmoney(playerid,params[])
- {
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- new
- amount
- ;
- if ( sscanf ( params , "i" , amount ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/giveallmoney [ Grana ]" ) ;
- foreach(Player,i)
- {
- GivePlayerMoney ( i , amount ) ;
- }
- SendFMessageToAll ( 0x00C0FFFF ,"» Admin [ %s ] ( %d ) De ua Todos $[ %d ] De Grana!", GetPName ( playerid ) , playerid , amount ) ;
- format ( diogo , sizeof ( diogo ) , "~g~~h~ $%d for everyone!" , amount ) ;
- GameTextForAll ( diogo , 4000 , 3 ) ;
- return 1;
- }
- //------------------------- Seta Vip -------------------------------------------
- CMD:setvip(playerid, params[])
- {
- new id, vlevel;
- if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
- return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
- if ( sscanf ( params, "ui" , id , vlevel ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO : "CWHITE"/setvip [ id ] [ level ]");
- if ( vlevel > 3 || vlevel < 0 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Level De 0 Até 3" ) ;
- if ( vlevel == PInfo [ id ] [ VIPlevel ] )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Esse Player Já E Vip!" ) ;
- if(id == INVALID_PLAYER_ID)
- return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado!" ) ;
- if ( PInfo [ id ] [ VIPlevel ] > vlevel ) GameTextForPlayer ( id , "~r~Rebaixado" , 3000 , 3 ) ;
- if ( PInfo [ id ] [ VIPlevel ] < vlevel ) GameTextForPlayer ( id , "~g~Promovido" , 3000 , 3 ) ;
- switch(vlevel)
- {
- case 0: AdminRank = "Player";
- case 1: AdminRank = "Bronze VIP";
- case 2: AdminRank = "Silver VIP";
- case 3: AdminRank = "Premium VIP";
- }
- PInfo [ id ] [ VIPlevel ] = vlevel ;
- format ( diogo , sizeof ( diogo ) , "Admin [ %s ] (%d) Setou [ %s ] (%d) Para Vip [ %d - %s ]", pname , playerid , pname , id , vlevel , AdminRank ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "Você foi Setado Por [ %s ] (%d) Para Vip [ %d - %s ]", pname , id, vlevel, AdminRank);
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- format ( diogo , sizeof ( diogo ) , "Admin [ %s ] (%d) Setou Seu Vip Level Para : [ %d - %s ]", pname , playerid , vlevel, AdminRank);
- SendClientMessage ( id , 0x00C0FFFF , diogo);
- return 1;
- }
- //-------------------------------- Vips ----------------------------------------
- CMD:vips(playerid, params[])
- {
- new string[556];
- new fstring[556];
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(PInfo[i][VIPlevel] >= 1)
- {
- switch(PInfo [ i ] [ VIPlevel ] )
- {
- case 1: AdminRank = "Bronze VIP";
- case 2: AdminRank = "Silver VIP";
- case 3: AdminRank = "Premium VIP";
- }
- format(fstring, sizeof(fstring), "%s (%d) - Level: %d - %s\n", pname , i, PInfo [ i ] [ VIPlevel ] , AdminRank ) ;
- strcat(string, fstring, 556);
- }
- format(fstring, sizeof(fstring), "\r\n Total Vips: %d");
- strcat(string, fstring, 556);
- ShowPlayerDialog(playerid, VIPS, DIALOG_STYLE_MSGBOX, "Vips Online:", string, "Ok", "");
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ajudalevel(playerid, params[]) { if(PInfo [ playerid ] [ Adminlevel ] == 0 ) return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ; return 1; }
- //------------------------------------------------------------------------------
- CMD:level1(playerid,params[])
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "| Comandos De Admin Level 1 : |" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /a /limpo /limparchat /kick /setworld /checararmas " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /ir /tapa /explodir /avisar /ann /asay /miniguns " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /espiar /specoff /ip /ecmd /mae " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:level2(playerid,params[])
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "| Comandos De Admin Level 2 : |" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /av /ao /setskin /trazer /disarmar /setint /gotoxyz " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /congelar /descongelar /desarmar /ban " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:level3(playerid,params[])
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "| Comandos De Admin Level 3 : |" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /spawn /setvida /setcolete /tapatodos /giveallmoney /tocarson " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:level4(playerid,params[])
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "| Comandos De Admin Level 4 : |" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /dararma /skick /setscore /setgrana " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /dargrana /rc " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 3 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:level5(playerid,params[])
- {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "| Comandos De Admin Level 5 : |" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /gmx /lockserver /unlockserver /desarmartodos " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /kickartodos /escrever /setadmin /akill " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " /crashar /ricos /setvip " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 3 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 4 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- return 1;
- }
- //--------------------------------VIP CMDS--------------------------------------
- CMD:vcmds(playerid, params[])
- {
- if(strcmp(params, "1", true) == 0) {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 ) {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF, "{00FF00}/vsay /vreparar /vcor /vbike /kitvip" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- }
- }
- else if ( strcmp ( params , "2", true ) == 0) {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 2) {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level1 " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}/vskin /mytime /myweather /respawn" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- }
- }
- else if ( strcmp ( params , "3" , true ) == 0 ) {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 ) {
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level 1" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level 2" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ");
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}/vcar /vheal /varmour /vjetpack /vaddnos" ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , " ");
- SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- //Vip Level 1 =
- CMD:vreparar(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( !IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
- new VehicleID = GetPlayerVehicleID ( playerid ) ;
- RepairVehicle ( VehicleID ) ;
- GameTextForPlayer ( playerid , "~w~~n~~n~~n~~n~~n~~n~Vehicle ~g~Reparado!", 3000, 3);
- SetVehicleHealth ( VehicleID , 1000 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF, "{00FF00}[ Vip System ]Voce Reparou Seu Veiculo Com Sucesso!");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:kitvip(playerid)
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- GivePlayerWeapon ( playerid , 24 , 500 ) ;
- GivePlayerWeapon ( playerid , 26 , 500 ) ;
- GivePlayerWeapon ( playerid , 30 , 500 ) ;
- GivePlayerWeapon ( playerid , 32 , 500 ) ;
- GivePlayerWeapon ( playerid , 34 , 500 ) ;
- GivePlayerWeapon ( playerid , 18 , 50 ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Kit-Vip Adquirido ! " ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vcor(playerid, params[])
- {
- new
- color,
- color2
- ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( !IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
- if ( sscanf ( params , "ii" , color , color2 ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Uso: "CWHITE" /vcor [ cor1 ] [ cor2 ]");
- if ( color < 0 || color > 126 )
- return SendClientMessage(playerid, 0x00C0FFFF , "{F81414}0 - 126");
- if ( color2 < 0 || color2 > 126 )
- return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}0 - 126");
- format ( diogo , sizeof ( diogo ) , "{00FF00}Você Setou a Cor de seu veiculo para : %i | cor2 %i" , color, color2);
- SendClientMessage ( playerid, 0x00C0FFFF , diogo ) ;
- ChangeVehicleColor ( GetPlayerVehicleID ( playerid ) , color , color2 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vbike(playerid, params[])
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:angle
- ;
- GetPlayerPos ( playerid , x , y , z ) ;
- GetPlayerFacingAngle ( playerid , angle ) ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( !IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
- AddStaticVehicle(522, x, y, z, angle, -1, -1);
- SendClientMessage(playerid, 0x00C0FFFF , "Moto Vip Spawnada Com Sucesso!");
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vsay(playerid, params[])
- {
- new Poha [ 148 ] ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( sscanf ( params , "s[148]" , Poha ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE" /vsay [ texto ]" ) ;
- format ( diogo , sizeof ( diogo ) , "Vip [ %s ] : {00ff00} %s", pname , pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //-------------------------- Cmd Vip Lvl 2 -------------------------------------
- CMD:vskin(playerid, params[])
- {
- new
- skinid
- ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( sscanf ( params , "i" , skinid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/vskin [ ID ]" ) ;
- if ( skinid < 0 || skinid > 299 )
- return SendClientMessage ( playerid , -1 , "0 - 299 ID'S");
- SetPlayerSkin ( playerid , skinid ) ;
- format ( diogo , sizeof ( diogo ) , "[ Vip System ] Você Setou Sua Skin Para : [ %i ]" , skinid ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:mytime(playerid, params[])
- {
- new
- time
- ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( sscanf ( params , "i" , time ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/vmytime [ tempo ]" ) ;
- if ( time < 0 || time > 23 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "0 - 23" ) ;
- SetPlayerTime ( playerid , time , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "[ Vip System ]Você setou seu Tempo Para : [ %02d:00 ]", time);
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:myweather(playerid, params[])
- {
- new weather;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( sscanf ( params , "i" , weather ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/myweather [ id ]" ) ;
- if ( weather < 0 || weather > 45 )
- return SendClientMessage ( playerid , 0x00C0FFFF , "0 - 45" ) ;
- SetPlayerWeather ( playerid , weather ) ;
- format ( diogo , sizeof ( diogo ) , "[ Vip System ] Você setou seu Weather Para : [ %i ]", weather ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:respawn(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Deu Spawn Com Sucesso!" ) ;
- SetPlayerPos ( playerid , 0.0 , 0.0 , 0.0 ) ;
- SpawnPlayer ( playerid ) ;
- return 1;
- }
- //--------------------- Vip Level 3 --------------------------------------------
- CMD:vcar(playerid, params[])
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:angle
- ;
- GetPlayerPos ( playerid , x , y , z ) ;
- GetPlayerFacingAngle ( playerid , angle ) ;
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Você ja esta em Um Carro!" ) ;
- AddStaticVehicle ( 411 , x , y , z , angle , -1 , -1 ) ;
- SendClientMessage ( playerid, 0x00C0FFFF , "[Vip System] Carro Spawnado Com Sucesso!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vjetpack(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Saia Do Veiculo!" ) ;
- SetPlayerSpecialAction ( playerid , SPECIAL_ACTION_USEJETPACK ) ;
- SendClientMessage ( playerid, 0x00C0FFFF , "[ Vip System ] Jetpack Spawnada !" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vheal(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Recuperou Toda Sua Vida!" ) ;
- SetPlayerHealth ( playerid , 100.0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:varmour(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Recuperou Todo Seu Colete!" ) ;
- SetPlayerArmour ( playerid , 100.0 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vaddnos(playerid, params[])
- {
- if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
- return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
- if ( IsPlayerInAnyVehicle ( playerid ) )
- return SendClientMessage ( playerid , 0x00C0FFFF , "Saia Do Veiculo!" ) ;
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Nitro Adicionado Com Sucesso!" ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- //Comandos Arenas DM ^^
- CMD:arena(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if(Health < 30.0) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para a Arena {FF0000}( /Arena )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( SpawnArena ) ) ; SetPlayerPos ( playerid , SpawnArena [ R2 ] [ 0 ] , SpawnArena [ R2 ] [ 1 ] , SpawnArena [ R2 ] [ 2 ] ) ;
- SetPlayerInterior ( playerid , 0 ) ;
- ArenaTipo [ playerid ] = 1;
- SetPlayerVirtualWorld ( playerid , 1 ) ;
- ResetPlayerWeapons ( playerid ) ;
- GivePlayerWeapon ( playerid , 4 , 999 ) ;
- GivePlayerWeapon ( playerid , 24 , 999 ) ;
- GivePlayerWeapon ( playerid , 27 , 999 ) ;
- GivePlayerWeapon ( playerid , 31 , 999 ) ;
- GivePlayerWeapon ( playerid , 32 , 999 ) ;
- GivePlayerWeapon ( playerid , 34 , 999 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour (playerid , 100 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:pistola(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if(Health < 30.0) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o combate de Desert Eagle {FF0000}( /Pistola )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( SpawnArenaPistola ) ) ; SetPlayerPos ( playerid , SpawnArenaPistola [ R2 ] [ 0 ] , SpawnArenaPistola [ R2 ] [ 1 ] , SpawnArenaPistola [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo [ playerid ] = 2 ;
- SetPlayerVirtualWorld ( playerid , 2 ) ;
- SetPlayerHealth ( playerid, 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 24 , 999 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:sniper(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o combate de Sniper {FF0000}( /Sniper)", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( SpawnArenaSniper ) ) ; SetPlayerPos ( playerid , SpawnArenaSniper [ R2 ] [ 0 ] , SpawnArenaSniper [ R2 ] [ 1 ] , SpawnArenaSniper [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 3;
- SetPlayerVirtualWorld ( playerid , 1 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 34 , 999 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:porrada(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o combate de Porrada {FF0000}( /Porrada)", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 4;
- SetPlayerVirtualWorld ( playerid , 2 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 0 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:bastao(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Bastao {FF0000}( /Bastao )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 5;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 3 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:katana(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Katana {FF0000}( /Katana )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 6;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 8 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:serra(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Serra {FF0000}( /Serra )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 7;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 9 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:vibradordm(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Vibrador {FF0000}( /VibradorDm )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 8;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 13 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:bengaladm(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Bengala {FF0000}( /BengalaDm )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 9;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 90 ) ;
- SetPlayerArmour ( playerid , 10 ) ;
- GivePlayerWeapon ( playerid , 15 , 1 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:granada(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Granada {FF0000}( /Granada )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 10;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 16 , 999 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:molotov(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Molotov {FF0000}( /Molotov )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 11;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 18 , 999 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:pistola9mm(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De 9MM {FF0000}( /Pistola9MM )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 12;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 22 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:pistolasdm(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Silenciadora Dm {FF0000}( /PistolasDm )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 13;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 23 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:shp(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Shotgun Punhetera {FF0000}( /Shp )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 14;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 25 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:doze(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Doze {FF0000}( /Doze )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 15;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 26 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:cshp(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate Shotgun {FF0000}( /CShp )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 16;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 27 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:uzi(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Uzi {FF0000}( /Uzi )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- ArenaTipo[playerid] = 17;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 28 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:mp5(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De MP5 {FF0000}( /MP5 )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 18;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 29 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:ak47(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De AK-47 {FF0000}( /AK47 )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 19;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 30 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:tec9(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Tec9 {FF0000}( /Tec9 )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 20;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 32 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:cr(playerid, params[])
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- new Float:Health;
- GetPlayerHealth ( playerid , Health ) ;
- if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
- if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
- EstaEmUmaArena [ playerid ] = true ;
- SetPlayerInterior ( playerid , 0 ) ;
- format ( diogo , sizeof ( diogo ) , "{FF0000}[ %s ]{00FF7F} foi para o Combate De Country Rifle {FF0000}( /CR )", pname ) ;
- SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
- new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
- ResetPlayerWeapons ( playerid ) ;
- ArenaTipo[playerid] = 21;
- SetPlayerVirtualWorld ( playerid , 3 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- GivePlayerWeapon ( playerid , 33 , 9988 ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:x1(playerid)
- {
- if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
- if(X1Q == 2)return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO] X1 Está lotado aguarde!" ) ;
- if(!X1L)return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO] X1 Fechado!" ) ;
- if(X1Q == 0) { SetPlayerPos ( playerid , 1451.3765 ,-1048.5012 ,213.3828 ) ; }
- else if ( X1Q == 1 ) { SetPlayerPos ( playerid , 1451.0876 , -1084.6818 , 213.3828 ) ; }
- X1Q ++ ;
- PInfo [ playerid ] [ Inx1 ] = 1 ;
- ResetPlayerWeapons ( playerid ) ;
- GivePlayerWeapon ( playerid , 26 , 999 ) ;
- GivePlayerWeapon ( playerid , 28 , 999 ) ;
- SetPlayerArmour ( playerid , 100 ) ;
- SetPlayerHealth ( playerid , 100 ) ;
- SetPlayerVirtualWorld ( playerid , 12 ) ;
- format ( diogo , sizeof ( diogo ) , "[X1] {FFFFFF}[ %s ]{00FFFF} Foi para o X1 ( /x1 )", pname ) ;
- SendClientMessageToAll ( 0x00FFFFFF , diogo ) ;
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:comandosdm(playerid,params[])
- {
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- SendClientMessage(playerid,-1,"{00FF00}| Comandos Do Servidor |");
- SendClientMessage(playerid,-1,"{00FF00}| /X1 /Cr /Tec9 /Ak47 /Mp5 /Uzi /Cshp /Arena |");
- SendClientMessage(playerid,-1,"{00FF00}| /Doze /Shp /Pistola9mm /pistolasdm /Pistola |");
- SendClientMessage(playerid,-1,"{00FF00}| /Molotov /Granada /VibradorDm /BengalaDm |");
- SendClientMessage(playerid,-1,"{00FF00}| /Serra /Katana /Bastao /Porrada /Sniper |");
- SendClientMessage(playerid,-1,"{00FF00}");
- SendClientMessage(playerid,-1,"{00FF00}| Use : /Comandos2 |");
- SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
- return 1;
- }
- //------------------------------------------------------------------------------
- stock Path ( playerid ) {
- new str [ 128 ] , name [ MAX_PLAYER_NAME ] ;
- GetPlayerName ( playerid , name , sizeof ( name ) ) ;
- format ( str , sizeof ( str ) , UserPath , name ) ;
- return str;
- }
- //------------------------------------------------------------------------------
- stock GetNumberOfPlayersOnThisIP ( test_ip [ ] ) {
- new against_ip [ 32+1 ] ;
- new x = 0 ;
- new ip_count = 0 ;
- for ( x=0 ; x<MAX_PLAYERS; x++ ) {
- if ( IsPlayerConnected ( x ) ) {
- GetPlayerIp ( x , against_ip , 32 ) ;
- if ( !strcmp ( against_ip , test_ip ) ) ip_count ++ ;
- }
- }
- return ip_count;
- }
- //------------------------------------------------------------------------------
- stock SetPlayerMoney(playerid,ammount)
- {
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid,ammount);
- return 1;
- }
- //------------------------------------------------------------------------------
- stock IsTransfenderVehicle(model)
- {
- switch(model)
- {
- case 400,401,402,404,405,409,410,411,415,418,419,420,421,422,424,426,429,436,438,439,
- 442,445,451,458,466,467,474,475,477,478,479,480,489,491,492,496,500,505,506,
- 507,516,517,518,527,526,529,533,540,541,542,545,546,547,549,550,551,555,575,
- 579,580,585,587,589,600,602,603: return 1;
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- stock IsLocolowVehicle(model)
- {
- switch(model)
- {
- case 412,534,535,536,566,567,576: return 1;
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- stock IsWAAVehicle(model)
- {
- switch(model)
- {
- case 558,559,560,561,562,565: return 1;
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
- {
- switch(paintjobid)
- {
- case -1,0,1,2,3,4,5: return 1;
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- stock BanBot(playerid)
- {
- format ( diogo , sizeof ( diogo ) , "BOT/CONNECT FLOOD bloqueado: [ %s ] (%i) - [BANIDO]" , pname , pname ) ;
- print ( diogo ) ;
- SendClientMessage ( playerid , -1 , "[SERVER]: Seu IP foi banido por tentar conectar 5x em menos de 2 segundos de forma seguida." ) ;
- BanEx ( playerid , "Flood/Reconnect" ) ;
- }
- //------------------------------------------------------------------------------
- stock ProcessarBOT(playerid)
- {
- BotTolerance++ ;
- if ( BotTolerance >= 5 )
- BanBot ( playerid ) ;
- }
- //------------------------------------------------------------------------------
- stock GetPName ( playerid ) {
- new gName [ MAX_PLAYER_NAME ] ;
- GetPlayerName ( playerid , gName , sizeof gName ) ;
- return gName;
- }
- //------------------------------------------------------------------------------
- stock CheckVehicle( vehicleid ) {
- #define MAX_INVALID_NOS_VEHICLES 33
- new InvalidNOSVehicles [ MAX_INVALID_NOS_VEHICLES ] = {
- 441,581,523,462,521,463,522,461,448,468,586,509,481,510,472,473,493,595,484,430,453,452,446,454,590,569,537,538,570,449,513,520,476
- };
- for ( new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++ )
- {
- if ( GetVehicleModel ( vehicleid ) == InvalidNOSVehicles [ i ] ) return false;
- }
- return true;
- }
- //------------------------------------------------------------------------------
- stock MatarPlayer(playerid, &Float:x, &Float:y, Float:distance)
- {
- new Float:a;
- GetPlayerPos ( playerid , x , y , a ) ;
- if ( GetPlayerVehicleID ( playerid ) )
- {
- GetVehicleZAngle ( GetPlayerVehicleID ( playerid ) , a ) ;
- }
- GetPlayerFacingAngle ( playerid , a ) ;
- x += ( distance * floatsin ( -a , degrees ) ) ;
- y += ( distance * floatcos ( -a , degrees ) ) ;
- }
- //------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment