Guest User

TensoxD

a guest
Mar 14th, 2013
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 203.58 KB | None | 0 0
  1. /*
  2. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  3. ||||||||||||||||||||||||||||||||||||Versao1.5|||||||||||||||||||||||||||||||||||
  4. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  5. */
  6.  
  7.  
  8. #include <a_samp> //
  9. #include <zcmd> //
  10. #include <YSI\y_ini>//
  11. #include <sscanf2> //
  12. #include <foreach>
  13. #include <streamer>
  14. //------------------------------------------------------------------------------
  15. #define COL_RED                                                       "{F81414}"
  16. #define COL_LIGHTBLUE                                                 "{00C0FF}"
  17. #define COL_LRED                                                      "{FFA1A1}"
  18. #define COL_GREEN                                                     "{6EF83C}"
  19. #define COL_GREY                                                      "{C3C3C3}"
  20. #define CRED                                                          "{FB0000}"
  21. #define CAFK                                                          "{6AF7E1}"
  22. #define CGREY                                                         "{AFAFAF}"
  23. #define CBLUE                                                         "{0000FF}"
  24. #define CPINK                                                         "{FF66FF}"
  25. #define CAQUA                                                         "{7CFC00}"
  26. #define CGREEN                                                        "{33AA33}"
  27. #define CBLACK                                                        "{000000}"
  28. #define CWHITE                                                        "{FFFFFF}"
  29. #define CWHITEP                                                       "{FFFFD5}"
  30. #define CORANGE                                                       "{FF8000}"
  31. #define CSYSTEM                                                       "{EFEFF7}"
  32. #define CPURPLE                                                       "{FF00FF}"
  33. #define CYELLOW                                                       "{FFFF00}"
  34. #define CLIGHTRED                                                     "{FF8080}"
  35. #define CDARKPINK                                                     "{E100E1}"
  36. #define CDARKGREEN                                                    "{008040}"
  37. #define CLIGHTBLUE                                                    "{33CCFF}"
  38. #define CLIGHTGREEN                                                   "{38FF06}"
  39. #define COL_YELLOW                                                    0xFFFA00FF
  40. #define CANNOUNCEMENT                                                 "{00CACA}"
  41. //------------------------------------------------------------------------------
  42. #define MAX_CONNECTIONS_FROM_IP  3
  43. #define NaoPodeUsarCmD      "[ERRO]: Você Não e Um Admin Ou Não Tem Level Alto Para Tal Açao."
  44. //------------------------------------------------------------------------------
  45. #define GangWar     1
  46. #define Creditos    2
  47. #define registro    3
  48. #define login       4
  49. #define Evento      5
  50. #define Admin       6
  51. #define Dialog_Arma 7
  52. #define VIPS        8
  53. //------------------------------------------------------------------------------
  54. #define GROVECOLOR                                                    0x00C31EFF
  55. #define VAGOSCOLOR                                                    0xF5D400FF
  56. #define BALLASCOLOR                                                   0xCF00EAFF
  57. #define AZTECSCOLOR                                                   0x0069FFFF
  58. //------------------------------------------------------------------------------
  59. #define versao                                                         "1.5"
  60. #undef  MAX_PLAYERS
  61. #define MAX_PLAYERS                                                     150
  62. #undef  MAX_VEHICLES
  63. #define MAX_VEHICLES                                                    850
  64. #undef  MAX_PICKUPS
  65. #define MAX_PICKUPS                                                     50
  66. #define MAXAVISOS (3)
  67. //------------------------------------------------------------------------------
  68. #define PlaySound(%0,%1)    PlayerPlaySound(%0,%1,0,0,0)
  69. #define SendFMessage(%0,%1,%2,%3) SendClientMessage(%0,%1,%2)
  70. #define SendFMessageToAll(%1,%2,%3) SendClientMessageToAll(%1,%2)
  71. #define CDO CreateDynamicObject //RsRs
  72. //------------------------------------------------------------------------------
  73. #define UserPath "Accs/%s.ini" // Salva As Contas
  74. native WP_Hash(buffer[],len,const str[]);
  75. //------------------------------------------------------------------------------
  76. new VehicleNames[212][] = {
  77.     "Landstalker","Bravura","Buffalo","Linerunner",
  78.     "Pereniel","Sentinel","Dumper","Firetruck",
  79.     "Trashmaster","Stretch","Manana","Infernus",
  80.     "Voodoo","Pony","Mule","Cheetah","Ambulance",
  81.     "Leviathan","Moonbeam","Esperanto","Taxi",
  82.     "Washington","Bobcat","Mr Whoopee","BF Injection",
  83.     "Hunter","Premier","Enforcer","Securicar",
  84.     "Banshee","Predator","Bus","Rhino",
  85.     "Barracks","Hotknife","Trailer",
  86.     "Previon","Coach","Cabbie",
  87.     "Stallion","Rumpo","RC Bandit","Romero","Packer",
  88.     "Monster","Admiral","Squalo","Seasparrow",
  89.     "Pizzaboy","Tram","Trailer","Turismo","Speeder",
  90.     "Reefer","Tropic","Flatbed","Yankee",
  91.     "Caddy","Solair","Berkley's RC Van",
  92.     "Skimmer","PCJ-600","Faggio",
  93.     "Freeway","RC Baron","RC Raider",
  94.     "Glendale","Oceanic","Sanchez","Sparrow",
  95.     "Patriot","Quad","Coastguard","Dinghy",
  96.     "Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
  97.     "Comet","BMX","Burrito","Camper","Marquis",
  98.     "Baggage","Dozer","Maverick","News Chopper",
  99.     "Rancher","FBI Rancher","Virgo","Greenwood",
  100.     "Jetmax","Hotring","Sandking","Blista Compact",
  101.     "Police Maverick","Boxville","Benson","Mesa",
  102.     "RC Goblin","Hotring Racer A","Hotring Racer B",
  103.     "Bloodring Banger","Rancher","Super GT","Elegant",
  104.     "Journey","Bike","Mountain Bike","Beagle",
  105.     "Cropdust","Stunt","Tanker","RoadTrain",
  106.     "Nebula","Majestic","Buccaneer","Shamal","Hydra"
  107.     ,"FCR-900","NRG-500","HPV1000","Cement Truck",
  108.     "Tow Truck","Fortune","Cadrona","FBI Truck",
  109.     "Willard","Forklift","Tractor","Combine","Feltzer",
  110.     "Remington","Slamvan","Blade","Freight","Streak",
  111.     "Vortex","Vincent","Bullet","Clover",
  112.     "Sadler","Firetruck","Hustler","Intruder","Primo",
  113.     "Cargobob","Tampa","Sunrise","Merit","Utility",
  114.     "Nevada","Yosemite","Windsor","Monster A",
  115.     "Monster B","Uranus","Jester","Sultan","Stratum",
  116.     "Elegy","Raindance","RC Tiger","Flash","Tahoma",
  117.     "Savanna","Bandito","Freight","Trailer",
  118.     "Kart","Mower","Duneride","Sweeper","Broadway",
  119.     "Tornado","AT-400","DFT-30","Huntley","Stafford",
  120.     "BF-400","Newsvan","Tug","Trailer A","Emperor",
  121.     "Wayfarer","Euros","Hotdog","Club","Trailer B",
  122.     "Trailer C","Andromada","Dodo","RC Cam","Launch",
  123.     "Police Car (LSPD)","Police Car (SFPD)",
  124.     "Police Car (LVPD)","Police Ranger","Picador",
  125.     "S.W.A.T. Van","Alpha","Phoenix","Glendale",
  126.     "Sadler","Luggage Trailer A","Luggage Trailer B",
  127.     "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  128. };
  129. //------------------------------------------------------------------------------
  130. new Float:gRandomSpawns_LosSantos[][4] =
  131. {
  132.     {1751.1097,-2106.4529,13.5469,183.1979}, // El-Corona - Outside random house
  133.     {2652.6418,-1989.9175,13.9988,182.7107}, // Random house in willowfield - near playa de seville and stadium
  134.     {2489.5225,-1957.9258,13.5881,2.3440}, // Hotel in willowfield - near cluckin bell
  135.     {2689.5203,-1695.9354,10.0517,39.5312}, // Outside stadium - lots of cars
  136.     {2770.5393,-1628.3069,12.1775,4.9637}, // South in east beach - north of stadium - carparks nearby
  137.     {2807.9282,-1176.8883,25.3805,173.6018}, // North in east beach - near apartments
  138.     {2552.5417,-958.0850,82.6345,280.2542}, // Random house north of Las Colinas
  139.     {2232.1309,-1159.5679,25.8906,103.2939}, // Jefferson motel
  140.     {2388.1003,-1279.8933,25.1291,94.3321}, // House south of pig pen
  141.     {2481.1885,-1536.7186,24.1467,273.4944}, // East LS - near clucking bell and car wash
  142.     {2495.0720,-1687.5278,13.5150,359.6696}, // Outside CJ's house - lots of cars nearby
  143.     {2306.8252,-1675.4340,13.9221,2.6271}, // House in ganton - lots of cars nearby
  144.     {2191.8403,-1455.8251,25.5391,267.9925}, // House in south jefferson - lots of cars nearby
  145.     {1830.1359,-1092.1849,23.8656,94.0113}, // Mulholland intersection carpark
  146.     {2015.3630,-1717.2535,13.5547,93.3655}, // Idlewood house
  147.     {1654.7091,-1656.8516,22.5156,177.9729}, // Right next to PD
  148.     {1219.0851,-1812.8058,16.5938,190.0045}, // Conference Center
  149.     {1508.6849,-1059.0846,25.0625,1.8058}, // Across the street of BANK - lots of cars in intersection carpark
  150.     {1421.0819,-885.3383,50.6531,3.6516}, // Outside house in vinewood
  151.     {1133.8237,-1272.1558,13.5469,192.4113}, // Near hospital
  152.     {1235.2196,-1608.6111,13.5469,181.2655}, // Backalley west of mainstreet
  153.     {590.4648,-1252.2269,18.2116,25.0473}, // Outside "BAnk of San Andreas"
  154.     {842.5260,-1007.7679,28.4185,213.9953}, // North of Graveyard
  155.     {911.9332,-1232.6490,16.9766,5.2999}, // LS Film Studio
  156.     {477.6021,-1496.6207,20.4345,266.9252}, // Rodeo Place
  157.     {255.4621,-1366.3256,53.1094,312.0852}, // Outside propery in richman
  158.     {281.5446,-1261.4562,73.9319,305.0017}, // Another richman property
  159.     {790.1918,-839.8533,60.6328,191.9514}, // Mulholland house
  160.     {1299.1859,-801.4249,84.1406,269.5274}, // Maddoggs
  161.     {1240.3170,-2036.6886,59.9575,276.4659}, // Verdant Bluffs
  162.     {2215.5181,-2627.8174,13.5469,273.7786}, // Ocean docks 1
  163.     {2509.4346,-2637.6543,13.6453,358.3565} // Ocean Docks spawn 2
  164. };
  165. //------------------------------------------------------------------------------
  166. new MSGS[12][115] =
  167. {
  168.     "{FF0000}[INFO]: {FFFFFF}Servidor Gang War Los Santos Team Death Match{FF0000}.",
  169.     "{FF0000}[INFO]: {FFFFFF}Servidor em Versão Beta Ou Seja Não Terminada ! {FF0000}Versão 1.0.",
  170.     "{FF0000}[INFO]: {FFFFFF}Use {FF0000}/GangWar {FFFFFF}Para Entar No Modo De Guerras De Gangs!.",
  171.     "{FF0000}[INFO]: {FFFFFF}Coloque Seu Tempo De Dia {FF0000}/Dia.",
  172.     "{FF0000}[INFO]: {FFFFFF}Coloque Seu Tempo De Noite {FF0000}/Noite.",
  173.  
  174.     "{FF0000}[INFO]: {FFFFFF}A Cada Spawn Você nasce Aleatoriamente Por LoS SantoS.",
  175.     "{FF0000}[INFO]: {FFFFFF}Quer Sair Do GangWar ?{FF0000}/Sairdm.",
  176.     "{FF0000}[INFO]: {FFFFFF}Veja Os Criadores Do Servidor{FF0000}/Creditos.",
  177.     "{FF0000}[INFO]: {FFFFFF}Está Perdido ? Use{FF0000}/Ajuda.",
  178.     "{FF0000}[INFO]: {FFFFFF}A Cada Spawn Você Nasce Com Armas Aleatorias.",
  179.     "{FF0000}[INFO]: {FFFFFF}Seu Carro Capoto?{FF0000}/Flip.",
  180.     "{FF0000}[INFO]: {FFFFFF}Tem Um Mané Querendo Roubar Seu Carro ? Use : {FF0000}/Trancar."
  181. };
  182. new cores[] =
  183. {
  184.     0xFFFFFF
  185. };
  186. //------------------------------------------------------------------------------
  187. new
  188.     diogo [ 129 ],
  189.     Text:Textdraw1,
  190.     pname [ MAX_PLAYER_NAME ],
  191.     Vagoskatana,
  192.     VagosVida,
  193.     GroveGranadas,
  194.     GroveVida,
  195.     BallasVida,
  196.     BallasMolotov,
  197.     PickupID [ MAX_PICKUPS ],
  198.     Vagoskills,
  199.     Text3D:Vagoslabel,
  200.     Aztecskills,
  201.     Text3D:Aztecslabel,
  202.     Ballaskills,
  203.     Text3D:Ballaslabel,
  204.     Grovekills,
  205.     Text3D:Grovelabel,
  206.     grovezone,
  207.     ballaszone,
  208.     vagoszone,
  209.     aztecaszone,
  210.     gText [ 200 ],
  211.     EventoVW,
  212.     EventoInt,
  213.     Float:EventoPos [ 4 ],
  214.     bool:EventoStatus,
  215.     bool:NoEvento[ 150 ],
  216.     giveplayerid,
  217.     nivel,
  218.     bool:temon=false,
  219.     objco [ 150 ],
  220.     TeleLockTimer [ 150 ],
  221.     bool:EstaEmUmaArena [ 150 ],
  222.     AdminRank [ 60 ],
  223.     LoaderFreezer = 1,
  224.     BotTolerance,
  225.     X1Q,
  226.     bool:X1L,
  227.     ArenaTipo [ 150 ] ,
  228.     pDrunkLevelLast [ 150 ],
  229.     pFPS [ 150 ],
  230.     drunknew [ 150 ]
  231. ;
  232. //------------------------- Enum -----------------------------------------------
  233. enum PlayerInfo
  234. {
  235.     InDM,
  236.     Pass[129],
  237.     Adminlevel,
  238.     VIPlevel,
  239.     Money,
  240.     Scores,
  241.     Kills,
  242.     Aviso,
  243.     Inx1,
  244.     Deaths,
  245.     Avisos
  246. }
  247. new PInfo [ MAX_PLAYERS ] [ PlayerInfo ] ;
  248. //------------------------------------------------------------------------------
  249. static l_temp [ 150 ] ;
  250.  
  251. //Pos Arenas
  252. 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
  253. 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
  254. new Float:SpawnArenaPistola [ 2 ] [ 3 ]  = { { 1454.0076,-1084.9932,213.3828 } , { 1451.5397,-1052.3337,213.3828 } };//Pistola Pós
  255. 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
  256.  
  257. //CoreS De Nick
  258. new PlayerColors[144] = {
  259. 0xFF8C13AA,0xC715FFAA,0x20B2AAAA,0xDC143CAA,
  260. 0x6495EDAA,0xf0e68cAA,0x778899AA,0xFF1493AA,
  261. 0xF4A460AA,0xEE82EEAA,0xFFD720AA,0x8b4513AA,
  262. 0x4949A0AA,0x148b8bAA,0x14ff7fAA,0x556b2fAA,
  263. 0x0FD9FAAA,0x10DC29AA,0x534081AA,0x0495CDAA,
  264. 0xEF6CE8AA,0xBD34DAAA,0x247C1BAA,0x0C8E5DAA,
  265. 0x635B03AA,0xCB7ED3AA,0x65ADEBAA,0x5C1ACCAA,
  266. 0xF2F853AA,0x11F891AA,0x7B39AAAA,0x53EB10AA,
  267. 0x54137DAA,0x275222AA,0xF09F5BAA,0x3D0A4FAA,
  268. 0x22F767AA,0xD63034AA,0x9A6980AA,0xDFB935AA,
  269. 0x3793FAAA,0x90239DAA,0xE9AB2FAA,0xAF2FF3AA,
  270. 0x057F94AA,0xB98519AA,0x388EEAAA,0x028151AA,
  271. 0xA55043AA,0x0DE018AA,0x93AB1CAA,0x95BAF0AA,
  272. 0x369976AA,0x18F71FAA,0x4B8987AA,0x491B9EAA,
  273. 0x829DC7AA,0xBCE635AA,0xCEA6DFAA,0x20D4ADAA,
  274. 0x2D74FDAA,0x3C1C0DAA,0x12D6D4AA,0x48C000AA,
  275. 0x2A51E2AA,0xE3AC12AA,0xFC42A8AA,0x2FC827AA,
  276. 0x1A30BFAA,0xB740C2AA,0x42ACF5AA,0x2FD9DEAA,
  277. 0xFAFB71AA,0x05D1CDAA,0xC471BDAA,0x94436EAA,
  278. 0xC1F7ECAA,0xCE79EEAA,0xBD1EF2AA,0x93B7E4AA,
  279. 0x3214AAAA,0x184D3BAA,0xAE4B99AA,0x7E49D7AA,
  280. 0x4C436EAA,0xFA24CCAA,0xCE76BEAA,0xA04E0AAA,
  281. 0x9F945CAA,0xDCDE3DAA,0x10C9C5AA,0x70524DAA,
  282. 0x0BE472AA,0x8A2CD7AA,0x6152C2AA,0xCF72A9AA,
  283. 0xE59338AA,0xEEDC2DAA,0xD8C762AA,0x3FE65CAA,
  284. 0xFF8C13AA,0xC715FFAA,0x20B2AAAA,0xDC143CAA,
  285. 0x6495EDAA,0xf0e68cAA,0x778899AA,0xFF1493AA,
  286. 0xF4A460AA,0xEE82EEAA,0xFFD720AA,0x8b4513AA,
  287. 0x4949A0AA,0x148b8bAA,0x14ff7fAA,0x556b2fAA,
  288. 0x0FD9FAAA,0x10DC29AA,0x534081AA,0x0495CDAA,
  289. 0xEF6CE8AA,0xBD34DAAA,0x247C1BAA,0x0C8E5DAA,
  290. 0x635B03AA,0xCB7ED3AA,0x65ADEBAA,0x5C1ACCAA,
  291. 0xF2F853AA,0x11F891AA,0x7B39AAAA,0x53EB10AA,
  292. 0x54137DAA,0x275222AA,0xF09F5BAA,0x3D0A4FAA,
  293. 0x22F767AA,0xD63034AA,0x9A6980AA,0xDFB935AA,
  294. 0x3793FAAA,0x90239DAA,0xE9AB2FAA,0xAF2FF3AA };
  295.  
  296. //------------------------------------------------------------------------------
  297. main()
  298. {
  299.     print ( "\n----------------------------------" ) ;
  300.     print ( " Carregando ..." ) ;
  301.     print ( " Carregando ......" ) ;
  302.     print ( " " ) ;
  303.     print ( " " ) ;
  304.     print ( " " ) ;
  305.     print ( " " ) ;
  306.     print ( " " ) ;
  307.     print ( " " ) ;
  308.     print ( "\n|||||" ) ;
  309.     print ( "\n||||||||||" ) ;
  310.     print ( "\n|||||||||||||||" ) ;
  311.     print ( "\n||||||||||||||||||||" ) ;
  312.     print ( "\n|||||||||||||||||||||||||" ) ;
  313.     print ( "\n||||||||||||||||||||||||||||||" ) ;
  314.     print ( "\n|||||||||||||||||||||||||||||||||||" ) ;
  315.     print ( " " ) ;
  316.     print ( " " ) ;
  317.     print ( " " ) ;
  318.     print ( " " ) ;
  319.     print ( "Carregado Com Exito 100% !" ) ;
  320.     print ( "----------------------------------\n" ) ;
  321. }
  322. //------------------------------------------------------------------------------
  323. public OnGameModeInit()
  324. {
  325.     X1Q=0;
  326.     //Gang Zone LS
  327.     grovezone = GangZoneCreate ( 2220.3711,-1937.0173,2737.8306,-1372.4310 ) ;
  328.     ballaszone = GangZoneCreate ( 1867.1725,-1365.6667,2715.0942,-996.6191 ) ;
  329.     vagoszone = GangZoneCreate ( 1812.8558,-1944.3761,2194.5898,-1298.6549 ) ;
  330.     aztecaszone = GangZoneCreate ( 1757.1777,-2172.8696,2665.1956,-1959.5331 ) ;
  331.     //3DText
  332.     Grovelabel = CreateDynamic3DTextLabel ( "Grove kills :\n 0", GROVECOLOR , 2517.0881,-1666.7532,13.0520,50 ) ;
  333.     Vagoslabel = CreateDynamic3DTextLabel ( "Vagos kills :\n 0", VAGOSCOLOR , 2517.0881,-1666.7532,14.0520,50 ) ;
  334.     Ballaslabel = CreateDynamic3DTextLabel ( "Ballas kills :\n 0", BALLASCOLOR , 2517.0881,-1666.7532,15.0520,50 ) ;
  335.     Aztecslabel = CreateDynamic3DTextLabel ( "Aztecs kills :\n 0", AZTECSCOLOR , 2517.0881,-1666.7532,16.0520,50 ) ;
  336.     //Pickups
  337.     Vagoskatana = CreateDynamicPickup ( 339,3,331.3098,1129.0006,1083.8828,-1 ) ;
  338.     VagosVida = CreateDynamicPickup ( 1240,3,326.7141,1119.1772,1083.8828,-1 ) ;
  339.     GroveGranadas = CreateDynamicPickup ( 342,3,2493.1768,-1710.1627,1014.7422,-1 ) ;
  340.     GroveVida = CreateDynamicPickup ( 1240,3,2492.5857,-1701.4929,1018.3438,-1 ) ;
  341.     BallasMolotov = CreateDynamicPickup ( 344,3,2251.4812,-1157.7870,1029.7969,-1 ) ;
  342.     BallasVida = CreateDynamicPickup ( 1240,3,2201.4048,-1151.7777,29.8044,-1 ) ;
  343.     //Skins ;)
  344.     AddPlayerClass (149 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  345.     AddPlayerClass (86 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  346.     AddPlayerClass (5 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  347.     AddPlayerClass (6 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  348.     AddPlayerClass (273 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  349.     AddPlayerClass (289 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  350.     AddPlayerClass (208 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  351.     AddPlayerClass (119 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  352.     AddPlayerClass (165 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  353.     AddPlayerClass (240 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  354.     AddPlayerClass (163 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  355.     AddPlayerClass (164 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  356.     AddPlayerClass (29 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  357.     AddPlayerClass (3 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  358.     AddPlayerClass (190 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  359.     AddPlayerClass (193 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  360.     AddPlayerClass (192 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  361.     AddPlayerClass (195 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  362.     AddPlayerClass (190 , 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ) ; //
  363.     //Config -soqn
  364.     SetGameModeText ( "•DM•4Fun•TDM•" ) ;
  365.     SendRconCommand ( "hostname  ••• Ultimate Team Death Match © » v"versao" •••" ) ;
  366.     SendRconCommand ( "weburl www.google.com" ) ;//ÇRÇRÇRÇR
  367.     SendRconCommand ( "rcon_password eserioessaporra?" ) ;//ÇRÇRÇRÇRÇRÇRÇR
  368.     EnableStuntBonusForAll ( 1 ) ;
  369.     UsePlayerPedAnims ( ) ;
  370.     //3DText
  371.     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
  372.     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
  373.     //Text Básica '-'
  374.     Textdraw1 = TextDrawCreate ( 200.000000 , 420.000000 ,"www.betsa.com.net " ) ;
  375.     TextDrawTextSize ( Textdraw1 , 0.620000 , 1.900000 ) ;
  376.     TextDrawAlignment ( Textdraw1 , 0 ) ;
  377.     TextDrawBackgroundColor ( Textdraw1 , 0x33AA33AA ) ;
  378.     TextDrawFont ( Textdraw1 , 1 ) ;
  379.     TextDrawLetterSize ( Textdraw1 , 0.899999 , 2.699999 ) ;
  380.     TextDrawColor ( Textdraw1 , 255 ) ;
  381.     TextDrawSetOutline ( Textdraw1 , 1 ) ;
  382.     TextDrawSetProportional ( Textdraw1 , 1 ) ;
  383.     //Tempo no Jogo
  384.     SetWeather ( 11 ) ;
  385.     //MSG
  386.     SetTimer("RandomMSG",10000,1);
  387.     //MAXIP
  388.     printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
  389.     return 1;
  390. }
  391. //------------------------------------------------------------------------------
  392. public OnVehicleMod(playerid,vehicleid,componentid)
  393. {
  394.     new model = GetVehicleModel(vehicleid);
  395.     switch(componentid)
  396.     {
  397.         case 1000:
  398.         {
  399.             switch(model)
  400.             {
  401.                 case 589,492,516,404,547,489,505,405,421,9917,91275,91754,92755,1915711,912346,8124613,715185,11111,0,2: return 1;
  402.             }
  403.         }
  404.         case 1001:
  405.         {
  406.             switch(model)
  407.             {
  408.                 case 496,401,518,527,415,585,546,410,603,426,436,405,580,439,550,549,420,540,529: return 1;
  409.             }
  410.         }
  411.         case 1002:
  412.         {
  413.             switch(model)
  414.             {
  415.                 case 496,546,517,551,418,516,404,489,505: return 1;
  416.             }
  417.         }
  418.         case 1003:
  419.         {
  420.             switch(model)
  421.             {
  422.                 case 496,401,518,415,585,517,410,551,426,436,547,439,550,549,420,491,529: return 1;
  423.             }
  424.         }
  425.         case 1004:
  426.         {
  427.             switch(model)
  428.             {
  429.                 case 401,589,492,546,516,600,426,489,505,550,420,540,478: return 1;
  430.             }
  431.         }
  432.         case 1005:
  433.         {
  434.             switch(model)
  435.             {
  436.                 case 401,518,589,492,551,600,426,489,505,550,420,478: return 1;
  437.             }
  438.         }
  439.         case 1006:
  440.         {
  441.             switch(model)
  442.             {
  443.                 case 496,401,518,589,585,492,546,551,418,603,600,426,436,489,505,580,550,540,529,477: return 1;
  444.             }
  445.         }
  446.         case 1007,1017:
  447.         {
  448.             switch(model)
  449.             {
  450.                 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;
  451.             }
  452.         }
  453.         case 1011:
  454.         {
  455.             switch(model)
  456.             {
  457.                 case 496,549,529: return 1;
  458.             }
  459.         }
  460.         case 1012:
  461.         {
  462.             switch(model)
  463.             {
  464.                 case 549,478,529: return 1;
  465.             }
  466.         }
  467.         case 1013:
  468.         {
  469.             switch(model)
  470.             {
  471.                 case 422,401,518,589,585,400,410,500,404,600,436,489,505,478,439: return 1;
  472.             }
  473.         }
  474.         case 1014:
  475.         {
  476.             switch(model)
  477.             {
  478.                 case 527,542,405,491,421: return 1;
  479.             }
  480.         }
  481.         case 1015:
  482.         {
  483.             switch(model)
  484.             {
  485.                 case 527,542,516: return 1;
  486.             }
  487.         }
  488.         case 1016:
  489.         {
  490.             switch(model)
  491.             {
  492.                 case 589,492,517,551,418,516,404,547,489,505,421: return 1;
  493.             }
  494.         }
  495.         case 1018:
  496.         {
  497.             switch(model)
  498.             {
  499.                 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;
  500.             }
  501.         }
  502.         case 1019:
  503.         {
  504.             switch(model)
  505.             {
  506.                 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;
  507.             }
  508.         }
  509.         case 1020:
  510.         {
  511.             switch(model)
  512.             {
  513.                 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;
  514.             }
  515.         }
  516.         case 1021:
  517.         {
  518.             switch(model)
  519.             {
  520.                 case 422,527,542,400,410,551,500,418,516,404,426,436,547,405,420,491,478,421,477: return 1;
  521.             }
  522.         }
  523.         case 1022:
  524.         {
  525.             switch(model)
  526.             {
  527.                 case 600,436,478: return 1;
  528.             }
  529.         }
  530.         case 1023:
  531.         {
  532.             switch(model)
  533.             {
  534.                 case 496,518,415,585,546,517,410,551,603,405,580,439,550,549,540,491,421,529: return 1;
  535.             }
  536.         }
  537.         case 1024:
  538.         {
  539.             switch(model)
  540.             {
  541.                 case 589,546,400,410,500,603,489,505,540,478: return 1;
  542.             }
  543.         }
  544.         case 1008..1010, 1025, 1073..1087, 1096..1098:
  545.         {
  546.             if(IsTransfenderVehicle(model) || IsLocolowVehicle(model) || IsWAAVehicle(model)) return 1;
  547.         }
  548.         case 1190..1193, 1134..1137:
  549.         {
  550.              if(model == 576) return 1;
  551.         }
  552.         case 1186..1189, 1129..1133, 1102:
  553.         {
  554.              if(model == 567) return 1;
  555.         }
  556.         case 1181..1184, 1128, 1107..1108, 1103..1105:
  557.         {
  558.              if(model == 536) return 1;
  559.         }
  560.         case 1185, 1178..1180, 1122..1127, 1106, 1100..1101:
  561.         {
  562.              if(model == 534) return 1;
  563.         }
  564.         case 1174..1177, 1099, 1042..1044:
  565.         {
  566.              if(model == 575) return 1;
  567.         }
  568.         case 1173, 1158..1162, 1065..1072:
  569.         {
  570.              if(model == 559) return 1;
  571.         }
  572.         case 1171..1172, 1146..1149, 1034..1041:
  573.         {
  574.              if(model == 562) return 1;
  575.         }
  576.         case 1169..1170, 1138..1141, 1026..1033:
  577.         {
  578.              if(model == 560) return 1;
  579.         }
  580.         case 1163..1168, 1088..1095:
  581.         {
  582.              if(model == 558) return 1;
  583.         }
  584.         case 1154..1157, 1055..1064:
  585.         {
  586.              if(model == 561) return 1;
  587.         }
  588.         case 1150..1153, 1045..1054:
  589.         {
  590.              if(model == 565) return 1;
  591.         }
  592.         case 1109..1121:
  593.         {
  594.              if(model == 535) return 1;
  595.         }
  596.         case 1142..1145:
  597.         {
  598.             switch(model)
  599.             {
  600.                 case 401,518,542,589,585,546,517,603,439,550,549,540,491: return 1;
  601.             }
  602.         }
  603.     }
  604.     return 0;
  605. }
  606. //------------------------------------------------------------------------------
  607. forward CrasharPlayer(playerid,Metodo);
  608. public CrasharPlayer(playerid,Metodo) {
  609.     if( Metodo == 1 ) {
  610.         for ( new i=0;i<=1000;i++ ) CreatePlayerObject ( playerid , 4108,0,0,0,0,0,0 ) ;
  611.         return 1;
  612.     }
  613.     if ( Metodo == 2 ) {
  614.         new
  615.             Float:X,
  616.             Float:Y,
  617.             Float:Z
  618.         ;
  619.         GetPlayerPos ( playerid , X , Y , Z ) ;
  620.         CreatePlayerObject ( playerid , 310 , X , Y , Z-5 , 0 , 0 , 0 ) ;
  621.         return 1;
  622.     }
  623.     if ( Metodo == 3 ) {
  624.         new
  625.             Float:X,
  626.             Float:Y,
  627.             Float:Z
  628.         ;
  629.         GetPlayerPos ( playerid , X , Y , Z ) ;
  630.         CreatePlayerObject ( playerid , 300 , X , Y , Z-5 , 0 , 0 , 0 ) ;
  631.         return 1;
  632.     }
  633.     return 0;
  634. }
  635. //------------------------------------------------------------------------------
  636. public OnPlayerUpdate(playerid)
  637. {
  638.     drunknew[playerid] = GetPlayerDrunkLevel(playerid);
  639.     if (drunknew[playerid] < 100) {
  640.         SetPlayerDrunkLevel(playerid, 2000);
  641.     } else {
  642.         if (pDrunkLevelLast[playerid] != drunknew[playerid])
  643.         {
  644.             new wfps = pDrunkLevelLast[playerid] - drunknew[playerid];
  645.             if ((wfps > 0) && (wfps < 200))
  646.             pFPS[playerid] = wfps;
  647.             pDrunkLevelLast[playerid] = drunknew[playerid];
  648.         }
  649.     }
  650.     return 1;
  651. }
  652. //------------------------------------------------------------------------------
  653. public OnPlayerRequestClass(playerid, classid) {
  654.     SetPlayerFacingAngle ( playerid , 151.7758 ) ;
  655.     SetPlayerCameraPos ( playerid , 2237.3972, -1646.6178, 16.3376 ) ;
  656.     SetPlayerCameraLookAt ( playerid , 2239.9063, -1641.9432, 15.5267 ) ;
  657.     GameTextForPlayer ( playerid , "~g~~h~Precione Shift" , 500 , 3 ) ;
  658.     ApplyAnimation ( playerid , "DANCING" , "dance_loop" , 4.1 , 1 , 1 , 1 , 0 , 0 , 1 ) ;
  659.     return 1;
  660. }
  661. //------------------------------------------------------------------------------
  662. forward loadaccount_user(playerid, name[], value[]);
  663. public loadaccount_user(playerid, name[], value[])
  664. {
  665.     INI_String("Password", PInfo [ playerid ] [ Pass ] , 129 ) ;
  666.     INI_Int("AdminLevel", PInfo [ playerid ] [ Adminlevel ] ) ;
  667.     INI_Int("VIPLevel", PInfo [ playerid ] [ VIPlevel ] ) ;
  668.     INI_Int("Money", PInfo [ playerid ] [ Money ] ) ;
  669.     INI_Int("Scores", PInfo [ playerid ] [ Scores ] ) ;
  670.     INI_Int("Kills", PInfo [ playerid ] [ Kills ] ) ;
  671.     INI_Int("Deaths", PInfo [ playerid ] [ Deaths ] ) ;
  672.     return 1;
  673. }
  674. //------------------------------------------------------------------------------
  675. public OnPlayerConnect(playerid) {
  676.     PInfo [ playerid ] [ Avisos ] = 0;
  677.     SetTimer ( "InfiniteNitro" , 10200 , 1 ) ;
  678.     ArenaTipo [ playerid ] = 0 ;
  679.     ProcessarBOT ( playerid ) ;
  680.     BotTolerance = 0 ;
  681.     SetPlayerColor ( playerid , PlayerColors [ playerid ] ) ;
  682.     if ( IsPlayerNPC ( playerid ) ) BanEx ( playerid , "NPC" ) ;
  683.     KillTimer ( TeleLockTimer [ playerid ] ) ;
  684.     NoEvento [ playerid ] = false ;
  685.     GameTextForPlayer(playerid,"~g~ESPERA MALANDRO ",1000,4);
  686.     GetPlayerName ( playerid , pname , sizeof ( pname ) ) ;
  687.     if ( fexist ( Path ( playerid ) ) )
  688.     {
  689.         INI_ParseFile ( Path ( playerid ) ,"loadaccount_%s", .bExtra = true, .extra = playerid ) ;
  690.         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" ) ;
  691.     } else {
  692.         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" ) ;
  693.         return 1;
  694.     }
  695.     SendDeathMessage ( INVALID_PLAYER_ID , playerid , 200 ) ;
  696.     GetPlayerName ( playerid , pname , sizeof ( pname ) ) ;
  697.     format ( diogo , sizeof ( diogo ) , "{66CC66}[  %s  ]{00FFFF}( %d ){6633CC} Entrou {FFFFFF}No Servidor!" , pname , playerid ) ;
  698.     SendClientMessageToAll ( -1 , diogo ) ;
  699.     //Gzs
  700.     GangZoneShowForPlayer ( playerid , grovezone , 0x00C714AA ) ;
  701.     GangZoneShowForPlayer ( playerid , ballaszone , 0xB400FFAA ) ;
  702.     GangZoneShowForPlayer ( playerid , vagoszone , 0xF5FF00AA ) ;
  703.     GangZoneShowForPlayer ( playerid , aztecaszone , 0x00A5FFAA ) ;
  704.     //InDm
  705.     EstaEmUmaArena [ playerid ] = false ;
  706.     PInfo [ playerid ] [ InDM ] = 0 ;
  707.     //Map Icons
  708.     SetPlayerMapIcon ( playerid ,49,822.6,-1590.3,13.5,7,0, MAPICON_LOCAL ) ;//LS
  709.     SetPlayerMapIcon ( playerid ,50,-2570.1,245.4,10.3,7,0, MAPICON_LOCAL ) ;//LS
  710.     SetPlayerMapIcon ( playerid ,51,2726.6,-2026.4,17.5,7,0, MAPICON_LOCAL ) ;//LS
  711.     SetPlayerMapIcon ( playerid ,52,2080.3,2119.0,10.8,7,0, MAPICON_LOCAL ) ;//LS
  712.     SetPlayerMapIcon ( playerid ,53,675.7,-496.6,16.8,7,0, MAPICON_LOCAL ) ;//LS
  713.     SetPlayerMapIcon ( playerid ,54,-1805.7,943.2,24.8,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  714.     SetPlayerMapIcon ( playerid ,55,2750.9,2470.9,11.0,29,0, MAPICON_LOCAL ) ;//LS AREARURAL
  715.     SetPlayerMapIcon ( playerid ,56,2351.8,2529.0,10.8,29,0, MAPICON_LOCAL ) ;//LS
  716.     SetPlayerMapIcon ( playerid ,57,2635.5,1847.4,11.0,29,0, MAPICON_LOCAL ) ;//LS
  717.     SetPlayerMapIcon ( playerid ,58,2083.4,2221.0,11.0,29,0, MAPICON_LOCAL ) ;//LS
  718.     SetPlayerMapIcon ( playerid ,59,-1719.1,1359.4,8.6,29,0, MAPICON_LOCAL ) ;//LS
  719.     SetPlayerMapIcon ( playerid ,60,2330.2,75.2,31.0,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  720.     SetPlayerMapIcon ( playerid ,61,203.2,-200.4,6.5,29,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  721.     SetPlayerMapIcon ( playerid ,62,812.9,-1616.1,13.6,10,0, MAPICON_LOCAL ) ;//LS
  722.     SetPlayerMapIcon ( playerid ,63,1199.1,-924.0,43.3,10,0, MAPICON_LOCAL ) ;//LS
  723.     SetPlayerMapIcon ( playerid ,64,2362.2,2069.9,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  724.     SetPlayerMapIcon ( playerid ,65,2469.5,2033.8,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  725.     SetPlayerMapIcon ( playerid ,66,2172.9,2795.7,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  726.     SetPlayerMapIcon ( playerid ,67,1875.3,2072.0,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  727.     SetPlayerMapIcon ( playerid ,68,1161.5,2072.0,10.8,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  728.     SetPlayerMapIcon ( playerid ,69,-2356.0,1009.0,49.0,10,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  729.     SetPlayerMapIcon ( playerid ,70,-1913.3,826.2,36.9,10,0, MAPICON_LOCAL ) ;//LS
  730.     SetPlayerMapIcon ( playerid ,71,-2335.6,-165.6,39.5,10,0, MAPICON_LOCAL ) ;//LS
  731.     SetPlayerMapIcon ( playerid ,72,2397.8,-1895.6,13.7,14,0, MAPICON_LOCAL ) ;//LS
  732.     SetPlayerMapIcon ( playerid ,73,2421.6,-1509.6,24.1,14,0, MAPICON_LOCAL ) ;//LS
  733.     SetPlayerMapIcon ( playerid ,74,-2671.6,257.4,4.6,14,0, MAPICON_LOCAL ) ;//LS
  734.     SetPlayerMapIcon ( playerid ,75,2392.4,2046.5,10.8,14,0, MAPICON_LOCAL ) ;//LS
  735.     SetPlayerMapIcon ( playerid ,76,2844.5,2401.1,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  736.     SetPlayerMapIcon ( playerid ,77,2635.5,1674.3,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  737.     SetPlayerMapIcon ( playerid ,78,2105.7,2228.7,11.0,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  738.     SetPlayerMapIcon ( playerid ,79,-2154.0,-2461.2,30.8,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  739.     SetPlayerMapIcon ( playerid ,80,-1816.2,620.8,37.5,14,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  740.     SetPlayerMapIcon ( playerid ,81,-1216.0,1831.4,45.3,14,0, MAPICON_LOCAL ) ;//LS
  741.     SetPlayerMapIcon ( playerid ,82,172.73,1176.76,13.7,14,0, MAPICON_LOCAL ) ;//LS
  742.     SetPlayerMapIcon ( playerid ,83,932.0,-1353.0,14.0,14,0, MAPICON_LOCAL ) ;//LS
  743.     SetPlayerMapIcon ( playerid ,84,1971.7,-2036.6,13.5,39,0, MAPICON_LOCAL ) ;//LS
  744.     SetPlayerMapIcon ( playerid ,85,2071.6,-1779.9,13.5,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  745.     SetPlayerMapIcon ( playerid ,86,2094.6,2119.0,10.8,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  746.     SetPlayerMapIcon ( playerid ,87,-2490.5,-40.1,39.3,39,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  747.     SetPlayerMapIcon ( playerid ,88,1372.9,-1278.8,12.5,6,0, MAPICON_LOCAL ) ;//LS
  748.     SetPlayerMapIcon ( playerid ,89,2400.5,-1978.4,13.5,6,0, MAPICON_LOCAL ) ;//LS
  749.     SetPlayerMapIcon ( playerid ,90,-2626.6,209.4,4.9,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  750.     SetPlayerMapIcon ( playerid ,91,2535.9,2083.5,10.8,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  751.     SetPlayerMapIcon ( playerid ,92,2156.5,943.2,10.8,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  752.     SetPlayerMapIcon ( playerid ,93,779.7,1874.3,4.9,6,0, MAPICON_LOCAL ) ;//LS
  753.     SetPlayerMapIcon ( playerid ,94,-2092.7,-2463.8,30.6,6,0, MAPICON_LOCAL ) ;//LS
  754.     SetPlayerMapIcon ( playerid ,95,240.0,-178.2,2.0,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL
  755.     SetPlayerMapIcon ( playerid ,96,-1509.4,2611.8,58.5,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  756.     SetPlayerMapIcon ( playerid ,97,-315.67,829.87,13.43,6,0, MAPICON_LOCAL ) ;//LS AREA RURAL2
  757.     SetPlayerMapIcon ( playerid ,98,2332.9,63.6,31.0,6,0, MAPICON_LOCAL ) ;//LS AREA NOBRE
  758.     //MAXIP
  759.     new connecting_ip [ 32+1 ] ;
  760.     GetPlayerIp ( playerid , connecting_ip , 32 ) ;
  761.     new num_players_on_ip = GetNumberOfPlayersOnThisIP ( connecting_ip ) ;
  762.     if ( num_players_on_ip > MAX_CONNECTIONS_FROM_IP ) {
  763.         printf ( "MAXIPs: Connecting player(%d) exceeded %d IP connections from %s." , playerid , MAX_CONNECTIONS_FROM_IP , connecting_ip ) ;
  764.         Ban ( playerid ) ;
  765.         return 1;
  766.     }
  767.     //Carros Sem Ser Das Gangs
  768.     //Skate Park
  769.     AddStaticVehicle(481,1909.9021,-1415.0138,13.0811,4.4923,0,0); //
  770.     AddStaticVehicle(481,1911.4156,-1414.8970,13.0996,4.4920,0,0); //
  771.     AddStaticVehicle(481,1912.8657,-1414.7828,13.1143,4.5040,0,0); //
  772.     AddStaticVehicle(481,1914.2861,-1414.6720,13.1257,4.5134,0,0); //
  773.     AddStaticVehicle(481,1916.4268,-1414.5029,13.1257,4.5135,0,0); //
  774.     AddStaticVehicle(481,1919.1868,-1414.2853,13.1258,4.5134,0,0); //
  775.     AddStaticVehicle(481,1920.7882,-1414.1589,13.1258,4.5136,0,0); //
  776.     AddStaticVehicle(481,1922.8983,-1413.9923,13.1258,4.5134,0,0); //
  777.     AddStaticVehicle(481,1924.2908,-1413.8824,13.1258,4.5135,0,0); //
  778.     return 1;
  779. }
  780. //------------------------------------------------------------------------------
  781. public OnPlayerDisconnect(playerid, reason) {
  782.     ArenaTipo [ playerid ] = 0 ;
  783.     if ( PInfo [ playerid ] [ Inx1 ] == 1) { X1Q-- ; }
  784.     KillTimer ( TeleLockTimer [ playerid ] ) ;
  785.     DestroyObject ( objco [ playerid ] ) ;
  786.     NoEvento [ playerid ] = false ;
  787.     PInfo [ playerid ] [ InDM ] = 0 ;
  788.     switch ( reason )
  789.     {
  790.         case 0: SendFMessageToAll ( 0x00C0FFFF , "[  %s  ]Saiu Do Servidor. (Conexão).", GetPName ( playerid ) ) ;
  791.         case 1: SendFMessageToAll ( 0x00C0FFFF , "[  %s  ]Saiu Do Servidor. (Por que Quis)", GetPName ( playerid ) ) ;
  792.         case 2: SendFMessageToAll ( 0x00C0FFFF , "[  %s  ]Saiu Do Servidor. (Kickado / Bannido)", GetPName ( playerid ) ) ;
  793.     }
  794.     if ( fexist ( Path ( playerid ) ) )
  795.     {
  796.         new INI:file = INI_Open ( Path ( playerid ) ) ;
  797.         INI_SetTag ( file ,"Player's Data" ) ;
  798.         INI_WriteInt ( file ,"AdminLevel", PInfo [ playerid ] [ Adminlevel ] ) ;
  799.         INI_WriteInt ( file ,"VIPLevel", PInfo [ playerid ] [ VIPlevel ] ) ;
  800.         INI_WriteInt ( file ,"Money", GetPlayerMoney ( playerid ) ) ;
  801.         INI_WriteInt ( file ,"Scores", GetPlayerScore ( playerid ) ) ;
  802.         INI_WriteInt ( file ,"Kills", PInfo [ playerid ] [ Kills ] ) ;
  803.         INI_WriteInt ( file ,"Deaths", PInfo [ playerid ] [ Deaths ] ) ;
  804.         INI_Close ( file ) ;
  805.         return 1;
  806.     }
  807.     return 1;
  808. }
  809. //------------------------------------------------------------------------------
  810. forward Contar(Contagem);
  811. public Contar(Contagem)
  812. {
  813.     format ( diogo , 3 , "%d" , Contagem ) ;
  814.     if ( Contagem > 0 ) {
  815.         GameTextForAll ( diogo , 700 , 5 ) ;
  816.         SetTimerEx ( "Contar" , 1000 , false , "i" , Contagem-1 ) ;
  817.     }
  818.     else GameTextForAll ( "~r~Go Go Go!" , 1000 , 5 ) ;
  819. }
  820. //------------------------------------------------------------------------------
  821. public OnPlayerSpawn(playerid)
  822. {
  823.     ArenaTipo [ playerid ] = 0 ;
  824.     EstaEmUmaArena [ playerid ] = false ;
  825.     NoEvento [ playerid ] = false ;
  826.     new rand = random ( sizeof ( gRandomSpawns_LosSantos ) ) ;//criando a random para o spawn
  827.     SetPlayerPos ( playerid , gRandomSpawns_LosSantos [ rand ] [ 0 ] , gRandomSpawns_LosSantos [ rand ] [ 1 ] , gRandomSpawns_LosSantos [ rand ] [2 ] ) ; //setando a posições adequadas!
  828.     SetPlayerHealth ( playerid , 75 ) ;
  829.     SetPlayerInterior ( playerid , 0 ) ;
  830.     SetPlayerVirtualWorld ( playerid , 0 ) ;
  831.     PInfo [ playerid ] [ InDM ] = 0 ;
  832.     TextDrawShowForPlayer ( playerid , Text:Textdraw1 ) ;
  833.    
  834.     if ( PInfo [ playerid ] [ InDM ] == 12 )
  835.     OnDialogResponse ( playerid , GangWar , 1 , 0 , "" ) ;
  836.         else if ( PInfo [ playerid ] [ InDM ] == 13 )
  837.        
  838.     OnDialogResponse ( playerid , GangWar , 1 , 1 , "" ) ;
  839.         else if ( PInfo [ playerid ] [ InDM ] == 14 )
  840.        
  841.     OnDialogResponse ( playerid , GangWar , 1 , 2 , "" ) ;
  842.         else if ( PInfo [ playerid ] [ InDM ] == 15 )
  843.        
  844.     OnDialogResponse ( playerid , GangWar , 1 , 3 , "" ) ;
  845.     new
  846.         Hour
  847.     ;
  848.     gettime ( Hour ) ;
  849.     switch ( Hour ) {
  850.         case 0..5: {
  851.             format ( diogo , sizeof ( diogo ) , "~b~Boa Madruga" ) ;
  852.             GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
  853.         }
  854.         case 6..11: {
  855.             format ( diogo , sizeof ( diogo ) , "~b~Bom Dia " ) ;
  856.             GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
  857.         }
  858.         case 12..18: {
  859.             format ( diogo , sizeof ( diogo ) , "~b~Boa Tarde " ) ;
  860.             GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
  861.         }
  862.         case 19..23: {
  863.             format ( diogo , sizeof ( diogo ) , "~b~Boa Noite" ) ;
  864.             GameTextForPlayer ( playerid , diogo , 5000 , 1 ) ;
  865.         }
  866.     }
  867.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_PISTOL ,          9999 ) ;
  868.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_PISTOL_SILENCED , 9999 ) ;
  869.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_DESERT_EAGLE ,    9999 ) ;
  870.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_SHOTGUN ,         9999 ) ;
  871.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_SAWNOFF_SHOTGUN , 9999 ) ;
  872.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_SPAS12_SHOTGUN ,  9999 ) ;
  873.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_MICRO_UZI ,       9999 ) ;
  874.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_MP5 ,             9999 ) ;
  875.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_AK47 ,            9999 ) ;
  876.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_M4 ,              9999 ) ;
  877.     SetPlayerSkillLevel (  playerid,  WEAPONSKILL_SNIPERRIFLE ,     9999 ) ;
  878.     return 1;
  879. }
  880. //------------------------------------------------------------------------------
  881. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  882. {
  883.     new
  884.         level[25],
  885.         tenso[60],
  886.         strc[400],
  887.         getfps[25],
  888.         getping[25]
  889.     ;
  890.     if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 5 )           { level = "Dono Do Servidor" ;        }
  891.     else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 4 ) { level = "Sub Dono Servidor" ;        }
  892.     else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 3 ) { level ="Administrador Experiente" ; }
  893.     else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 2 ) { level ="Administrador Regular" ;    }
  894.     else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 1 ) { level ="Administrador" ;             }
  895.     else if ( PInfo [ clickedplayerid ] [ Adminlevel ] == 0 ) { level ="Player Normal" ;             }
  896.     if ( pFPS [ clickedplayerid ] <= 10 ) { getfps = "{FF0000}Péssimo" ;                                      }
  897.     else if ( pFPS [clickedplayerid ] >= 10 && pFPS [ clickedplayerid ] <= 20 ) { getfps= "{FF8000}Ruim" ;    }
  898.     else if ( pFPS [clickedplayerid ] >= 20 && pFPS [ clickedplayerid ] <= 30 ) { getfps= "{FFFF00}Normal" ;  }
  899.     else if ( pFPS [clickedplayerid ] >= 30 && pFPS [ clickedplayerid ] <= 40 ) { getfps= "{00FF00}Bom" ;     }
  900.     else if ( pFPS [clickedplayerid ] >= 40) { getfps = "{FF0080}Excelente" ;                                 }
  901.     if ( GetPlayerPing ( clickedplayerid ) < 50 )                                                    { getping = "{FF0080}Excelente" ; }
  902.     else if ( GetPlayerPing ( clickedplayerid ) >= 50 && GetPlayerPing ( clickedplayerid ) <= 100 )  { getping ="{00FF00}Bom" ;        }
  903.     else if ( GetPlayerPing ( clickedplayerid ) >= 100 && GetPlayerPing ( clickedplayerid ) <= 300 ) { getping ="{FFFF00}Normal" ;     }
  904.     else if ( GetPlayerPing ( clickedplayerid ) >= 300 && GetPlayerPing ( clickedplayerid ) <= 450 ) { getping ="{FF8000}Ruim" ;       }
  905.     else if ( GetPlayerPing ( clickedplayerid ) >= 450)                                              { getping = "{FF0000}Péssimo" ;   }
  906.     new
  907.         Float:mortesr
  908.     ;
  909.     if ( PInfo [ clickedplayerid ] [ Deaths ] == 0 )
  910.     {
  911.         mortesr = 1;
  912.     }
  913.         else
  914.     {
  915.     mortesr = PInfo [ clickedplayerid ] [ Deaths ] ; }
  916.     new
  917.         Float:Ratio = GetPlayerScore ( clickedplayerid )/mortesr
  918.     ;
  919.     new
  920.         strratio [ 25 ]
  921.     ;
  922.     if ( Ratio == 0 )                           strratio = "{EAFF00}Sossegado";
  923.     if ( Ratio > 0 && Ratio <= 0.3 )            strratio = "{FF0000}Fracassado" ;
  924.     if ( Ratio > 0.3 && Ratio <= 0.5 )          strratio = "{FF3C00}Péssimo" ;
  925.     if ( Ratio > 0.5 && Ratio <= 0.7 )          strratio = "{FF8800}Muito ruim" ;
  926.     if ( Ratio > 0.7 && Ratio <= 0.9 )          strratio = "{FFBF00}Ruim" ;
  927.     if ( Ratio > 0.9 && Ratio < 1.0 )           strratio = "{FFD900}Fraco" ;
  928.     if ( Ratio == 1.0 )                         strratio = "{EAFF00}Médio" ;
  929.     if ( Ratio > 1.0 && Ratio <= 2 )            strratio = "{BBFF00}Quase bom" ;
  930.     if ( Ratio > 2 && Ratio <= 4 )              strratio = "{8CFF00}Bom" ;
  931.     if ( Ratio > 4 && Ratio <= 6 )              strratio = "{37FF00}Muito bom" ;
  932.     if ( Ratio > 6 && Ratio <= 8 )              strratio = "{00FF00}Excelente" ;
  933.     if ( Ratio > 8 && Ratio <= 10 )             strratio = "{00FF00}Viciado" ;
  934.     if ( Ratio > 10 )                           strratio = "{00FF00}Rei" ;
  935.     format(tenso, sizeof(tenso),"{FFFF00}%s\n",level);strcat(strc,tenso);
  936.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Score: {00FF00}[ %d ]\n" , GetPlayerScore ( clickedplayerid ) ) ; strcat ( strc , tenso ) ;
  937.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Kiils: {00FF00}[ %d ]\n" , PInfo [ clickedplayerid ] [ Kills ] ) ; strcat ( strc , tenso ) ;
  938.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Morreu: {00FF00}[ %d ]\n" , PInfo [ clickedplayerid ] [ Deaths ] ) ; strcat ( strc , tenso ) ;
  939.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Dinheiro: {00FF00}[ %d ]\n" , GetPlayerMoney ( clickedplayerid ) ) ; strcat ( strc , tenso ) ;
  940.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Ping: {00FF00}[ %d %s ]\n" , GetPlayerPing ( clickedplayerid ) , getping ) ; strcat ( strc , tenso ) ;
  941.     format ( tenso , sizeof ( tenso ) , "{FFFF00}FPS: {00FF00}[ %d %s ]\n" , pFPS [ clickedplayerid ] , getfps ) ; strcat ( strc , tenso ) ;
  942.     format ( tenso , sizeof ( tenso ) , "{FFFF00}Ratio: {00FF00}[ %0.2f %s ]\n" , Ratio , strratio ) ; strcat ( strc , tenso ) ;
  943.     ShowPlayerDialog ( playerid , 24 , DIALOG_STYLE_MSGBOX , Path ( clickedplayerid ) , strc ,"Fechar","" ) ;
  944.     return 1;
  945. }
  946. //------------------------------------------------------------------------------
  947. forward mute(p);
  948. public mute(p)
  949.     return SendClientMessage ( p , 0x00C0FFFF , "Agora você pode falar!" ) ;
  950. //------------------------------------------------------------------------------
  951. public OnPlayerDeath(playerid, killerid, reason)
  952. {
  953.     //Armas Bônus
  954.     if ( reason == 42 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO EXTINTOR: $250 ]"         ) ; GivePlayerMoney ( killerid , 250  ) ;
  955.     if ( reason == 41 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SPRAY: $500 ]]]"      ) ; GivePlayerMoney ( killerid , 500  ) ;
  956.     if ( reason == 9 )  return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA MOTOSSERRA: $750 ]"   ) ; GivePlayerMoney ( killerid , 750  ) ;
  957.     if ( reason == 24 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA DESERT EAGLE: $1000 ]" ) ; GivePlayerMoney ( killerid , 1000 ) ;
  958.     if ( reason == 23 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA PISTOLA: $1250 ]"     ) ; GivePlayerMoney ( killerid , 1250 ) ;
  959.     if ( reason == 22 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NAS PISTOLAS: $1500 ]"   ) ; GivePlayerMoney ( killerid , 1500 ) ;
  960.     if ( reason == 34 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SNIPER RIFLE: $1750 ]" ) ; GivePlayerMoney ( killerid , 1750 ) ;
  961.     if ( reason == 33 ) return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO RIFLE: $2000 ]"       ) ; GivePlayerMoney ( killerid , 2000 ) ;
  962.     if ( reason == 1 )  return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NO SOCO INGLES: $2250 ]"  ) ; GivePlayerMoney ( killerid , 2200 ) ;
  963.     if ( reason == 0 )  return SendClientMessage (killerid , 0x00C0FFFF , " {E0FFFF}[ BÔNUS POR MATAR NA PORRADA: $2500 ]"         ) ; GivePlayerMoney ( killerid , 2500 ) ;
  964.     ArenaTipo [ playerid ] = 0 ;
  965.     //Mortes
  966.     if ( ArenaTipo [ playerid ] == 1 )
  967.     {
  968.         if ( ArenaTipo [ playerid ] == 1
  969.         || ArenaTipo [ playerid ] == 2
  970.         || ArenaTipo [ playerid ] == 3
  971.         || ArenaTipo [ playerid ] == 4
  972.         || ArenaTipo [ playerid ] == 5
  973.         || ArenaTipo [ playerid ] == 6
  974.         || ArenaTipo [ playerid ] == 7
  975.         || ArenaTipo [ playerid ] == 8
  976.         || ArenaTipo [ playerid ] == 9
  977.         || ArenaTipo [ playerid ] == 10
  978.         || ArenaTipo [ playerid ] == 11
  979.         || ArenaTipo [ playerid ] == 12
  980.         || ArenaTipo [ playerid ] == 13
  981.         || ArenaTipo [ playerid ] == 14
  982.         || ArenaTipo [ playerid ] == 15
  983.         || ArenaTipo [ playerid ] == 16
  984.         || ArenaTipo [ playerid ] == 17
  985.         || ArenaTipo [ playerid ] == 18
  986.         || ArenaTipo [ playerid ] == 19
  987.         || ArenaTipo [ playerid ] == 20
  988.         || ArenaTipo [ playerid ] == 21 )
  989.         {
  990.             format ( diogo , sizeof ( diogo ) , "{00FF00}[ARENA DM]: {FFFFFF}[  %s  ]{00FF00}derrotou {FFFFFF}[  %s  ]", pname , pname ) ;
  991.             SetPlayerHealth ( killerid , 100 ) ;
  992.             SetPlayerArmour ( killerid , 100 ) ;
  993.             GameTextForPlayer ( playerid , "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!" , 3000 , 5 ) ;
  994.             GameTextForPlayer ( killerid , " ~g~~n~~n~~n~~n~MUITO BOM!" , 3000, 5 ) ;
  995.             if ( ArenaTipo [ playerid ] != 4 && ArenaTipo [ playerid ] != 5 )
  996.             {
  997.                 SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  998.             }
  999.         }
  1000.     }
  1001.     //
  1002.     if ( PInfo [ playerid ] [ Inx1 ] == 1 && PInfo [ killerid ] [ Inx1 ] == 1 && X1Q == 2 )
  1003.     {
  1004.         new n1[25],n2[25];
  1005.         GetPlayerName ( killerid , n1 , sizeof ( n1 ) ) , GetPlayerName ( playerid , n2 , sizeof ( n2 ) ) ;
  1006.         format ( diogo , sizeof ( diogo ) , "[X1] {FFFFFF}[  %s  ]{00FFFF} Aniquilou {FFFFFF}%s{00FFFF} na arena de x1 ( /x1 )" , n1 , n2 ) ;
  1007.         SendClientMessageToAll ( 0x00FFFFFF , diogo ) ;
  1008.         X1Q = 0;
  1009.         PInfo [ playerid ] [ Inx1 ] =0 ;
  1010.         PInfo [ killerid ] [ Inx1 ] =0 ;
  1011.         SetPlayerVirtualWorld ( killerid , 0 ) ;
  1012.         SetPlayerVirtualWorld ( playerid , 0 ) ;
  1013.         SpawnPlayer ( killerid ) ;
  1014.         SetPlayerArmour ( killerid , 0.00000 ) ;
  1015.     }
  1016.     EstaEmUmaArena [ playerid ] = false ;
  1017.     KillTimer ( TeleLockTimer [ playerid ] ) ;
  1018.     PInfo [ killerid ] [ Kills ]  ++ ;
  1019.     PInfo [ playerid ] [ Deaths ] ++ ;
  1020.     ResetPlayerWeapons ( playerid ) ;
  1021.     GameTextForPlayer ( playerid , "~n~~n~~n~~n~~n~~n~~n~~n~~r~MORTO!" , 2000 , 3 ) ;
  1022.     new
  1023.         Float:X ,
  1024.         Float:Y ,
  1025.         Float:Z ,
  1026.         Float:X2 ,
  1027.         Float:Y2
  1028.     ;
  1029.     MatarPlayer ( playerid , X2 , Y2 , -4 ) ;
  1030.     GetPlayerPos ( playerid , X , Y , Z ) ;
  1031.     SetPlayerCameraPos ( playerid , X2 , Y2 , Z +3 ) ;
  1032.     SetPlayerCameraLookAt ( playerid , X , Y , Z ) ;
  1033.     PInfo [ playerid ] [ InDM ] = 0 ;
  1034.     SetPlayerScore ( killerid , GetPlayerScore ( killerid ) +1 ) ;
  1035.     SendDeathMessage ( killerid , playerid , reason ) ;
  1036.     if ( PInfo [ killerid ] [ InDM ] > 0 ) {
  1037.             GivePlayerMoney ( killerid , 1000 ) ;
  1038.             if ( PInfo [ playerid ] [ InDM ] != 0 ) {
  1039.                 if ( PInfo [ killerid ] [ InDM ] != PInfo [ playerid ] [ InDM ] ) {
  1040.                     if ( PInfo [ killerid ] [ InDM ] == 12 ) {
  1041.                         Grovekills++;
  1042.                         format ( diogo , sizeof diogo , "Grove kills :\n %i" , Grovekills ) ;
  1043.                         UpdateDynamic3DTextLabelText ( Grovelabel , GROVECOLOR , diogo ) ;
  1044.                     }
  1045.                     else if ( PInfo [ killerid ] [ InDM ] == 13 ) {
  1046.                         Vagoskills++;
  1047.                         format ( diogo , sizeof diogo , "Vagos kills :\n %i" , Vagoskills ) ;
  1048.                         UpdateDynamic3DTextLabelText ( Vagoslabel , VAGOSCOLOR , diogo ) ;
  1049.                     }
  1050.                     else if ( PInfo [ killerid ] [ InDM ] == 14 ) {
  1051.                         Ballaskills++;
  1052.                         format ( diogo , sizeof diogo , "Ballas kills :\n %i" , Ballaskills ) ;
  1053.                         UpdateDynamic3DTextLabelText ( Ballaslabel , BALLASCOLOR , diogo ) ;
  1054.                     }
  1055.                     else if ( PInfo [ killerid ] [ InDM ] == 15 ) {
  1056.                         Aztecskills++;
  1057.                         format ( diogo , sizeof diogo , "Aztecs kills :\n %i" , Aztecskills ) ;
  1058.                         UpdateDynamic3DTextLabelText ( Aztecslabel , AZTECSCOLOR , diogo ) ;
  1059.                     }
  1060.                 }
  1061.             }
  1062.         }
  1063.     return 1;
  1064. }
  1065. //------------------------------------------------------------------------------
  1066. forward API_Teleporte(playerid, Float:X,Float:Y,Float:Z,Float:angulo,nome[],EmObjeto,interior);
  1067. public API_Teleporte(playerid, Float:X,Float:Y,Float:Z,Float:angulo,nome[],EmObjeto,interior)
  1068. {
  1069.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage (playerid , 0x00C0FFFF , "Você está em Uma Arena Use /Sair") ;
  1070.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  1071.     format ( diogo , sizeof ( diogo ) , "{00FF00}%s {74118F}Foi Para {00FF00}[  %s  ]", pname ) ;
  1072.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  1073.     SetPlayerInterior ( playerid , interior ) ;
  1074.     if ( GetPlayerState ( playerid ) == PLAYER_STATE_DRIVER )
  1075.     {
  1076.         SetVehiclePos ( GetPlayerVehicleID ( playerid ) , X , Y , Z+10 ) ;
  1077.         SetVehicleZAngle ( GetPlayerVehicleID ( playerid ) , angulo ) ;
  1078.         }
  1079.             else
  1080.         {
  1081.         SetPlayerPos ( playerid , X , Y , Z ) ;
  1082.         SetCameraBehindPlayer ( playerid ) ;
  1083.         if ( EmObjeto == 1 )
  1084.         {
  1085.             Carregar ( playerid ) ;
  1086.         }
  1087.         SetPlayerFacingAngle ( playerid , angulo ) ;
  1088.     }
  1089.     if ( IsPlayerInAnyVehicle ( playerid ) && EmObjeto == 1 )
  1090.     {
  1091.         SendClientMessage ( playerid , 0x00C0FFFF , "Se Objetos Estiverem Invisiveis :Saia Do Veiculo e Entre Novamente" ) ;
  1092.     }
  1093.     SetCameraBehindPlayer ( playerid ) ;
  1094.     return 1;
  1095. }
  1096. //------------------------------------------------------------------------------
  1097. forward Carregar(playerid);
  1098. public Carregar(playerid)
  1099. {
  1100.     if ( LoaderFreezer == 0 )
  1101.         return 1;
  1102.     new
  1103.         loadtime
  1104.     ;
  1105.     if ( GetPlayerPing ( playerid ) < 2000 ) loadtime = 1000 + GetPlayerPing ( playerid ) ;
  1106.         else loadtime = 2000 ;
  1107.     TogglePlayerControllable ( playerid , 0 ) ;
  1108.     GameTextForPlayer ( playerid , "~y~ESPERE UM MOMENTO" , loadtime , 5 ) ;
  1109.     KillTimer ( TeleLockTimer [ playerid ] ) ;
  1110.     TeleLockTimer [ playerid ] = SetTimerEx ( "Destravar" , loadtime , 0 , "i" , playerid ) ;
  1111.     return 1;
  1112. }
  1113. //------------------------------------------------------------------------------
  1114. public OnPlayerText(playerid, text[]) {
  1115.     if ( l_temp [ playerid ] > gettime ( ) )
  1116.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Você foi tomou mute e não pode falar no chat por alguns minutos!" ) , false ;
  1117.     if ( strlen ( text ) > 100 )
  1118.         return SendClientMessage ( playerid , 0x00C0FFFF , "Mensagem Muito Grande !" ) ;
  1119.     if ( text [ 0 ] == '!' && PInfo [ playerid ] [ InDM ] != 0 ) {
  1120.         foreach (Player, i ) {
  1121.             if ( PInfo [ playerid ] [ InDM ] == 12 ) {
  1122.                 if ( PInfo [ i ] [ InDM ] == 12 ) {
  1123.                     SendFMessage ( i ,0x00C31EFF ,"(Grove) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
  1124.                 }
  1125.             }
  1126.             else if ( PInfo [ playerid ] [ InDM ] == 13 ) {
  1127.                 if ( PInfo [ i ] [ InDM ] == 13 ) {
  1128.                     SendFMessage ( i , 0xF5D400FF ,"(Vagos) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
  1129.                 }
  1130.             }
  1131.             else if ( PInfo [ playerid ] [ InDM ] == 14 ) {
  1132.                 if ( PInfo [ i ] [ InDM ] == 14 ) {
  1133.                     SendFMessage ( i , 0xCF00EAFF ,"(Ballas) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
  1134.                 }
  1135.             }
  1136.             else if ( PInfo [ playerid ] [ InDM ] == 15 ) {
  1137.                 if ( PInfo [ i ] [ InDM ] == 15 ) {
  1138.                     SendFMessage ( i , 0x0069FFFF ,"(Aztecas) %s: %s", GetPlayerName ( playerid ) , text [ 1 ] ) ;
  1139.                 }
  1140.             }
  1141.         }
  1142.         return 0;
  1143.     }
  1144.     format ( gText , sizeof gText ,"%s(%i): "CWHITE"%s", GetPName ( playerid ) , playerid ,text ) ;
  1145.     SendClientMessageToAll ( GetPlayerColor ( playerid ) , gText ) ;
  1146.     gText [ 0 ] = EOS ;
  1147.     SetPlayerChatBubble ( playerid ,text , 0x00C0FFFF , 35.0 , 7000 ) ;
  1148.     //Ant Divulger
  1149.     if(strfind ( text , "189." , true ) != -1
  1150.     || strfind ( text , "201." , true ) != -1
  1151.     || strfind ( text , "200." , true ) != -1
  1152.     || strfind ( text , "69." , true ) != -1
  1153.     || strfind ( text , "187." , true ) != -1
  1154.     || strfind ( text , "64." , true ) != -1
  1155.     || strfind ( text , "120." , true ) != -1
  1156.     || strfind ( text , "165." , true ) != -1
  1157.     || strfind ( text , "85." , true ) != -1
  1158.     || strfind ( text , ":7771" , true ) != -1
  1159.     || strfind ( text , ":7770" , true ) != -1
  1160.     || strfind ( text , "7777" , true ) != -1
  1161.     || strfind ( text , ":7776" , true ) != -1
  1162.     || strfind ( text , ":7777" , true ) != -1
  1163.     || strfind ( text , ":7778" , true ) != -1
  1164.     || strfind ( text , ":7779" , true ) != -1
  1165.     || strfind ( text , "1." , true ) != -1
  1166.     || strfind ( text , "plagiou" , true ) != -1
  1167.     || strfind ( text , "blody" , true ) != -1
  1168.     || strfind ( text , "plagiaram" , true ) != -1
  1169.     || strfind ( text , ".forum" , true ) != -1
  1170.     || strfind ( text , "b.v" , true ) != -1
  1171.     || strfind ( text , "plagio" , true ) != -1
  1172.     || strfind ( text , "bv" , true ) != -1
  1173.     || strfind ( text , "www." , true ) != -1
  1174.     || strfind ( text , ".org" , true ) != -1
  1175.     || strfind ( text , "gnrls" , true ) != -1
  1176.     || strfind ( text , "bloody" , true ) != -1
  1177.     || strfind ( text , "http" , true ) != -1)
  1178.     {
  1179.         format ( diogo , sizeof ( diogo ) , " {FF0000}[  %s  ]{00FF00}foi kickado por divulgação." , pname ) ;
  1180.         SendClientMessageToAll ( -1 , diogo ) ;
  1181.         Kick ( playerid ) ;
  1182.         return 0;
  1183.      }
  1184.     return 1;
  1185. }
  1186. //------------------------------------------------------------------------------
  1187. public OnPlayerStateChange(playerid, newstate, oldstate) {
  1188.     if ( newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER ) {
  1189.         format ( diogo , sizeof ( diogo ) , "~r~%s" , VehicleNames [ GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) -400 ] ) ;
  1190.         GameTextForPlayer ( playerid , diogo , 6000 , 1 ) ;
  1191.     }
  1192.     if ( newstate == PLAYER_STATE_PASSENGER ) {
  1193.         new weap = GetPlayerWeapon ( playerid ) ;
  1194.         if ( weap == 24 || weap == 34) {
  1195.             SetPlayerArmedWeapon ( playerid , 0 ) ;
  1196.         }
  1197.     }
  1198.     if ( GetPlayerState ( playerid ) == PLAYER_STATE_DRIVER )
  1199.     {
  1200.         new vehicleid = GetPlayerVehicleID ( playerid ) ;
  1201.         if ( CheckVehicle ( vehicleid ) )
  1202.         AddVehicleComponent ( vehicleid , 1010 ) ;
  1203.     }
  1204.     return 1;
  1205. }
  1206. //------------------------------------------------------------------------------
  1207. forward RandomMSG();
  1208. public RandomMSG() {
  1209.     new random1 = random ( sizeof ( MSGS ) ) ;
  1210.     new random2 = random ( sizeof ( cores ) ) ;
  1211.     format ( diogo , sizeof ( diogo ) , "%s", MSGS [ random1 ] ) ;
  1212.     SendClientMessageToAll ( cores [ random2 ] , diogo ) ;
  1213.     return 1;
  1214. }
  1215. //------------------------------------------------------------------------------
  1216. forward InfiniteNitro();
  1217. public InfiniteNitro() {
  1218.     new vehicleid;
  1219.     for(new i; i < GetMaxPlayers(); i++) {
  1220.         if ( GetPlayerState ( i ) == PLAYER_STATE_DRIVER ) {
  1221.             vehicleid = GetPlayerVehicleID ( i ) ;
  1222.             if ( CheckVehicle ( vehicleid ) )
  1223.             AddVehicleComponent ( vehicleid , 1010 ) ;
  1224.         }
  1225.  
  1226.     }
  1227.     return 1;
  1228. }
  1229. //------------------------------------------------------------------------------
  1230. public OnRconLoginAttempt(ip[], password[], success) {
  1231.     return 1;
  1232. }
  1233. //------------------------------------------------------------------------------
  1234.  
  1235. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1236. {
  1237.     if ( dialogid == GangWar ) {
  1238.         if ( response ) {
  1239.             if ( listitem == 0 ) {
  1240.                 new skinsg[3] = {
  1241.                     105,106,107
  1242.                 };
  1243.                 SetPlayerPos ( playerid , 2511.7305,-1677.8981,13.5469 ) ;
  1244.                 SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pela {2D8B00}Grove {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
  1245.                 PInfo [ playerid ] [ InDM ] = 12 ;
  1246.                 SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
  1247.                 SetPlayerTeam ( playerid , 1 ) ;
  1248.                 SetPlayerHealth ( playerid , 100 ) ;
  1249.                 SetPlayerArmour ( playerid , 50.0 ) ;
  1250.                 GivePlayerWeapon ( playerid , 30 , 500 ) ;
  1251.                 GivePlayerWeapon ( playerid , 24 , 500 ) ;
  1252.                 GivePlayerWeapon ( playerid , 34 , 500 ) ;
  1253.                 GivePlayerWeapon ( playerid , 28 , 750 ) ;
  1254.                 SetPlayerColor ( playerid , 0x00C31EFF ) ;
  1255.             }
  1256.             else if ( listitem == 1 ) {
  1257.                 new skinsg[3] = {
  1258.                     108,109,110
  1259.                 };
  1260.                 SetPlayerPos ( playerid , 2169.0574,-1683.1960,15.0859 ) ;
  1261.                 SendFMessageToAll ( 0xFF1400FF , "[GANGWAR] {00D128}%s Foi Para a Guerra Pelos {EBFF00}Vagos {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
  1262.                 PInfo [ playerid ] [ InDM ] = 13 ;
  1263.                 SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
  1264.                 SetPlayerTeam ( playerid , 2 ) ;
  1265.                 SetPlayerHealth ( playerid , 100 ) ;
  1266.                 SetPlayerArmour ( playerid , 50.0 ) ;
  1267.                 GivePlayerWeapon ( playerid , 30 , 500 ) ;
  1268.                 GivePlayerWeapon ( playerid , 24 , 500 ) ;
  1269.                 GivePlayerWeapon ( playerid , 34 , 500 ) ;
  1270.                 GivePlayerWeapon ( playerid , 28 , 750 ) ;
  1271.                 SetPlayerColor ( playerid , 0xF5D400FF ) ;
  1272.             }
  1273.             else if ( listitem == 2 ) {
  1274.                 new skinsg[3] ={
  1275.                     102,103,104
  1276.                 };
  1277.                 SetPlayerPos ( playerid , 2211.4592,-1158.7871,25.7266 ) ;
  1278.                 SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pelos {B400FF}Ballas {00FFF0}(/gangwar)", GetPName ( playerid ) ) ;
  1279.                 PInfo [ playerid ] [ InDM ] = 14 ;
  1280.                 SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
  1281.                 SetPlayerTeam ( playerid , 3 ) ;
  1282.                 SetPlayerHealth ( playerid , 100 ) ;
  1283.                 SetPlayerArmour ( playerid , 50.0 ) ;
  1284.                 GivePlayerWeapon ( playerid , 30 , 500 ) ;
  1285.                 GivePlayerWeapon ( playerid , 24 , 500 ) ;
  1286.                 GivePlayerWeapon ( playerid , 34 , 500 ) ;
  1287.                 GivePlayerWeapon ( playerid , 28 , 750 ) ;
  1288.                 SetPlayerColor ( playerid , 0xCF00EAFF ) ;
  1289.             }
  1290.             else if ( listitem == 3 ) {
  1291.                 new skinsg[3] = {
  1292.                     114,115,116
  1293.                 };
  1294.                 SetPlayerPos ( playerid , 1834.0247,-1995.9055,13.5469 ) ;
  1295.                 SendFMessageToAll ( 0xFF1400FF ,"[GANGWAR] {00D128}%s Foi Para a Guerra Pelos "CBLUE"Aztecas {00FFF0}(/gangwar)",GetPName ( playerid ) ) ;
  1296.                 PInfo [ playerid ] [ InDM ] = 15 ;
  1297.                 SetPlayerSkin ( playerid , skinsg [ random ( 3 ) ] ) ;
  1298.                 SetPlayerTeam ( playerid , 4 ) ;
  1299.                 SetPlayerHealth ( playerid , 100 ) ;
  1300.                 SetPlayerArmour ( playerid , 50.0 ) ;
  1301.                 GivePlayerWeapon ( playerid , 30 , 500 ) ;
  1302.                 GivePlayerWeapon ( playerid , 24 , 500 ) ;
  1303.                 GivePlayerWeapon ( playerid , 34 , 500 ) ;
  1304.                 GivePlayerWeapon ( playerid , 28 , 750 ) ;
  1305.                 SetPlayerColor ( playerid , 0x0069FFFF ) ;
  1306.             }
  1307.         }
  1308.     }
  1309.     if ( dialogid == registro ) {
  1310.         if ( !response ) return Kick ( playerid ) ;
  1311.         if ( response ) {
  1312.             if ( !strlen ( inputtext ) ) {
  1313.                 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" ) ;
  1314.                 return 1;
  1315.             }
  1316.             new hashpass[129];
  1317.             WP_Hash ( hashpass , sizeof ( hashpass ) , inputtext ) ;
  1318.             new INI:file = INI_Open ( Path ( playerid ) ) ;
  1319.             INI_SetTag ( file ,"Player's Data" ) ;
  1320.             INI_WriteString ( file ,"Password" , hashpass ) ;
  1321.             INI_WriteInt ( file ,"AdminLevel",0 ) ;
  1322.             INI_WriteInt ( file ,"VIPLevel",0 ) ;
  1323.             INI_WriteInt ( file ,"Money",0 ) ;
  1324.             INI_WriteInt ( file ,"Scores",0 ) ;
  1325.             INI_WriteInt ( file ,"Kills",0 ) ;
  1326.             INI_WriteInt ( file ,"Deaths",0 ) ;
  1327.             INI_Close ( file ) ;
  1328.             SendClientMessage(playerid,0x00C0FFFF,"Voce foi registrado com sucesso!");
  1329.             return 1;
  1330.         }
  1331.     }
  1332.     if ( dialogid == login ) {
  1333.         if ( !response ) return Kick ( playerid ) ;
  1334.         if ( response ) {
  1335.             new hashpass [ 129 ] ;
  1336.             WP_Hash ( hashpass , sizeof ( hashpass ) , inputtext ) ;
  1337.             if ( !strcmp ( hashpass , PInfo [ playerid ] [ Pass ] ) ) {
  1338.                 INI_ParseFile ( Path ( playerid ) ,"loadaccount_%s",.bExtra = true, .extra = playerid ) ;
  1339.                 SetPlayerScore ( playerid , PInfo [ playerid ] [ Scores ] ) ;
  1340.                 GivePlayerMoney ( playerid , PInfo [ playerid ] [ Money ] ) ;
  1341.                 SendClientMessage ( playerid,0x00C0FFFF,"Bem Vindo De Novo! Voce Logou Com Sucesso!");
  1342.             } else {
  1343.                 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");
  1344.                 return 1;
  1345.             }
  1346.         }
  1347.     }
  1348.     //Armas Menu
  1349.     if(dialogid == Dialog_Arma)
  1350.     {
  1351.         if(response)
  1352.         {
  1353.             if(listitem == 0) //
  1354.             {
  1355.                 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");
  1356.             }
  1357.             if(listitem == 1) //
  1358.             {
  1359.                 ShowPlayerDialog(playerid, Dialog_Arma+2, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "9mm\nSilenced 9mm\nDesert Eagle", "Selecionar", "Cancelar");
  1360.             }
  1361.             if(listitem == 2) //
  1362.             {
  1363.                 ShowPlayerDialog(playerid, Dialog_Arma+3, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Uzi\nSMG\nTec9", "Selecionar", "Cancelar");
  1364.             }
  1365.             if(listitem == 3) //
  1366.             {
  1367.                 ShowPlayerDialog(playerid, Dialog_Arma+4, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Country Rifle\nSniper Rifle", "Selecionar", "Cancelar");
  1368.             }
  1369.             if(listitem == 4) //
  1370.             {
  1371.                 ShowPlayerDialog(playerid, Dialog_Arma+5, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "AK-47\nM4", "Selecionar", "Cancelar");
  1372.             }
  1373.             if(listitem == 5) //
  1374.             {
  1375.                 ShowPlayerDialog(playerid, Dialog_Arma+6, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Selecionar", "Cancelar");
  1376.             }
  1377.             if(listitem == 6) //
  1378.             {
  1379.                 ShowPlayerDialog(playerid, Dialog_Arma+7, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Granade\nTear Gas", "Selecionar", "Cancelar");
  1380.             }
  1381.             if(listitem == 7) //
  1382.             {
  1383.                 ShowPlayerDialog(playerid, Dialog_Arma+8, DIALOG_STYLE_LIST, "{00FF00}Selecione a Arma", "Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers", "Selecionar", "Cancelar");
  1384.             }
  1385.         }
  1386.         return 1;
  1387.     }
  1388.     if(dialogid == Dialog_Arma+1) //
  1389.     {
  1390.         if(response)
  1391.         {
  1392.             if(listitem == 0)
  1393.             {
  1394.                 GivePlayerWeapon(playerid, 1, 1);
  1395.                 GivePlayerMoney(playerid,-500);
  1396.             }
  1397.             if(listitem == 1)
  1398.             {
  1399.                 GivePlayerWeapon(playerid, 2, 1);
  1400.             }
  1401.             if(listitem == 2)
  1402.             {
  1403.                 GivePlayerWeapon(playerid, 3, 1);
  1404.             }
  1405.             if(listitem == 3)
  1406.             {
  1407.                 GivePlayerWeapon(playerid, 4, 1);
  1408.             }
  1409.             if(listitem == 4)
  1410.             {
  1411.                 GivePlayerWeapon(playerid, 5, 1);
  1412.             }
  1413.             if(listitem == 5)
  1414.             {
  1415.                 GivePlayerWeapon(playerid, 6, 1);
  1416.             }
  1417.             if(listitem == 6)
  1418.             {
  1419.                 GivePlayerWeapon(playerid, 7, 1);
  1420.             }
  1421.             if(listitem == 7)
  1422.             {
  1423.                 GivePlayerWeapon(playerid, 8, 1);
  1424.             }
  1425.             if(listitem == 8)
  1426.             {
  1427.                 GivePlayerWeapon(playerid, 10, 1);
  1428.             }
  1429.             if(listitem == 9)
  1430.             {
  1431.                 GivePlayerWeapon(playerid, 41, 500);
  1432.             }
  1433.             if(listitem == 10)
  1434.             {
  1435.                 GivePlayerWeapon(playerid, 15, 1);
  1436.             }
  1437.         }
  1438.         return 1;
  1439.     }
  1440.     if(dialogid == Dialog_Arma+2) //
  1441.     {
  1442.         if(response)
  1443.         {
  1444.             if(listitem == 0)
  1445.             {
  1446.                 GivePlayerWeapon(playerid, 22, 500);
  1447.             }
  1448.             if(listitem == 1)
  1449.             {
  1450.                 GivePlayerWeapon(playerid, 23, 500);
  1451.             }
  1452.             if(listitem == 2)
  1453.             {
  1454.                 GivePlayerWeapon(playerid, 24, 500);
  1455.             }
  1456.         }
  1457.         return 1;
  1458.     }
  1459.     if(dialogid == Dialog_Arma+3) //
  1460.     {
  1461.         if(response)
  1462.         {
  1463.             if(listitem == 0)
  1464.             {
  1465.                 GivePlayerWeapon(playerid, 28, 500);
  1466.             }
  1467.             if(listitem == 1)
  1468.             {
  1469.                 GivePlayerWeapon(playerid, 29, 500);
  1470.             }
  1471.             if(listitem == 2)
  1472.             {
  1473.                 GivePlayerWeapon(playerid, 32, 500);
  1474.             }
  1475.         }
  1476.         return 1;
  1477.     }
  1478.     if(dialogid == Dialog_Arma+4) //
  1479.     {
  1480.         if(response)
  1481.         {
  1482.             if(listitem == 0)
  1483.             {
  1484.                 GivePlayerWeapon(playerid, 33, 500);
  1485.             }
  1486.             if(listitem == 1)
  1487.             {
  1488.                 GivePlayerWeapon(playerid, 34, 500);
  1489.             }
  1490.         }
  1491.         return 1;
  1492.     }
  1493.     if(dialogid == Dialog_Arma+5) //
  1494.     {
  1495.         if(response)
  1496.         {
  1497.             if(listitem == 0)
  1498.             {
  1499.                 GivePlayerWeapon(playerid, 30, 500);
  1500.             }
  1501.             if(listitem == 1)
  1502.             {
  1503.                 GivePlayerWeapon(playerid, 31, 500);
  1504.             }
  1505.         }
  1506.         return 1;
  1507.     }
  1508.     if(dialogid == Dialog_Arma+6) //
  1509.     {
  1510.         if(response)
  1511.         {
  1512.             if(listitem == 0)
  1513.             {
  1514.                 GivePlayerWeapon(playerid, 25, 500);
  1515.             }
  1516.             if(listitem == 1)
  1517.             {
  1518.                 GivePlayerWeapon(playerid, 26, 500);
  1519.             }
  1520.             if(listitem == 2)
  1521.             {
  1522.                 GivePlayerWeapon(playerid, 27, 500);
  1523.             }
  1524.         }
  1525.         return 1;
  1526.     }
  1527.     if(dialogid == Dialog_Arma+7) //
  1528.     {
  1529.         if(response)
  1530.         {
  1531.             if(listitem == 0)
  1532.             {
  1533.                 GivePlayerWeapon(playerid, 16, 500);
  1534.             }
  1535.             if(listitem == 1)
  1536.             {
  1537.                 GivePlayerWeapon(playerid, 17, 500);
  1538.             }
  1539.         }
  1540.         return 1;
  1541.     }
  1542.     if(dialogid == Dialog_Arma+8) //
  1543.     {
  1544.         if(response)
  1545.         {
  1546.             if(listitem == 0)
  1547.             {
  1548.                 GivePlayerWeapon(playerid, 42, 500);
  1549.             }
  1550.             if(listitem == 1)
  1551.             {
  1552.                 GivePlayerWeapon(playerid, 39, 500);
  1553.                 GivePlayerWeapon(playerid, 40, 1);
  1554.             }
  1555.             if(listitem == 2)
  1556.             {
  1557.                 GivePlayerWeapon(playerid, 46, 1);
  1558.             }
  1559.             if(listitem == 3)
  1560.             {
  1561.                 GivePlayerWeapon(playerid, 44, 1);
  1562.             }
  1563.             if(listitem == 4)
  1564.             {
  1565.                 GivePlayerWeapon(playerid, 14, 1);
  1566.             }
  1567.         }
  1568.         return 1;
  1569.     }
  1570.     return 1;
  1571. }
  1572. //------------------------------------------------------------------------------
  1573. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  1574. {
  1575.     if ( !success )
  1576.     {
  1577.         format ( diogo , 128 , "[ERRO]: O Comando {FF0000}[ %s ]{FF8C00}Não Existe." , cmdtext ) ;
  1578.         return SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  1579.     }
  1580.     return true;
  1581. }
  1582.  
  1583. //------------------------------------------------------------------------------
  1584. public OnPlayerPickUpDynamicPickup(playerid, pickupid) {
  1585.     if ( pickupid == VagosVida ) {
  1586.         new Float:health;
  1587.         GetPlayerHealth ( playerid , health ) ;
  1588.         if ( health == 100 ) return 0;
  1589.         PlaySound ( playerid , 1138 ) ;
  1590.         SetPlayerHealth ( playerid , 100 ) ;
  1591.         return 1;
  1592.     }
  1593.     else if ( pickupid == GroveVida ) {
  1594.         new Float:health;
  1595.         GetPlayerHealth ( playerid , health ) ;
  1596.         if ( health == 100 ) return 0;
  1597.         PlaySound ( playerid , 1138 ) ;
  1598.         SetPlayerHealth ( playerid , 100 ) ;
  1599.         return 1;
  1600.     }
  1601.     else if ( pickupid == BallasVida ) {
  1602.         new Float:health;
  1603.         GetPlayerHealth ( playerid , health ) ;
  1604.         if ( health == 100 ) return 0;
  1605.         PlaySound ( playerid , 1138 ) ;
  1606.         SetPlayerHealth ( playerid , 100 ) ;
  1607.         return 1;
  1608.     }
  1609.     else if ( pickupid == Vagoskatana ) {
  1610.         GivePlayerWeapon ( playerid , 8 , 1 ) ;
  1611.         PlaySound ( playerid , 1150 ) ;
  1612.         return 1;
  1613.     }
  1614.     else if ( pickupid == GroveGranadas ) {
  1615.         GivePlayerWeapon ( playerid , 16 , 10 ) ;
  1616.         PlaySound ( playerid , 1150 ) ;
  1617.         return 1;
  1618.     }
  1619.     else if ( pickupid == BallasMolotov ) {
  1620.         GivePlayerWeapon ( playerid , 18 , 10 ) ;
  1621.         PlaySound ( playerid , 1150 ) ;
  1622.         return 1;
  1623.     }
  1624.     for ( new i = 0; i < MAX_PICKUPS; i++ ) {
  1625.         if ( pickupid == PickupID [ i ] ) {
  1626.             DestroyDynamicPickup ( PickupID [ i ] ) ;
  1627.         }
  1628.     }
  1629.     return 1;
  1630. }
  1631. //------------------------ Comandos Players ---------- Teleportes --------------
  1632. CMD:fl(playerid,API_Teleporte []) return ( playerid , -771.7738,-2127.8652,25.4152,347.5520 , " A Floresta ( /Fl )" , 0 , 0 ) ;//Floresta Back On Beyond
  1633. CMD:bl(playerid,API_Teleporte []) return ( playerid , 1829.1617,-1682.2830,13.5469,266.7216 , " A Balada ( /Bl )" , 0 , 0 ) ;//Balada Los Santos
  1634. CMD:lps(playerid,API_Teleporte []) return ( playerid , -237.1826,2772.8008,62.2386,184.5670 , " Las Payasadas ( /Lps )" , 0 , 0 ) ;//LaS PayAsadas
  1635. CMD:eq(playerid,API_Teleporte []) return ( playerid , -1410.1918,2640.2693,55.6875,92.6603 , " El Quebrados ( /Eq )" , 0 , 0 ) ;//El Quebrados
  1636. CMD:lb(playerid,API_Teleporte []) return ( playerid , -771.2502,1597.7498,27.1172,181.6947 , " Las Barrancas ( /Lb )" , 0 , 0 ) ;//Las Barrancas
  1637. CMD:fc(playerid,API_Teleporte []) return ( playerid , -368.8701,1128.0531,19.7820,270.1514 , " Fort Carson ( /Fc )" , 0 , 0 ) ;//ForT CarsoN
  1638. CMD:ap(playerid,API_Teleporte []) return ( playerid , -2236.5901,-2309.8745,30.5704,231.6492 , " Angel Pine ( /Ap )" , 0 , 0 ) ;//AngeL Pine
  1639. CMD:mansao(playerid,API_Teleporte []) return ( playerid , 1268.9714,-2037.8242,59.1531,87.8452 , " Mansao Ls ( /Mansao )" , 0 , 0 ) ;//Mansao Los Santos
  1640. CMD:bb(playerid,API_Teleporte []) return ( playerid , 269.6278,17.6261,2.4277,96.6690 , " Blue Berry ( /Bb )" , 0 , 0 ) ;//Mansao Los Santos
  1641. CMD:dlm(playerid,API_Teleporte []) return ( playerid , 701.0360,-462.5034,16.3359,180.9987 , " Dillimore ( /Dlm )" , 0 , 0 ) ;//Dillimore
  1642. CMD:pc(playerid,API_Teleporte []) return ( playerid , 1986.0226,114.4512,29.5353,261.9359 , " Palomino Creek ( /Pc )" , 0 , 0 ) ;//Palomino Creek
  1643. CMD:mgm(playerid,API_Teleporte []) return ( playerid , 1358.1156,476.5627,20.2109,153.5695 , " Mont Gomery ( /Mgm )" , 0 , 0 ) ;//Mont Gomery
  1644. CMD:bs(playerid,API_Teleporte []) return ( playerid , -2311.2595,2379.3811,5.5932,56.6381 , " Bay Side ( /Bs )" , 0 , 0 ) ;//Bay Side
  1645. CMD:egls(playerid,API_Teleporte []) return ( playerid , 2605.2822,-1475.1600,16.6964,176.8642 , " Esgoto Los Santos ( /EgLs )" , 0 , 0 ) ;//Esgoto Los Santos
  1646. CMD:mls(playerid,API_Teleporte []) return ( playerid , 2223.0193,-1173.6896,25.7266,358.8891 , " Motel Los Santos ( /Mls )" , 0 , 0 ) ;//Motel Los Santos
  1647. CMD:favela(playerid,API_Teleporte []) return ( playerid , 2218.3149,-1113.6479,25.7586,358.8424 , " Favela ( /Favela )" , 0 , 0 ) ;//Favela
  1648. 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 )
  1649. CMD:jrz(playerid,API_Teleporte []) return ( playerid , -372.5666,2189.7903,42.0559,13.0280 , " Juarez ( /jrz )" , 0 , 0 ) ;//Juarez Abandonado Perto Hoover Dan
  1650. CMD:nvp(playerid,API_Teleporte []) return ( playerid , 2001.5778,1566.4055,15.3672,181.6025 , " Navio Pirata ( /Nvp )" , 0 , 0 ) ;//Navio Pirata Las Venturas
  1651. CMD:lv(playerid,API_Teleporte []) return ( playerid , 2033.5898,1007.9355,10.8203 , " Las Venturas ( /Lv )" , 0 , 0 ) ;//Las Venturas
  1652. CMD:avenida(playerid,API_Teleporte []) return ( playerid , 2057.0847,840.1503,6.7337 , " Avenida ( /Avenida )" , 0 , 0 ) ;//Las Venturas Avenida
  1653. CMD:aerosf(playerid,API_Teleporte []) return ( playerid , -1556.7877,-441.9134,6.0000 , " AeroSf ( /AeroSf )" , 0 , 0 ) ;//Aeroporto SF
  1654. CMD:grove(playerid,API_Teleporte []) return ( playerid , 2500.9519,-1668.9618,13.3554 , " Grove Street ( /Grove )" , 0 , 0 ) ;//Grove Street
  1655. CMD:drift(playerid,API_Teleporte []) return ( playerid , -302.9801,1517.7507,75.3594 , " Drift ( /Drift )" , 0 , 0 ) ;//Drift ( Deserto Perto Represa Hoover )
  1656. 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 )
  1657. CMD:ls(playerid,API_Teleporte []) return ( playerid , 1130.1051,-1450.3822,15.7969 , " Los Santos ( /Ls )" , 0 , 0 ) ;//Los Santos
  1658. CMD:pls(playerid,API_Teleporte []) return ( playerid , 227.9339,-1815.5609,4.2493 , " Praia Los Santos ( /Pls )" , 0 , 0 ) ;//Praia Los Santos
  1659. CMD:rally(playerid,API_Teleporte []) return ( playerid , -303.9771,-2250.1445,29.4735 , " Rally ( /Rally )" , 0 , 0 ) ;//Rally
  1660. CMD:chilliad(playerid,API_Teleporte []) return ( playerid , -2321.0469,-1625.6339,483.7063 , " Chilliad ( /Chilliad )" , 0 , 0 ) ;//Mont Chilliad
  1661. CMD:sf(playerid,API_Teleporte []) return ( playerid , -1994.1210,108.9522,27.5391 , " San Fierro ( /Sf )" , 0 , 0 ) ;//San Fierro
  1662. CMD:rh(playerid,API_Teleporte []) return ( playerid , -950.8074,1921.5872,132.4391 , " Represa Hoover ( /Rh )" , 0 , 0 ) ;//Represa Hoover Dam
  1663. CMD:area51(playerid,API_Teleporte []) return ( playerid , 215.3240,1907.3092,17.6406 , " Area 51 ( /Area51 )" , 0 , 0 ) ;//Area 69
  1664. CMD:aerolv(playerid,API_Teleporte []) return ( playerid , 1634.3506,1560.3524,10.8112 , " AeroLv ( /AeroLv )" , 0 , 0 ) ;//Aeroporto Las Venturas
  1665. CMD:fz(playerid,API_Teleporte []) return ( playerid , -1150.5137,-1115.0033,128.2725 , " Fazenda ( /Fz )" , 0 , 0 ) ;//Fazenda Interior San Fierro
  1666. CMD:re(playerid,API_Teleporte []) return ( playerid , 277.6962,1349.1051,10.1260 , " Refinaria ( /Re )" , 0 , 0 ) ;//Refinaria Deserto Lv
  1667. CMD:jump(playerid,API_Teleporte []) return ( playerid , -1810.5317,575.7595,234.8906 , " Jump ( /Jump )" , 0 , 0 ) ;//Jump Sf Predio Mais Alto
  1668. CMD:aeroab(playerid,API_Teleporte []) return ( playerid , 426.0770,2501.6980,16.4844,90.7143 , " AeroAb ( /AeroAb )" , 0 , 0 ) ;//Aeroporto Abandonado
  1669. CMD:aerols(playerid,API_Teleporte []) return ( playerid , 1918.0791,-2248.0149,13.1541 , " AeroLs ( /AeroLs )" , 0 , 0 ) ;//Aeroporto Abandonado
  1670. //~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
  1671. //------------------------------------------------------------------------------
  1672. //Comandos Basicos '-'
  1673. CMD:comandos(playerid,params[])
  1674. {
  1675.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1676.     SendClientMessage(playerid,-1,"{00FF00}|        Comandos Do Servidor        |");
  1677.     SendClientMessage(playerid,-1,"{00FF00}|        /Settime /Reparar /Flip         |");
  1678.     SendClientMessage(playerid,-1,"{00FF00}|        /Trancar /Destrancar /Setweather        |");
  1679.     SendClientMessage(playerid,-1,"{00FF00}|        /Creditos /Eu /Estilodeluta         |");
  1680.     SendClientMessage(playerid,-1,"{00FF00}|        /Noite /Dia  /Kill /Sair    |");
  1681.     SendClientMessage(playerid,-1,"{00FF00}");
  1682.     SendClientMessage(playerid,-1,"{00FF00}|        Use : /Comandos2        |");
  1683.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1684.     return 1;
  1685. }
  1686. //------------------------------------------------------------------------------
  1687. CMD:comandos2(playerid,params[])
  1688. {
  1689.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1690.     SendClientMessage(playerid,-1,"{00FF00}|        Comandos Do Servidor 2          |");
  1691.     SendClientMessage(playerid,-1,"{00FF00}|        /Transferir /GangWar /Pm        |");
  1692.     SendClientMessage(playerid,-1,"{00FF00}|        /Skin /Pintar /Kit01        |");
  1693.     SendClientMessage(playerid,-1,"{00FF00}|        /Kit02 /Kit03 /Armas        |");
  1694.     SendClientMessage(playerid,-1,"{00FF00}");
  1695.     SendClientMessage(playerid,-1,"{00FF00}|        Fim Dos Comandos        |");
  1696.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1697.     return 1;
  1698. }
  1699. //------------------------------------------------------------------------------
  1700. CMD:ajuda(playerid,params[])
  1701. {
  1702.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1703.     SendClientMessage(playerid,-1,"{00FF00}|        Ajuda Do Servidor       |");
  1704.     SendClientMessage(playerid,-1,"{00FF00}|        A  Cada Player Que Você Mata Ganha + 1 De Score        |");
  1705.     SendClientMessage(playerid,-1,"{00FF00}|        Use /Report Para Reportar Um Hack           |");
  1706.     SendClientMessage(playerid,-1,"{00FF00}|        /Comandos/2 Para Ver Os Comandos Do Servidor        |");
  1707.     SendClientMessage(playerid,-1,"{00FF00}");
  1708.     SendClientMessage(playerid,-1,"{00FF00}|        /Teles Para Ver Os Teleportes       |");
  1709.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1710.     return 1;
  1711. }
  1712. //------------------------------------------------------------------------------
  1713. CMD:teles(playerid,params[])
  1714. {
  1715.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1716.     SendClientMessage(playerid,-1,"{00FF00}|        Teles Do Servidor       |");
  1717.     SendClientMessage(playerid,-1,"{00FF00}|        /Fl /Bl /Lps /Eq /Lb /Fc /Ap /Mansao /Jump          |");
  1718.     SendClientMessage(playerid,-1,"{00FF00}|        /Bb /Dlm /Pc /Mgm /Bs /EgLs /Mls /Fz /AeroAb        |");
  1719.     SendClientMessage(playerid,-1,"{00FF00}|        /Favela /Sk8 /Jrz /Nvp /Lv /Avenida /Re /AeroLs     |");
  1720.     SendClientMessage(playerid,-1,"{00FF00}|        /AeroSf /Grove /Drift /Deserto /Ls /AeroLv      |");
  1721.     SendClientMessage(playerid,-1,"{00FF00}|        /Pls /Rally /Chilliad /Sf /Rh /Area51       |");
  1722.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  1723.     return 1;
  1724. }
  1725. //------------------------------------------------------------------------------
  1726. CMD:settime(playerid,params[]) {
  1727.     new
  1728.         time,
  1729.         minutes
  1730.     ;
  1731.     if ( sscanf ( params ,"iI(0)" , time , minutes ) )
  1732.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/settime (horas)" ) ;
  1733.  
  1734.     if ( time < 0 && time > 24)
  1735.         return SendClientMessage ( playerid , 0x00C0FFFF , "De 0 a 24 Horas !" ) ;
  1736.  
  1737.     SetPlayerTime ( playerid , time , minutes ) ;
  1738.     TogglePlayerClock ( playerid , 0 ) ;
  1739.     if ( time >= 6 && time < 11 ) {
  1740.         PlaySound ( playerid , 1057 ) ;
  1741.     }
  1742.     else if ( time >= 12 && time < 17 ) {
  1743.         PlaySound ( playerid , 1057 ) ;
  1744.     }
  1745.     else if ( time > 17 && time < 21 ) {
  1746.         PlaySound ( playerid , 1057 ) ;
  1747.     }
  1748.     else if ( time > 19 && time <= 24 ) {
  1749.         PlaySound ( playerid , 1057 ) ;
  1750.     }
  1751.     return 1;
  1752. }
  1753. //------------------------------------------------------------------------------
  1754. CMD:reparar(playerid,params[])
  1755. {
  1756.     if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
  1757.         return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
  1758.     new vID = GetPlayerVehicleID ( playerid ) ;
  1759.     SetVehicleHealth ( vID , 1000.0 ) ;
  1760.     RepairVehicle ( vID ) ;
  1761.     PlaySound ( playerid , 1133 ) ;
  1762.     return 1;
  1763. }
  1764. //------------------------------------------------------------------------------
  1765. CMD:flip(playerid,params[])
  1766. {
  1767.     if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
  1768.         return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
  1769.     new Float:PX, Float:PY, Float:PZ, Float:PA, vID = GetPlayerVehicleID ( playerid ) ;
  1770.     GetPlayerPos ( playerid , PX , PY , PZ ) ;
  1771.     GetVehicleZAngle ( vID , PA ) ;
  1772.     SetVehiclePos ( vID , PX , PY , PZ+1 ) ;
  1773.     SetVehicleZAngle ( vID , PA ) ;
  1774.     PlaySound ( playerid , 1085 ) ;
  1775.     return 1;
  1776. }
  1777. //------------------------------------------------------------------------------
  1778. CMD:trancar(playerid,params[]) {
  1779.     if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER)
  1780.         return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
  1781.     foreach (Player,i) {
  1782.         if ( i == playerid ) continue;
  1783.         SetVehicleParamsForPlayer ( GetPlayerVehicleID ( playerid) , i , 0 , 1 ) ;
  1784.     }
  1785.     GameTextForPlayer ( playerid , "~r~TRANCADO !" , 4000 , 3 ) ;
  1786.     return 1;
  1787. }
  1788. //------------------------------------------------------------------------------
  1789. CMD:destrancar(playerid,params[]) {
  1790.     if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER )
  1791.         return GameTextForPlayer ( playerid , "~r~~h~VOCE PRECISA SER MOTORISTA!" , 3500 , 3 ) ;
  1792.     foreach(Player,i) {
  1793.         SetVehicleParamsForPlayer ( GetPlayerVehicleID ( playerid ) , i , 0 , 0 ) ;
  1794.     }
  1795.     GameTextForPlayer ( playerid , "~g~DESTRANCADO!" , 4000 , 3 ) ;
  1796.     return 1;
  1797. }
  1798. //------------------------------------------------------------------------------
  1799. CMD:setweather(playerid,params[]) {
  1800.     new
  1801.         weather
  1802.     ;
  1803.     if ( sscanf ( params ,"i" , weather ) )
  1804.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setweather (weather)" ) ;
  1805.     SetPlayerWeather ( playerid , weather ) ;
  1806.     PlaySound ( playerid , 1057 ) ;
  1807.     return 1;
  1808. }
  1809. //------------------------------------------------------------------------------
  1810. CMD:creditos(playerid,params[]) {
  1811.     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","");
  1812.     return 1;
  1813. }
  1814. //------------------------------------------------------------------------------
  1815. CMD:eu(playerid,params[]) {
  1816.     if ( sscanf ( params , "s[128]" , diogo ) )
  1817.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/me (menssagem)" ) ;
  1818.     SendFMessageToAll ( 0x9BFF00FF , "» %s(%d) %s", GetPName ( playerid ) , playerid , diogo ) ;
  1819.     return 1;
  1820. }
  1821. //------------------------------------------------------------------------------
  1822. CMD:estilodeluta(playerid,params[]) {
  1823.     new
  1824.         fs [ 9 ]
  1825.     ;
  1826.     if ( strlen ( params ) > 9 )
  1827.         return SendClientMessage (playerid , 0x00C0FFFF ,"USO: "CWHITE"/fightstyle (normal/boxing/kungfu/kneehead/grabkick/elbow)" ) ;
  1828.  
  1829.     if ( sscanf ( params ,"s[9]" , fs ) )
  1830.         return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/fightstyle (normal/boxing/kungfu/kneehead/grabkick/elbow)" ) ;
  1831.  
  1832.     if ( !strcmp ( fs , "normal" , true ) ) {
  1833.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_NORMAL ) ;
  1834.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"normal" ) ;
  1835.     }
  1836.     else if ( !strcmp ( fs , "boxing" , true ) ) {
  1837.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_BOXING ) ;
  1838.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"boxing" ) ;
  1839.     }
  1840.     else if ( !strcmp ( fs , "kungfu" , true ) ) {
  1841.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_KUNGFU ) ;
  1842.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"kungfu" ) ;
  1843.     }
  1844.     else if ( !strcmp ( fs , "kneehead" , true ) ) {
  1845.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_KNEEHEAD ) ;
  1846.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"kneehead" ) ;
  1847.     }
  1848.     else if ( !strcmp ( fs , "grabkick" , true ) ) {
  1849.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_GRABKICK ) ;
  1850.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"grabkick" ) ;
  1851.     }
  1852.     else if ( !strcmp ( fs , "elbow" , true ) ) {
  1853.         SetPlayerFightingStyle ( playerid , FIGHT_STYLE_ELBOW ) ;
  1854.         SendClientMessage ( playerid , 0x00C0FFFF , "Voce mudou seu estilo de luta para : "CGREEN"elbow" ) ;
  1855.     }
  1856.     PlaySound ( playerid , 1054 ) ;
  1857.     return 1;
  1858. }
  1859. //------------------------------------------------------------------------------
  1860. CMD:noite(playerid,params[]) {
  1861.     SetPlayerTime ( playerid , 0 , 0 ) ;
  1862.     GameTextForPlayer ( playerid ,"~p~Noite!" , 4000 , 3 ) ;
  1863.     return 1;
  1864. }
  1865. //------------------------------------------------------------------------------
  1866. CMD:dia(playerid,params[]) {
  1867.     SetPlayerTime ( playerid , 12 , 0 ) ;
  1868.     GameTextForPlayer ( playerid , "~y~~h~Dia!" , 4000 , 3 ) ;
  1869.     return 1;
  1870. }
  1871. //------------------------------------------------------------------------------
  1872. CMD:kill(playerid,params[])
  1873. {
  1874.     if ( PInfo [ playerid ] [ InDM ] >= 1 )
  1875.     {
  1876.         SetPlayerHealth ( playerid , 100 ) ;
  1877.         PInfo [ playerid ] [ InDM ] = 0 ;
  1878.         PInfo [ playerid ] [ InDM ] = 0 ;
  1879.         SpawnPlayer ( playerid ) ;
  1880.         SetCameraBehindPlayer ( playerid ) ;
  1881.     }
  1882.     if ( PInfo [ playerid ] [ Inx1 ] == 1 )
  1883.     {
  1884.         X1Q--;
  1885.     }
  1886.     if ( IsPlayerInAnyVehicle ( playerid ) )
  1887.     {
  1888.         new Float:x,Float:y,Float:z;
  1889.         GetPlayerPos ( playerid , x , y , z ) ;
  1890.         SetPlayerPos ( playerid , x , y , z +1 ) ;
  1891.     }
  1892.     SetPlayerHealth ( playerid , 0 ) ;
  1893.     PlayerPlaySound ( playerid , 1085 , 0.0 , 0.0 , 0.0 ) ;
  1894.     return 1;
  1895. }
  1896.  
  1897. //------------------------------------------------------------------------------
  1898. CMD:sair(playerid,params[])
  1899. {
  1900.     if ( PInfo [ playerid ] [ Inx1 ] == 1 )
  1901.     {
  1902.         X1Q--;
  1903.     }
  1904.     if ( PInfo [ playerid ] [ InDM ] >= 1 )
  1905.     {
  1906.         SetPlayerHealth ( playerid , 100 ) ;
  1907.         PInfo [ playerid ] [ InDM ] = 0 ;
  1908.         PInfo [ playerid ] [ InDM ] = 0 ;
  1909.         SpawnPlayer ( playerid ) ;
  1910.         SetCameraBehindPlayer ( playerid ) ;
  1911.     }
  1912.     return 1;
  1913. }
  1914. //------------------------------------------------------------------------------
  1915. CMD:gangwar(playerid,params[]) {
  1916.     ShowPlayerDialog ( playerid , GangWar , 2 ,"{00FF00}GANG WAR ","{37BE00}Grove\n{FFFF00}Vagos\n{AA00FF}Ballas\n{007DFF}Aztecas","Pronto!","Sair" ) ;
  1917.     return 1;
  1918. }
  1919. //------------------------------------------------------------------------------
  1920. CMD:transferir(playerid, params[])
  1921. {
  1922.     new
  1923.         giveid,
  1924.         value
  1925.     ;
  1926.     if ( sscanf ( params , "ui" , giveid , value ) )
  1927.         return SendClientMessage ( playerid , 0x00C0FFFF , "{FF0000}Use /transferir [ ID-Nome ] [ $$ ]" ) ;
  1928.     if ( GetPlayerMoney ( playerid ) < value )
  1929.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]:Voce não tem todo esse dinheiro!" ) ;
  1930.     GivePlayerMoney ( playerid , -value ) ;
  1931.     GivePlayerMoney ( giveid , value ) ;
  1932.     format ( diogo , 128 , "[BANCO] Você transferiu R$%d para o jogador %s." , value , pname ) ;
  1933.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  1934.     format ( diogo , 128 , "[BANCO] %s transferiu R$%d para voce." , pname , value ) ;
  1935.     SendClientMessage ( giveid , 0x00C0FFFF , diogo);
  1936.     return 1;
  1937. }
  1938. //------------------------------------------------------------------------------
  1939. CMD:pm(playerid,params[]) return cmd_mp(playerid,params);
  1940. CMD:mp(playerid, params[])
  1941. {
  1942.     new
  1943.         str [ 500 ],
  1944.         str2 [ 500 ],
  1945.         id,
  1946.         pname2 [ MAX_PLAYER_NAME ]
  1947.     ;
  1948.     if ( sscanf ( params , "us[500]" , id , str2 ) )
  1949.         return SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}Use /mp [ Id ] [ Menssagem ]" ) ;
  1950.     if( !IsPlayerConnected ( id ) )
  1951.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Player não conectado!" ) ;
  1952.     if ( playerid == id )
  1953.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não pode mandar MP para si mesmo!" ) ;
  1954.     {
  1955.         GetPlayerName ( id , pname2 , sizeof ( pname2 ) ) ;
  1956.         format ( str , sizeof ( str ) , "PM Enviada para %s{FF0000}[{FFFFFF}ID:%i{FF0000}]:{00FF00} %s", pname , id , str2 ) ;
  1957.         SendClientMessage ( playerid , 0x00C0FFFF , str ) ;
  1958.         PlayerPlaySound ( id , 1057, 0.0, 0.0, 0.0 ) ;
  1959.         GameTextForPlayer ( id , "~r~MENSAGEM RECEBIDA" , 1000 , 4 ) ;
  1960.         format ( str , sizeof ( str ) , "PM Recebida de %s{FF0000}[{FFFFFF}ID:%i{FF0000}]:{00FF00} %s" , pname , playerid , str2 ) ;
  1961.         SendClientMessage ( id , 0x00C0FFFF , str ) ;
  1962.         PlayerPlaySound ( playerid , 1057 , 0.0 , 0.0 , 0.0 ) ;
  1963.         GameTextForPlayer ( playerid , "~B~MENSAGEM ENVIADA", 7000 , 3 ) ;
  1964.     }
  1965.     return 1;
  1966. }
  1967. //------------------------------------------------------------------------------
  1968. CMD:skin(playerid, params[])
  1969. {
  1970.     if( isnull( params ) )
  1971.         return SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}Uso: /skin [0-299]" ) ;
  1972.     if ( strval ( params ) < 0 || strval ( params ) > 299 )
  1973.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]:Escolha a skin de 0 a 299!" ) ;
  1974.     SetPlayerSkin ( playerid , strval ( params ) ) ;
  1975.     return 1;
  1976. }
  1977. //------------------------------------------------------------------------------
  1978. CMD:pintar(playerid, params[])
  1979. {
  1980.     static c1 , c2 ;
  1981.     if ( IsPlayerInAnyVehicle ( playerid ) ) {
  1982.         if ( sscanf ( params , "ii" , c1 , c2 ) )
  1983.             return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO] Use /pintar [ cor1 ] [ cor2 ] !" ) ;
  1984.         ChangeVehicleColor ( GetPlayerVehicleID ( playerid ) , c1 , c2 ) ;
  1985.         PlayerPlaySound ( playerid , 1133 , 257.6206 , -41.5307 , 1002.0234 ) ;
  1986.         format ( diogo , 128 , "{0000FF}[INFO] Você Mudou As Cores Para: {FFFFFF}[ %i ] - [ %i ]" , c1 , c2 ) ;
  1987.         SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  1988.         return 1 ;
  1989.     }
  1990.     else return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Voce tem que estar em um veiculo." ) ;
  1991. }
  1992. //------------------------------------------------------------------------------
  1993. CMD:kit01(playerid,params[])
  1994. {
  1995.     if ( IsPlayerInAnyVehicle ( playerid ) )
  1996.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você Deve Sair Do Veiculo." ) ;
  1997.     if ( GetPlayerMoney ( playerid ) < 3000 )
  1998.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não tem $3.000  para comprar este Kit!" ) ;
  1999.     GivePlayerMoney  ( playerid , -3000 ) ;
  2000.     GivePlayerWeapon ( playerid , 5  , 200 ) ;
  2001.     GivePlayerWeapon ( playerid , 14 , 200 ) ;
  2002.     GivePlayerWeapon ( playerid , 23 , 200 ) ;
  2003.     GivePlayerWeapon ( playerid , 25 , 200 ) ;
  2004.     GivePlayerWeapon ( playerid , 29 , 200 ) ;
  2005.     GivePlayerWeapon ( playerid , 30 , 200 ) ;
  2006.     GivePlayerWeapon ( playerid , 33 , 200 ) ;
  2007.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{836FFF}Comprou o Kit01 {FF0000}( /Kit01 )", pname ) ;
  2008.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  2009.     return 1;
  2010. }
  2011. //------------------------------------------------------------------------------
  2012. CMD:kit02(playerid,params[])
  2013. {
  2014.     if ( IsPlayerInAnyVehicle ( playerid ) )
  2015.         return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO] Você Deve Sair Do Veiculo." ) ;
  2016.     if ( GetPlayerMoney ( playerid ) < 6000 )
  2017.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: Você não tem $6.000 para comprar este Kit!" ) ;
  2018.     GivePlayerMoney ( playerid , -6000 ) ;
  2019.     GivePlayerWeapon ( playerid , 9 ,  300);
  2020.     GivePlayerWeapon ( playerid , 10 , 300);
  2021.     GivePlayerWeapon ( playerid , 22 , 300);
  2022.     GivePlayerWeapon ( playerid , 27 , 300);
  2023.     GivePlayerWeapon ( playerid , 28 , 300);
  2024.     GivePlayerWeapon ( playerid , 30 , 300);
  2025.     GivePlayerWeapon ( playerid , 33 , 300);
  2026.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{836FFF}Comprou o Kit02 {FF0000}( /Kit02 )", pname ) ;
  2027.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  2028.     return 1;
  2029. }
  2030. //------------------------------------------------------------------------------
  2031. CMD:kit03(playerid,params[])
  2032. {
  2033.     if ( IsPlayerInAnyVehicle ( playerid ) )
  2034.         return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO]: Você Deve Sair Do Veiculo." ) ;
  2035.     if ( GetPlayerMoney ( playerid ) < 9000 )
  2036.         return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO]: Você não tem $9.000 para comprar este Kit!" ) ;
  2037.     GivePlayerMoney ( playerid ,-9000);
  2038.     GivePlayerWeapon ( playerid , 1 ,  500 ) ;
  2039.     GivePlayerWeapon ( playerid , 4 ,  500 ) ;
  2040.     GivePlayerWeapon ( playerid , 15 , 500 ) ;
  2041.     GivePlayerWeapon ( playerid , 24 , 500 ) ;
  2042.     GivePlayerWeapon ( playerid , 26 , 500 ) ;
  2043.     GivePlayerWeapon ( playerid , 31 , 500 ) ;
  2044.     GivePlayerWeapon ( playerid , 32 , 500 ) ;
  2045.     GivePlayerWeapon ( playerid , 34 , 500 ) ;
  2046.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{836FFF}Comprou o Kit03 {FF0000}( /Kit03 )", pname);
  2047.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  2048.     return 1;
  2049. }
  2050. //------------------------------------------------------------------------------
  2051. CMD:armas(playerid,params[])
  2052.     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");
  2053. //------------------------------ AdM SysTeM ------------------------------------
  2054. CMD:abrirevento(playerid)
  2055. {
  2056.     if ( EventoStatus )
  2057.         return SendClientMessage ( playerid , 0x00C0FFFF , "O evento já está aberto." ) ;
  2058.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2059.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2060.     EventoStatus = true;
  2061.     NoEvento[playerid] = true;
  2062.     GetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
  2063.     GetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
  2064.     EventoInt = GetPlayerInterior ( playerid ) ;
  2065.     EventoVW = GetPlayerVirtualWorld ( playerid ) ;
  2066.     SendClientMessageToAll ( 0xFFFFFFFF," " ) ;
  2067.     SendClientMessageToAll ( 0xFF00FFFF,"[EVENTO]: EVENTO ABERTO PELO ADMIN, DIGITE /EVENTO !" ) ;
  2068.     SendClientMessageToAll ( 0xFFFFFFFF," " ) ;
  2069.     return 1;
  2070. }
  2071. //------------------------------------------------------------------------------
  2072. CMD:efechar(playerid)
  2073. {
  2074.     if ( !EventoStatus )
  2075.         return SendClientMessage ( playerid , 0x00C0FFFF , "O evento já está fechado." ) ;
  2076.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2077.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2078.     for ( new v , b = GetMaxPlayers(); v != b; v++ )
  2079.     if ( NoEvento [ v ] )
  2080.     NoEvento [ v ] = true ;
  2081.     EventoStatus = false ;
  2082.     SendClientMessageToAll ( 0xFF00FFFF ,"[EVENTO]: O ADMIN FECHOU O EVENTO !" ) ;
  2083.     return 1;
  2084. }
  2085. //------------------------------------------------------------------------------
  2086. CMD:evento(playerid)
  2087. {
  2088.     if ( !EventoStatus )
  2089.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2090.     new Float:Health;
  2091.     GetPlayerHealth ( playerid , Health ) ;
  2092.     if ( Health < 30.0 )
  2093.         return SendClientMessage ( playerid, 0xFF0000FF, "{F81414}[ERRO] Você nao pode se teleportar com pouca vida." ) ;
  2094.     NoEvento [ playerid ] = true ;
  2095.     ResetPlayerWeapons ( playerid ) ;
  2096.     format ( diogo , sizeof ( diogo ) , "{FFFFFF}[  %s  ] {F81414}Foi para o evento {FFFFFF}( /EVENTO )", pname ) ;
  2097.     SendClientMessageToAll ( 0x88FF9FFF , diogo ) ;
  2098.     SetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
  2099.     SetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
  2100.     SetPlayerInterior ( playerid , EventoInt ) ;
  2101.     SetPlayerVirtualWorld ( playerid , EventoVW ) ;
  2102.     return 1;
  2103. }
  2104. //------------------------------------------------------------------------------
  2105. CMD:ecar(playerid, params[])
  2106. {
  2107.     if ( !EventoStatus )
  2108.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2109.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2110.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2111.     new
  2112.         Modelo,
  2113.         Cor1,
  2114.         Cor2
  2115.     ;
  2116.     if ( sscanf ( params , "ddd" , Modelo , Cor1 , Cor2 ) )
  2117.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ecar [ ID ] [ Cor1 ] [ Cor2 ]" ) ;
  2118.     new Float:CarPos[4], CarID;
  2119.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2120.     if ( NoEvento [ v ] ) {
  2121.         GetPlayerFacingAngle ( v , CarPos [ 3 ] ) ;
  2122.         GetPlayerPos ( v , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] ) ;
  2123.         CarID = CreateVehicle ( Modelo , CarPos [ 0 ] +2 , CarPos [ 1 ] , CarPos [ 2 ] , CarPos [ 3 ] , Cor1 , Cor2 , 0x00C0FFFF ) ;
  2124.         LinkVehicleToInterior ( CarID , EventoInt ) ;
  2125.         SetVehicleVirtualWorld ( CarID , EventoVW ) ;
  2126.         PutPlayerInVehicle ( v , CarID , 0 ) ;
  2127.     }
  2128.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU UM VEICULO PARA TODOS DO EVENTO !" ) ;
  2129.     return 1;
  2130. }
  2131. //------------------------------------------------------------------------------
  2132. CMD:earma(playerid, params[])
  2133. {
  2134.     if ( !EventoStatus )
  2135.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2136.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2137.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2138.     new
  2139.         Arma,
  2140.         Municao
  2141.     ;
  2142.     if ( sscanf ( params , "dd" , Arma , Municao ) )
  2143.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Earma [ Arma ID ] [ Munição ]" ) ;
  2144.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2145.     if ( NoEvento [ v ] )
  2146.     GivePlayerWeapon ( v , Arma , Municao ) ;
  2147.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU ARMAS PARA TODOS DO EVENTO !" ) ;
  2148.     return 1;
  2149. }
  2150. //------------------------------------------------------------------------------
  2151. CMD:ecolete(playerid, params[])
  2152. {
  2153.     if ( !EventoStatus )
  2154.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2155.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2156.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2157.     new Float:Colete;
  2158.     if ( sscanf ( params , "f", Colete ) )
  2159.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ecolete [ Quantidade ]" ) ;
  2160.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2161.     if ( NoEvento [ v ] )
  2162.     SetPlayerArmour ( v , Colete ) ;
  2163.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DEU COLETE PARA TODOS DO EVENTO !" ) ;
  2164.     return 1;
  2165. }
  2166. //------------------------------------------------------------------------------
  2167. CMD:evida(playerid, params[])
  2168. {
  2169.     if ( !EventoStatus )
  2170.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2171.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2172.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2173.     new Float:Vida;
  2174.     if ( sscanf ( params , "f" , Vida ) )
  2175.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Evida [ Quantidade ]" ) ;
  2176.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2177.     if ( NoEvento [ v ] )
  2178.     SetPlayerArmour ( v , Vida ) ;
  2179.     SendClientMessageToAll ( 0x33CCFFFF ,"[EVENTO]: O ADMIN DEU VIDA PARA TODOS DO EVENTO !" ) ;
  2180.     return 1;
  2181. }
  2182. //------------------------------------------------------------------------------
  2183. CMD:contar(playerid)
  2184. {
  2185.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2186.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2187.     Contar ( 5 ) ;
  2188.     return 1;
  2189. }
  2190. //------------------------------------------------------------------------------
  2191. CMD:ekickar(playerid, params[])
  2192. {
  2193.     if ( !EventoStatus )
  2194.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2195.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2196.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2197.     new ID;
  2198.     if ( sscanf ( params , "r" , ID ) )
  2199.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Ekickar [ ID ]" ) ;
  2200.     if ( !NoEvento [ ID ] )
  2201.         return SendClientMessage ( playerid , 0x00C0FFFF , "Este jogador não está no evento." ) ;
  2202.     SpawnPlayer ( ID ) ;
  2203.     SendClientMessage ( ID , 0x00C0FFFF , "[INFO]: Você foi kickado do evento." ) ;
  2204.     NoEvento [ ID ] = false ;
  2205.     return 1;
  2206. }
  2207. //------------------------------------------------------------------------------
  2208. CMD:econgelar(playerid)
  2209. {
  2210.     if ( !EventoStatus )
  2211.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2212.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2213.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2214.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2215.     if ( NoEvento [ v ] )
  2216.     TogglePlayerControllable ( v , false ) ;
  2217.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN CONGELOU TODOS DO EVENTO !" ) ;
  2218.     return 1;
  2219. }
  2220. //------------------------------------------------------------------------------
  2221. CMD:edescongelar(playerid)
  2222. {
  2223.     if ( !EventoStatus )
  2224.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2225.     if ( PInfo [ playerid ] [ Adminlevel ] < 3 && !IsPlayerAdmin ( playerid ) )
  2226.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2227.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2228.     if ( NoEvento [ v ] )
  2229.     TogglePlayerControllable ( v , true ) ;
  2230.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DESCONGELOU TODOS DO EVENTO !" ) ;
  2231.     return 1;
  2232. }
  2233. //------------------------------------------------------------------------------
  2234. CMD:edesarmar(playerid)
  2235. {
  2236.     if ( !EventoStatus )
  2237.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: O evento não está aberto." ) ;
  2238.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2239.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2240.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2241.     if ( NoEvento [ v ] )
  2242.     ResetPlayerWeapons ( v ) ;
  2243.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN DESARMOU TODOS DO EVENTO!" ) ;
  2244.     return 1;
  2245. }
  2246. //------------------------------------------------------------------------------
  2247. CMD:eskin(playerid, params[])
  2248. {
  2249.     if ( !EventoStatus )
  2250.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2251.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2252.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2253.     new Skin;
  2254.     if ( sscanf ( params , "d" , Skin ) )
  2255.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Eskin [ ID Skin ]" ) ;
  2256.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2257.     if ( NoEvento [ v ] )
  2258.     SetPlayerSkin ( v , Skin ) ;
  2259.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN SETOU SKIN PARA TODOS DO EVENTO !" ) ;
  2260.     return 1;
  2261. }
  2262. //------------------------------------------------------------------------------
  2263. CMD:eterminar(playerid)
  2264. {
  2265.     if ( !EventoStatus )
  2266.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO]: O evento não está aberto." ) ;
  2267.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2268.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2269.     SendClientMessageToAll ( 0x33CCFFFF , "[EVENTO]: O ADMIN TERMINOU O EVENTO !" ) ;
  2270.     for ( new v, b = GetMaxPlayers(); v != b; v++ )
  2271.     if ( NoEvento [ v ] ) {
  2272.         NoEvento [ v ] = false;
  2273.         SpawnPlayer ( v ) ;
  2274.     }
  2275.     return 1;
  2276. }
  2277. //------------------------------------------------------------------------------
  2278. CMD:ecmd(playerid, params[])
  2279. {
  2280.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2281.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2282.     new EventoS [1450];
  2283.     strins ( EventoS ,"{FF0000}Comandos Eventos\n",strlen ( EventoS ) ) ;
  2284.     strins ( EventoS ,"{FFFFFF}/evw {FF54BF}Para Mudar O Seu Mundo Virtual. \n", strlen ( EventoS ) ) ;
  2285.     strins ( EventoS ,"{FFFFFF}/abrirevento {FF54BF}Para Abrir Um Evento.\n", strlen ( EventoS ) ) ;
  2286.     strins ( EventoS ,"{FFFFFF}/evento {FF54BF}Para Ir Até O Evento.\n", strlen ( EventoS ) ) ;
  2287.     strins ( EventoS ,"{FFFFFF}/ecar {FF54BF}Para Dar Um Veiculo A Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2288.     strins ( EventoS ,"{FFFFFF}/earma {FF54BF}Para Dar Uma Arma A Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2289.     strins ( EventoS ,"{FFFFFF}/ecolete {FF54BF}Para Dar Colete A Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2290.     strins ( EventoS ,"{FFFFFF}/evida {FF54BF}Para Dar Vida A Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2291.     strins ( EventoS ,"{FFFFFF}/contar {FF54BF}Para Começar Uma Contagem De 5 Segundos.\n", strlen ( EventoS ) ) ;
  2292.     strins ( EventoS ,"{FFFFFF}/ekickar {FF54BF}Para Dar Um Kick Em Alguém Do Evento.\n", strlen ( EventoS ) ) ;
  2293.     strins ( EventoS ,"{FFFFFF}/econgelar {FF54BF}Para Congelar Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2294.     strins ( EventoS ,"{FFFFFF}/edescongelar {FF54BF}Para Descongelar Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2295.     strins ( EventoS ,"{FFFFFF}/edesarmar {FF54BF}Para Desarmar Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2296.     strins ( EventoS ,"{FFFFFF}/eskin {FF54BF}Para Setar Uma Skin A Todos Do Evento.\n", strlen ( EventoS ) ) ;
  2297.     strins ( EventoS ,"{FFFFFF}/eterminar{FF54BF}Para Terminar O Evento.\n", strlen ( EventoS ) ) ;
  2298.     ShowPlayerDialog ( playerid , Evento , DIALOG_STYLE_MSGBOX , "Comandos" , EventoS , "Sair", "" ) ;
  2299.     return 1;
  2300. }
  2301. //---------------------------------- ADM CoManDoS ------------------------------
  2302. CMD:multiv(playerid, params[]) {
  2303.     if ( PInfo [ playerid ] [ Adminlevel ] < 3 && !IsPlayerAdmin ( playerid ) )
  2304.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2305.     new
  2306.         Carro,
  2307.         Colunas,
  2308.         Filas
  2309.     ;
  2310.     if ( sscanf ( params , "ddd" , Carro , Colunas , Filas ) )
  2311.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}/Multiv [ Carro ] [ Colunas ] [ Filas ]" ) ;
  2312.     if ( Carro < 400 || Carro > 611 )
  2313.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}O número do veículo deve ser entre 400 e 611." ) ;
  2314.     if ( Colunas < 0 || Colunas > 8 )
  2315.         return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}Número de colunas deve ser entre 0 e 8." ) ;
  2316.     if ( Filas < 0 || Filas > 8 )
  2317.         return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}Número de filas deve ser entre 0 e 8." ) ;
  2318.     new Float:CarPos [ 5 ] ;
  2319.     GetPlayerPos ( playerid , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] ) ;
  2320.     GetPlayerFacingAngle ( playerid , CarPos [ 3 ] ) ;
  2321.     CarPos [ 4 ] = CarPos [ 0 ] ;
  2322.     new
  2323.         CarID ,
  2324.         v ,
  2325.         b
  2326.     ;
  2327.     for ( v = 0; v < Filas; v++ ) {
  2328.         for ( b = 0; b < Colunas; b++ ) {
  2329.             CarID = CreateVehicle ( Carro , CarPos [ 0 ] , CarPos [ 1 ] , CarPos [ 2 ] , CarPos [ 3 ] , random ( 300 ) , random ( 300 ) , 0x00C0FFFF ) ;
  2330.             LinkVehicleToInterior ( CarID , GetPlayerInterior ( playerid ) ) ;
  2331.             SetVehicleVirtualWorld ( CarID , GetPlayerVirtualWorld ( playerid ) ) ;
  2332.             CarPos [ 0 ] += 5 ;
  2333.         }
  2334.         CarPos [ 0 ] = CarPos [ 4 ] ;
  2335.         CarPos [ 1 ] += 6 ;
  2336.     }
  2337.     return true;
  2338. }
  2339. //------------------------------------------------------------------------------
  2340. CMD:admins(playerid,params[])
  2341. {
  2342.     static string12 [ 800 ] ;
  2343.     for ( new p; p < GetMaxPlayers(); ++p )
  2344.     {
  2345.         if ( IsPlayerConnected ( p ) )
  2346.         {
  2347.             if ( PInfo [ p ] [ Adminlevel ] > 0)
  2348.             {
  2349.                 GetPlayerName ( p , pname , sizeof ( pname ) ) ;
  2350.                 format ( string12 , sizeof ( string12 ) , "%s {FF0000}%s [ID: {FFFF00}%d{FF0000} ] [Level: {FFFF00}%d{FF0000} ]\n", string12 , pname , p , PInfo [ p ] [ Adminlevel ] ) ;
  2351.                 temon = true ;
  2352.             }
  2353.         }
  2354.     }
  2355.     if ( temon == false )
  2356.     {
  2357.         ShowPlayerDialog ( playerid , Admin , DIALOG_STYLE_MSGBOX ,"Adminis","{FF0000}Nenhum administrador online\n.\n","Fechar","");
  2358.     }
  2359.         else
  2360.     {
  2361.         ShowPlayerDialog ( playerid , 9585 , DIALOG_STYLE_MSGBOX , "Administradores" , string12 , "Fechar","" ) ;
  2362.     }
  2363.     strdel ( string12 , 0 , sizeof ( string12 ) ) ;
  2364.     return 1;
  2365. }
  2366. //------------------------------------------------------------------------------
  2367. CMD:x9(playerid,params[])  return cmd_report(playerid,params);
  2368. CMD:report(playerid, params[])
  2369. {
  2370.     new
  2371.         iddocara,
  2372.         motivo [ 50 ]
  2373.     ;
  2374.     if ( sscanf ( params , "ds[50]" , iddocara , motivo ) )
  2375.         return SendClientMessage ( playerid , 0xFFFF00FF , "[USE]: /report [ ID ] [ Motivo ]" ) ;
  2376.     if ( !strlen ( motivo ) )
  2377.         return SendClientMessage ( playerid , 0x00C0FFFF , "O report nao pode ficar vazio!" ) ;
  2378.     if ( !IsPlayerConnected ( iddocara ) )
  2379.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERRO] Jogador não encontrado." ) ;
  2380.     new nome2 [ 25 ] ;
  2381.     GetPlayerName ( iddocara , nome2 , sizeof ( nome2 ) ) ;
  2382.     format ( diogo , sizeof ( diogo ) , "{FF0000}[ATENÇÃO] %s [ID:%d] Reportou %s [ID:%d] |Motivo: %s",playerid , nome2 , iddocara , motivo ) ;
  2383.     foreach (Player,Admins)
  2384.     {
  2385.         if ( IsPlayerConnected ( Admins ) && PInfo [ Admins ] [ Adminlevel ] > 0 )
  2386.         {
  2387.             SendClientMessage ( Admins , 0x00C0FFFF , diogo ) ;
  2388.             GameTextForPlayer ( Admins , "~r~NOVO REPORT" , 1000 , 4 ) ;
  2389.             PlayerPlaySound ( playerid , 1057 , 0.0 , 0.0 , 0.0 ) ;
  2390.         }
  2391.     }
  2392.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}» [INFO]: Seu report foi enviado para os adminis!" ) ;
  2393.     return 1;
  2394. }
  2395. //------------------------------------------------------------------------------
  2396. CMD:dcarro(playerid, params[])
  2397. {
  2398.     if ( PInfo [ playerid ] [ Adminlevel ] >= 2 )
  2399.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2400.     new
  2401.         Modelo,
  2402.         Float:X,
  2403.         Float:Y,
  2404.         Float:Z,
  2405.         Float:A,
  2406.         ID,
  2407.         LECAR
  2408.     ;
  2409.     if ( sscanf ( params , "dd" , ID , Modelo ) )
  2410.         return SendClientMessage ( playerid , 0x00C0FFFF , "Uso: /dcarro [ Id ] [ Modelo ]" ) ;
  2411.     GetPlayerPos ( ID , X , Y , Z ) ;
  2412.     GetPlayerFacingAngle ( ID , A ) ;
  2413.     LECAR = CreateVehicle ( Modelo , X , Y , Z , A , -1 , -1 , -1 ) ;
  2414.     SetVehicleVirtualWorld ( LECAR , GetPlayerVirtualWorld ( ID ) ) ;
  2415.     LinkVehicleToInterior ( LECAR , GetPlayerInterior ( ID ) ) ;
  2416.     PutPlayerInVehicle ( ID , LECAR , 0 ) ;
  2417.     return 1;
  2418. }
  2419. //------------------------------------------------------------------------------
  2420. CMD:delc(playerid)
  2421. {
  2422.     if(PInfo[playerid][Adminlevel] >= 2)
  2423.         return SendClientMessage ( playerid , -1 , NaoPodeUsarCmD ) ;
  2424.     DestroyVehicle ( GetPlayerVehicleID ( playerid ) ) ;
  2425.     return 1;
  2426. }
  2427. //------------------------------------------------------------------------------
  2428. CMD:mo(playerid, params[])
  2429. {
  2430.     if(PInfo[playerid][Adminlevel] >= 2)
  2431.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2432.        
  2433.     new
  2434.         Distancia,
  2435.         Velocidade,
  2436.         Velo2 [ 6 ]
  2437.     ;
  2438.     if ( sscanf ( params , "dds[6]" , Distancia , Velocidade , Velo2 ) )
  2439.         return SendClientMessage(playerid,0x00C0FFFF,"Uso: /mo [distancia] [velocidade] [cima/baixo/leste/oeste/sul/norte]");
  2440.        
  2441.     new
  2442.         Float:X,
  2443.         Float:Y,
  2444.         Float:Z
  2445.     ;
  2446.     if ( !strcmp ( Velo2 , "cima" , true ) )
  2447.     {
  2448.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2449.         MoveObject ( objco [ playerid ] , X , Y , Z +Distancia , Velocidade ) ;
  2450.     }
  2451.     if ( !strcmp ( Velo2 , "baixo" , true ) )
  2452.     {
  2453.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2454.         MoveObject ( objco [ playerid ] , X , Y , Z -Distancia , Velocidade ) ;
  2455.     }
  2456.     if ( !strcmp ( Velo2 , "norte" , true ) )
  2457.     {
  2458.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2459.         MoveObject ( objco [ playerid ] , X , Y +Distancia , Z , Velocidade ) ;
  2460.     }
  2461.     if ( !strcmp ( Velo2 , "sul" , true ) )
  2462.     {
  2463.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2464.         MoveObject ( objco [ playerid ] , X , Y-Distancia , Z , Velocidade ) ;
  2465.     }
  2466.     if ( !strcmp ( Velo2 , "leste" , true ) )
  2467.     {
  2468.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2469.         MoveObject ( objco [ playerid ] , X+Distancia , Y , Z , Velocidade ) ;
  2470.     }
  2471.     if ( !strcmp ( Velo2 , "oeste" , true ) )
  2472.     {
  2473.         GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2474.         MoveObject ( objco [ playerid ] , X-Distancia , Y , Z , Velocidade ) ;
  2475.     }
  2476.     return 1;
  2477. }
  2478. //------------------------------------------------------------------------------
  2479. CMD:moa(playerid)
  2480. {
  2481.     if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
  2482.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2483.     new
  2484.         Float:A,
  2485.         Float:X,
  2486.         Float:Y,
  2487.         Float:Z
  2488.     ;
  2489.     GetPlayerFacingAngle ( playerid , A ) ;
  2490.     GetObjectPos ( objco [ playerid ] , X , Y , Z ) ;
  2491.     MoveObject ( objco [ playerid ] , X , Y , Z , 0.5 , -1 , -1 , A ) ;
  2492.     return 1;
  2493. }
  2494. //------------------------------------------------------------------------------
  2495. CMD:co(playerid, params[])
  2496. {
  2497.     if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
  2498.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2499.     new ID ;
  2500.     if ( sscanf ( params , "d" , ID ) )
  2501.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Uso: /Co [ ID Objeto ]" ) ;
  2502.     new
  2503.         Float:X,
  2504.         Float:Y,
  2505.         Float:Z,
  2506.         Float:A
  2507.     ;
  2508.     DestroyObject ( objco [ playerid ] ) ;
  2509.     GetPlayerPos ( playerid , X , Y , Z );
  2510.     GetPlayerFacingAngle ( playerid , A ) ;
  2511.     objco[playerid] = CreateObject ( ID , X , Y , Z , 0 , 0 , A , 0 ) ;
  2512.     return 1;
  2513. }
  2514. //------------------------------------------------------------------------------
  2515. CMD:delo(playerid, params[])
  2516. {
  2517.     if ( PInfo [ playerid ] [ Adminlevel ] < 2 )
  2518.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2519.     if ( objco [ playerid ] < 1 )
  2520.         return SendClientMessage ( playerid , 0x00C0FFFF , "ERRO: Você Não Tem Objecto" ) ;
  2521.     DestroyObject ( objco [ playerid ] ) ;
  2522.     return 1;
  2523. }
  2524. //------------------------------------------------------------------------------
  2525. CMD:a(playerid, params[])
  2526. {
  2527.     if ( PInfo [ playerid ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( playerid ) )
  2528.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2529.     if ( isnull ( params ) )
  2530.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[USE]: /A [ texto ]" ) ;
  2531.     format ( params , strlen ( params ) + 48, "{FFFF00}[ADMIN CHAT]: %s diz: %s", pname , params ) ;
  2532.     foreach (Player,x)
  2533.     {
  2534.         if ( PInfo [ x ] [ Adminlevel ] < 1 && !IsPlayerAdmin ( x ) ) continue ;
  2535.         SendClientMessage ( x , 0xFFFF00AA , params ) ;
  2536.     }
  2537.     return 1;
  2538. }
  2539. //------------------------------------------------------------------------------
  2540. CMD:lc(playerid,params[])
  2541. {
  2542.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2543.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2544.     foreach (Player,i) SendClientMessageToAll ( -1 , " ") ;
  2545.     format ( diogo , 129 , "~r~[~w~Chat Limpo~r~]" , pname ) ;
  2546.     GameTextForAll ( diogo , 6000 , 1 ) ;
  2547.     return true;
  2548. }
  2549. //------------------------------------------------------------------------------
  2550. CMD:kick(playerid, params[])
  2551. {
  2552.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2553.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2554.     new motivo [ 60 ] ;
  2555.     if ( sscanf ( params , "us" , giveplayerid , motivo ) )
  2556.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Use: /kick [ ID ] [ Motivo ]" ) ;
  2557.     if ( !IsPlayerConnected ( giveplayerid ) )
  2558.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Jogador não está conectado." ) ;
  2559.     if ( PInfo [ giveplayerid ] [ Adminlevel ] != 0 )
  2560.         return SendClientMessage ( playerid , 0x00C0FFFF ,"{F81414}[ERRO] Você não pode kickar outro administrador!" ) ;
  2561.     format ( diogo , sizeof ( diogo ) , "[  %s  ]Foi kickado pelo Admin [  %s  ] | Motivo | : [  %s  ]" , Path ( giveplayerid ) , Path ( playerid ) , motivo ) ;
  2562.     SendClientMessageToAll ( 0xFF5604AA , diogo ) ;
  2563.     return 1;
  2564. }
  2565. //------------------------------------------------------------------------------
  2566. CMD:ir(playerid, params[])
  2567. {
  2568.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2569.         return SendClientMessage ( playerid , 0x00C0FFFF ,NaoPodeUsarCmD ) ;
  2570.     if ( sscanf ( params , "u" , giveplayerid ) )
  2571.         return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /Ir [ ID ]" ) ;
  2572.     if ( !IsPlayerConnected ( giveplayerid ) )
  2573.         return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
  2574.     new
  2575.         Float:X,
  2576.         Float:Y,
  2577.         Float:Z
  2578.     ;
  2579.     new intgiveplayerid = GetPlayerInterior ( giveplayerid ) ;
  2580.     GetPlayerPos ( giveplayerid , X , Y , Z ) ;
  2581.     SetPlayerPos ( playerid , X+1 , Y , Z ) ;
  2582.     SetPlayerInterior ( playerid , intgiveplayerid ) ;
  2583.     format ( diogo , sizeof ( diogo ) , "Você Se Teleportou Até o Player {FF0000}[  %s  ]{FFFFFF}.", pname ) ;
  2584.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2585.     format ( diogo , sizeof ( diogo ) , "O Admin {FF0000}[  %s  ]{FFFFFF}Teleportou Até Você.", pname ) ;
  2586.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  2587.     return 1;
  2588. }
  2589. //------------------------------------------------------------------------------
  2590. CMD:kmae(playerid, params[])
  2591. {
  2592.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2593.         return SendClientMessage ( playerid , 0x00C0FFFF ,NaoPodeUsarCmD ) ;
  2594.        
  2595.     if ( sscanf ( params , "us" , giveplayerid  ) )
  2596.         return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}Use: /kick [ ID ] " ) ;
  2597.        
  2598.     if ( !IsPlayerConnected ( giveplayerid ) )
  2599.         return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
  2600.        
  2601.     format ( diogo , sizeof ( diogo ) , "[  %s  ] Kickou [  %s  ] Por - Ofensas a parentesco" , pname ) ;
  2602.    
  2603.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  2604.    
  2605.     Kick ( giveplayerid ) ;
  2606.     return 1;
  2607. }
  2608. //------------------------------------------------------------------------------
  2609. CMD:tapa(playerid,params[])
  2610. {
  2611.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2612.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2613.     new
  2614.         ID,
  2615.         Float:posx,
  2616.         Float:posy,
  2617.         Float:posz
  2618.     ;
  2619.     if ( !IsPlayerConnected ( ID ) )
  2620.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2621.     if ( sscanf ( params , "d" ,ID ) )
  2622.         return SendClientMessage ( playerid , 0x00C0FFFF ,"USE: /tapa [playerid]" ) ;
  2623.     GetPlayerPos ( ID , posx , posy , posz ) ;
  2624.     SetPlayerPos ( ID , posx , posy , posz +20 ) ;
  2625.     format ( diogo , sizeof ( diogo ) , "[ADMIN]: Você deu tapa no player {FF0000}%s {FFFFFF}.",Path ( ID ) ) ;
  2626.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2627.     return 1;
  2628. }
  2629. //------------------------------------------------------------------------------
  2630. CMD:explodir(playerid, params[])
  2631. {
  2632.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2633.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2634.     new
  2635.         ID,
  2636.         Float:posx,
  2637.         Float:posy,
  2638.         Float:posz
  2639.     ;
  2640.     if ( !IsPlayerConnected ( ID ) )
  2641.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2642.     if ( sscanf ( params , "u" , ID ) )
  2643.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /explodir [playerid]" ) ;
  2644.     GetPlayerPos ( ID , posx , posy , posz ) ;
  2645.     CreateExplosion ( posx , posy , posz , 12 , 10.0 ) ;
  2646.     format ( diogo , sizeof ( diogo ) , "[ADMIN]: Você explodiu o player {FF0000}%s {FFFFFF}.",Path ( ID ) ) ;
  2647.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2648.     return 1;
  2649. }
  2650. //------------------------------------------------------------------------------
  2651. CMD:avisar(playerid, params[])
  2652. {
  2653.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2654.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2655.     new
  2656.         OtherName[25],
  2657.         outroplayer
  2658.     ;
  2659.     if ( sscanf ( params , "ds[128]" , outroplayer , diogo ) )
  2660.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /avisar [ Id ] [ Motivo ]" ) ;
  2661.     if ( GetTickCount() - PInfo [ outroplayer ] [ Aviso ] > 10000 )
  2662.     {
  2663.         GetPlayerName ( outroplayer , OtherName , 25 ) ;
  2664.         SetPVarInt ( outroplayer , "Avisado" , GetPVarInt ( outroplayer , "Avisado" ) +1 ) ;
  2665.         format ( diogo , 128 , "[  %s  ]Foi avisado pelo administrador:[  %s  ], motivo:[  %s  ] | [%d/3 Avisos] | ", OtherName , pname , diogo , GetPVarInt ( outroplayer , "Avisado" ) ) ;
  2666.         SendClientMessageToAll ( 0xFFFF00FF , diogo ) ;
  2667.         PInfo [ outroplayer ] [ Aviso ] = GetTickCount() ;
  2668.         if ( GetPVarInt ( outroplayer , "Avisado" ) == 3 )
  2669.         {
  2670.             format ( diogo , 128 , "[  %s  ]Foi kickado, motivo: [%d/3 Avisos]", OtherName , GetPVarInt ( outroplayer , "Avisado" ) ) ;
  2671.             SendClientMessageToAll ( 0x38FF06FF , diogo ) ;
  2672.             Kick ( outroplayer ) ;
  2673.         }
  2674.             else
  2675.         {
  2676.             SendClientMessage ( playerid , 0x00C0FFFF ,"[ERRO] Esse jogador ja foi avisado aguarde 10 segundos!" ) ;
  2677.         }
  2678.         return 1;
  2679.     }
  2680.     return 1;
  2681. }
  2682. //------------------------------------------------------------------------------
  2683. CMD:espiar(playerid,params[])
  2684. {
  2685.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2686.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2687.     new ID;
  2688.     if ( sscanf ( params , "d" , ID ) )
  2689.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /espiar [ id ]" ) ;
  2690.     if ( !IsPlayerConnected ( ID ) )
  2691.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2692.     if ( !IsPlayerInAnyVehicle ( ID ) )
  2693.     {
  2694.         TogglePlayerSpectating ( playerid , 1 ) ;
  2695.         PlayerSpectatePlayer ( playerid , ID ) ;
  2696.         SetPlayerInterior ( playerid , GetPlayerInterior ( ID ) ) ;
  2697.         SetPlayerVirtualWorld ( playerid , GetPlayerVirtualWorld ( ID ) ) ;
  2698.         return 1;
  2699.     }
  2700.         else
  2701.     {
  2702.         TogglePlayerSpectating ( playerid , 1 ) ;
  2703.         PlayerSpectateVehicle ( playerid , GetPlayerVehicleID ( ID ) ) ;
  2704.         SetPlayerInterior ( playerid , GetPlayerInterior ( ID ) ) ;
  2705.         SetPlayerVirtualWorld ( playerid , GetPlayerVirtualWorld ( ID ) ) ;
  2706.         return 1;
  2707.     }
  2708. }
  2709. //------------------------------------------------------------------------------
  2710. CMD:specoff(playerid,params[]) {
  2711.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2712.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2713.     TogglePlayerSpectating ( playerid , 0 ) ;
  2714.     return 1;
  2715. }
  2716. //------------------------------------------------------------------------------
  2717. CMD:x1fechar(playerid)
  2718. {
  2719.     if ( PInfo [ playerid ] [ Adminlevel ] == 6 ) { X1L=false; }
  2720.     return 1;
  2721. }
  2722. //------------------------------------------------------------------------------
  2723. CMD:x1abrir(playerid)
  2724. {
  2725.     if ( PInfo [ playerid ] [ Adminlevel ] == 6 ) { X1L=true; }
  2726.     return 1;
  2727. }
  2728. //------------------------------------------------------------------------------
  2729. CMD:ban(playerid,params[])
  2730. {
  2731.     new
  2732.         Dia,
  2733.         Mes,
  2734.         Ano,
  2735.         Hora,
  2736.         Minuto,
  2737.         Segundo,
  2738.         vitima,
  2739.         NomeDoBanido [ MAX_PLAYER_NAME ],
  2740.         nome [ MAX_PLAYERS ],
  2741.         IP [ 15 ],
  2742.         Motivo [ 128 ]
  2743.     ;
  2744.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
  2745.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2746.     if ( sscanf ( params , "us[60]" , vitima , Motivo ) )
  2747.         return SendClientMessage ( playerid , 0x00C0FFFF , "[USE]: /ban [id] [motivo]" ) ;
  2748.     if ( PInfo [ vitima ] [ Adminlevel ] != 0 )
  2749.         return SendClientMessage ( playerid , 0x00C0FFFF ,"[ERRO] Você não pode banir outro administrador!");
  2750.     getdate ( Ano , Mes , Dia ) ;
  2751.     gettime ( Hora , Minuto , Segundo ) ;
  2752.     GetPlayerName ( playerid , nome , sizeof ( nome ) ) ;
  2753.     GetPlayerName ( vitima , NomeDoBanido , sizeof ( NomeDoBanido ) ) ;
  2754.     GetPlayerIp ( vitima , IP , sizeof ( IP ) ) ;
  2755.     if ( !IsPlayerConnected ( vitima ) )
  2756.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Jogador não está conectado" ) ;
  2757.     format ( diogo , sizeof ( diogo ) , "[  %s  ]Foi banido pelo administrador [  %s  ] |Motivo|: %s", NomeDoBanido , nome , Motivo ) ;
  2758.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  2759.     BanEx(vitima,Motivo);
  2760.     return 1;
  2761. }
  2762. //------------------------------------------------------------------------------
  2763.  
  2764. CMD:calar(playerid,params[])
  2765. {
  2766.     static id,tempo;
  2767.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2768.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2769.     if ( sscanf ( params , "ud" , id , tempo ) )
  2770.         return SendClientMessage ( playerid , 0x00C0FFFF ,"Use: /calar [ id ] [ tempo ]" ) ;
  2771.     if ( !IsPlayerConnected ( id ) )
  2772.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Jogador não conectado" ) ;
  2773.     if ( 1 > tempo < 5 )
  2774.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: Você só pode calar um player entre 1 ~ 5 minutos!" ) ;
  2775.     l_temp [ id ] = gettime() + tempo*60 ;
  2776.     SetTimerEx ( #mute , 60*1000*tempo , false , "i" , id ) ;
  2777.     format ( diogo , sizeof ( diogo ) ,"Você calou o player{FF0000}[  %s  ]{FFFFFF}.",pname ) ;
  2778.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2779.     format ( diogo , sizeof ( diogo ) , "O admin {FF0000}%s {FFFFFF}calou você.",pname ) ;
  2780.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  2781.     return 1;
  2782. }
  2783.  
  2784. //------------------------------------------------------------------------------
  2785. CMD:cv(playerid, params[])
  2786. {
  2787.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  2788.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2789.     if ( params [ 0 ] == 1 )
  2790.         return SendClientMessage ( playerid , 0x00C0FFFF ,"USE: {F6E500}/cv [ texto ]" ) ;
  2791.  
  2792.     SendClientMessageToAll ( 0x00C0FFFF , "  " ) ;
  2793.     format ( diogo , sizeof ( diogo ) , "[ADM]: %s: %s" , Path(playerid) , params ) ;
  2794.     SendClientMessageToAll ( 0x33CCFFFF , diogo ) ;
  2795.     SendClientMessageToAll ( 0x00C0FFFF , "  " ) ;
  2796.     return 1;
  2797. }
  2798. //------------------------------------------------------------------------------
  2799. CMD:limpo(playerid,params[])
  2800. {
  2801.     new texto;
  2802.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  2803.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2804.     if ( sscanf ( params , "s[100]" , texto ) )
  2805.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /Limpo [ ID ]" ) ;
  2806.     format ( diogo , sizeof ( diogo ) , "~b~Admin: ~r~ID: %s ~b~Limpo" , texto ) ;
  2807.     GameTextForAll ( diogo , 3000 , 3 ) ;
  2808.     return 1;
  2809. }
  2810. //------------------------------------------------------------------------------
  2811. CMD:setskin(playerid, params[])
  2812. {
  2813.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  2814.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2815.     new skin;
  2816.     if ( sscanf ( params , "ud" , giveplayerid , skin ) )
  2817.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setskin [ID] [Skin]" ) ;
  2818.     if ( !IsPlayerConnected ( giveplayerid ) )
  2819.         return SendClientMessage ( playerid , 0x00C0FFFF ,"Jogador não está conectado." ) ;
  2820.     format ( diogo , sizeof ( diogo ) , "O Administrador {FF0000}[  %s  ]{FFFFFF}trocou sua skin para {FF0000}[ %d ] .{FFFFFF}", Path ( playerid ) , skin ) ;
  2821.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2822.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  2823.     SetPlayerSkin ( giveplayerid , skin ) ;
  2824.     return 1;
  2825. }
  2826. //------------------------------------------------------------------------------
  2827. CMD:trazer(playerid, params[])
  2828. {
  2829.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
  2830.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2831.     if ( sscanf ( params , "u" , giveplayerid ) )
  2832.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /trazer [ID]" ) ;
  2833.     if ( !IsPlayerConnected ( giveplayerid ) )
  2834.         return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não conectado." ) ;
  2835.     new
  2836.         Float:X,
  2837.         Float:Y,
  2838.         Float:Z
  2839.     ;
  2840.     new intplayerid = GetPlayerInterior ( playerid ) ;
  2841.     GetPlayerPos ( playerid , X , Y , Z ) ;
  2842.     SetPlayerPos ( giveplayerid , X+1 , Y , Z ) ;
  2843.     SetPlayerInterior ( giveplayerid , intplayerid ) ;
  2844.     format ( diogo , sizeof ( diogo ) , "Você trouxe o player {FF0000}[  %s  ]{FFFFFF}até você." , pname ) ;
  2845.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2846.     format ( diogo , sizeof ( diogo ) , "O admin {FF0000}[  %s  ]{FFFFFF}puxo você até ele." , pname ) ;
  2847.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  2848.     return 1;
  2849. }
  2850. //------------------------------------------------------------------------------
  2851. CMD:congelar(playerid, params[])
  2852. {
  2853.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  2854.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2855.     new ID;
  2856.     if ( !IsPlayerConnected ( ID ) )
  2857.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2858.     if ( sscanf ( params , "d" , ID ) )
  2859.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /congelar [playerid]" ) ;
  2860.     TogglePlayerControllable ( ID , false ) ;
  2861.     format ( diogo , sizeof ( diogo ) , "[INFO]: Você congelou o player {FF0000}[  %s  ]{FFFFFF}.",Path ( ID ) ) ;
  2862.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2863.     return 1;
  2864. }
  2865. //------------------------------------------------------------------------------
  2866. CMD:descongelar(playerid, params[])
  2867. {
  2868.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  2869.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2870.     new ID;
  2871.     if ( !IsPlayerConnected ( ID ) )
  2872.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2873.     if ( sscanf ( params , "d" , ID ) )
  2874.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /descongelar [playerid]" ) ;
  2875.     TogglePlayerControllable ( ID , true ) ;
  2876.     format ( diogo , sizeof ( diogo ) , "[INFO]: Você descongelou o player {FF0000}[  %s  ]{FFFFFF}.",Path ( ID ) ) ;
  2877.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2878.     return 1;
  2879. }
  2880. //------------------------------------------------------------------------------
  2881. CMD:desarmar(playerid, params[])
  2882. {
  2883.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
  2884.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2885.     new ID;
  2886.     if ( sscanf ( params , "d" , ID ) )
  2887.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /desarmar [ id ]" ) ;
  2888.     if ( !IsPlayerConnected ( ID ) )
  2889.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2890.     ResetPlayerWeapons ( ID ) ;
  2891.     format ( diogo , sizeof ( diogo ) , "[INFO]: Você desarmou o player {FF0000}[  %s  ]{FFFFFF}.",Path ( ID ) ) ;
  2892.     SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
  2893.     return 1;
  2894. }
  2895. //------------------------------------------------------------------------------
  2896. CMD:spawn(playerid, params[])
  2897. {
  2898.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3)
  2899.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2900.     new ID;
  2901.     if ( !IsPlayerConnected ( ID ) )
  2902.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2903.     if ( sscanf ( params , "d" , ID ) )
  2904.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /spawn [ id ]" ) ;
  2905.     SpawnPlayer ( ID ) ;
  2906.     SetPlayerInterior ( ID , 0 ) ;
  2907.     SetPlayerVirtualWorld ( ID , 0 ) ;
  2908.     format ( diogo , sizeof ( diogo ) , "Você deu spawn no player{FF0000}[  %s  ]{FFFFFF}.",pname ) ;
  2909.     SendClientMessage ( playerid , 0x00C0FFFF ,diogo ) ;
  2910.     format ( diogo , sizeof ( diogo ),"O admin {FF0000}[  %s  ]{FFFFFF}lhe deu spawn.",pname ) ;
  2911.     SendClientMessage ( giveplayerid , 0x00C0FFFF ,diogo ) ;
  2912.     return 1;
  2913. }
  2914. //------------------------------------------------------------------------------
  2915. CMD:setvida(playerid,params[])
  2916. {
  2917.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
  2918.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2919.     new ID,Vida;
  2920.     if ( sscanf ( params , "dd" , ID , Vida ) )
  2921.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setvida [ id ] [ vida ]" ) ;
  2922.     if ( !IsPlayerConnected ( ID ) )
  2923.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2924.     SetPlayerHealth ( ID , Vida ) ;
  2925.     format ( diogo , sizeof ( diogo ) , "Você setou a vida do player {FF0000}[  %s  ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}.",Path ( ID ) , Vida ) ;
  2926.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2927.     return 1;
  2928. }
  2929. //------------------------------------------------------------------------------
  2930. CMD:setcolete(playerid,params[])
  2931. {
  2932.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
  2933.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2934.     new ID,CLT;
  2935.     if ( sscanf ( params , "dd" , ID , CLT ) )
  2936.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setcolete [ id ] [ colete ]" ) ;
  2937.     if ( !IsPlayerConnected ( ID ) )
  2938.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2939.     SetPlayerArmour ( ID , CLT ) ;
  2940.     format ( diogo , sizeof ( diogo ) , "Você setou o colete de {FF0000}[  %s  ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}.",Path ( ID ) ) ;
  2941.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2942.     return 1;
  2943. }
  2944. //------------------------------------------------------------------------------
  2945. CMD:dararma(playerid, params[])
  2946. {
  2947.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  2948.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2949.     new
  2950.         ID,
  2951.         IDA,
  2952.         BLS
  2953.     ;
  2954.     if ( sscanf ( params , "unn" , ID , IDA , BLS ) )
  2955.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /dararma [ id ] [ id da arma ] [ munição ]" ) ;
  2956.     if ( !IsPlayerConnected ( ID ) )
  2957.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  2958.     GivePlayerWeapon ( ID , IDA , BLS ) ;
  2959.     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 ) ;
  2960.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2961.     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 ) ;
  2962.     SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
  2963.     return 1;
  2964. }
  2965. //------------------------------------------------------------------------------
  2966. CMD:skick(playerid, params[])
  2967. {
  2968.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  2969.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2970.     if ( sscanf ( params , "us" , giveplayerid ) )
  2971.         return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /skick [ ID ]" ) ;
  2972.     if ( !IsPlayerConnected ( giveplayerid ) )
  2973.         return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não está conectado." ) ;
  2974.     format ( diogo , sizeof ( diogo ) , "Você kickou silênciosamente o player {FF0000}[  %s  ]{FFFFFF}.",pname ) ;
  2975.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2976.     Kick ( giveplayerid ) ;
  2977.     return 1;
  2978. }
  2979. //------------------------------------------------------------------------------
  2980. CMD:sban(playerid,params[])
  2981. {
  2982.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2)
  2983.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  2984.     new
  2985.         Banido,
  2986.         Rasao [ 70 ]
  2987.     ;
  2988.     if ( sscanf ( params , "ds[70]" , Banido ) )
  2989.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /sban [ playerid ]" ) ;
  2990.     if ( strlen ( Rasao ) > 70)
  2991.         return SendClientMessage ( playerid , 0x00C0FFFF , "No maximo 70 caracteres na Razão!" ) ;
  2992.     if ( !IsPlayerConnected ( Banido ) )
  2993.         return SendClientMessage ( playerid , 0x00C0FFFF ,"O jogador não está conectado" ) ;
  2994.     format ( diogo , sizeof ( diogo ) , "Você deu ban silênciosamente o player {FF0000}%s {FFFFFF}.",pname ) ;
  2995.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  2996.     Ban ( Banido ) ;
  2997.     return 1;
  2998. }
  2999. //------------------------------------------------------------------------------
  3000. CMD:setscore(playerid, params[])
  3001. {
  3002.     new
  3003.         score,
  3004.         Player
  3005.     ;
  3006.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  3007.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3008.     if ( sscanf ( params , "dd" , Player , score ) )
  3009.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setscore [ playerid ] [ score ]" ) ;
  3010.     if ( !IsPlayerConnected ( Player ) )
  3011.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player nao encontrado" ) ;
  3012.     SetPlayerScore ( Player , score ) ;
  3013.     format ( diogo , sizeof ( diogo ) , "Você setou o score do player{FF0000}[  %s  ]{FFFFFF}para {FF0000}[  %d  ]{FFFFFF}.",pname , score ) ;
  3014.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3015.     format ( diogo , sizeof ( diogo ) , "O admin {FF0000}[  %s  ]{FFFFFF}setou seu score para {FF0000}[  %d  ]{FFFFFF} ." , pname , score ) ;
  3016.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  3017.     return 1;
  3018. }
  3019. //------------------------------------------------------------------------------
  3020. CMD:setgrana(playerid,params[])
  3021. {
  3022.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  3023.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3024.     new
  3025.         ID,
  3026.         Tanto
  3027.     ;
  3028.     if ( sscanf ( params , "dd" , ID , Tanto ) )
  3029.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /setgrana [ id ] [ quantia ]" ) ;
  3030.     if ( !IsPlayerConnected ( ID ) )
  3031.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  3032.     SetPlayerMoney ( ID , Tanto ) ;
  3033.     format ( diogo , sizeof ( diogo ) , "Você setou a grana de{FF0000}[  %s  ]{FFFFFF}para {FF0000}[ %d ]{FFFFFF}." , Path ( ID ) , Tanto ) ;
  3034.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3035.     format ( diogo , sizeof ( diogo ) , "O(a)Administrador(a) {FF0000}[  %s  ]{FFFFFF}setou sua grana para {FF0000}[ %d ]{FFFFFF}." , Path ( playerid ) , Tanto ) ;
  3036.     SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
  3037.     return 1;
  3038. }
  3039. //------------------------------------------------------------------------------
  3040. CMD:dargrana(playerid,params[])
  3041. {
  3042.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  3043.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3044.     new
  3045.         ID,
  3046.         Tanto
  3047.     ;
  3048.     if ( sscanf ( params , "dd" , ID , Tanto ) )
  3049.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /dargrana [ id ] [ quantia ]" ) ;
  3050.     if ( !IsPlayerConnected ( ID ) )
  3051.         return SendClientMessage ( playerid , 0x00C0FFFF , "O jogador não está conectado" ) ;
  3052.     GivePlayerMoney ( ID , Tanto ) ;
  3053.     format ( diogo , sizeof ( diogo ) , "Você deu á {FF0000}[  %s  ]{FFFFFF}a quantia de {FF0000}[ %d ]{FFFFFF}de dinheiro.",Path ( ID ) , Tanto ) ;
  3054.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3055.     format ( diogo , sizeof ( diogo ) ,"O(a)Administrador(a) {FF0000}[  %s  ]{FFFFFF}lhe deu {FF0000}[ %d ]{FFFFFF}de dinheiro.",Path ( playerid ) , Tanto ) ;
  3056.     SendClientMessage ( ID , 0x00C0FFFF , diogo ) ;
  3057.     return 1;
  3058. }
  3059. //------------------------------------------------------------------------------
  3060. CMD:reloadbans(playerid,params[])
  3061. {
  3062.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  3063.         return SendClientMessage( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3064.     SendRconCommand ( "reloadbans" ) ;
  3065.     SendClientMessage ( playerid , 0x00C0FFFF ,"[INFO]: O Arquivo SA-MP BAN foi apagado !" ) ;
  3066.     return 1;
  3067. }
  3068. //------------------------------------------------------------------------------
  3069. CMD:rc(playerid,params[])
  3070. {
  3071.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 4 )
  3072.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3073.     new bool:vehicle;
  3074.     format ( diogo , 128 , "O Admin{FF0000}[  %s  ]Resetou todos os veiculos inutilizados!" , diogo ) ;
  3075.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3076.     foreach (Player,j)
  3077.     {
  3078.         vehicle = false;
  3079.         foreach (Player,i)
  3080.         {
  3081.             if ( !IsPlayerInAnyVehicle ( i ) || !IsPlayerConnected ( i ) ) continue;
  3082.             if ( IsPlayerInVehicle ( i , j ) ) {
  3083.                 vehicle = true;
  3084.                 break;
  3085.             }
  3086.         }
  3087.         if ( !vehicle )
  3088.         {
  3089.             SetVehicleToRespawn ( j ) ;
  3090.         }
  3091.     }
  3092.     return 1;
  3093. }
  3094. //------------------Comandos Lvl 5 Sub-Dono Lvl 6 Dono--------------------------
  3095. CMD:setadmin(playerid, params[])
  3096. {
  3097.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 6 )
  3098.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3099.     if ( sscanf ( params , "ud" , giveplayerid , nivel ) )
  3100.         return SendClientMessage ( playerid , 0x00C0FFFF , "Use: /daradmin [ ID ] [ Level ]" ) ;
  3101.     if ( !IsPlayerConnected ( giveplayerid ) )
  3102.         return SendClientMessage ( playerid , 0x00C0FFFF , "Jogador não está conectado." ) ;
  3103.     if ( nivel < 0 || nivel > 6 )
  3104.         return SendClientMessage ( playerid , 0x00C0FFFF , "Os niveis são de 0 a 6 [Para tirar admin coloque level 0]" ) ;
  3105.     PInfo [ giveplayerid ] [ Adminlevel ] = nivel;
  3106.     format ( diogo , sizeof ( diogo ) , "Você setou o player {FF0000}[  %s  ]{FFFFFF}para administrador level {FF0000}[ %d ]{FFFFFF}." , pname , nivel ) ;
  3107.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3108.     format ( diogo , sizeof ( diogo ) , "Você foi setado como administrador level {FF0000}[ %d ]{FFFFFF}pelo admin {FF0000}[  %s  ]{FFFFFF}." , nivel , pname ) ;
  3109.     SendClientMessage ( giveplayerid , 0x00C0FFFF , diogo ) ;
  3110.     return 1;
  3111. }
  3112. //------------------------------------------------------------------------------
  3113. CMD:crashar(playerid,params[])
  3114. {
  3115.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel] < 5 )
  3116.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3117.     new ID;
  3118.     if ( !IsPlayerConnected ( ID ) )
  3119.         return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO]: O jogador não está conectado." ) ;
  3120.     if ( sscanf ( params , "d" , ID ) )
  3121.         return SendClientMessage ( playerid , 0x00C0FFFF , "USE: /crash [ playerid ]" ) ;
  3122.     CrasharPlayer ( ID , 3 ) ;
  3123.     format ( diogo , sizeof ( diogo ) , "Você crashou o player {FF0000}[  %s  ]{FFFFFF}.",Path ( ID ) ) ;
  3124.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3125.     return 1;
  3126. }
  3127. //------------------------------------------------------------------------------
  3128. CMD:gmx(playerid, params[])
  3129. {
  3130.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5)
  3131.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3132.     GameTextForAll ( "~g~Reiniciando ~w~Servidor" , 13000 , 0 ) ;
  3133.     SendRconCommand ( "gmx" ) ;
  3134.     return 1;
  3135. }
  3136. //------------------------------------------------------------------------------
  3137. CMD:esconder(playerid,params[])
  3138. {
  3139.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3140.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3141.     SetPlayerColor ( playerid , 0x00000000 ) ;
  3142.     SendClientMessage ( playerid , 0x00C0FFFF , "Voce esta com o nick escondido" ) ;
  3143.     return 1;
  3144. }
  3145. //------------------------------------------------------------------------------
  3146. CMD:trancarserver(playerid, params[])
  3147. {
  3148.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3149.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3150.     if ( isnull ( params ) )
  3151.         return SendClientMessage ( playerid , 0x00C0FFFF , " Digite: /trancarserver [ senha ]" ) ;
  3152.     format ( params , strlen ( params ) + 10 , "password %s" , params ) ;
  3153.     SendRconCommand ( params ) ;
  3154.     SendClientMessage ( playerid , 0x00C0FFFF , "Servidor Trancado." ) ;
  3155.     return 1;
  3156. }
  3157. //------------------------------------------------------------------------------
  3158. CMD:destrancarserver(playerid)
  3159. {
  3160.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3161.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3162.     SendRconCommand ( "password 0" ) ;
  3163.     SendClientMessage ( playerid , 0x00C0FFFF , "Servidor Destrancado." ) ;
  3164.     return 1;
  3165. }
  3166. //------------------------------------------------------------------------------
  3167. CMD:kickartodos(playerid,params[])
  3168. {
  3169.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3170.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3171.     foreach (Player,i)
  3172.     {
  3173.         if ( i != playerid )
  3174.         {
  3175.             Kick ( i ) ;
  3176.         }
  3177.     }
  3178.     SendClientMessageToAll ( 0x00C0FFFF , "O Administrador kickou todos do servidor!");
  3179.     return 1;
  3180. }
  3181. //------------------------------------------------------------------------------
  3182. CMD:trazertodos(playerid,params[])
  3183. {
  3184.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3185.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3186.     new
  3187.         Float:X,
  3188.         Float:Y,
  3189.         Float:Z
  3190.     ;
  3191.     GetPlayerPos ( playerid , X , Y , Z ) ;
  3192.     foreach (Player,i)
  3193.     {
  3194.         SetPlayerPos ( i , X , Y , Z ) ;
  3195.     }
  3196.     format ( diogo , sizeof ( diogo ) , "O Admin[  %s  ]Puxou todos os players até ele!", pname ) ;
  3197.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3198.     return 1;
  3199. }
  3200. //------------------------------------------------------------------------------
  3201. CMD:hostname(playerid, params[])
  3202. {
  3203.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3204.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3205.     if ( isnull ( params ) )
  3206.         return SendClientMessage ( playerid , 0x00C0FFFF , "Digite /hostname [ Nome ]" ) ;
  3207.     format ( diogo , sizeof ( diogo ) , "hostname %s", params ) ;
  3208.     SendRconCommand ( diogo ) ;
  3209.     return 1;
  3210. }
  3211. //------------------------------------------------------------------------------
  3212. CMD:jetpack(playerid,params[])
  3213. {
  3214.     if ( !PInfo [ playerid ] [ Adminlevel ] )
  3215.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3216.     SetPlayerSpecialAction ( playerid , 2 ) ;
  3217.     SendClientMessage ( playerid , 0x00C0FFFF , "Jetpack adquirido com sucesso!" ) ;
  3218.     return 1;
  3219. }
  3220. //------------------------------------------------------------------------------
  3221. CMD:ricos(playerid,params[])
  3222. {
  3223.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3224.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3225.     new count = 0, iMoney ;
  3226.     SendClientMessage ( playerid , COL_YELLOW ,
  3227.         "------------------------------------------------------------------------------------" ) ;
  3228.     foreach (Player,i) {
  3229.         iMoney = GetPlayerMoney ( i ) ;
  3230.         if ( iMoney > 500000 ) {
  3231.             SendFMessage ( playerid , 0x00C0FFFF , "» [  %s  ](%i) Possui $[ %i ]", GetPName ( i ) , i , iMoney ) ;
  3232.             count++ ;
  3233.         }
  3234.     }
  3235.     SendClientMessage ( playerid , COL_YELLOW ,
  3236.         "------------------------------------------------------------------------------------" ) ;
  3237.     return 1;
  3238. }
  3239. //------------------------------------------------------------------------------
  3240. CMD:setworld(playerid,params[])
  3241. {
  3242.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3243.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3244.     new
  3245.         id,
  3246.         world
  3247.     ;
  3248.     if ( sscanf ( params , "ui" , id , world ) )
  3249.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setworld ( id ) ( world id )" ) ;
  3250.     SetPlayerVirtualWorld ( id , world ) ;
  3251.     return SendClientMessage ( playerid , 0x00C0FFFF , "Voce Setou O Player Com Sucesso No Mundo Novo" ) ;
  3252. }
  3253. //------------------------------------------------------------------------------
  3254. CMD:disarmar(playerid,params[])
  3255. {
  3256.     new id;
  3257.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  3258.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3259.        
  3260.     if ( sscanf ( params , "u" , id ) )
  3261.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/disarm ( playerid / nick ) " ) ;
  3262.     if ( !IsPlayerConnected ( id ) )
  3263.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
  3264.     ResetPlayerWeapons ( id ) ;
  3265.     format ( diogo , sizeof ( diogo ), "» Admin [ %s ]( %d )Lhe Desarmou!", Path ( playerid ) , playerid ) ;
  3266.     SendClientMessage ( id , 0x00C0FFFF ,diogo ) ;
  3267.     PlaySound ( id , 1057 ) ;
  3268.     GameTextForPlayer ( id , "~r~~h~Disarmado !" , 4000 , 3 ) ;
  3269.     format ( diogo , sizeof ( diogo ) , "» Voce Desarmou [ %s ] ( %d ) !" , GetPName ( id ) , id ) ;
  3270.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3271.     PlaySound ( playerid , 1057 ) ;
  3272.     return 1;
  3273. }
  3274. //------------------------------------------------------------------------------
  3275. CMD:desarmartodos(playerid,params[])
  3276. {
  3277.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3278.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3279.     foreach (Player,i)
  3280.     {
  3281.         ResetPlayerWeapons ( i ) ;
  3282.         PlaySound ( i , 1057 ) ;
  3283.     }
  3284.     format ( diogo , sizeof ( diogo ) , "» Admin [ %s ] ( %d ) Desarmou Todos!" , GetPName ( playerid ) , playerid ) ;
  3285.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3286.     GameTextForAll ( "~r~~h~Disarmed!" , 4000 , 3 ) ;
  3287.     return 1;
  3288. }
  3289. //------------------------------------------------------------------------------
  3290. CMD:akill(playerid,params[])
  3291. {
  3292.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3293.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3294.     new
  3295.         id
  3296.     ;
  3297.     if ( sscanf ( params , "u" , id ) )
  3298.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/akill ( id )" ) ;
  3299.     if ( !IsPlayerConnected ( id ) )
  3300.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado " ) ;
  3301.     SetPlayerHealth ( id , 0 ) ;
  3302.     SendFMessage ( id , 0x00C0FFFF , "Voce Foi Morto Pelo Admin : [ %s ] ( %i )" , GetPName ( playerid ) , playerid ) ;
  3303.     SendFMessage ( playerid , 0x00C0FFFF , "Voce Foi Morto [ %s ] ( %i )" , GetPName ( id ) , id ) ;
  3304.     return 1;
  3305. }
  3306. //------------------------------------------------------------------------------
  3307. CMD:ann(playerid,params[])
  3308. {
  3309.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3310.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3311.     new text [ 128 ] ;
  3312.     if ( sscanf ( params , "s[128]" , text ) )
  3313.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/announce ( texto )" ) ;
  3314.     format ( diogo , sizeof ( diogo ) ,"~w~%s" , text ) ;
  3315.     GameTextForAll ( diogo , 4000 , 3 ) ;
  3316.     return 1;
  3317. }
  3318. //------------------------------------------------------------------------------
  3319. CMD:asay(playerid,params[])
  3320. {
  3321.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3322.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3323.     new text [ 128 ] ;
  3324.     if ( sscanf ( params , "s[160]" , text ) )
  3325.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/asay ( texto )" ) ;
  3326.     format ( diogo , sizeof ( diogo ) , "***** "CYELLOW"Admin"CBLUE": {FF1111}%s   {FF0000}*****" , text ) ;
  3327.     SendClientMessageToAll ( 0x00C0FFFF ,diogo ) ;
  3328.     return 1;
  3329. }
  3330. //------------------------------------------------------------------------------
  3331. CMD:checararmas(playerid,params[])
  3332. {
  3333.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3334.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3335.     new
  3336.         id
  3337.     ;
  3338.     if ( sscanf ( params , "u" , id ) )
  3339.         return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/checkweaps ( id / nick ) " ) ;
  3340.     if ( !IsPlayerConnected ( id ) )
  3341.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
  3342.     new
  3343.         weapons,
  3344.         ammo,
  3345.         weapname [ 20 ]
  3346.     ;
  3347.     SendClientMessage ( playerid , COL_YELLOW , "------------------------------------------------------------------------------------" ) ;
  3348.     format ( diogo , sizeof ( diogo ) , "%s(%i)'s Armas:" , GetPName ( id ) , id ) ;
  3349.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3350.     foreach (Player,i)
  3351.     {
  3352.         GetPlayerWeaponData ( id , i , weapons , ammo ) ;
  3353.         if ( weapons != 0 )
  3354.         {
  3355.             GetWeaponName ( weapons , weapname , 20 ) ;
  3356.             format ( diogo , sizeof ( diogo ) , "» %s - Ammo %d" , weapname , ammo ) ;
  3357.             SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3358.         }
  3359.     }
  3360.     SendClientMessage ( playerid , COL_YELLOW ,"------------------------------------------------------------------------------------");
  3361.     return 1;
  3362. }
  3363. //------------------------------------------------------------------------------
  3364. CMD:setint(playerid,params[])
  3365. {
  3366.     new
  3367.         id,
  3368.         int
  3369.     ;
  3370.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  3371.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3372.     if ( sscanf ( params , "ii" , id , int ) )
  3373.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/setint ( id ) ( interior ID )" ) ;
  3374.     if ( !IsPlayerConnected ( id ) )
  3375.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
  3376.     SetPlayerInterior ( id , int ) ;
  3377.     SendFMessage ( playerid , 0x00C0FFFF , " Voce Setou Com Sucesso o Interior De [ %s's ] interior: [ %i ]!" , GetPName ( id ) , int ) ;
  3378.     SendFMessage ( id , 0x00C0FFFF , "Admin [  %s  ]Setou Seu Interior Para [ %i ]!" , GetPName ( playerid ) , int ) ;
  3379.     return 1;
  3380. }
  3381. //------------------------------------------------------------------------------
  3382. CMD:gotoxyz(playerid,params[])
  3383. {
  3384.     new
  3385.         Float:x,
  3386.         Float:y,
  3387.         Float:z
  3388.     ;
  3389.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 2 )
  3390.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3391.     if ( sscanf ( params , "fff" , x , y , z ) )
  3392.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/gotoxyz ( x ) ( y ) ( z )" ) ;
  3393.     SetPlayerPos ( playerid , x , y , z ) ;
  3394.     return 1;
  3395. }
  3396. //------------------------------------------------------------------------------
  3397. CMD:ip(playerid,params[])
  3398. {
  3399.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3400.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3401.     new
  3402.         id
  3403.     ;
  3404.     if ( sscanf ( params , "u" , id ) )
  3405.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/ip ( id / nick )" ) ;
  3406.     if ( !IsPlayerConnected ( id ) )
  3407.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado " ) ;
  3408.     SendFMessage ( playerid , 0x00C0FFFF , "[ %s ] ( %i ) IP Info: "CGREY"[ IP: %s ]", GetPName ( id ) , id , GetIP ( id ) ) ;
  3409.     return 1;
  3410. }
  3411. //------------------------------------------------------------------------------
  3412. CMD:tocarmusica(playerid,params[])
  3413. {
  3414.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
  3415.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3416.     if ( isnull ( params ) )
  3417.         return SendClientMessage ( playerid , 0x00C0FFFF ,"USO: "CWHITE"/tocarmusica ( link )" ) ;
  3418.     foreach(Player,p)
  3419.     {
  3420.         if(IsPlayerConnected(p))
  3421.         {
  3422.             PlayAudioStreamForPlayer(p,params);
  3423.         }
  3424.     }
  3425.     format ( diogo , sizeof ( diogo ) , "O(a)Admin(a) [ %s ] colocou uma musica na pista!" , pname ) ;
  3426.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3427.     return 1;
  3428. }
  3429. //------------------------------------------------------------------------------
  3430. CMD:mae(playerid, params[])
  3431. {
  3432.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3433.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3434.        
  3435.     if ( isnull ( params ) )
  3436.         return SendClientMessage ( playerid , 0x00C0FFFF  ,"USO: "CWHITE"/mae [ id ]" ) ;
  3437.     if ( !IsPlayerConnected ( strval ( params ) ) )
  3438.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado" ) ;
  3439.     PInfo [ strval ( params ) ] [ Avisos ] ++ ;
  3440.     if ( PInfo [ strval ( params ) ] [ Avisos ] == MAXAVISOS )
  3441.     {
  3442.         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 ) ;
  3443.         SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3444.         Kick ( strval ( params ) ) ;
  3445.     }
  3446.         else
  3447.     {
  3448.     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 ) ;
  3449.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3450.     }
  3451.     return 1;
  3452. }
  3453. //------------------------------------------------------------------------------
  3454. CMD:miniguns(playerid,params[])
  3455. {
  3456.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 1 )
  3457.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3458.     new
  3459.         Count
  3460.     ;
  3461.     new
  3462.         slot,
  3463.         weap,
  3464.         ammo
  3465.     ;
  3466.     foreach(Player,i)
  3467.     {
  3468.         for ( slot = 0; slot < 13; slot++ )
  3469.         {
  3470.             GetPlayerWeaponData ( i , slot , weap , ammo ) ;
  3471.             if ( ammo != 0 && weap == 38 )
  3472.             {
  3473.                 Count++ ;
  3474.                 SendFMessage ( playerid , 0x00C0FFFF ,""CGREY"[ %s ] ( %d ) || Ammo: %d ", GetPName ( i ) , i , ammo ) ;
  3475.             }
  3476.         }
  3477.     }
  3478.     if ( Count == 0 )
  3479.         return SendClientMessage ( playerid , 0x00C0FFFF ,"Nao Foram Encontradas Miniguns!" ) ;
  3480.     return 1;
  3481. }
  3482. //------------------------------------------------------------------------------
  3483. CMD:tapatodos(playerid,params[])
  3484. {
  3485.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
  3486.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3487.     new
  3488.         Float:x,
  3489.         Float:y,
  3490.         Float:z
  3491.     ;
  3492.     foreach(Player,i)
  3493.     {
  3494.         if ( i == playerid ) continue;
  3495.         GetPlayerPos ( i , x , y , z ) ;
  3496.         SetPlayerPos ( i , x , y , z+14 ) ;
  3497.     }
  3498.     SendFMessageToAll ( 0x00C0FFFF , "» Admin [ %s ] ( %d ) Deu Um Tapao Em Todos.", GetPName ( playerid ) , playerid ) ;
  3499.     return 1;
  3500. }
  3501. //------------------------------------------------------------------------------
  3502. CMD:giveallmoney(playerid,params[])
  3503. {
  3504.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 3 )
  3505.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3506.     new
  3507.         amount
  3508.     ;
  3509.     if ( sscanf ( params , "i" , amount ) )
  3510.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/giveallmoney [ Grana ]" ) ;
  3511.     foreach(Player,i)
  3512.     {
  3513.         GivePlayerMoney ( i , amount ) ;
  3514.     }
  3515.     SendFMessageToAll ( 0x00C0FFFF ,"» Admin [ %s ] ( %d ) De ua Todos $[ %d ] De Grana!", GetPName ( playerid ) , playerid , amount ) ;
  3516.     format ( diogo , sizeof ( diogo ) , "~g~~h~ $%d for everyone!" , amount ) ;
  3517.     GameTextForAll ( diogo , 4000 , 3 ) ;
  3518.     return 1;
  3519. }
  3520. //------------------------- Seta Vip -------------------------------------------
  3521. CMD:setvip(playerid, params[])
  3522. {
  3523.     new id, vlevel;
  3524.     if ( !IsPlayerAdmin ( playerid ) && PInfo [ playerid ] [ Adminlevel ] < 5 )
  3525.         return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ;
  3526.     if ( sscanf ( params, "ui" , id , vlevel ) )
  3527.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO : "CWHITE"/setvip [ id ] [ level ]");
  3528.     if ( vlevel > 3 || vlevel < 0 )
  3529.         return SendClientMessage ( playerid , 0x00C0FFFF , "Level De 0 Até 3" ) ;
  3530.     if ( vlevel == PInfo [ id ] [ VIPlevel ] )
  3531.         return SendClientMessage ( playerid , 0x00C0FFFF , "Esse Player Já E Vip!" ) ;
  3532.     if(id == INVALID_PLAYER_ID)
  3533.         return SendClientMessage ( playerid , 0x00C0FFFF , "Player Nao Conectado!" ) ;
  3534.     if ( PInfo [ id ] [ VIPlevel ] > vlevel ) GameTextForPlayer ( id , "~r~Rebaixado" , 3000 , 3 ) ;
  3535.     if ( PInfo [ id ] [ VIPlevel ] < vlevel ) GameTextForPlayer ( id , "~g~Promovido" , 3000 , 3 ) ;
  3536.     switch(vlevel)
  3537.     {
  3538.         case 0: AdminRank = "Player";
  3539.         case 1: AdminRank = "Bronze VIP";
  3540.         case 2: AdminRank = "Silver VIP";
  3541.         case 3: AdminRank = "Premium VIP";
  3542.     }
  3543.     PInfo [ id ] [ VIPlevel ] = vlevel ;
  3544.     format ( diogo , sizeof ( diogo ) , "Admin [ %s ] (%d) Setou [ %s ] (%d) Para Vip [ %d - %s ]", pname , playerid , pname , id , vlevel , AdminRank ) ;
  3545.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3546.     format ( diogo , sizeof ( diogo ) , "Você foi Setado Por [ %s ] (%d) Para Vip [ %d - %s ]", pname , id, vlevel, AdminRank);
  3547.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3548.     format ( diogo , sizeof ( diogo ) , "Admin [ %s ] (%d) Setou Seu Vip Level Para :  [ %d - %s ]", pname , playerid , vlevel, AdminRank);
  3549.     SendClientMessage ( id , 0x00C0FFFF , diogo);
  3550.     return 1;
  3551. }
  3552. //-------------------------------- Vips ----------------------------------------
  3553. CMD:vips(playerid, params[])
  3554. {
  3555.     new string[556];
  3556.     new fstring[556];
  3557.     for(new i = 0; i < MAX_PLAYERS; i++)
  3558.     {
  3559.         if(PInfo[i][VIPlevel] >= 1)
  3560.         {
  3561.             switch(PInfo [ i ] [ VIPlevel ] )
  3562.             {
  3563.                 case 1: AdminRank = "Bronze VIP";
  3564.                 case 2: AdminRank = "Silver VIP";
  3565.                 case 3: AdminRank = "Premium VIP";
  3566.             }
  3567.             format(fstring, sizeof(fstring), "%s (%d) - Level: %d - %s\n", pname , i, PInfo [ i ] [ VIPlevel ] , AdminRank ) ;
  3568.             strcat(string, fstring, 556);
  3569.         }
  3570.         format(fstring, sizeof(fstring), "\r\n Total Vips: %d");
  3571.         strcat(string, fstring, 556);
  3572.         ShowPlayerDialog(playerid, VIPS, DIALOG_STYLE_MSGBOX, "Vips Online:", string, "Ok", "");
  3573.     }
  3574.     return 1;
  3575. }
  3576. //------------------------------------------------------------------------------
  3577.  
  3578. CMD:ajudalevel(playerid, params[]) { if(PInfo [ playerid ] [ Adminlevel ] == 0 ) return SendClientMessage ( playerid , 0x00C0FFFF , NaoPodeUsarCmD ) ; return 1; }
  3579.  
  3580. //------------------------------------------------------------------------------
  3581.  
  3582. CMD:level1(playerid,params[])
  3583. {
  3584.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3585.     SendClientMessage ( playerid , 0x00C0FFFF , "|                  Comandos De Admin Level 1 :    |" ) ;
  3586.     SendClientMessage ( playerid , 0x00C0FFFF , " /a /limpo /limparchat /kick /setworld /checararmas             " ) ;
  3587.     SendClientMessage ( playerid , 0x00C0FFFF , " /ir /tapa /explodir /avisar /ann /asay /miniguns                  " ) ;
  3588.     SendClientMessage ( playerid , 0x00C0FFFF , " /espiar /specoff /ip /ecmd  /mae                              " ) ;
  3589.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3590.     return 1;
  3591. }
  3592. //------------------------------------------------------------------------------
  3593. CMD:level2(playerid,params[])
  3594. {
  3595.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3596.     SendClientMessage ( playerid , 0x00C0FFFF , "|                  Comandos De Admin Level 2 :    |" ) ;
  3597.     SendClientMessage ( playerid , 0x00C0FFFF , " /av /ao /setskin /trazer /disarmar /setint /gotoxyz           "             ) ;
  3598.     SendClientMessage ( playerid , 0x00C0FFFF , " /congelar /descongelar /desarmar /ban "             ) ;
  3599.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1           "             ) ;
  3600.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3601.     return 1;
  3602. }
  3603. //------------------------------------------------------------------------------
  3604. CMD:level3(playerid,params[])
  3605. {
  3606.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3607.     SendClientMessage ( playerid , 0x00C0FFFF , "|                  Comandos De Admin Level 3 :    |" ) ;
  3608.     SendClientMessage ( playerid , 0x00C0FFFF , " /spawn /setvida /setcolete /tapatodos /giveallmoney /tocarson         "         ) ;
  3609.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 "                       ) ;
  3610.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2           "             ) ;
  3611.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3612.     return 1;
  3613. }
  3614. //------------------------------------------------------------------------------
  3615. CMD:level4(playerid,params[])
  3616. {
  3617.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3618.     SendClientMessage ( playerid , 0x00C0FFFF , "|                  Comandos De Admin Level 4 :    |" ) ;
  3619.     SendClientMessage ( playerid , 0x00C0FFFF , " /dararma /skick /setscore /setgrana               " ) ;
  3620.     SendClientMessage ( playerid , 0x00C0FFFF , " /dargrana /rc                 "                     ) ;
  3621.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 "                       ) ;
  3622.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2           "             ) ;
  3623.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 3           "             ) ;
  3624.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3625.     return 1;
  3626. }
  3627. //------------------------------------------------------------------------------
  3628. CMD:level5(playerid,params[])
  3629. {
  3630.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3631.     SendClientMessage ( playerid , 0x00C0FFFF , "|                  Comandos De Admin Level 5 :    |" ) ;
  3632.     SendClientMessage ( playerid , 0x00C0FFFF , " /gmx /lockserver /unlockserver /desarmartodos             "     ) ;
  3633.     SendClientMessage ( playerid , 0x00C0FFFF , " /kickartodos /escrever /setadmin /akill           "     ) ;
  3634.     SendClientMessage ( playerid , 0x00C0FFFF , " /crashar /ricos /setvip "                                           ) ;
  3635.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 1 "                       ) ;
  3636.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 2           "             ) ;
  3637.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 3           "             ) ;
  3638.     SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos De Admin Level 4           "             ) ;
  3639.     SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3640.     return 1;
  3641. }
  3642. //--------------------------------VIP CMDS--------------------------------------
  3643. CMD:vcmds(playerid, params[])
  3644. {
  3645.     if(strcmp(params, "1", true) == 0) {
  3646.         if ( PInfo [ playerid ] [ VIPlevel ] >= 1 ) {
  3647.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3648.             SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
  3649.             SendClientMessage ( playerid , 0x00C0FFFF, "{00FF00}/vsay /vreparar /vcor /vbike /kitvip" ) ;
  3650.             SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
  3651.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3652.         }
  3653.     }
  3654.     else if ( strcmp ( params , "2", true ) == 0) {
  3655.         if ( PInfo [ playerid ] [ VIPlevel ] >= 2) {
  3656.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3657.             SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level1 " ) ;
  3658.             SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
  3659.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}/vskin /mytime /myweather /respawn" ) ;
  3660.             SendClientMessage ( playerid , 0x00C0FFFF , " " ) ;
  3661.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3662.         }
  3663.     }
  3664.     else if ( strcmp ( params , "3" , true ) == 0 ) {
  3665.         if ( PInfo [ playerid ] [ VIPlevel ] >= 3 ) {
  3666.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3667.             SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level 1" ) ;
  3668.             SendClientMessage ( playerid , 0x00C0FFFF , " ++Comandos Level 2" ) ;
  3669.             SendClientMessage ( playerid , 0x00C0FFFF , " ");
  3670.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}/vcar /vheal /varmour /vjetpack /vaddnos" ) ;
  3671.             SendClientMessage ( playerid , 0x00C0FFFF , " ");
  3672.             SendClientMessage ( playerid , 0x00C0FFFF , "{00FF00}| ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|" ) ;
  3673.         }
  3674.     }
  3675.     return 1;
  3676. }
  3677. //------------------------------------------------------------------------------
  3678.  
  3679. //Vip Level 1 =
  3680. CMD:vreparar(playerid, params[])
  3681. {
  3682.     if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
  3683.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3684.     if ( !IsPlayerInAnyVehicle ( playerid ) )
  3685.         return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
  3686.     new VehicleID = GetPlayerVehicleID ( playerid ) ;
  3687.     RepairVehicle ( VehicleID ) ;
  3688.     GameTextForPlayer ( playerid , "~w~~n~~n~~n~~n~~n~~n~Vehicle ~g~Reparado!", 3000, 3);
  3689.     SetVehicleHealth ( VehicleID , 1000 ) ;
  3690.     SendClientMessage ( playerid , 0x00C0FFFF, "{00FF00}[ Vip System ]Voce Reparou Seu Veiculo Com Sucesso!");
  3691.     return 1;
  3692. }
  3693. //------------------------------------------------------------------------------
  3694. CMD:kitvip(playerid)
  3695. {
  3696.     if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
  3697.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3698.     GivePlayerWeapon ( playerid , 24 , 500 ) ;
  3699.     GivePlayerWeapon ( playerid , 26 , 500 ) ;
  3700.     GivePlayerWeapon ( playerid , 30 , 500 ) ;
  3701.     GivePlayerWeapon ( playerid , 32 , 500 ) ;
  3702.     GivePlayerWeapon ( playerid , 34 , 500 ) ;
  3703.     GivePlayerWeapon ( playerid , 18 , 50 ) ;
  3704.     SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Kit-Vip Adquirido ! " ) ;
  3705.     return 1;
  3706. }
  3707. //------------------------------------------------------------------------------
  3708. CMD:vcor(playerid, params[])
  3709. {
  3710.     new
  3711.         color,
  3712.         color2
  3713.     ;
  3714.     if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
  3715.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3716.     if ( !IsPlayerInAnyVehicle ( playerid ) )
  3717.             return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
  3718.     if ( sscanf ( params , "ii" , color , color2 ) )
  3719.         return SendClientMessage ( playerid , 0x00C0FFFF , "Uso: "CWHITE" /vcor [ cor1 ] [ cor2 ]");
  3720.     if ( color < 0 || color > 126 )
  3721.         return SendClientMessage(playerid, 0x00C0FFFF , "{F81414}0 - 126");
  3722.     if ( color2 < 0 || color2 > 126 )
  3723.             return SendClientMessage(playerid, 0x00C0FFFF, "{F81414}0 - 126");
  3724.     format ( diogo , sizeof ( diogo ) , "{00FF00}Você Setou a Cor de seu veiculo para : %i | cor2 %i" , color, color2);
  3725.     SendClientMessage ( playerid, 0x00C0FFFF , diogo ) ;
  3726.     ChangeVehicleColor ( GetPlayerVehicleID ( playerid ) , color , color2 ) ;
  3727.     return 1;
  3728. }
  3729. //------------------------------------------------------------------------------
  3730. CMD:vbike(playerid, params[])
  3731. {
  3732.     new
  3733.         Float:x,
  3734.         Float:y,
  3735.         Float:z,
  3736.         Float:angle
  3737.     ;
  3738.     GetPlayerPos ( playerid , x , y , z ) ;
  3739.     GetPlayerFacingAngle ( playerid , angle ) ;
  3740.     if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
  3741.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3742.     if ( !IsPlayerInAnyVehicle ( playerid ) )
  3743.             return SendClientMessage ( playerid , 0x00C0FFFF , #Você não está em um carro ) ;
  3744.     AddStaticVehicle(522, x, y, z, angle, -1, -1);
  3745.     SendClientMessage(playerid, 0x00C0FFFF , "Moto Vip Spawnada Com Sucesso!");
  3746.     return 1;
  3747. }
  3748. //------------------------------------------------------------------------------
  3749. CMD:vsay(playerid, params[])
  3750. {
  3751.     new Poha [ 148 ] ;
  3752.     if ( PInfo [ playerid ] [ VIPlevel ] >= 1 )
  3753.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3754.     if ( sscanf ( params , "s[148]" , Poha ) )
  3755.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE" /vsay [ texto ]" ) ;
  3756.     format ( diogo , sizeof ( diogo ) , "Vip [  %s  ] : {00ff00} %s", pname , pname ) ;
  3757.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3758.     return 1;
  3759. }
  3760. //-------------------------- Cmd Vip Lvl 2 -------------------------------------
  3761. CMD:vskin(playerid, params[])
  3762. {
  3763.     new
  3764.         skinid
  3765.     ;
  3766.     if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
  3767.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3768.     if ( sscanf ( params , "i" , skinid ) )
  3769.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/vskin [ ID ]" ) ;
  3770.     if ( skinid < 0 || skinid > 299 )
  3771.         return SendClientMessage ( playerid , -1 , "0 - 299 ID'S");
  3772.     SetPlayerSkin ( playerid , skinid ) ;
  3773.     format ( diogo , sizeof ( diogo ) , "[ Vip System ] Você Setou Sua Skin Para :  [ %i ]" , skinid ) ;
  3774.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3775.     return 1;
  3776. }
  3777. //------------------------------------------------------------------------------
  3778. CMD:mytime(playerid, params[])
  3779. {
  3780.     new
  3781.         time
  3782.     ;
  3783.     if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
  3784.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3785.     if ( sscanf ( params , "i" , time ) )
  3786.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/vmytime [ tempo ]" ) ;
  3787.     if ( time < 0 || time > 23 )
  3788.         return SendClientMessage ( playerid , 0x00C0FFFF , "0 - 23" ) ;
  3789.     SetPlayerTime ( playerid , time , 0 ) ;
  3790.     format ( diogo , sizeof ( diogo ) , "[ Vip System ]Você setou seu Tempo Para : [ %02d:00 ]", time);
  3791.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3792.     return 1;
  3793. }
  3794. //------------------------------------------------------------------------------
  3795. CMD:myweather(playerid, params[])
  3796. {
  3797.     new weather;
  3798.     if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
  3799.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3800.     if ( sscanf ( params , "i" , weather ) )
  3801.         return SendClientMessage ( playerid , 0x00C0FFFF , "USO: "CWHITE"/myweather [ id ]" ) ;
  3802.     if ( weather < 0 || weather > 45 )
  3803.         return SendClientMessage ( playerid , 0x00C0FFFF , "0 - 45" ) ;
  3804.     SetPlayerWeather ( playerid , weather ) ;
  3805.     format ( diogo , sizeof ( diogo ) , "[ Vip System ] Você setou seu Weather Para :  [ %i ]", weather ) ;
  3806.     SendClientMessage ( playerid , 0x00C0FFFF , diogo ) ;
  3807.     return 1;
  3808. }
  3809. //------------------------------------------------------------------------------
  3810. CMD:respawn(playerid, params[])
  3811. {
  3812.     if ( PInfo [ playerid ] [ VIPlevel ] >= 2 )
  3813.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3814.     SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Deu Spawn Com Sucesso!" ) ;
  3815.     SetPlayerPos ( playerid , 0.0 , 0.0 , 0.0 ) ;
  3816.     SpawnPlayer ( playerid ) ;
  3817.     return 1;
  3818. }
  3819. //--------------------- Vip Level 3 --------------------------------------------
  3820. CMD:vcar(playerid, params[])
  3821. {
  3822.     new
  3823.         Float:x,
  3824.         Float:y,
  3825.         Float:z,
  3826.         Float:angle
  3827.     ;
  3828.     GetPlayerPos ( playerid , x , y , z ) ;
  3829.     GetPlayerFacingAngle ( playerid , angle ) ;
  3830.     if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
  3831.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3832.     if ( IsPlayerInAnyVehicle ( playerid ) )
  3833.         return SendClientMessage ( playerid , 0x00C0FFFF , "Você ja esta em Um Carro!" ) ;
  3834.     AddStaticVehicle ( 411 , x , y , z , angle , -1 , -1 ) ;
  3835.     SendClientMessage ( playerid, 0x00C0FFFF , "[Vip System] Carro Spawnado Com Sucesso!" ) ;
  3836.     return 1;
  3837. }
  3838. //------------------------------------------------------------------------------
  3839. CMD:vjetpack(playerid, params[])
  3840. {
  3841.     if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
  3842.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3843.     if ( IsPlayerInAnyVehicle ( playerid ) )
  3844.         return SendClientMessage ( playerid , 0x00C0FFFF , "Saia Do Veiculo!" ) ;
  3845.     SetPlayerSpecialAction ( playerid , SPECIAL_ACTION_USEJETPACK ) ;
  3846.     SendClientMessage ( playerid, 0x00C0FFFF , "[ Vip System ] Jetpack Spawnada !" ) ;
  3847.     return 1;
  3848. }
  3849. //------------------------------------------------------------------------------
  3850. CMD:vheal(playerid, params[])
  3851. {
  3852.     if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
  3853.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3854.     SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Recuperou Toda Sua Vida!" ) ;
  3855.     SetPlayerHealth ( playerid , 100.0 ) ;
  3856.     return 1;
  3857. }
  3858. //------------------------------------------------------------------------------
  3859. CMD:varmour(playerid, params[])
  3860. {
  3861.     if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
  3862.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3863.     SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Você Recuperou Todo Seu Colete!" ) ;
  3864.     SetPlayerArmour ( playerid , 100.0 ) ;
  3865.     return 1;
  3866. }
  3867. //------------------------------------------------------------------------------
  3868. CMD:vaddnos(playerid, params[])
  3869. {
  3870.     if ( PInfo [ playerid ] [ VIPlevel ] >= 3 )
  3871.         return SendClientMessage ( playerid , 0x00C0FFFF ,#Você não é um player Vip ) ;
  3872.     if ( IsPlayerInAnyVehicle ( playerid ) )
  3873.         return SendClientMessage ( playerid , 0x00C0FFFF , "Saia Do Veiculo!" ) ;
  3874.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  3875.     SendClientMessage ( playerid , 0x00C0FFFF , "[ Vip System ] Nitro Adicionado Com Sucesso!" ) ;
  3876.     return 1;
  3877. }
  3878. //------------------------------------------------------------------------------
  3879. //Comandos Arenas DM ^^
  3880. CMD:arena(playerid, params[])
  3881. {
  3882.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3883.     new Float:Health;
  3884.     GetPlayerHealth ( playerid , Health ) ;
  3885.     if(Health < 30.0) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3886.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3887.     EstaEmUmaArena [ playerid ] = true ;
  3888.     SetPlayerInterior ( playerid , 0 ) ;
  3889.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para a Arena {FF0000}( /Arena )", pname ) ;
  3890.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3891.     new R2 = random ( sizeof ( SpawnArena ) ) ; SetPlayerPos ( playerid , SpawnArena [ R2 ] [ 0 ] , SpawnArena [ R2 ] [ 1 ] , SpawnArena [ R2 ] [ 2 ] ) ;
  3892.     SetPlayerInterior ( playerid , 0 ) ;
  3893.     ArenaTipo [ playerid ] = 1;
  3894.     SetPlayerVirtualWorld ( playerid , 1 ) ;
  3895.     ResetPlayerWeapons ( playerid ) ;
  3896.     GivePlayerWeapon ( playerid , 4 ,  999 ) ;
  3897.     GivePlayerWeapon ( playerid , 24 , 999 ) ;
  3898.     GivePlayerWeapon ( playerid , 27 , 999 ) ;
  3899.     GivePlayerWeapon ( playerid , 31 , 999 ) ;
  3900.     GivePlayerWeapon ( playerid , 32 , 999 ) ;
  3901.     GivePlayerWeapon ( playerid , 34 , 999 ) ;
  3902.     SetPlayerHealth  ( playerid , 100 ) ;
  3903.     SetPlayerArmour  (playerid  , 100 ) ;
  3904.     return 1;
  3905. }
  3906. //------------------------------------------------------------------------------
  3907. CMD:pistola(playerid, params[])
  3908. {
  3909.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3910.     new Float:Health;
  3911.     GetPlayerHealth ( playerid , Health ) ;
  3912.     if(Health < 30.0) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3913.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3914.     EstaEmUmaArena [ playerid ] = true ;
  3915.     SetPlayerInterior ( playerid , 0 ) ;
  3916.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o combate de Desert Eagle {FF0000}( /Pistola )", pname ) ;
  3917.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3918.     new R2 = random ( sizeof ( SpawnArenaPistola ) ) ; SetPlayerPos ( playerid , SpawnArenaPistola [ R2 ] [ 0 ] , SpawnArenaPistola [ R2 ] [ 1 ] , SpawnArenaPistola [ R2 ] [ 2 ] ) ;
  3919.     ResetPlayerWeapons ( playerid ) ;
  3920.     ArenaTipo [ playerid ] = 2 ;
  3921.     SetPlayerVirtualWorld ( playerid , 2 ) ;
  3922.     SetPlayerHealth ( playerid, 100 ) ;
  3923.     SetPlayerArmour ( playerid , 100 ) ;
  3924.     GivePlayerWeapon ( playerid , 24 , 999 ) ;
  3925.     return 1;
  3926. }
  3927. //------------------------------------------------------------------------------
  3928. CMD:sniper(playerid, params[])
  3929. {
  3930.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3931.     new Float:Health;
  3932.     GetPlayerHealth ( playerid , Health ) ;
  3933.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3934.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3935.     EstaEmUmaArena [ playerid ] = true ;
  3936.     SetPlayerInterior ( playerid , 0 ) ;
  3937.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o combate de Sniper {FF0000}( /Sniper)", pname ) ;
  3938.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3939.     new R2 = random ( sizeof ( SpawnArenaSniper ) ) ; SetPlayerPos ( playerid , SpawnArenaSniper [ R2 ] [ 0 ] , SpawnArenaSniper [ R2 ] [ 1 ] , SpawnArenaSniper [ R2 ] [ 2 ] ) ;
  3940.     ResetPlayerWeapons ( playerid ) ;
  3941.     ArenaTipo[playerid] = 3;
  3942.     SetPlayerVirtualWorld ( playerid , 1 ) ;
  3943.     SetPlayerHealth ( playerid , 100 ) ;
  3944.     SetPlayerArmour ( playerid , 100 ) ;
  3945.     GivePlayerWeapon ( playerid , 34 , 999 ) ;
  3946.     return 1;
  3947. }
  3948. //------------------------------------------------------------------------------
  3949. CMD:porrada(playerid, params[])
  3950. {
  3951.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3952.     new Float:Health;
  3953.     GetPlayerHealth ( playerid , Health ) ;
  3954.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3955.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3956.     EstaEmUmaArena [ playerid ] = true ;
  3957.     SetPlayerInterior ( playerid , 0 ) ;
  3958.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o combate de Porrada {FF0000}( /Porrada)", pname ) ;
  3959.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3960.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  3961.     ResetPlayerWeapons ( playerid ) ;
  3962.     ArenaTipo[playerid] = 4;
  3963.     SetPlayerVirtualWorld ( playerid , 2 ) ;
  3964.     SetPlayerHealth ( playerid , 90 ) ;
  3965.     SetPlayerArmour ( playerid , 10 ) ;
  3966.     GivePlayerWeapon ( playerid , 0 , 1 ) ;
  3967.     return 1;
  3968. }
  3969. //------------------------------------------------------------------------------
  3970. CMD:bastao(playerid, params[])
  3971. {
  3972.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3973.     new Float:Health;
  3974.     GetPlayerHealth ( playerid , Health ) ;
  3975.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3976.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3977.     EstaEmUmaArena [ playerid ] = true ;
  3978.     SetPlayerInterior ( playerid , 0 ) ;
  3979.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Bastao {FF0000}( /Bastao )", pname ) ;
  3980.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  3981.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  3982.     ResetPlayerWeapons ( playerid ) ;
  3983.     ArenaTipo[playerid] = 5;
  3984.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  3985.     SetPlayerHealth ( playerid , 90 ) ;
  3986.     SetPlayerArmour ( playerid , 10 ) ;
  3987.     GivePlayerWeapon ( playerid , 3 , 1 ) ;
  3988.     return 1;
  3989. }
  3990. //------------------------------------------------------------------------------
  3991. CMD:katana(playerid, params[])
  3992. {
  3993.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  3994.     new Float:Health;
  3995.     GetPlayerHealth ( playerid , Health ) ;
  3996.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  3997.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  3998.     EstaEmUmaArena [ playerid ] = true ;
  3999.     SetPlayerInterior ( playerid , 0 ) ;
  4000.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Katana {FF0000}( /Katana )", pname ) ;
  4001.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4002.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4003.     ResetPlayerWeapons ( playerid ) ;
  4004.     ArenaTipo[playerid] = 6;
  4005.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4006.     SetPlayerHealth ( playerid , 90 ) ;
  4007.     SetPlayerArmour ( playerid , 10 ) ;
  4008.     GivePlayerWeapon ( playerid , 8 , 1 ) ;
  4009.     return 1;
  4010. }
  4011. //------------------------------------------------------------------------------
  4012. CMD:serra(playerid, params[])
  4013. {
  4014.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4015.     new Float:Health;
  4016.     GetPlayerHealth ( playerid , Health ) ;
  4017.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4018.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4019.     EstaEmUmaArena [ playerid ] = true ;
  4020.     SetPlayerInterior ( playerid , 0 ) ;
  4021.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Serra {FF0000}( /Serra )", pname ) ;
  4022.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4023.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4024.     ResetPlayerWeapons ( playerid ) ;
  4025.     ArenaTipo[playerid] = 7;
  4026.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4027.     SetPlayerHealth ( playerid , 90 ) ;
  4028.     SetPlayerArmour ( playerid , 10 ) ;
  4029.     GivePlayerWeapon ( playerid , 9 , 1 ) ;
  4030.     return 1;
  4031. }
  4032. //------------------------------------------------------------------------------
  4033. CMD:vibradordm(playerid, params[])
  4034. {
  4035.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4036.     new Float:Health;
  4037.     GetPlayerHealth ( playerid , Health ) ;
  4038.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4039.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4040.     EstaEmUmaArena [ playerid ] = true ;
  4041.     SetPlayerInterior ( playerid , 0 ) ;
  4042.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Vibrador {FF0000}( /VibradorDm )", pname ) ;
  4043.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4044.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4045.     ResetPlayerWeapons ( playerid ) ;
  4046.     ArenaTipo[playerid] = 8;
  4047.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4048.     SetPlayerHealth ( playerid , 90 ) ;
  4049.     SetPlayerArmour ( playerid , 10 ) ;
  4050.     GivePlayerWeapon ( playerid , 13 , 1 ) ;
  4051.     return 1;
  4052. }
  4053. //------------------------------------------------------------------------------
  4054. CMD:bengaladm(playerid, params[])
  4055. {
  4056.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4057.     new Float:Health;
  4058.     GetPlayerHealth ( playerid , Health ) ;
  4059.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4060.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4061.     EstaEmUmaArena [ playerid ] = true ;
  4062.     SetPlayerInterior ( playerid , 0 ) ;
  4063.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Bengala {FF0000}( /BengalaDm )", pname ) ;
  4064.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4065.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4066.     ResetPlayerWeapons ( playerid ) ;
  4067.     ArenaTipo[playerid] = 9;
  4068.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4069.     SetPlayerHealth ( playerid , 90 ) ;
  4070.     SetPlayerArmour ( playerid , 10 ) ;
  4071.     GivePlayerWeapon ( playerid , 15 , 1 ) ;
  4072.     return 1;
  4073. }
  4074. //------------------------------------------------------------------------------
  4075. CMD:granada(playerid, params[])
  4076. {
  4077.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4078.     new Float:Health;
  4079.     GetPlayerHealth ( playerid , Health ) ;
  4080.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4081.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4082.     EstaEmUmaArena [ playerid ] = true ;
  4083.     SetPlayerInterior ( playerid , 0 ) ;
  4084.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Granada {FF0000}( /Granada )", pname ) ;
  4085.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4086.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4087.     ResetPlayerWeapons ( playerid ) ;
  4088.     ArenaTipo[playerid] = 10;
  4089.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4090.     SetPlayerHealth ( playerid , 100 ) ;
  4091.     SetPlayerArmour ( playerid , 100 ) ;
  4092.     GivePlayerWeapon ( playerid , 16 , 999 ) ;
  4093.     return 1;
  4094. }
  4095. //------------------------------------------------------------------------------
  4096. CMD:molotov(playerid, params[])
  4097. {
  4098.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4099.     new Float:Health;
  4100.     GetPlayerHealth ( playerid , Health ) ;
  4101.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4102.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4103.     EstaEmUmaArena [ playerid ] = true ;
  4104.     SetPlayerInterior ( playerid , 0 ) ;
  4105.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Molotov {FF0000}( /Molotov )", pname ) ;
  4106.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4107.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4108.     ResetPlayerWeapons ( playerid ) ;
  4109.     ArenaTipo[playerid] = 11;
  4110.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4111.     SetPlayerHealth ( playerid , 100 ) ;
  4112.     SetPlayerArmour ( playerid , 100 ) ;
  4113.     GivePlayerWeapon ( playerid , 18 , 999 ) ;
  4114.     return 1;
  4115. }
  4116. //------------------------------------------------------------------------------
  4117. CMD:pistola9mm(playerid, params[])
  4118. {
  4119.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4120.     new Float:Health;
  4121.     GetPlayerHealth ( playerid , Health ) ;
  4122.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4123.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4124.     EstaEmUmaArena [ playerid ] = true ;
  4125.     SetPlayerInterior ( playerid , 0 ) ;
  4126.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De 9MM {FF0000}( /Pistola9MM )", pname ) ;
  4127.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4128.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4129.     ResetPlayerWeapons ( playerid ) ;
  4130.     ArenaTipo[playerid] = 12;
  4131.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4132.     SetPlayerHealth ( playerid , 100 ) ;
  4133.     SetPlayerArmour ( playerid , 100 ) ;
  4134.     GivePlayerWeapon ( playerid , 22 , 9988 ) ;
  4135.     return 1;
  4136. }
  4137. //------------------------------------------------------------------------------
  4138. CMD:pistolasdm(playerid, params[])
  4139. {
  4140.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4141.     new Float:Health;
  4142.     GetPlayerHealth ( playerid , Health ) ;
  4143.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4144.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4145.     EstaEmUmaArena [ playerid ] = true ;
  4146.     SetPlayerInterior ( playerid , 0 ) ;
  4147.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Silenciadora Dm {FF0000}( /PistolasDm )", pname ) ;
  4148.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4149.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4150.     ResetPlayerWeapons ( playerid ) ;
  4151.     ArenaTipo[playerid] = 13;
  4152.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4153.     SetPlayerHealth ( playerid , 100 ) ;
  4154.     SetPlayerArmour ( playerid , 100 ) ;
  4155.     GivePlayerWeapon ( playerid , 23 , 9988 ) ;
  4156.     return 1;
  4157. }
  4158. //------------------------------------------------------------------------------
  4159. CMD:shp(playerid, params[])
  4160. {
  4161.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4162.     new Float:Health;
  4163.     GetPlayerHealth ( playerid , Health ) ;
  4164.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4165.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4166.     EstaEmUmaArena [ playerid ] = true ;
  4167.     SetPlayerInterior ( playerid , 0 ) ;
  4168.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Shotgun Punhetera {FF0000}( /Shp )", pname ) ;
  4169.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4170.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4171.     ResetPlayerWeapons ( playerid ) ;
  4172.     ArenaTipo[playerid] = 14;
  4173.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4174.     SetPlayerHealth ( playerid , 100 ) ;
  4175.     SetPlayerArmour ( playerid , 100 ) ;
  4176.     GivePlayerWeapon ( playerid , 25 , 9988 ) ;
  4177.     return 1;
  4178. }
  4179. //------------------------------------------------------------------------------
  4180. CMD:doze(playerid, params[])
  4181. {
  4182.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4183.     new Float:Health;
  4184.     GetPlayerHealth ( playerid , Health ) ;
  4185.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4186.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4187.     EstaEmUmaArena [ playerid ] = true ;
  4188.     SetPlayerInterior ( playerid , 0 ) ;
  4189.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Doze {FF0000}( /Doze )", pname ) ;
  4190.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4191.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4192.     ResetPlayerWeapons ( playerid ) ;
  4193.     ArenaTipo[playerid] = 15;
  4194.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4195.     SetPlayerHealth ( playerid , 100 ) ;
  4196.     SetPlayerArmour ( playerid , 100 ) ;
  4197.     GivePlayerWeapon ( playerid , 26 , 9988 ) ;
  4198.     return 1;
  4199. }
  4200. //------------------------------------------------------------------------------
  4201. CMD:cshp(playerid, params[])
  4202. {
  4203.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4204.     new Float:Health;
  4205.     GetPlayerHealth ( playerid , Health ) ;
  4206.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4207.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4208.     EstaEmUmaArena [ playerid ] = true ;
  4209.     SetPlayerInterior ( playerid , 0 ) ;
  4210.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate Shotgun {FF0000}( /CShp )", pname ) ;
  4211.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4212.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4213.     ResetPlayerWeapons ( playerid ) ;
  4214.     ArenaTipo[playerid] = 16;
  4215.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4216.     SetPlayerHealth ( playerid , 100 ) ;
  4217.     SetPlayerArmour ( playerid , 100 ) ;
  4218.     GivePlayerWeapon ( playerid , 27 , 9988 ) ;
  4219.     return 1;
  4220. }
  4221. //------------------------------------------------------------------------------
  4222. CMD:uzi(playerid, params[])
  4223. {
  4224.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4225.     new Float:Health;
  4226.     GetPlayerHealth ( playerid , Health ) ;
  4227.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4228.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4229.     EstaEmUmaArena [ playerid ] = true ;
  4230.     SetPlayerInterior ( playerid , 0 ) ;
  4231.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Uzi {FF0000}( /Uzi )", pname ) ;
  4232.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4233.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4234.     ResetPlayerWeapons ( playerid ) ;
  4235.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4236.     ArenaTipo[playerid] = 17;
  4237.     SetPlayerHealth ( playerid , 100 ) ;
  4238.     SetPlayerArmour ( playerid , 100 ) ;
  4239.     GivePlayerWeapon ( playerid , 28 , 9988 ) ;
  4240.     return 1;
  4241. }
  4242. //------------------------------------------------------------------------------
  4243. CMD:mp5(playerid, params[])
  4244. {
  4245.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4246.     new Float:Health;
  4247.     GetPlayerHealth ( playerid , Health ) ;
  4248.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4249.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4250.     EstaEmUmaArena [ playerid ] = true ;
  4251.     SetPlayerInterior ( playerid , 0 ) ;
  4252.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De MP5 {FF0000}( /MP5 )", pname ) ;
  4253.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4254.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4255.     ResetPlayerWeapons ( playerid ) ;
  4256.     ArenaTipo[playerid] = 18;
  4257.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4258.     SetPlayerHealth ( playerid , 100 ) ;
  4259.     SetPlayerArmour ( playerid , 100 ) ;
  4260.     GivePlayerWeapon ( playerid , 29 , 9988 ) ;
  4261.     return 1;
  4262. }
  4263. //------------------------------------------------------------------------------
  4264. CMD:ak47(playerid, params[])
  4265. {
  4266.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4267.     new Float:Health;
  4268.     GetPlayerHealth ( playerid , Health ) ;
  4269.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4270.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4271.     EstaEmUmaArena [ playerid ] = true ;
  4272.     SetPlayerInterior ( playerid , 0 ) ;
  4273.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De AK-47 {FF0000}( /AK47 )", pname ) ;
  4274.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4275.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4276.     ResetPlayerWeapons ( playerid ) ;
  4277.     ArenaTipo[playerid] = 19;
  4278.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4279.     SetPlayerHealth ( playerid , 100 ) ;
  4280.     SetPlayerArmour ( playerid , 100 ) ;
  4281.     GivePlayerWeapon ( playerid , 30 , 9988 ) ;
  4282.     return 1;
  4283. }
  4284. //------------------------------------------------------------------------------
  4285. CMD:tec9(playerid, params[])
  4286. {
  4287.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4288.     new Float:Health;
  4289.     GetPlayerHealth ( playerid , Health ) ;
  4290.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4291.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4292.     EstaEmUmaArena [ playerid ] = true ;
  4293.     SetPlayerInterior ( playerid , 0 ) ;
  4294.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Tec9 {FF0000}( /Tec9 )", pname ) ;
  4295.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4296.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4297.     ResetPlayerWeapons ( playerid ) ;
  4298.     ArenaTipo[playerid] = 20;
  4299.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4300.     SetPlayerHealth ( playerid , 100 ) ;
  4301.     SetPlayerArmour ( playerid , 100 ) ;
  4302.     GivePlayerWeapon ( playerid , 32 , 9988 ) ;
  4303.     return 1;
  4304. }
  4305. //------------------------------------------------------------------------------
  4306. CMD:cr(playerid, params[])
  4307. {
  4308.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4309.     new Float:Health;
  4310.     GetPlayerHealth ( playerid , Health ) ;
  4311.     if ( Health < 30.0 ) return SendClientMessage ( playerid , 0xFF0000FF , "Você nao pode se teleportar com pouca vida." ) ;
  4312.     if ( EstaEmUmaArena [ playerid ] == true ) return SendClientMessage ( playerid , 0x00C0FFFF , "Já Está Em Uma Arena Use /Sair" ) ;
  4313.     EstaEmUmaArena [ playerid ] = true ;
  4314.     SetPlayerInterior ( playerid , 0 ) ;
  4315.     format ( diogo , sizeof ( diogo ) , "{FF0000}[  %s  ]{00FF7F} foi para o Combate De Country Rifle {FF0000}( /CR )", pname ) ;
  4316.     SendClientMessageToAll ( 0x00C0FFFF , diogo ) ;
  4317.     new R2 = random ( sizeof ( ArenaPos ) ) ; SetPlayerPos ( playerid , ArenaPos [ R2 ] [ 0 ] , ArenaPos [ R2 ] [ 1 ] , ArenaPos [ R2 ] [ 2 ] ) ;
  4318.     ResetPlayerWeapons ( playerid ) ;
  4319.     ArenaTipo[playerid] = 21;
  4320.     SetPlayerVirtualWorld ( playerid , 3 ) ;
  4321.     SetPlayerHealth ( playerid , 100 ) ;
  4322.     SetPlayerArmour ( playerid , 100 ) ;
  4323.     GivePlayerWeapon ( playerid , 33 , 9988 ) ;
  4324.     return 1;
  4325. }
  4326. //------------------------------------------------------------------------------
  4327. CMD:x1(playerid)
  4328. {
  4329.     if ( NoEvento [ playerid ] ) return SendClientMessage ( playerid , 0x00C0FFFF , "Você nao pode digitar comandos em evento, digite /Kill para sair!" ) ;
  4330.     if(X1Q == 2)return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO] X1 Está lotado aguarde!" ) ;
  4331.     if(!X1L)return SendClientMessage ( playerid , 0x00C0FFFF , "[ERRO] X1 Fechado!" ) ;
  4332.     if(X1Q == 0) { SetPlayerPos ( playerid , 1451.3765 ,-1048.5012 ,213.3828 ) ; }
  4333.     else if ( X1Q == 1 ) { SetPlayerPos ( playerid , 1451.0876 , -1084.6818 , 213.3828 ) ; }
  4334.     X1Q ++ ;
  4335.     PInfo [ playerid ] [ Inx1 ] = 1 ;
  4336.     ResetPlayerWeapons ( playerid ) ;
  4337.     GivePlayerWeapon ( playerid , 26 , 999 ) ;
  4338.     GivePlayerWeapon ( playerid , 28 , 999 ) ;
  4339.     SetPlayerArmour ( playerid , 100 ) ;
  4340.     SetPlayerHealth ( playerid , 100 ) ;
  4341.     SetPlayerVirtualWorld ( playerid , 12 ) ;
  4342.     format ( diogo , sizeof ( diogo ) , "[X1] {FFFFFF}[  %s  ]{00FFFF} Foi para o X1 ( /x1 )", pname ) ;
  4343.     SendClientMessageToAll ( 0x00FFFFFF , diogo ) ;
  4344.     return 1;
  4345. }
  4346. //------------------------------------------------------------------------------
  4347. CMD:comandosdm(playerid,params[])
  4348. {
  4349.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  4350.     SendClientMessage(playerid,-1,"{00FF00}|        Comandos Do Servidor        |");
  4351.     SendClientMessage(playerid,-1,"{00FF00}|        /X1 /Cr /Tec9 /Ak47 /Mp5 /Uzi /Cshp /Arena      |");
  4352.     SendClientMessage(playerid,-1,"{00FF00}|        /Doze /Shp /Pistola9mm /pistolasdm /Pistola         |");
  4353.     SendClientMessage(playerid,-1,"{00FF00}|        /Molotov /Granada /VibradorDm /BengalaDm            |");
  4354.     SendClientMessage(playerid,-1,"{00FF00}|        /Serra /Katana /Bastao /Porrada /Sniper |");
  4355.     SendClientMessage(playerid,-1,"{00FF00}");
  4356.     SendClientMessage(playerid,-1,"{00FF00}|        Use : /Comandos2        |");
  4357.     SendClientMessage(playerid,-1,"{00c6c6}|.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.|");
  4358.     return 1;
  4359. }
  4360. //------------------------------------------------------------------------------
  4361. stock Path ( playerid ) {
  4362.     new str [ 128 ] , name [ MAX_PLAYER_NAME ] ;
  4363.     GetPlayerName ( playerid , name , sizeof ( name ) ) ;
  4364.     format ( str , sizeof ( str ) , UserPath , name ) ;
  4365.     return str;
  4366. }
  4367. //------------------------------------------------------------------------------
  4368. stock GetNumberOfPlayersOnThisIP ( test_ip [ ] ) {
  4369.     new against_ip [ 32+1 ] ;
  4370.     new x = 0 ;
  4371.     new ip_count = 0 ;
  4372.     for ( x=0 ; x<MAX_PLAYERS; x++ ) {
  4373.         if ( IsPlayerConnected ( x ) )  {
  4374.             GetPlayerIp ( x , against_ip , 32 ) ;
  4375.             if ( !strcmp ( against_ip , test_ip ) ) ip_count ++ ;
  4376.         }
  4377.     }
  4378.     return ip_count;
  4379. }
  4380. //------------------------------------------------------------------------------
  4381. stock SetPlayerMoney(playerid,ammount)
  4382. {
  4383.     ResetPlayerMoney(playerid);
  4384.     GivePlayerMoney(playerid,ammount);
  4385.     return 1;
  4386. }
  4387. //------------------------------------------------------------------------------
  4388. stock IsTransfenderVehicle(model)
  4389. {
  4390.     switch(model)
  4391.     {
  4392.         case 400,401,402,404,405,409,410,411,415,418,419,420,421,422,424,426,429,436,438,439,
  4393.         442,445,451,458,466,467,474,475,477,478,479,480,489,491,492,496,500,505,506,
  4394.         507,516,517,518,527,526,529,533,540,541,542,545,546,547,549,550,551,555,575,
  4395.         579,580,585,587,589,600,602,603: return 1;
  4396.     }
  4397.     return 0;
  4398. }
  4399. //------------------------------------------------------------------------------
  4400. stock IsLocolowVehicle(model)
  4401. {
  4402.     switch(model)
  4403.     {
  4404.         case 412,534,535,536,566,567,576: return 1;
  4405.     }
  4406.     return 0;
  4407. }
  4408. //------------------------------------------------------------------------------
  4409. stock IsWAAVehicle(model)
  4410. {
  4411.     switch(model)
  4412.     {
  4413.         case 558,559,560,561,562,565: return 1;
  4414.     }
  4415.     return 0;
  4416. }
  4417. //------------------------------------------------------------------------------
  4418. public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
  4419. {
  4420.     switch(paintjobid)
  4421.     {
  4422.         case -1,0,1,2,3,4,5: return 1;
  4423.     }
  4424.     return 0;
  4425. }
  4426. //------------------------------------------------------------------------------
  4427. stock BanBot(playerid)
  4428. {
  4429.     format ( diogo , sizeof ( diogo ) , "BOT/CONNECT FLOOD bloqueado: [  %s ] (%i) - [BANIDO]" , pname , pname ) ;
  4430.     print ( diogo ) ;
  4431.     SendClientMessage ( playerid , -1 , "[SERVER]: Seu IP foi banido por tentar conectar 5x em menos de 2 segundos de forma seguida." ) ;
  4432.     BanEx ( playerid , "Flood/Reconnect" ) ;
  4433. }
  4434. //------------------------------------------------------------------------------
  4435. stock ProcessarBOT(playerid)
  4436. {
  4437.     BotTolerance++ ;
  4438.     if ( BotTolerance >= 5 )
  4439.         BanBot ( playerid ) ;
  4440. }
  4441. //------------------------------------------------------------------------------
  4442. stock GetPName ( playerid ) {
  4443.     new gName [ MAX_PLAYER_NAME ] ;
  4444.     GetPlayerName ( playerid , gName , sizeof gName ) ;
  4445.     return gName;
  4446. }
  4447. //------------------------------------------------------------------------------
  4448. stock CheckVehicle( vehicleid ) {
  4449.     #define MAX_INVALID_NOS_VEHICLES 33
  4450.     new InvalidNOSVehicles [ MAX_INVALID_NOS_VEHICLES ] = {
  4451.         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
  4452.     };
  4453.     for ( new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++ )
  4454.     {
  4455.         if ( GetVehicleModel ( vehicleid ) == InvalidNOSVehicles [ i ] ) return false;
  4456.     }
  4457.     return true;
  4458. }
  4459. //------------------------------------------------------------------------------
  4460. stock MatarPlayer(playerid, &Float:x, &Float:y, Float:distance)
  4461. {
  4462.     new Float:a;
  4463.     GetPlayerPos ( playerid , x , y , a ) ;
  4464.     if ( GetPlayerVehicleID ( playerid ) )
  4465.     {
  4466.         GetVehicleZAngle ( GetPlayerVehicleID ( playerid ) , a ) ;
  4467.     }
  4468.     GetPlayerFacingAngle ( playerid , a ) ;
  4469.     x += ( distance * floatsin ( -a , degrees ) ) ;
  4470.     y += ( distance * floatcos ( -a , degrees ) ) ;
  4471. }
  4472. //------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment