Advertisement
Guest User

Untitled

a guest
Jan 1st, 2014
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.47 KB | None | 0 0
  1. /*
  2. Progresso Sistema de Admin 100%
  3. Registro Login 100%
  4. Comandos 100%(12 no total)
  5. Teleportes 0%
  6. Sistemas 35%
  7. */
  8. //==============================================================================
  9. // ================================= Includes ==================================
  10. //==============================================================================
  11.  
  12. #include <a_samp>
  13. #include <streamer>
  14. #include <zcmd>
  15. #include <sscanf2>
  16. #include <DOF2>
  17.  
  18. //==============================================================================
  19. // ================================== Defines ==================================
  20. //==============================================================================
  21.  
  22. #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  23. #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  24. #define version "0.1"
  25. #undef MAX_PLAYERS
  26. #define MAX_PLAYERS 150
  27. #undef MAX_VEHICLES
  28. #define MAX_VEHICLES 850
  29. #undef MAX_PICKUPS
  30. #define MAX_PICKUPS 50
  31.  
  32. //==============================================================================
  33. //=================================== Cores ====================================
  34. //==============================================================================
  35.  
  36. #define VERDE 0x21DD00FF
  37. #define VERMELHO 0xFF030FFF
  38. #define VERMELHO_ESCURO 0xE60000FF
  39. #define COLOUR_AVISO 0xFFFF00FF
  40. #define VERMELHO_CLARO 0xFB0000FF
  41. #define AMARELO 0xFFFF00FF
  42. #define LARANJA 0xF97804FF
  43. #define AZUL_CLARO 0x00C2ECFF
  44. #define ROXO 0xB360FDFF
  45. #define BRANCO 0xFFFFFFFF
  46. #define PRETO 0x000000FF
  47. #define AZUL 0x1229FAFF
  48. #define VERDE_CLARO 0x38FF06FF
  49. #define ROSA_CHOQUE 0xE100E1FF
  50. #define VERDE_ESCURO 0x008040FF
  51. #define CINZA 0xCECECEFF
  52. #define ROSA 0xD52DFFFF
  53. #define CINZA_ESCURO 0x626262FF
  54. #define VERDE_AGUA 0x03D687FF
  55.  
  56. //==============================================================================
  57. //=================================== Dialogs ==================================
  58. //==============================================================================
  59. #define Vehicle_Dialog2 32
  60. #define Trains2 33
  61. #define CivilServ2 34
  62. #define Govern2 35
  63. #define RC2 36
  64. #define Luxury42 37
  65. #define Luxury4_22 38
  66. #define TwoDoor2 39
  67. #define TwoDoor22 40
  68. #define Heavy2 41
  69. #define Heavy22 42
  70. #define Light2 43
  71. #define Light22 44
  72. #define Streets2 45
  73. #define Muscles2 46
  74. #define SuvWagon2 47
  75. #define Sports2 48
  76. #define ReCreated2 49
  77. #define Bikes2 50
  78. #define Bicycles2 51
  79. #define Monsters2 52
  80. #define Boats2 53
  81. #define Helis2 54
  82. #define Planes122 55
  83. #define Cars2 56
  84. #define Lowriders2 57
  85. #define dialogcreditos 78456
  86. #define dialogajuda 78457
  87. #define dialogcomandos 78458
  88. #define dialogregras 78459
  89. #define dialogteles 78460
  90. #define dialogtelesdm 78461
  91. #define dialognovi 78462
  92. //==============================================================================
  93. // ================================== Forwards =================================
  94. //==============================================================================
  95.  
  96. forward AntiSpam(playerid);
  97. forward Kicka(p);
  98. forward Bana(p);
  99. forward TempoPreso(playerid);
  100. forward VerificarPreso(playerid);
  101. forward NomeCarro(playerid);
  102. forward UpdateTime();
  103. forward SendMSG();
  104. forward CriarVeiculo(playerid, modelo);
  105.  
  106. //==============================================================================
  107. // ================================== New's ====================================
  108. //==============================================================================
  109. new Mortes[MAX_PLAYERS];
  110. new RecentlyShot[MAX_PLAYERS];
  111. new Vehicle [ MAX_PLAYERS ] ;
  112. new Guerra[41];
  113. new bool:X1[MAX_PLAYERS],pX1;
  114. new bool:X1W[MAX_PLAYERS],pX1W;
  115. new bool:arena[MAX_PLAYERS];
  116. new total_vehicles_from_files;
  117. new JatemCarroSafado [ MAX_PLAYERS ] ;
  118. new TimerMV[MAX_PLAYERS];
  119. new TotalVeiculos ;
  120. new string2[190];
  121. new aVehicleNames [ 212 ] [ ] = {
  122. {"Landstalker"}, {"Bravura"}, {"Buffalo"}, {"Linerunner"}, {"Perrenial"}, {"Sentinel"}, {"Dumper"},
  123. {"Firetruck"}, {"Trashmaster"}, {"Stretch"}, {"Manana"}, {"Infernus"}, {"Voodoo"}, {"Pony"}, {"Mule"},
  124. {"Cheetah"}, {"Ambulance"}, {"Leviathan"}, {"Moonbeam"}, {"Esperanto"}, {"Taxi"}, {"Washington"},
  125. {"Bobcat"}, {"Mr Whoopee"}, {"BF Injection"}, {"Hunter"}, {"Premier"}, {"Enforcer"}, {"Securicar"},
  126. {"Banshee"}, {"Predator"}, {"Bus"},{"Rhino"}, {"Barracks"}, {"Hotknife"}, {"Artic Trailer 1"}, {"Previon"},
  127. {"Coach"}, {"Cabbie"}, {"Stallion"}, {"Rumpo"}, {"RC Bandit"}, {"Romero"}, {"Packer"}, {"Monster"},
  128. {"Admiral"}, {"Squalo"}, {"Seasparrow"}, {"Pizzaboy"}, {"Tram"}, {"Artic Trailer 2"}, {"Turismo"},
  129. {"Speeder"}, {"Reefer"}, {"Tropic"}, {"Flatbed"}, {"Yankee"}, {"Caddy"}, {"Solair"}, {"Berkley's RC Van"},
  130. {"Skimmer"}, {"PCJ-6_0_0"}, {"Faggio"}, {"Freeway"}, {"RC Baron"}, {"RC Raider"}, {"Glendale"}, {"Oceanic"},
  131. {"Sanchez"}, {"Sparrow"}, {"Patriot"}, {"Quad"}, {"Coastguard"}, {"Dinghy"}, {"Hermes"}, {"Sabre"},
  132. {"Rustler"}, {"ZR-3_5_0"}, {"Walton"}, {"Regina"}, {"Comet"},{"BMX"}, {"Burrito"}, {"Camper"}, {"Marquis"},
  133. {"Baggage"}, {"Dozer"}, {"Maverick"}, {"News Chopper"}, {"Rancher"}, {"FBI Rancher"}, {"Virgo"}, {"Greenwood"},
  134. {"Jetmax"}, {"Hotring"}, {"Sandking"}, {"Blista Compact"}, {"Police Maverick"}, {"Boxville"}, {"Benson"},
  135. {"Mesa"}, {"RC Goblin"}, {"Hotring Racer A"}, {"Hotring Racer B"}, {"Bloodring Banger"}, {"Rancher"},
  136. {"Super GT"}, {"Elegant"}, {"Journey"}, {"Bike"}, {"Mountain Bike"}, {"Beagle"}, {"Cropdust"}, {"Stunt"},
  137. {"Tanker"}, {"Roadtrain"}, {"Nebula"}, {"Majestic"}, {"Buccaneer"}, {"Shamal"}, {"Hydra"}, {"FCR-900"},
  138. {"NRG-500"}, {"HPV1000"}, {"Cement Truck"}, {"Tow Truck"}, {"Fortune"}, {"Cadrona"}, {"FBI Truck"},
  139. {"Willard"}, {"Forklift"}, {"Tractor"}, {"Combine"}, {"Feltzer"}, {"Remington"}, {"Slamvan"},
  140. {"Blade"}, {"Freight"}, {"Streak"}, {"Vortex"}, {"Vincent"}, {"Bullet"}, {"Clover"}, {"Sadler"},
  141. {"Firetruck LA"}, {"Hustler"}, {"Intruder"}, {"Primo"}, {"Cargobob"}, {"Tampa"}, {"Sunrise"}, {"Merit"},
  142. {"Utility"}, {"Nevada"}, {"Yosemite"}, {"Windsor"}, {"Monster A"}, {"Monster B"}, {"Uranus"}, {"Jester"},
  143. {"Sultan"}, {"Stratum"}, {"Elegy"}, {"Raindance"}, {"RC Tiger"}, {"Flash"}, {"Tahoma"}, {"Savanna"},
  144. {"Bandito"}, {"Freight Flat"}, {"Streak Carriage"}, {"Kart"}, {"Mower"}, {"Duneride"}, {"Sweeper"},
  145. {"Broadway"}, {"Tornado"}, {"AT-400"}, {"DFT-30"}, {"Huntley"}, {"Stafford"}, {"BF-400"}, {"Newsvan"},
  146. {"Tug"}, {"Chemical Trailer"}, {"Emperor"}, {"Wayfarer"}, {"Euros"}, {"Hotdog"}, {"Club"}, {"Freight Carriage"},
  147. {"Artic Trailer 3"}, {"Andromada"}, {"Dodo"}, {"RC Cam"}, {"Launch"}, {"Police Car LSPD"}, {"Police Car SFPD"},
  148. {"Police _LVPD"}, {"Police Ranger"}, {"Picador"}, {"SWAT. Van"}, {"Alpha"}, {"Phoenix"}, {"Glendale"},
  149. {"Sadler"}, {"Luggage Trailer A"}, {"Luggage Trailer B"}, {"Stair Trailer"}, {"Boxville"}, {"Farm Plow"},
  150. {"Utility Trailer"}
  151. };
  152.  
  153. new Float:gRandomSpawns_LosSantos[][4] =
  154. {
  155. {1751.1097,-2106.4529,13.5469,183.1979}, // El-Corona - Outside random house
  156. {2652.6418,-1989.9175,13.9988,182.7107}, // Random house in willowfield - near playa de seville and stadium
  157. {2489.5225,-1957.9258,13.5881,2.3440}, // Hotel in willowfield - near cluckin bell
  158. {2689.5203,-1695.9354,10.0517,39.5312}, // Outside stadium - lots of cars
  159. {2770.5393,-1628.3069,12.1775,4.9637}, // South in east beach - north of stadium - carparks nearby
  160. {2807.9282,-1176.8883,25.3805,173.6018}, // North in east beach - near apartments
  161. {2552.5417,-958.0850,82.6345,280.2542}, // Random house north of Las Colinas
  162. {2232.1309,-1159.5679,25.8906,103.2939}, // Jefferson motel
  163. {2388.1003,-1279.8933,25.1291,94.3321}, // House south of pig pen
  164. {2481.1885,-1536.7186,24.1467,273.4944}, // East LS - near clucking bell and car wash
  165. {2495.0720,-1687.5278,13.5150,359.6696}, // Outside CJ's house - lots of cars nearby
  166. {2306.8252,-1675.4340,13.9221,2.6271}, // House in ganton - lots of cars nearby
  167. {2191.8403,-1455.8251,25.5391,267.9925}, // House in south jefferson - lots of cars nearby
  168. {1830.1359,-1092.1849,23.8656,94.0113}, // Mulholland intersection carpark
  169. {2015.3630,-1717.2535,13.5547,93.3655}, // Idlewood house
  170. {1654.7091,-1656.8516,22.5156,177.9729}, // Right next to PD
  171. {1219.0851,-1812.8058,16.5938,190.0045}, // Conference Center
  172. {1508.6849,-1059.0846,25.0625,1.8058}, // Across the street of BANK - lots of cars in intersection carpark
  173. {1421.0819,-885.3383,50.6531,3.6516}, // Outside house in vinewood
  174. {1133.8237,-1272.1558,13.5469,192.4113}, // Near hospital
  175. {1235.2196,-1608.6111,13.5469,181.2655}, // Backalley west of mainstreet
  176. {590.4648,-1252.2269,18.2116,25.0473}, // Outside "BAnk of San Andreas"
  177. {842.5260,-1007.7679,28.4185,213.9953}, // North of Graveyard
  178. {911.9332,-1232.6490,16.9766,5.2999}, // LS Film Studio
  179. {477.6021,-1496.6207,20.4345,266.9252}, // Rodeo Place
  180. {255.4621,-1366.3256,53.1094,312.0852}, // Outside propery in richman
  181. {281.5446,-1261.4562,73.9319,305.0017}, // Another richman property
  182. {790.1918,-839.8533,60.6328,191.9514}, // Mulholland house
  183. {1299.1859,-801.4249,84.1406,269.5274}, // Maddoggs
  184. {1240.3170,-2036.6886,59.9575,276.4659}, // Verdant Bluffs
  185. {2215.5181,-2627.8174,13.5469,273.7786}, // Ocean docks 1
  186. {2509.4346,-2637.6543,13.6453,358.3565} // Ocean Docks spawn 2
  187. };
  188.  
  189. enum SpawnInfo
  190. {
  191. Float:SX ,
  192. Float:SY ,
  193. Float:SZ ,
  194. Float:SA ,
  195. }
  196. new RandomSpawnsX1 [ 6 ] [ SpawnInfo ] = {
  197. { -1416.0305 , 1248.8503 , 1039.8741 , 99.5885 } ,
  198. { -1403.9939 , 1239.7618 , 1039.8672 , 314.2756 } ,
  199. { -1383.2361 , 1263.2667 , 1039.8672 , 314.2756 } ,
  200. { -1371.9156 , 1251.0037 , 1039.8672 , 212.8017 } ,
  201. { -1370.8284 , 1231.7102 , 1039.8672 , 173.6712 } ,
  202. { -1403.9939 , 1239.7618 , 1039.8672 , 314.2756 }
  203. };
  204.  
  205. new RandomSpawnGuerra [ 16 ] [ SpawnInfo ] = {
  206. { 414.8407,2532.6992,19.1484 } ,
  207. { 282.6218,2612.5815,16.0637 } ,
  208. { -584.5591,2591.2527,65.4126 } ,
  209. { -418.5795,2476.4128,43.6431 } ,
  210. { 345.8060,2018.9552,22.2215 } ,
  211. { -174.0412,1693.1797,16.7796 } ,
  212. { -299.9593,1754.1543,42.2627 } ,
  213. { -356.4713,1890.8206,41.9612 } ,
  214. { -374.9009,2214.3655,41.8241 } ,
  215. { -385.7136,2262.8232,41.6116 } ,
  216. { -727.8915,2437.2048,126.0191 } ,
  217. { -737.6274,2365.2104,125.3570 } ,
  218. { -750.8666,2340.8140,123.5368 } ,
  219. { -491.5825,2496.3423,51.4126 } ,
  220. { -34.2784,2341.1455,23.7165 } ,
  221. { 204.1188,1904.1697,17.2169 }
  222. };
  223.  
  224. new RandomSpawnArena [ 11 ] [ SpawnInfo ] = {
  225. { 1340.0023,2152.9702,10.5768 } ,
  226. { 1374.7274,2180.8813,10.5877 } ,
  227. { 1391.6415,2181.2236,10.5882 } ,
  228. { 1395.3839,2192.8572,10.5860 } ,
  229. { 1356.4269,2183.5823,10.5804 } ,
  230. { 1333.9507,2195.1089,10.5878 } ,
  231. { 1312.9115,2187.1980,10.5873 } ,
  232. { 1305.8242,2148.4031,10.5883 } ,
  233. { 1310.9288,2112.6008,10.5791 } ,
  234. { 1356.0889,2114.0610,10.5800 } ,
  235. { 1352.4496,2127.7441,10.5800 }
  236. };
  237.  
  238.  
  239. new RandomMSG[][] =
  240. {
  241. "{F6F6F6}Use {FC0303}/Ajuda {F6F6F6} Para Mais Informacoes!",
  242. "{F6F6F6}Veja Os Criadores Deste Modo De Jogo {FC0303}/Creditos {F6F6F6} !!",
  243. "{F6F6F6}Use {FC0303}/Telep {F6F6F6} Para Ver Os Teleportes!"
  244.  
  245. };
  246.  
  247. //Armas
  248. new ammusawn,
  249. ammutec9,
  250. ammupist,
  251. ammugran,
  252. ammusnip
  253. ;
  254.  
  255. new Text:Textdraw0;
  256. new Text:Data;
  257. new Text:Textdraw5;
  258. new Text:Textdraw6;
  259. new Text:Textdraw7;
  260. new Text:Horas;
  261. new Text:Textdraw3;
  262. new Text:Textdraw4;
  263.  
  264. /* =============================================================================
  265. ================================================================================
  266. ============================================================================= */
  267. //------------------------------------------------------------------------------
  268. main() {}//---------------------------------------------------------------------
  269. //------------------------------------------------------------------------------
  270.  
  271. public OnGameModeInit()
  272. {
  273. UpdateTime();
  274. SetTimer("UpdateTime",1000,1);
  275. Textdraw0 = TextDrawCreate(491.000000, 356.000000, "~w~A~r~c ~w~A~r~ssasin's ~w~C~r~ity");
  276. TextDrawBackgroundColor(Textdraw0, 255);
  277. TextDrawFont(Textdraw0, 0);
  278. TextDrawLetterSize(Textdraw0, 0.400000, 2.399999);
  279. TextDrawColor(Textdraw0, -16776961);
  280. TextDrawSetOutline(Textdraw0, 1);
  281. TextDrawSetProportional(Textdraw0, 1);
  282.  
  283. Data = TextDrawCreate(453.000000, 425.000000, "00/00/0000");
  284. TextDrawBackgroundColor(Data, 255);
  285. TextDrawFont(Data, 3);
  286. TextDrawLetterSize(Data, 0.240000, 1.600000);
  287. TextDrawColor(Data, -132901633);
  288. TextDrawSetOutline(Data, 1);
  289. TextDrawSetProportional(Data, 1);
  290. TextDrawSetShadow(Data, 1);
  291.  
  292. Horas = TextDrawCreate(558.000000, 429.000000, "00:00:00");
  293. TextDrawBackgroundColor(Horas, 255);
  294. TextDrawFont(Horas, 2);
  295. TextDrawLetterSize(Horas, 0.210000, 1.300000);
  296. TextDrawColor(Horas, -16776961);
  297. TextDrawSetOutline(Horas, 1);
  298. TextDrawSetProportional(Horas, 1);
  299. TextDrawSetShadow(Horas, 1);
  300.  
  301. Textdraw3 = TextDrawCreate(539.000000, 347.000000, "~r~-");
  302. TextDrawAlignment(Textdraw3, 2);
  303. TextDrawBackgroundColor(Textdraw3, 255);
  304. TextDrawFont(Textdraw3, 2);
  305. TextDrawLetterSize(Textdraw3, 18.130039, 1.399999);
  306. TextDrawColor(Textdraw3, -65281);
  307. TextDrawSetOutline(Textdraw3, 1);
  308. TextDrawSetProportional(Textdraw3, 1);
  309.  
  310. Textdraw4 = TextDrawCreate(539.000000, 435.000000, "~r~-");
  311. TextDrawAlignment(Textdraw4, 2);
  312. TextDrawBackgroundColor(Textdraw4, 255);
  313. TextDrawFont(Textdraw4, 2);
  314. TextDrawLetterSize(Textdraw4, 18.130039, 1.399999);
  315. TextDrawColor(Textdraw4, -65281);
  316. TextDrawSetOutline(Textdraw4, 1);
  317. TextDrawSetProportional(Textdraw4, 1);
  318.  
  319. Textdraw5 = TextDrawCreate(471.000000, 382.000000, "~w~] assasinscity.forumeiros.com ~w~]");//quandoo site estiver pronto
  320. TextDrawBackgroundColor(Textdraw5, 255);
  321. TextDrawFont(Textdraw5, 2);
  322. TextDrawLetterSize(Textdraw5, 0.200000, 1.399999);
  323. TextDrawColor(Textdraw5, -16776961);
  324. TextDrawSetOutline(Textdraw5, 1);
  325. TextDrawSetProportional(Textdraw5, 1);
  326.  
  327. Textdraw7 = TextDrawCreate(513.000000, 410.000000, "Ac");
  328. TextDrawBackgroundColor(Textdraw7, -16776961);
  329. TextDrawFont(Textdraw7, 2);
  330. TextDrawLetterSize(Textdraw7, 0.529999, 3.600001);
  331. TextDrawColor(Textdraw7, -1);
  332. TextDrawSetOutline(Textdraw7, 1);
  333. TextDrawSetProportional(Textdraw7, 1);
  334.  
  335. Textdraw6 = TextDrawCreate(516.000000, 404.000000, "]");
  336. TextDrawBackgroundColor(Textdraw6, -16776961);
  337. TextDrawFont(Textdraw6, 2);
  338. TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
  339. TextDrawColor(Textdraw6, -1);
  340. TextDrawSetOutline(Textdraw6, 0);
  341. TextDrawSetProportional(Textdraw6, 1);
  342. TextDrawSetShadow(Textdraw6, 4);
  343.  
  344. for(new i; i < MAX_PLAYERS; i ++)
  345. {
  346. if(IsPlayerConnected(i))
  347. {
  348. TextDrawShowForPlayer(i, Textdraw0);
  349. TextDrawShowForPlayer(i, Data);
  350. TextDrawShowForPlayer(i, Horas);
  351. TextDrawShowForPlayer(i, Textdraw3);
  352. TextDrawShowForPlayer(i, Textdraw4);
  353. TextDrawShowForPlayer(i, Textdraw5);
  354. TextDrawShowForPlayer(i, Textdraw6);
  355. TextDrawShowForPlayer(i, Textdraw7);
  356. }
  357. }
  358.  
  359. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2158.2080,950.1351,10.9856,50,0,0);//Text Lv Ammu Avenida
  360. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2538.1443,2077.5703,10.9719,50,0,0);//Text Lv Ammu OslV
  361. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,777.4370,1874.2725,4.9248,50,0,0);//Text Lv Deserto Prox AA
  362. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-315.7644,827.8377,14.2422,50,0,0);//Text Ammu Fort Carson
  363. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-1510.5044,2610.1936,55.8359,50,0,0);//Text Ammu El Quebrados
  364. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,1366.8577,-1282.4663,13.5469,50,0,0);//Text Ammu Ls01
  365. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,241.9841,-176.5516,1.1317,50,0,0);//Ls Ammu02
  366. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2399.2043,-1981.3638,13.1103,50,0,0);//Text Ammu Blue Berry
  367. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,2333.3069,64.4671,27.4693,50,0,0);//Text Ammu Palomino Creek
  368. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-2095.0071,-2463.6616,30.6250,50,0,0);//Text Ammu AngeL Pine
  369. Create3DTextLabel("Ammunation\nCompre Armas!",0x0083ADFF,-2629.0779,208.5690,4.5326,50,0,0);//Text Ammu SF
  370.  
  371. //Configs
  372. UsePlayerPedAnims();
  373. SetNameTagDrawDistance(40.0);
  374. EnableStuntBonusForAll(0);
  375. SetWeather(2);
  376. SetTimer("SendMSG", 6000000, true);
  377. SetWorldTime(11);
  378. SetGameModeText("Los Santos - DM");
  379. SendRconCommand("hostname © [LS]Death Match versao beta © » 2013");
  380. //Skin
  381. AddPlayerClass(3,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  382. AddPlayerClass(4,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  383. AddPlayerClass(5,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  384. AddPlayerClass(6,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  385. AddPlayerClass(8,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  386. AddPlayerClass(42,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  387. AddPlayerClass(65,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  388. AddPlayerClass(86,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  389. AddPlayerClass(119,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  390. AddPlayerClass(149,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  391. AddPlayerClass(208,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  392. AddPlayerClass(273,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  393. AddPlayerClass(289,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  394. AddPlayerClass(280,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  395. AddPlayerClass(281,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  396. AddPlayerClass(282,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
  397. AddPlayerClass(283,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  398. AddPlayerClass(284,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  399. AddPlayerClass(285,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  400. AddPlayerClass(286,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  401. AddPlayerClass(287,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  402. AddPlayerClass(254,1958.3783,1343.1572,15.3746,0.0,0,0,24,300,-1,-1);
  403. AddPlayerClass(255,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  404. AddPlayerClass(256,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  405. AddPlayerClass(257,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  406. AddPlayerClass(258,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  407. AddPlayerClass(259,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  408. AddPlayerClass(260,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  409. AddPlayerClass(261,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  410. AddPlayerClass(262,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  411. AddPlayerClass(263,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  412. AddPlayerClass(264,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  413. AddPlayerClass(274,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  414. AddPlayerClass(275,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  415. AddPlayerClass(276,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  416. AddPlayerClass(290,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  417. AddPlayerClass(291,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  418. AddPlayerClass(292,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  419. AddPlayerClass(293,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  420. AddPlayerClass(294,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  421. AddPlayerClass(295,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  422. AddPlayerClass(296,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  423. AddPlayerClass(297,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  424. AddPlayerClass(298,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  425. AddPlayerClass(299,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  426. AddPlayerClass(277,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  427. AddPlayerClass(278,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  428. AddPlayerClass(279,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  429. AddPlayerClass(288,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  430. AddPlayerClass(47,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  431. AddPlayerClass(48,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  432. AddPlayerClass(49,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  433. AddPlayerClass(50,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  434. AddPlayerClass(51,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  435. AddPlayerClass(52,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  436. AddPlayerClass(53,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  437. AddPlayerClass(54,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  438. AddPlayerClass(55,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  439. AddPlayerClass(56,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  440. AddPlayerClass(57,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  441. AddPlayerClass(58,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  442. AddPlayerClass(59,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  443. AddPlayerClass(60,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  444. AddPlayerClass(61,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  445. AddPlayerClass(62,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  446. AddPlayerClass(63,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  447. AddPlayerClass(64,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  448. AddPlayerClass(66,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  449. AddPlayerClass(67,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  450. AddPlayerClass(68,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  451. AddPlayerClass(69,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  452. AddPlayerClass(70,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  453. AddPlayerClass(71,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  454. AddPlayerClass(72,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  455. AddPlayerClass(73,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  456. AddPlayerClass(75,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  457. AddPlayerClass(76,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  458. AddPlayerClass(78,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  459. AddPlayerClass(79,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  460. AddPlayerClass(80,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  461. AddPlayerClass(81,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  462. AddPlayerClass(82,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  463. AddPlayerClass(83,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  464. AddPlayerClass(84,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  465. AddPlayerClass(85,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  466. AddPlayerClass(87,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  467. AddPlayerClass(88,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  468. AddPlayerClass(89,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  469. AddPlayerClass(91,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  470. AddPlayerClass(92,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  471. AddPlayerClass(93,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  472. AddPlayerClass(95,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  473. AddPlayerClass(96,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  474. AddPlayerClass(97,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  475. AddPlayerClass(98,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  476. AddPlayerClass(99,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  477. AddPlayerClass(100,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  478. AddPlayerClass(101,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  479. AddPlayerClass(102,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  480. AddPlayerClass(103,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  481. AddPlayerClass(104,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  482. AddPlayerClass(105,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  483. AddPlayerClass(106,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  484. AddPlayerClass(107,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  485. AddPlayerClass(108,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  486. AddPlayerClass(109,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  487. AddPlayerClass(110,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  488. AddPlayerClass(111,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  489. AddPlayerClass(112,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  490. AddPlayerClass(113,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  491. AddPlayerClass(114,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  492. AddPlayerClass(115,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  493. AddPlayerClass(116,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  494. AddPlayerClass(117,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  495. AddPlayerClass(118,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  496. AddPlayerClass(120,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  497. AddPlayerClass(121,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  498. AddPlayerClass(122,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  499. AddPlayerClass(123,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  500. AddPlayerClass(124,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  501. AddPlayerClass(125,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  502. AddPlayerClass(126,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  503. AddPlayerClass(127,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  504. AddPlayerClass(128,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  505. AddPlayerClass(129,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  506. AddPlayerClass(131,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  507. AddPlayerClass(133,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  508. AddPlayerClass(134,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  509. AddPlayerClass(135,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  510. AddPlayerClass(136,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  511. AddPlayerClass(137,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
  512. // LOS SANTOS CARROS
  513. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
  514. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
  515. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
  516. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
  517. // ESPECIAL
  518. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
  519. printf("Total vehicles from files: %d",total_vehicles_from_files);
  520. //Carros /Guerra
  521. Guerra [0] = AddStaticVehicleEx(432,9.8000000,1543.3000500,12.8000000,48.0000000,95,10,15); //Rhino
  522. Guerra [1] = AddStaticVehicleEx(433,134.0000000,1829.8000500,18.2000000,36.0000000,95,10,15); //Barracks
  523. Guerra [2] = AddStaticVehicleEx(601,147.8999900,1864.1999500,17.7000000,0.0000000,245,245,15); //S.W.A.T. Van
  524. Guerra [3] = AddStaticVehicleEx(447,128.3000000,1852.1999500,17.8000000,0.0000000,32,32,15); //Seasparrow
  525. Guerra [4] = AddStaticVehicleEx(447,115.1000000,1853.1999500,17.8000000,0.0000000,32,32,15); //Seasparrow
  526. Guerra [5] = AddStaticVehicleEx(520,119.8000000,1895.9000200,19.4000000,0.0000000,-1,-1,15); //Hydra
  527. Guerra [6] = AddStaticVehicleEx(425,202.2000000,1889.6999500,18.5000000,0.0000000,95,10,15); //Hunter
  528. Guerra [7] = AddStaticVehicleEx(425,226.6000100,1891.0000000,18.5000000,0.0000000,95,10,15); //Hunter
  529. Guerra [8] = AddStaticVehicleEx(432,276.7000100,1955.0999800,17.7000000,272.0000000,95,10,15); //Rhino
  530. Guerra [9] = AddStaticVehicleEx(432,278.7999900,1989.0999800,17.7000000,272.0000000,95,10,15); //Rhino
  531. Guerra [10] = AddStaticVehicleEx(432,277.5000000,2023.6999500,17.7000000,270.0000000,95,10,15); //Rhino
  532. Guerra [11] = AddStaticVehicleEx(470,287.2000100,2044.5000000,17.8000000,216.0000000,95,10,15); //Patriot
  533. Guerra [12] = AddStaticVehicleEx(520,307.8999900,2051.3000500,18.6000000,180.0000000,-1,-1,15); //Hydra
  534. Guerra [13] = AddStaticVehicleEx(520,423.6000100,2503.5000000,17.4000000,96.0000000,-1,-1,15); //Hydra
  535. Guerra [14] = AddStaticVehicleEx(425,364.7000100,2537.6999500,17.5000000,184.0000000,95,10,15); //Hunter
  536. Guerra [15] = AddStaticVehicleEx(447,347.3999900,2540.5000000,16.9000000,188.0000000,32,32,15); //Seasparrow
  537. Guerra [16] = AddStaticVehicleEx(432,391.2000100,2576.8999000,16.5000000,166.0000000,95,10,15); //Rhino
  538. Guerra [17] = AddStaticVehicleEx(433,426.1000100,2530.1001000,17.1000000,144.0000000,95,10,15); //Barracks
  539. Guerra [18] = AddStaticVehicleEx(522,423.0000000,2540.5000000,16.1000000,0.0000000,48,79,15); //NRG-500
  540. Guerra [19] = AddStaticVehicleEx(455,371.0000000,2471.1999500,17.1000000,20.0000000,95,10,15); //Flatbed
  541. Guerra [20] = AddStaticVehicleEx(490,344.3999900,2454.1999500,17.0000000,0.0000000,-1,-1,15); //FBI Rancher
  542. Guerra [21] = AddStaticVehicleEx(476,290.7000100,2541.1001000,18.0000000,182.0000000,245,245,15); //Rustler
  543. Guerra [22] = AddStaticVehicleEx(476,325.3999900,2539.1999500,18.0000000,180.0000000,111,130,15); //Rustler
  544. Guerra [23] = AddStaticVehicleEx(520,425.0000000,2491.8999000,17.4000000,92.0000000,-1,-1,15); //Hydra
  545. Guerra [24] = AddStaticVehicleEx(520,424.5000000,2518.1001000,17.4000000,94.0000000,-1,-1,15); //Hydra
  546. Guerra [25] = AddStaticVehicleEx(470,172.3000000,2529.3999000,16.9000000,210.0000000,95,10,15); //Patriot
  547. Guerra [26] = AddStaticVehicleEx(495,-555.0999800,2618.8000500,54.1000000,308.0000000,68,98,15); //Sandking
  548. Guerra [27] = AddStaticVehicleEx(432,-509.7999900,2554.6999500,53.5000000,306.0000000,95,10,15); //Rhino
  549. Guerra [28] = AddStaticVehicleEx(432,-537.0000000,2569.6999500,53.5000000,272.0000000,95,10,15); //Rhino
  550. Guerra [29] = AddStaticVehicleEx(433,-556.5000000,2569.5000000,54.1000000,270.0000000,95,10,15); //Barracks
  551. Guerra [30] = AddStaticVehicleEx(520,-523.5000000,2593.5000000,54.3000000,264.0000000,-1,-1,15); //Hydra
  552. Guerra [31] = AddStaticVehicleEx(425,-572.2999900,2595.8000500,66.7000000,270.0000000,95,10,15); //Hunter
  553. Guerra [32] = AddStaticVehicleEx(402,-511.5000000,2634.3000500,53.4000000,254.0000000,-1,-1,15); //Buffalo
  554. Guerra [33] = AddStaticVehicleEx(568,-378.5000000,2255.1999500,42.5000000,56.0000000,118,123,15); //Bandito
  555. Guerra [34] = AddStaticVehicleEx(464,-396.7000100,2254.1001000,41.8000000,0.0000000,214,218,15); //RC Baron
  556. Guerra [35] = AddStaticVehicleEx(464,-403.8999900,2263.1001000,41.6000000,346.0000000,214,218,15); //RC Baron
  557. Guerra [36] = AddStaticVehicleEx(432,-371.6000100,2224.6001000,42.6000000,36.0000000,95,10,15); //Rhino
  558. Guerra [37] = AddStaticVehicleEx(520,-388.7999900,2187.8000500,43.3000000,330.0000000,-1,-1,15); //Hydra
  559. Guerra [38] = AddStaticVehicleEx(432,-126.9000000,1680.9000200,20.2000000,320.0000000,95,10,15); //Rhino
  560. Guerra [39] = AddStaticVehicleEx(425,-171.8999900,1675.8000500,16.4000000,8.0000000,95,10,15); //Hunter
  561. Guerra [40] = AddStaticVehicleEx(432,-296.2000100,1751.5000000,42.8000000,334.0000000,95,10,15); //Rhino
  562. //Iala
  563. ammusawn = CreatePickup(350, 2, 2519.4856,-1487.9111,23.9939, -1);
  564. ammutec9 = CreatePickup(372, 2, 2385.7056,-1460.3362,23.5814, -1);
  565. ammupist = CreatePickup(346, 2, 2480.1804,-1364.6267,28.3947, -1);
  566. ammugran = CreatePickup(342, 2, 2756.2166,-1178.9684,68.9759, -1);
  567. ammusnip = CreatePickup(358, 2, 2527.9497,-1678.8857,19.9302, -1);
  568. return 1;
  569. }
  570.  
  571.  
  572.  
  573. public OnGameModeExit()
  574. {
  575. DOF2_Exit();
  576. TextDrawHideForAll(Textdraw0);
  577. TextDrawDestroy(Textdraw0);
  578. TextDrawHideForAll(Data);
  579. TextDrawDestroy(Data);
  580. TextDrawHideForAll(Horas);
  581. TextDrawDestroy(Horas);
  582. TextDrawHideForAll(Textdraw3);
  583. TextDrawDestroy(Textdraw3);
  584. TextDrawHideForAll(Textdraw4);
  585. TextDrawDestroy(Textdraw4);
  586. return 1;
  587. }
  588.  
  589.  
  590.  
  591. public OnPlayerRequestClass(playerid, classid)
  592. {
  593. SetPlayerPos(playerid, -2615.8809,-294.8363,22.6588);
  594. SetPlayerFacingAngle(playerid, 279.8794);
  595. SetPlayerCameraPos(playerid, -2609.3801,-294.4808,22.9776);
  596. SetPlayerCameraLookAt(playerid, -2615.8809,-294.8363,22.6588);
  597. ApplyAnimation ( playerid , "PARK", "Tai_Chi_Loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
  598. return 1;
  599. }
  600.  
  601.  
  602.  
  603. public OnPlayerConnect(playerid)
  604. {
  605. TextDrawShowForPlayer(playerid, Data);
  606. TextDrawShowForPlayer(playerid, Horas);
  607. //AntBug
  608. SetPlayerVirtualWorld ( playerid , 0 ) ;
  609. SetPlayerInterior ( playerid , 0 ) ;
  610. ResetPlayerWeapons ( playerid ) ;
  611. JatemCarroSafado [ playerid ] = 0 ;
  612. //Msgs
  613. SendDeathMessage ( INVALID_PLAYER_ID , playerid , 200 ) ;
  614. format ( string2 , sizeof string2 , "{FFFFFF}%s {BABABA}Entrou no Servidor." , GetNick(playerid));
  615. SendClientMessageToAll( -1 , string2);
  616. //Mensagem ao Player
  617. SendClientMessage(playerid, -1,"||=================================( Bem Vindo )=================================||");
  618. SendClientMessage(playerid, LARANJA,"|| Aqui é seu servidor de death math!");
  619. SendClientMessage(playerid, AZUL_CLARO ,"|| Adicione nosso ip nos favoritos!");
  620. SendClientMessage(playerid, LARANJA,"|| Para obter uma ajuda básica, digite /Ajuda");
  621. SendClientMessage(playerid, AZUL_CLARO ,"|| Bom jogo! ");
  622. SendClientMessage(playerid, -1,"||=================================( Bem Vindo )=================================||");
  623. //Sa
  624. SetPlayerMapIcon(playerid,49,822.6,-1590.3,13.5,7,0,MAPICON_LOCAL);
  625. SetPlayerMapIcon(playerid,50,-2570.1,245.4,10.3,7,0,MAPICON_LOCAL);
  626. SetPlayerMapIcon(playerid,51,2726.6,-2026.4,17.5,7,0,MAPICON_LOCAL);
  627. SetPlayerMapIcon(playerid,52,2080.3,2119.0,10.8,7,0,MAPICON_LOCAL);
  628. SetPlayerMapIcon(playerid,53,675.7,-496.6,16.8,7,0,MAPICON_LOCAL);
  629. SetPlayerMapIcon(playerid,54,-1805.7,943.2,24.8,29,0,MAPICON_LOCAL);
  630. SetPlayerMapIcon(playerid,55,2750.9,2470.9,11.0,29,0,MAPICON_LOCAL);
  631. SetPlayerMapIcon(playerid,56,2351.8,2529.0,10.8,29,0,MAPICON_LOCAL);
  632. SetPlayerMapIcon(playerid,57,2635.5,1847.4,11.0,29,0,MAPICON_LOCAL);
  633. SetPlayerMapIcon(playerid,58,2083.4,2221.0,11.0,29,0,MAPICON_LOCAL);
  634. SetPlayerMapIcon(playerid,59,-1719.1,1359.4,8.6,29,0,MAPICON_LOCAL);
  635. SetPlayerMapIcon(playerid,60,2330.2,75.2,31.0,29,0,MAPICON_LOCAL);
  636. SetPlayerMapIcon(playerid,61,203.2,-200.4,6.5,29,0,MAPICON_LOCAL);
  637. SetPlayerMapIcon(playerid,62,812.9,-1616.1,13.6,10,0,MAPICON_LOCAL);
  638. SetPlayerMapIcon(playerid,63,1199.1,-924.0,43.3,10,0,MAPICON_LOCAL);
  639. SetPlayerMapIcon(playerid,64,2362.2,2069.9,10.8,10,0,MAPICON_LOCAL);
  640. SetPlayerMapIcon(playerid,65,2469.5,2033.8,10.8,10,0,MAPICON_LOCAL);
  641. SetPlayerMapIcon(playerid,66,2172.9,2795.7,10.8,10,0,MAPICON_LOCAL);
  642. SetPlayerMapIcon(playerid,67,1875.3,2072.0,10.8,10,0,MAPICON_LOCAL);
  643. SetPlayerMapIcon(playerid,68,1161.5,2072.0,10.8,10,0,MAPICON_LOCAL);
  644. SetPlayerMapIcon(playerid,69,-2356.0,1009.0,49.0,10,0,MAPICON_LOCAL);
  645. SetPlayerMapIcon(playerid,70,-1913.3,826.2,36.9,10,0,MAPICON_LOCAL);
  646. SetPlayerMapIcon(playerid,71,-2335.6,-165.6,39.5,10,0,MAPICON_LOCAL);
  647. SetPlayerMapIcon(playerid,72,2397.8,-1895.6,13.7,14,0,MAPICON_LOCAL);
  648. SetPlayerMapIcon(playerid,73,2421.6,-1509.6,24.1,14,0,MAPICON_LOCAL);
  649. SetPlayerMapIcon(playerid,74,-2671.6,257.4,4.6,14,0,MAPICON_LOCAL);
  650. SetPlayerMapIcon(playerid,75,2392.4,2046.5,10.8,14,0,MAPICON_LOCAL);
  651. SetPlayerMapIcon(playerid,76,2844.5,2401.1,11.0,14,0,MAPICON_LOCAL);
  652. SetPlayerMapIcon(playerid,77,2635.5,1674.3,11.0,14,0,MAPICON_LOCAL);
  653. SetPlayerMapIcon(playerid,78,2105.7,2228.7,11.0,14,0,MAPICON_LOCAL);
  654. SetPlayerMapIcon(playerid,79,-2154.0,-2461.2,30.8,14,0,MAPICON_LOCAL);
  655. SetPlayerMapIcon(playerid,80,-1816.2,620.8,37.5,14,0,MAPICON_LOCAL);
  656. SetPlayerMapIcon(playerid,81,-1216.0,1831.4,45.3,14,0,MAPICON_LOCAL);
  657. SetPlayerMapIcon(playerid,82,172.73,1176.76,13.7,14,0,MAPICON_LOCAL);
  658. SetPlayerMapIcon(playerid,83,932.0,-1353.0,14.0,14,0,MAPICON_LOCAL);
  659. SetPlayerMapIcon(playerid,84,1971.7,-2036.6,13.5,39,0,MAPICON_LOCAL);
  660. SetPlayerMapIcon(playerid,85,2071.6,-1779.9,13.5,39,0,MAPICON_LOCAL);
  661. SetPlayerMapIcon(playerid,86,2094.6,2119.0,10.8,39,0,MAPICON_LOCAL);
  662. SetPlayerMapIcon(playerid,87,-2490.5,-40.1,39.3,39,0,MAPICON_LOCAL);
  663. SetPlayerMapIcon(playerid,88,1372.9,-1278.8,12.5,6,0,MAPICON_LOCAL);
  664. SetPlayerMapIcon(playerid,89,2400.5,-1978.4,13.5,6,0,MAPICON_LOCAL);
  665. SetPlayerMapIcon(playerid,90,-2626.6,209.4,4.9,6,0,MAPICON_LOCAL);
  666. SetPlayerMapIcon(playerid,91,2535.9,2083.5,10.8,6,0,MAPICON_LOCAL);
  667. SetPlayerMapIcon(playerid,92,2156.5,943.2,10.8,6,0,MAPICON_LOCAL);
  668. SetPlayerMapIcon(playerid,93,779.7,1874.3,4.9,6,0,MAPICON_LOCAL);
  669. SetPlayerMapIcon(playerid,94,-2092.7,-2463.8,30.6,6,0,MAPICON_LOCAL);
  670. SetPlayerMapIcon(playerid,95,240.0,-178.2,2.0,6,0,MAPICON_LOCAL);
  671. SetPlayerMapIcon(playerid,96,-1509.4,2611.8,58.5,6,0,MAPICON_LOCAL);
  672. SetPlayerMapIcon(playerid,97,-315.67,829.87,13.43,6,0,MAPICON_LOCAL);
  673. SetPlayerMapIcon(playerid,98,2332.9,63.6,31.0,6,0,MAPICON_LOCAL);
  674. //Guerra
  675. for(new i; i < sizeof Guerra; ++i)
  676. {
  677. SetVehicleVirtualWorld(Guerra[i], 16);
  678. }
  679. return 1;
  680. }
  681.  
  682. public OnPlayerDisconnect(playerid, reason)
  683. {
  684. switch(reason)
  685. {
  686. case 0: format(string2,sizeof string2,"%s Saiu do servidor. (Conexão)",GetNick(playerid));
  687. case 1: format(string2,sizeof string2,"%s Saiu do servidor. (Correu)",GetNick(playerid));
  688. case 2: format(string2,sizeof string2,"%s Saiu do servidor. (Kick/Ban)",GetNick(playerid));
  689. }
  690. SendClientMessageToAll(0xC1C1C1FF,string2);
  691. SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
  692. if(JatemCarroSafado[playerid] == 1)
  693. {
  694. DestroyVehicle(Vehicle[playerid]);
  695. }
  696. Mortes[playerid] = 0;
  697. JatemCarroSafado[playerid] = 0;
  698. KillTimer(TimerMV[playerid]);
  699. DOF2_Exit();
  700. return 1;
  701. }
  702.  
  703.  
  704.  
  705. public OnPlayerSpawn(playerid)
  706. {
  707. PlayerPlaySound(playerid, 1188, 0, 0, 0);
  708. pX1--;
  709. pX1W--;
  710. SetPlayerInterior ( playerid , 0 ) ;
  711. SetPlayerVirtualWorld(playerid,0);
  712. arena[playerid] = false ;
  713. X1[playerid] = false;
  714. X1W[playerid] = false;
  715. RecentlyShot[playerid] = 0;
  716. ResetPlayerWeapons(playerid);
  717. //Nacendo por ls
  718. new rand = random(sizeof(gRandomSpawns_LosSantos));
  719. SetPlayerPos(playerid, gRandomSpawns_LosSantos[rand][0], gRandomSpawns_LosSantos[rand][1], gRandomSpawns_LosSantos[rand][2]); // Warp the player
  720. SetPlayerFacingAngle(playerid, 270.0);
  721. //Kit de arma basico
  722. KitGuerra(playerid);
  723. //Text
  724. TextDrawShowForPlayer(playerid, Textdraw0);
  725. TextDrawShowForPlayer(playerid, Textdraw5);
  726. TextDrawShowForPlayer(playerid, Textdraw6);
  727. TextDrawShowForPlayer(playerid, Textdraw7);
  728. TextDrawShowForPlayer(playerid, Data);
  729. TextDrawShowForPlayer(playerid, Horas);
  730. TextDrawShowForPlayer(playerid, Textdraw3);
  731. TextDrawShowForPlayer(playerid, Textdraw4);
  732. return 1;
  733. }
  734.  
  735.  
  736.  
  737. public OnPlayerDeath(playerid, killerid, reason)
  738. {
  739. //ChatKill
  740. SendDeathMessage(killerid, playerid, reason);
  741. GivePlayerMoney(killerid, 1000);
  742. //Score
  743. //SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  744. //X1
  745. if (X1W[playerid] == true)
  746. {
  747. format(string2, sizeof(string2), "{F81414}[X1W]{FFFFFF}%s{BABABA}[ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA}[ID:%i]{F81414} pra cova![X1W]", GetNick(killerid),killerid,GetNick(playerid),playerid);
  748. SendClientMessageToAll(-1, string2);
  749. GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
  750. GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
  751. SpawnPlayer(killerid);
  752. SetPlayerVirtualWorld(killerid, 0);
  753. SetPlayerInterior(killerid, 0);
  754. SetPlayerHealth(killerid, 100);
  755. SendClientMessage(killerid, -1, "{BABABA}[X1W]: Parabens você ganhou $3000!");
  756. GivePlayerMoney(killerid, 3000);
  757. X1W[playerid] = false ;
  758. pX1W--;
  759. X1W[killerid]= false;
  760. }
  761. if (X1[playerid] == true)
  762. {
  763. format(string2, sizeof(string2), "{F81414}[X1]{FFFFFF}%s{BABABA}[ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA}[ID:%i]{F81414} pra cova![X1]", GetNick(killerid),killerid,GetNick(playerid),playerid);
  764. SendClientMessageToAll(-1, string2);
  765. GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
  766. GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
  767. SpawnPlayer(killerid);
  768. SetPlayerVirtualWorld(killerid, 0);
  769. SetPlayerInterior(killerid, 0);
  770. SetPlayerHealth(killerid, 100);
  771. SendClientMessage(killerid, -1, "{BABABA}[X1]: Parabens você ganhou $3000!");
  772. GivePlayerMoney(killerid, 3000);
  773. X1[playerid] = false ;
  774. pX1--;
  775. X1[killerid]= false;
  776. }
  777. if (arena[playerid] == true)
  778. {
  779. new string22[140];
  780. format(string22, sizeof(string22), "{F81414}[ARENA]{FFFFFF}%s{BABABA} [ID:%i] {F81414}Mandou {FFFFFF}%s{BABABA} [ID:%i]{F81414} visitar o satanas![ARENA]", GetNick(killerid),killerid,GetNick(playerid),playerid);
  781. SendClientMessageToAll(-1, string22);
  782. GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~QUE VERGONHA MORREU!", 3000, 5);
  783. GameTextForPlayer(killerid, "~g~~n~~n~~n~~n~MUITO BOM!", 3000, 5);
  784. SetPlayerHealth(killerid, 100);
  785. GivePlayerMoney(killerid, 3000);
  786. arena[playerid] = false ;
  787. }
  788. //Anti Bug
  789. SetPlayerVirtualWorld(playerid, 0);
  790. SetPlayerInterior(playerid, 0);
  791. ResetPlayerWeapons(playerid);
  792. Mortes[killerid]++;
  793. Mortes[playerid] = 0;
  794. if (Mortes[killerid] == 2)
  795. {
  796. format(string2, sizeof(string2), "[KILLS]: %s esta querendo virar um(a) assassino(a) ja matou 2 pessoas.!", GetNick(killerid));
  797. SendClientMessageToAll(0xFB0000FF, string2);
  798. SetPlayerWantedLevel(killerid, 1);
  799. }
  800. if (Mortes[killerid] == 5)
  801. {
  802. format(string2, sizeof(string2), "[KILLS]: %s ta tomando gosto pela coisa ja¡ matou 5 sem piedade!", GetNick(killerid));
  803. SendClientMessageToAll(0xFB0000FF, string2);
  804. SetPlayerWantedLevel(killerid, 2);
  805. }
  806. if (Mortes[killerid] == 10)
  807. {
  808. format(string2, sizeof(string2), "[KILLS]: %s ta querendo virar um assassino profissional ja¡ matou 10 negos!", GetNick(killerid));
  809. SendClientMessageToAll(0xFB0000FF, string2);
  810. SetPlayerWantedLevel(killerid, 3);
  811. }
  812. if (Mortes[killerid] == 15)
  813. {
  814. format(string2, sizeof(string2), "[KILLS]: Acho que %s e parente do Chuck Norris ja¡ tirou a vida de 15 infelizes!", GetNick(killerid));
  815. SendClientMessageToAll(0xFB0000FF, string2);
  816. }
  817. if (Mortes[killerid] == 20)
  818. {
  819. format(string2, sizeof(string2), "[KILLS]: %s fez uma chasina em San Andreas ja¡ matou 20 pessoas!", GetNick(killerid));
  820. SendClientMessageToAll(0xFB0000FF, string2);
  821. SetPlayerWantedLevel(killerid, 4);
  822. }
  823. if (Mortes[killerid] == 25)
  824. {
  825. format(string2, sizeof(string2), "[KILLS]: %s nao teve uma boa infancia ja¡ matou 25 sem nenhuma compaixao!", GetNick(killerid));
  826. SendClientMessageToAll(0xFB0000FF, string2);
  827. }
  828. if (Mortes[killerid] == 30)
  829. {
  830. format(string2, sizeof(string2), "[KILLS]: Acho que %s e o Sylvester Stallone disfarçado ja¡ mandou 30 para a cova!", GetNick(killerid));
  831. SendClientMessageToAll(0xFB0000FF, string2);
  832. }
  833. if (Mortes[killerid] == 35)
  834. {
  835. format(string2, sizeof(string2), "[KILLS]: %s ja¡ matou 35, que isso? Ate eu estou com medo dele agora! O.o", GetNick(killerid));
  836. SendClientMessageToAll(0xFB0000FF, string2);
  837. }
  838. if (Mortes[killerid] == 40)
  839. {
  840. format(string2, sizeof(string2), "[KILLS]: %s ja¡ matou 40, puts esse cara e o Demo em pessoa!", GetNick(killerid));
  841. SendClientMessageToAll(0xFB0000FF, string2);
  842. SetPlayerWantedLevel(killerid, 5);
  843. }
  844. if (Mortes[killerid] == 45)
  845. {
  846. format(string2, sizeof(string2), "[KILLS]: %s simplesmente ja¡ mandou 45 para a cova! lol", GetNick(killerid));
  847. SendClientMessageToAll(0xFB0000FF, string2);
  848. }
  849. if (Mortes[killerid] == 50)
  850. {
  851. format(string2, sizeof(string2), "[KILLS]: Eu sei que eu sou um robo e robo´s nao sentem medo, mais fala serio, %s ja¡ matou 50!", GetNick(killerid));
  852. SendClientMessageToAll(0xFB0000FF, string2);
  853. SendClientMessageToAll(0xFB0000FF, "E se ele resolve me da um Curto Circuito? O.o");
  854. SetPlayerWantedLevel(killerid, 6);
  855. }
  856. if (Mortes[killerid] == 55)
  857. {
  858. format(string2, sizeof(string2), "[KILLS]: Caramba %s ja¡ matou 55 players, so pode esta possuido mesmo!", GetNick(killerid));
  859. SendClientMessageToAll(0xFB0000FF, string2);
  860. }
  861. if (Mortes[killerid] == 60)
  862. {
  863. format(string2, sizeof(string2), "[KILLS]: Meu Deus!!! Matar deve ser a maior diversao do %s o cara ja¡ matou 60 alguem para ele por favor!", GetNick(killerid));
  864. SendClientMessageToAll(0xFB0000FF, string2);
  865. }
  866. if (Mortes[killerid] == 65)
  867. {
  868. format(string2, sizeof(string2), "[KILLS]: Alguem tem papel ai? Acabei de me borrar todo de medo! %s ja¡ matou 65! To todo cagado! O.o", GetNick(killerid));
  869. SendClientMessageToAll(0xFB0000FF, string2);
  870. }
  871. if (Mortes[killerid] == 70)
  872. {
  873. format(string2, sizeof(string2), "[KILLS]: %s e um pissicopata ja¡ tirou a vida de 70 pessoas! Alguem mata ele por favor!", GetNick(killerid));
  874. SendClientMessageToAll(0xFB0000FF, string2);
  875. }
  876. if (Mortes[killerid] == 75)
  877. {
  878. format(string2, sizeof(string2), "[KILLS]: Poha 75 ja¡ e de mais! Para um poco de matar %s ... Voce ja¡ passou dos limites!", GetNick(killerid));
  879. SendClientMessageToAll(0xFB0000FF, string2);
  880. }
  881. if (Mortes[killerid] == 80)
  882. {
  883. format(string2, sizeof(string2), "[KILLS]: %s paraaaaaa! Vou ter que chamar o Militares e a Swat para tentar te matar seu infeliz!", GetNick(killerid));
  884. SendClientMessageToAll(0xFB0000FF, string2);
  885. SendClientMessage(killerid, 0xFB0000FF, "Tu ja¡ matou 80 players!");
  886. }
  887. if (Mortes[killerid] == 85)
  888. {
  889. format(string2, sizeof(string2), "[KILLS]: Todos que estao usando o skin do Militares ou da Swat peguem o %s esse FDP ja¡ matou 85!!! _|_", GetNick(killerid));
  890. SendClientMessageToAll(0xFB0000FF, string2);
  891. }
  892. if (Mortes[killerid] == 90)
  893. {
  894. format(string2, sizeof(string2), "[KILLS]: Puta que pariu! %s ja¡ matou 90 vai matar assim na Puta que te pariu! =X", GetNick(killerid));
  895. SendClientMessageToAll(0xFB0000FF, string2);
  896. SendClientMessageToAll(0xFB0000FF, "(Robo´s tambem se estressam.)");
  897. }
  898. if (Mortes[killerid] == 95)
  899. {
  900. format(string2, sizeof(string2), "[KILLS]: Ninguem para esse cara ae??? ahh.. %s ja¡ matou simplesmente 95 players! O.o", GetNick(killerid));
  901. SendClientMessageToAll(0xFB0000FF, string2);
  902. }
  903. if (Mortes[killerid] == 100)
  904. {
  905. format(string2, sizeof(string2), "[KILLS]: %s voce passou dos limites! Tu ja¡ matou 100 pessoas cara! Me aposento...", GetNick(killerid));
  906. SendClientMessageToAll(0xFB0000FF, string2);
  907. SendClientMessageToAll(0xFB0000FF, " Apartir de agora nao anuncio mais suas vitimas.");
  908. }
  909. if (Mortes[killerid] == 1000)
  910. {
  911. format(string2, sizeof(string2), "[KILLS]: Para tudo!!! Agora eu vou anunciar que %s matou simplesmente Mil pessoas! Ele bateu o Record!!!", GetNick(killerid));
  912. SendClientMessageToAll(0xFB0000FF, string2);
  913. SendClientMessageToAll(0xFB0000FF, "NAO é falha no sistema... Ele matou Mil mesmo! Nao e 100 nem 200! sao Mil!!! Todos pra cima dele! Goo Goo!!!");
  914. }
  915. if (IsPlayerSpawned(killerid))
  916. {
  917. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~r~MORTO!", 2000, 3);
  918. new Float: X,Float: Y,Float: Z,Float: X2,Float: Y2;
  919. PosicaoFrentePlayer(playerid, X2, Y2, -4);
  920. GetPlayerPos(playerid, X, Y, Z);
  921. SetPlayerCameraPos(playerid, X2, Y2, Z + 3);
  922. SetPlayerCameraLookAt(playerid, X, Y, Z);
  923. }
  924. return 1;
  925. }
  926.  
  927. public OnPlayerText(playerid, text[])
  928. {
  929. new string[129+5];
  930. format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
  931. SendPlayerMessageToAll(playerid,string);
  932. return 0;
  933. }
  934.  
  935. public OnPlayerStateChange(playerid, newstate, oldstate)
  936. {
  937. if ( newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER )
  938. {
  939. format ( string2 , sizeof ( string2 ) , "~n~~n~~n~~n~~n~~n~~n~~n~~n~~p~[]~w~ %s ~p~[]", aVehicleNames [ GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) -400 ] ) ;
  940. GameTextForPlayer ( playerid , string2 , 2000 , 3 ) ;
  941. }
  942. return 1;
  943. }
  944.  
  945. public OnPlayerPickUpPickup(playerid, pickupid)
  946. {
  947. if(pickupid == ammusawn) GivePlayerWeapon(playerid, 26, 100);
  948. if(pickupid == ammutec9) GivePlayerWeapon(playerid, 32, 100);
  949. if(pickupid == ammupist) GivePlayerWeapon(playerid, 22, 100);
  950. if(pickupid == ammugran) GivePlayerWeapon(playerid, 16, 5);
  951. if(pickupid == ammusnip) GivePlayerWeapon(playerid, 34, 100);
  952. return 1;
  953. }
  954.  
  955. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  956. {
  957. if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
  958. {
  959. if(RecentlyShot[playerid] == 0)
  960. {
  961. RecentlyShot[playerid] = 1;
  962. SetTimerEx("AntiSpam", 1000, false, "d", playerid);
  963. if(GetPlayerWeapon(playerid) == 34)
  964. {
  965. new Float:blahx, Float:blahy, Float:blahz;
  966. HeadshotCheck(playerid, blahx, blahy, blahz);
  967. return 1;
  968. }
  969. return 1;
  970. }
  971. return 1;
  972. }
  973. return 1;
  974. }
  975.  
  976. public AntiSpam(playerid)
  977. {
  978. RecentlyShot[playerid] = 0;
  979. return 1;
  980. }
  981.  
  982. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  983. {
  984. if (dialogid == Vehicle_Dialog2)
  985. {
  986. if (response)
  987. {
  988. if (listitem == 0)
  989. {
  990. ShowPlayerDialog(playerid, Bicycles2, 2, "Bicicletas", "Bike\nBMX\nMountain bike", "Selecionar", "Cancelar");
  991. }
  992. if (listitem == 1)
  993. {
  994. ShowPlayerDialog(playerid, Bikes2, 2, "Motos", "NRG-500\nFaggio\nFCR-900\nPCJ-600\nFreeway\nBF-400\nPizzaboy\nWayfarer\nCop Bike\nSanchez\nQuad", "Selecionar", "Cancelar");
  995. }
  996. if (listitem == 2)
  997. {
  998. ShowPlayerDialog(playerid, Monsters2, 2, "Monsters", "Dumper\nDuneride\nMonster\nMonster A\nMonster B", "Selecionar", "Cancelar");
  999. }
  1000. if (listitem == 3)
  1001. {
  1002. ShowPlayerDialog(playerid, Boats2, 2, "Barcos", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSqualo\nTropic", "Selecionar", "Cancelar");
  1003. }
  1004. if (listitem == 4)
  1005. {
  1006. ShowPlayerDialog(playerid, Helis2, 2, "Helis", "Cargobob\nHunter\nLeviathan\nMaverick\nPolice Maverick\nRaindance\nSeasparrow\nSparrow\nSAN News Maverick", "Selecionar", "Cancelar");
  1007. }
  1008. if (listitem == 5)
  1009. {
  1010. ShowPlayerDialog(playerid, Planes122, 2, "Avioes", "Hydra\nRustler\nDodo\nNevada\nStuntPlane\nCropduster\nAt-400\nAndromada\nBeagle\nVortex\nSkimmer\nShamal", "Selecionar", "Cancelar");
  1011. }
  1012. if (listitem == 6)
  1013. {
  1014. ShowPlayerDialog(playerid, Cars2, 2, "Carros", "Lowriders\nStreet racers\nCarros Forte\nSuvs & Wagons\nCarros Sport\nRecreacao\nCivil Servant\nGoverno\n4 porta luxo\n2 Porta Sedans\nTrucks Pesados\nLight trucks", "Selecionar", "Cancel");
  1015. }
  1016. if (listitem == 7)
  1017. {
  1018. ShowPlayerDialog(playerid, RC2, 2, "RC Veiculos", "RC Goblin(interzis)\nRC Raider\nRC Barron\nRC Bandit\nRC Cam\nRC Tiger", "Selecionar", "Cancelar");
  1019. }
  1020. }
  1021. return 1;
  1022. }
  1023. if (dialogid == Cars2)
  1024. {
  1025. if (response)
  1026. {
  1027. if (listitem == 0)
  1028. {
  1029. ShowPlayerDialog(playerid, Lowriders2, 2, "Lowriders", "Blade\nBroadway\nRemmington\nSavanna\nSlamvan\nTornado\nVoodoo", "Selecionar", "Cancelar");
  1030. }
  1031. if (listitem == 1)
  1032. {
  1033. ShowPlayerDialog(playerid, Streets2, 2, "Street racers", "Elegy\nFlash\nJester\nStratum\nSultan\nUranus", "Selecionar", "Cancelar");
  1034. }
  1035. if (listitem == 2)
  1036. {
  1037. ShowPlayerDialog(playerid, Muscles2, 2, "Muscle carros", "Buffalo\nClover\nPhoenix\nSabre", "Selecionar", "Cancelar");
  1038. }
  1039. if (listitem == 3)
  1040. {
  1041. ShowPlayerDialog(playerid, SuvWagon2, 2, "Suvs e Wagons", "Huntley\nLandstalker\nPerennial\nRancher\nRegina\nRomero\nSolair", "Selecionar", "Cancelar");
  1042. }
  1043. if (listitem == 4)
  1044. {
  1045. ShowPlayerDialog(playerid, Sports2, 2, "Carros Sport", "Banshee\nBullet\nCheetah\nComet\nHotknife\nHotring racer\nInfernus\nSuper GT\nTurismo\nWindsor\nZR-350", "Selecionar", "Cancelar");
  1046. }
  1047. if (listitem == 5)
  1048. {
  1049. ShowPlayerDialog(playerid, ReCreated2, 2, "Recreacao", "Bandito\nBF Injection\nBloodring banger\nCaddy\nCamper\nJourney\nKart\nMesa\nSandking\nVortex", "Selecionar", "Cancelar");
  1050. }
  1051. if (listitem == 6)
  1052. {
  1053. ShowPlayerDialog(playerid, CivilServ2, 2, "Funcionario", "Baggage\nBus\nCabbie\nCoach\nSweeper\nTaxi\nTowtruck\nTrashmaster\nUtility van", "Selecionar", "Cancelar");
  1054. }
  1055. if (listitem == 7)
  1056. {
  1057. ShowPlayerDialog(playerid, Govern2, 2, "Governo", "Ambulance\nBarracks\nEnforcer\nFBI Rancher\nFBI Truck\nFiretruck\nPatriot\nPolice Car SF\nRanger\nSecuricar\nS.W.A.T", "Selecionar", "Cancelar");
  1058. }
  1059. if (listitem == 8)
  1060. {
  1061. ShowPlayerDialog(playerid, Luxury42, 2, "Luxo4", "Admiral\nElegant\nEmperor\nEuros\nGlendale\nGreenwood\nIntruder\nMerit\nNebula\nOceanic\nProximo", "Selecionar", "Cancelar");
  1062. }
  1063. if (listitem == 9)
  1064. {
  1065. ShowPlayerDialog(playerid, TwoDoor2, 2, "TwoDoor", "Alpha\nBlista Compact\nBravura\nBuccaneer\nCadrona\nClub\nEsperanto\nFeltzer\nFortune\nProximo", "Selecionar", "Cancelar");
  1066. }
  1067. if (listitem == 10)
  1068. {
  1069. ShowPlayerDialog(playerid, Heavy2, 2, "Pesado", "Benson\nBoxville\nCement truck\nCombine Harvester\nDFT-30\nDozer\nFlatbed\nHotdog\nProximo", "Selecionar", "Cancelar");
  1070. }
  1071. if (listitem == 11)
  1072. {
  1073. ShowPlayerDialog(playerid, Light2, 2, "Basico", "Berkley's RC van\nBobcat\nBurrito\nForklift\nMoonbeam\nMower\nNewsvan\nProximo", "Selecionar", "Cancelar");
  1074. }
  1075. }
  1076. return 1;
  1077. }
  1078. if (dialogid == Bicycles2)
  1079. {
  1080. if (response)
  1081. {
  1082. if (listitem == 0)
  1083. {
  1084. CriarVeiculo(playerid, 509);
  1085. }
  1086. if (listitem == 1)
  1087. {
  1088. CriarVeiculo(playerid, 481);
  1089. }
  1090. if (listitem == 2)
  1091. {
  1092. CriarVeiculo(playerid, 510);
  1093. }
  1094. }
  1095. return 1;
  1096. }
  1097. if (dialogid == Bikes2)
  1098. {
  1099. if (response)
  1100. {
  1101. if (listitem == 0)
  1102. {
  1103. CriarVeiculo(playerid, 522);
  1104. }
  1105. if (listitem == 1)
  1106. {
  1107. CriarVeiculo(playerid, 462);
  1108. }
  1109. if (listitem == 2)
  1110. {
  1111. CriarVeiculo(playerid, 521);
  1112. }
  1113. if (listitem == 3)
  1114. {
  1115. CriarVeiculo(playerid, 461);
  1116. }
  1117. if (listitem == 4)
  1118. {
  1119. CriarVeiculo(playerid, 463);
  1120. }
  1121. if (listitem == 5)
  1122. {
  1123. CriarVeiculo(playerid, 581);
  1124. }
  1125. if (listitem == 6)
  1126. {
  1127. CriarVeiculo(playerid, 448);
  1128. }
  1129. if (listitem == 7)
  1130. {
  1131. CriarVeiculo(playerid, 586);
  1132. }
  1133. if (listitem == 8)
  1134. {
  1135. CriarVeiculo(playerid, 523);
  1136. }
  1137. if (listitem == 9)
  1138. {
  1139. CriarVeiculo(playerid, 468);
  1140. }
  1141. if (listitem == 10)
  1142. {
  1143. CriarVeiculo(playerid, 471);
  1144. }
  1145. }
  1146. return 1;
  1147. }
  1148. if (dialogid == Monsters2)
  1149. {
  1150. if (response)
  1151. {
  1152. if (listitem == 0)
  1153. {
  1154. CriarVeiculo(playerid, 406);
  1155. }
  1156. if (listitem == 1)
  1157. {
  1158. CriarVeiculo(playerid, 573);
  1159. }
  1160. if (listitem == 2)
  1161. {
  1162. CriarVeiculo(playerid, 444);
  1163. }
  1164. if (listitem == 3)
  1165. {
  1166. CriarVeiculo(playerid, 556);
  1167. }
  1168. if (listitem == 4)
  1169. {
  1170. CriarVeiculo(playerid, 557);
  1171. }
  1172. }
  1173. return 1;
  1174. }
  1175. if (dialogid == Boats2)
  1176. {
  1177. if (response)
  1178. {
  1179. if (listitem == 0)
  1180. {
  1181. CriarVeiculo(playerid, 472);
  1182. }
  1183. if (listitem == 1)
  1184. {
  1185. CriarVeiculo(playerid, 473);
  1186. }
  1187. if (listitem == 2)
  1188. {
  1189. CriarVeiculo(playerid, 493);
  1190. }
  1191. if (listitem == 3)
  1192. {
  1193. CriarVeiculo(playerid, 595);
  1194. }
  1195. if (listitem == 4)
  1196. {
  1197. CriarVeiculo(playerid, 484);
  1198. }
  1199. if (listitem == 5)
  1200. {
  1201. CriarVeiculo(playerid, 430);
  1202. }
  1203. if (listitem == 6)
  1204. {
  1205. CriarVeiculo(playerid, 453);
  1206. }
  1207. if (listitem == 7)
  1208. {
  1209. CriarVeiculo(playerid, 452);
  1210. }
  1211. if (listitem == 8)
  1212. {
  1213. CriarVeiculo(playerid, 446);
  1214. }
  1215. if (listitem == 9)
  1216. {
  1217. CriarVeiculo(playerid, 454);
  1218. }
  1219. }
  1220. return 1;
  1221. }
  1222. if (dialogid == Helis2)
  1223. {
  1224. if (response)
  1225. {
  1226. if (listitem == 0)
  1227. {
  1228. CriarVeiculo(playerid, 548);//Limpo
  1229. }
  1230. if (listitem == 1)
  1231. {
  1232. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1233. //CriarVeiculo(playerid, 425);
  1234. }
  1235. if (listitem == 2)
  1236. {
  1237. CriarVeiculo(playerid, 417);//Limpo
  1238. }
  1239. if (listitem == 3)
  1240. {
  1241. CriarVeiculo(playerid, 487);//Limpo
  1242. }
  1243. if (listitem == 4)
  1244. {
  1245. CriarVeiculo(playerid, 497);//Limpo
  1246. }
  1247. if (listitem == 5)
  1248. {
  1249. CriarVeiculo(playerid, 563);//Limpo
  1250. }
  1251. if (listitem == 6)
  1252. {
  1253. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1254. //CriarVeiculo(playerid, 447);
  1255. }
  1256. if (listitem == 7)
  1257. {
  1258. CriarVeiculo(playerid, 469);//Limpo
  1259. }
  1260. if (listitem == 8)
  1261. {
  1262. CriarVeiculo(playerid, 488);//Limpo
  1263. }
  1264. }
  1265. return 1;
  1266. }
  1267. if (dialogid == Planes122)
  1268. {
  1269. if (response)
  1270. {
  1271. if (listitem == 0)
  1272. {
  1273. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1274. //CriarVeiculo(playerid, 520);
  1275. }
  1276. if (listitem == 1)
  1277. {
  1278.  
  1279. CriarVeiculo(playerid, 476);//Limpo
  1280. }
  1281. if (listitem == 2)
  1282. {
  1283. CriarVeiculo(playerid, 593);//Limpo
  1284. }
  1285. if (listitem == 3)
  1286. {
  1287. CriarVeiculo(playerid, 553);//Limpo
  1288. }
  1289. if (listitem == 4)
  1290. {
  1291. CriarVeiculo(playerid, 513);//Limpo
  1292. }
  1293. if (listitem == 5)
  1294. {
  1295. CriarVeiculo(playerid, 512);//Ok
  1296. }
  1297. if (listitem == 6)
  1298. {
  1299. CriarVeiculo(playerid, 577);//Ok
  1300. }
  1301. if (listitem == 7)
  1302. {
  1303. CriarVeiculo(playerid, 592);//Ok
  1304. }
  1305. if (listitem == 8)
  1306. {
  1307. CriarVeiculo(playerid, 511);//Ok
  1308. }
  1309. if (listitem == 9)
  1310. {
  1311. CriarVeiculo(playerid, 539);//Ok
  1312. }
  1313. if (listitem == 10)
  1314. {
  1315. CriarVeiculo(playerid, 460);//Ok
  1316. }
  1317. if (listitem == 11)
  1318. {
  1319. CriarVeiculo(playerid, 519);//Ok
  1320. }
  1321. }
  1322. return 1;
  1323. }
  1324. if (dialogid == Lowriders2)
  1325. {
  1326. if (response)
  1327. {
  1328. if (listitem == 0)
  1329. {
  1330. CriarVeiculo(playerid, 536);
  1331. }
  1332. if (listitem == 1)
  1333. {
  1334. CriarVeiculo(playerid, 575);
  1335. }
  1336. if (listitem == 2)
  1337. {
  1338. CriarVeiculo(playerid, 534);
  1339. }
  1340. if (listitem == 3)
  1341. {
  1342. CriarVeiculo(playerid, 567);
  1343. }
  1344. if (listitem == 4)
  1345. {
  1346. CriarVeiculo(playerid, 535);
  1347. }
  1348. if (listitem == 5)
  1349. {
  1350. CriarVeiculo(playerid, 576);
  1351. }
  1352. if (listitem == 6)
  1353. {
  1354. CriarVeiculo(playerid, 412);
  1355. }
  1356. }
  1357. return 1;
  1358. }
  1359. if (dialogid == Streets2)
  1360. {
  1361. if (response)
  1362. {
  1363. if (listitem == 0)
  1364. {
  1365. CriarVeiculo(playerid, 562);
  1366. }
  1367. if (listitem == 1)
  1368. {
  1369. CriarVeiculo(playerid, 565);
  1370. }
  1371. if (listitem == 2)
  1372. {
  1373. CriarVeiculo(playerid, 559);
  1374. }
  1375. if (listitem == 3)
  1376. {
  1377. CriarVeiculo(playerid, 561);
  1378. }
  1379. if (listitem == 4)
  1380. {
  1381. CriarVeiculo(playerid, 560);
  1382. }
  1383. if (listitem == 5)
  1384. {
  1385. CriarVeiculo(playerid, 558);
  1386. }
  1387. }
  1388. return 1;
  1389. }
  1390. if (dialogid == Muscles2)
  1391. {
  1392. if (response)
  1393. {
  1394. if (listitem == 0)
  1395. {
  1396. CriarVeiculo(playerid, 402);
  1397. }
  1398. if (listitem == 1)
  1399. {
  1400. CriarVeiculo(playerid, 542);
  1401. }
  1402. if (listitem == 2)
  1403. {
  1404. CriarVeiculo(playerid, 603);
  1405. }
  1406. if (listitem == 3)
  1407. {
  1408. CriarVeiculo(playerid, 475);
  1409. }
  1410. }
  1411. return 1;
  1412. }
  1413. if (dialogid == SuvWagon2)
  1414. {
  1415. if (response)
  1416. {
  1417. if (listitem == 0)
  1418. {
  1419. CriarVeiculo(playerid, 579);
  1420. }
  1421. if (listitem == 1)
  1422. {
  1423. CriarVeiculo(playerid, 400);
  1424. }
  1425. if (listitem == 2)
  1426. {
  1427. CriarVeiculo(playerid, 404);
  1428. }
  1429. if (listitem == 3)
  1430. {
  1431. CriarVeiculo(playerid, 489);
  1432. }
  1433. if (listitem == 4)
  1434. {
  1435. CriarVeiculo(playerid, 479);
  1436. }
  1437. if (listitem == 5)
  1438. {
  1439. CriarVeiculo(playerid, 442);
  1440. }
  1441. if (listitem == 6)
  1442. {
  1443. CriarVeiculo(playerid, 458);
  1444. }
  1445. }
  1446. return 1;
  1447. }
  1448. if (dialogid == Sports2)
  1449. {
  1450. if (response)
  1451. {
  1452. if (listitem == 0)
  1453. {
  1454. CriarVeiculo(playerid, 429);
  1455. }
  1456. if (listitem == 1)
  1457. {
  1458. CriarVeiculo(playerid, 541);
  1459. }
  1460. if (listitem == 2)
  1461. {
  1462. CriarVeiculo(playerid, 415);
  1463. }
  1464. if (listitem == 3)
  1465. {
  1466. CriarVeiculo(playerid, 480);
  1467. }
  1468. if (listitem == 4)
  1469. {
  1470. CriarVeiculo(playerid, 434);
  1471. }
  1472. if (listitem == 5)
  1473. {
  1474. CriarVeiculo(playerid, 494);
  1475. }
  1476. if (listitem == 6)
  1477. {
  1478. CriarVeiculo(playerid, 411);
  1479. }
  1480. if (listitem == 7)
  1481. {
  1482. CriarVeiculo(playerid, 506);
  1483. }
  1484. if (listitem == 8)
  1485. {
  1486. CriarVeiculo(playerid, 451);
  1487. }
  1488. if (listitem == 9)
  1489. {
  1490. CriarVeiculo(playerid, 555);
  1491. }
  1492. if (listitem == 10)
  1493. {
  1494. CriarVeiculo(playerid, 477);
  1495. }
  1496. }
  1497. return 1;
  1498. }
  1499. if (dialogid == ReCreated2)
  1500. {
  1501. if (response)
  1502. {
  1503. if (listitem == 0)
  1504. {
  1505. CriarVeiculo(playerid, 568);
  1506. }
  1507. if (listitem == 1)
  1508. {
  1509. CriarVeiculo(playerid, 424);
  1510. }
  1511. if (listitem == 2)
  1512. {
  1513. CriarVeiculo(playerid, 504);
  1514. }
  1515. if (listitem == 3)
  1516. {
  1517. CriarVeiculo(playerid, 457);
  1518. }
  1519. if (listitem == 4)
  1520. {
  1521. CriarVeiculo(playerid, 483);
  1522. }
  1523. if (listitem == 5)
  1524. {
  1525. CriarVeiculo(playerid, 508);
  1526. }
  1527. if (listitem == 6)
  1528. {
  1529. CriarVeiculo(playerid, 571);
  1530. }
  1531. if (listitem == 7)
  1532. {
  1533. CriarVeiculo(playerid, 500);
  1534. }
  1535. if (listitem == 8)
  1536. {
  1537. CriarVeiculo(playerid, 495);
  1538. }
  1539. if (listitem == 9)
  1540. {
  1541. CriarVeiculo(playerid, 539);
  1542. }
  1543. }
  1544. return 1;
  1545. }
  1546. if (dialogid == CivilServ2)
  1547. {
  1548. if (response)
  1549. {
  1550. if (listitem == 0)
  1551. {
  1552. CriarVeiculo(playerid, 485);
  1553. }
  1554. if (listitem == 1)
  1555. {
  1556. CriarVeiculo(playerid, 431);
  1557. }
  1558. if (listitem == 2)
  1559. {
  1560. CriarVeiculo(playerid, 438);
  1561. }
  1562. if (listitem == 3)
  1563. {
  1564. CriarVeiculo(playerid, 437);
  1565. }
  1566. if (listitem == 4)
  1567. {
  1568. CriarVeiculo(playerid, 574);
  1569. }
  1570. if (listitem == 5)
  1571. {
  1572. CriarVeiculo(playerid, 420);
  1573. }
  1574. if (listitem == 6)
  1575. {
  1576. CriarVeiculo(playerid, 525);
  1577. }
  1578. if (listitem == 7)
  1579. {
  1580. CriarVeiculo(playerid, 408);
  1581. }
  1582. if (listitem == 8)
  1583. {
  1584. CriarVeiculo(playerid, 552);
  1585. }
  1586. }
  1587. return 1;
  1588. }
  1589. if (dialogid == Govern2)
  1590. {
  1591. if (response)
  1592. {
  1593. if (listitem == 0)
  1594. {
  1595. CriarVeiculo(playerid, 416);
  1596. }
  1597. if (listitem == 1)
  1598. {
  1599. CriarVeiculo(playerid, 433);
  1600. }
  1601. if (listitem == 2)
  1602. {
  1603. CriarVeiculo(playerid, 427);
  1604. }
  1605. if (listitem == 3)
  1606. {
  1607. CriarVeiculo(playerid, 490);
  1608. }
  1609. if (listitem == 4)
  1610. {
  1611. CriarVeiculo(playerid, 528);
  1612. }
  1613. if (listitem == 5)
  1614. {
  1615. CriarVeiculo(playerid, 407);
  1616. }
  1617. if (listitem == 6)
  1618. {
  1619. CriarVeiculo(playerid, 570);
  1620. }
  1621. if (listitem == 7)
  1622. {
  1623. CriarVeiculo(playerid, 597);
  1624. }
  1625. if (listitem == 8)
  1626. {
  1627. CriarVeiculo(playerid, 599);
  1628. }
  1629. if (listitem == 9)
  1630. {
  1631. CriarVeiculo(playerid, 428);
  1632. }
  1633. if (listitem == 10)
  1634. {
  1635. CriarVeiculo(playerid, 601);
  1636. }
  1637. }
  1638. return 1;
  1639. }
  1640. if (dialogid == RC2)
  1641. {
  1642. if (response)
  1643. {
  1644. if (listitem == 0)
  1645. {
  1646. SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
  1647. //CriarVeiculo(playerid, 501);
  1648. }
  1649. if (listitem == 1)
  1650. {
  1651. SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
  1652. //CriarVeiculo(playerid, 465);
  1653. }
  1654. if (listitem == 2)
  1655. {
  1656. SendClientMessage( playerid, -1, "Este veículo esta indisponível no momento!");
  1657. //CriarVeiculo(playerid, 464);
  1658. }
  1659. if (listitem == 3)
  1660. {
  1661. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1662. //CriarVeiculo(playerid, 441);
  1663. }
  1664. if (listitem == 4)
  1665. {
  1666. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1667. //CriarVeiculo(playerid, 594);
  1668. }
  1669. if (listitem == 5)
  1670. {
  1671. SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  1672. //CriarVeiculo(playerid, 564);
  1673. }
  1674. }
  1675. return 1;
  1676. }
  1677. if (dialogid == Luxury42)
  1678. {
  1679. if (response)
  1680. {
  1681. if (listitem == 0)
  1682. {
  1683. CriarVeiculo(playerid, 445);
  1684. }
  1685. if (listitem == 1)
  1686. {
  1687. CriarVeiculo(playerid, 507);
  1688. }
  1689. if (listitem == 2)
  1690. {
  1691. CriarVeiculo(playerid, 585);
  1692. }
  1693. if (listitem == 3)
  1694. {
  1695. CriarVeiculo(playerid, 587);
  1696. }
  1697. if (listitem == 4)
  1698. {
  1699. CriarVeiculo(playerid, 466);
  1700. }
  1701. if (listitem == 5)
  1702. {
  1703. CriarVeiculo(playerid, 492);
  1704. }
  1705. if (listitem == 6)
  1706. {
  1707. CriarVeiculo(playerid, 546);
  1708. }
  1709. if (listitem == 7)
  1710. {
  1711. CriarVeiculo(playerid, 551);
  1712. }
  1713. if (listitem == 8)
  1714. {
  1715. CriarVeiculo(playerid, 516);
  1716. }
  1717. if (listitem == 9)
  1718. {
  1719. CriarVeiculo(playerid, 467);
  1720. }
  1721. if (listitem == 10)
  1722. {
  1723. ShowPlayerDialog(playerid, Luxury4_22, 2, "Luxo4_2", "Premier\nPrimo\nSentinel\nStretch\nSunrise\nTahoma\nVincent\nWashington\nWillard\nVoltar", "Selecionar", "Cancelar");
  1724. }
  1725. }
  1726. return 1;
  1727. }
  1728. if (dialogid == Luxury4_22)
  1729. {
  1730. if (response)
  1731. {
  1732. if (listitem == 0)
  1733. {
  1734. CriarVeiculo(playerid, 426);
  1735. }
  1736. if (listitem == 1)
  1737. {
  1738. CriarVeiculo(playerid, 547);
  1739. }
  1740. if (listitem == 2)
  1741. {
  1742. CriarVeiculo(playerid, 405);
  1743. }
  1744. if (listitem == 3)
  1745. {
  1746. CriarVeiculo(playerid, 409);
  1747. }
  1748. if (listitem == 4)
  1749. {
  1750. CriarVeiculo(playerid, 550);
  1751. }
  1752. if (listitem == 5)
  1753. {
  1754. CriarVeiculo(playerid, 566);
  1755. }
  1756. if (listitem == 6)
  1757. {
  1758. CriarVeiculo(playerid, 540);
  1759. }
  1760. if (listitem == 7)
  1761. {
  1762. CriarVeiculo(playerid, 421);
  1763. }
  1764. if (listitem == 8)
  1765. {
  1766. CriarVeiculo(playerid, 529);
  1767. }
  1768. if (listitem == 9)
  1769. {
  1770. ShowPlayerDialog(playerid, Luxury42, 2, "Luxo4", "Admiral\nElegant\nEmperor\nEuros\nGlendale\nGreenwood\nIntruder\nMerit\nNebula\nOceanic\nProximo", "Selecionar", "Cancelar");
  1771. }
  1772. }
  1773. return 1;
  1774. }
  1775. if (dialogid == TwoDoor2)
  1776. {
  1777. if (response)
  1778. {
  1779. if (listitem == 0)
  1780. {
  1781. CriarVeiculo(playerid, 602);
  1782. }
  1783. if (listitem == 1)
  1784. {
  1785. CriarVeiculo(playerid, 496);
  1786. }
  1787. if (listitem == 2)
  1788. {
  1789. CriarVeiculo(playerid, 401);
  1790. }
  1791. if (listitem == 3)
  1792. {
  1793. CriarVeiculo(playerid, 518);
  1794. }
  1795. if (listitem == 4)
  1796. {
  1797. CriarVeiculo(playerid, 527);
  1798. }
  1799. if (listitem == 5)
  1800. {
  1801. CriarVeiculo(playerid, 589);
  1802. }
  1803. if (listitem == 6)
  1804. {
  1805. CriarVeiculo(playerid, 419);
  1806. }
  1807. if (listitem == 7)
  1808. {
  1809. CriarVeiculo(playerid, 533);
  1810. }
  1811. if (listitem == 8)
  1812. {
  1813. CriarVeiculo(playerid, 526);
  1814. }
  1815. if (listitem == 9)
  1816. {
  1817. ShowPlayerDialog(playerid, TwoDoor2, 2, "TwoDoor2", "Hermes\nHustler\nMajestic\nManana\nPicador\nPrevion\nStafford\nStallion\nTampa\nVirgo\nVoltar", "Selecionar", "Cancelar");
  1818. }
  1819. }
  1820. return 1;
  1821. }
  1822. if (dialogid == TwoDoor22)
  1823. {
  1824. if (response)
  1825. {
  1826. if (listitem == 0)
  1827. {
  1828. CriarVeiculo(playerid, 474);
  1829. }
  1830. if (listitem == 1)
  1831. {
  1832. CriarVeiculo(playerid, 545);
  1833. }
  1834. if (listitem == 2)
  1835. {
  1836. CriarVeiculo(playerid, 517);
  1837. }
  1838. if (listitem == 3)
  1839. {
  1840. CriarVeiculo(playerid, 410);
  1841. }
  1842. if (listitem == 4)
  1843. {
  1844. CriarVeiculo(playerid, 600);
  1845. }
  1846. if (listitem == 5)
  1847. {
  1848. CriarVeiculo(playerid, 436);
  1849. }
  1850. if (listitem == 6)
  1851. {
  1852. CriarVeiculo(playerid, 580);
  1853. }
  1854. if (listitem == 7)
  1855. {
  1856. CriarVeiculo(playerid, 439);
  1857. }
  1858. if (listitem == 8)
  1859. {
  1860. CriarVeiculo(playerid, 549);
  1861. }
  1862. if (listitem == 9)
  1863. {
  1864. CriarVeiculo(playerid, 491);
  1865. }
  1866. if (listitem == 10)
  1867. {
  1868. ShowPlayerDialog(playerid, TwoDoor22, 2, "TwoDoor", "Alpha\nBlista Compact\nBravura\nBuccaneer\nCadrona\nClub\nEsperanto\nFeltzer\nFortune\nProximo", "Selecionar", "Cancelar");
  1869. }
  1870. }
  1871. return 1;
  1872. }
  1873. if (dialogid == Heavy2)
  1874. {
  1875. if (response)
  1876. {
  1877. if (listitem == 0)
  1878. {
  1879. CriarVeiculo(playerid, 499);
  1880. }
  1881. if (listitem == 1)
  1882. {
  1883. CriarVeiculo(playerid, 498);
  1884. }
  1885. if (listitem == 2)
  1886. {
  1887. CriarVeiculo(playerid, 524);
  1888. }
  1889. if (listitem == 3)
  1890. {
  1891. CriarVeiculo(playerid, 532);
  1892. }
  1893. if (listitem == 4)
  1894. {
  1895. CriarVeiculo(playerid, 578);
  1896. }
  1897. if (listitem == 5)
  1898. {
  1899. CriarVeiculo(playerid, 486);
  1900. }
  1901. if (listitem == 6)
  1902. {
  1903. CriarVeiculo(playerid, 455);
  1904. }
  1905. if (listitem == 7)
  1906. {
  1907. CriarVeiculo(playerid, 588);
  1908. }
  1909. if (listitem == 8)
  1910. {
  1911. ShowPlayerDialog(playerid, Heavy2, 2, "Pesados2", "Linerunner\nMr Whoopee\nMule\nPacker\nRoadtrain\nTanker\nTractor\nYankee\nVoltar", "Selecionar", "Cancelar");
  1912. }
  1913. }
  1914. return 1;
  1915. }
  1916. if (dialogid == Heavy22)
  1917. {
  1918. if (response)
  1919. {
  1920. if (listitem == 0)
  1921. {
  1922. CriarVeiculo(playerid, 403);
  1923. }
  1924. if (listitem == 1)
  1925. {
  1926. CriarVeiculo(playerid, 423);
  1927. }
  1928. if (listitem == 2)
  1929. {
  1930. CriarVeiculo(playerid, 414);
  1931. }
  1932. if (listitem == 3)
  1933. {
  1934. CriarVeiculo(playerid, 443);
  1935. }
  1936. if (listitem == 4)
  1937. {
  1938. CriarVeiculo(playerid, 515);
  1939. }
  1940. if (listitem == 5)
  1941. {
  1942. CriarVeiculo(playerid, 514);
  1943. }
  1944. if (listitem == 6)
  1945. {
  1946. CriarVeiculo(playerid, 531);
  1947. }
  1948. if (listitem == 7)
  1949. {
  1950. CriarVeiculo(playerid, 456);
  1951. }
  1952. if (listitem == 8)
  1953. {
  1954. ShowPlayerDialog(playerid, Heavy22, 2, "Pesados", "Benson\nBoxville\nCement truck\nCombine Harvester\nDFT-30\nDozer\nFlatbed\nHotdog\nProximo", "Selecionar", "Cancelar");
  1955. }
  1956. }
  1957. return 1;
  1958. }
  1959. if (dialogid == Light2)
  1960. {
  1961. if (response)
  1962. {
  1963. if (listitem == 0)
  1964. {
  1965. CriarVeiculo(playerid, 459);
  1966. }
  1967. if (listitem == 1)
  1968. {
  1969. CriarVeiculo(playerid, 422);
  1970. }
  1971. if (listitem == 2)
  1972. {
  1973. CriarVeiculo(playerid, 482);
  1974. }
  1975. if (listitem == 3)
  1976. {
  1977. CriarVeiculo(playerid, 530);
  1978. }
  1979. if (listitem == 4)
  1980. {
  1981. CriarVeiculo(playerid, 418);
  1982. }
  1983. if (listitem == 5)
  1984. {
  1985. CriarVeiculo(playerid, 572);
  1986. }
  1987. if (listitem == 6)
  1988. {
  1989. CriarVeiculo(playerid, 582);
  1990. }
  1991. if (listitem == 7)
  1992. {
  1993. ShowPlayerDialog(playerid, Light2, 2, "Basico2", "Pony\nRumpo\nSadler\nTug\nWalton\nYosemite\nVoltar", "Selecionar", "Cancelar");
  1994. }
  1995. }
  1996. return 1;
  1997. }
  1998. if (dialogid == Light22)
  1999. {
  2000. if (response)
  2001. {
  2002. if (listitem == 0)
  2003. {
  2004. CriarVeiculo(playerid, 413);
  2005. }
  2006. if (listitem == 1)
  2007. {
  2008. CriarVeiculo(playerid, 440);
  2009. }
  2010. if (listitem == 2)
  2011. {
  2012. CriarVeiculo(playerid, 543);
  2013. }
  2014. if (listitem == 3)
  2015. {
  2016. CriarVeiculo(playerid, 583);
  2017. }
  2018. if (listitem == 4)
  2019. {
  2020. CriarVeiculo(playerid, 478);
  2021. }
  2022. if (listitem == 5)
  2023. {
  2024. CriarVeiculo(playerid, 554);
  2025. }
  2026. if (listitem == 6)
  2027. {
  2028. ShowPlayerDialog(playerid, Light2, 2, "Basico", "Berkley's RC van\nBobcat\nBurrito\nForklift\nMoonbeam\nMower\nNewsvan\nSeguinte", "Selecionar", "Cancelar");
  2029. }
  2030. }
  2031. return 1;
  2032. }
  2033. return 1;
  2034. }
  2035. //==============================================================================
  2036. //================================= V 1.1 ======================================
  2037. //==============================================================================
  2038. CMD:texton(playerid)
  2039. {
  2040. SetPlayerTime(playerid, 12, 0);
  2041. SetPlayerWeather(playerid, 6);
  2042. TextDrawShowForPlayer(playerid, Textdraw0);
  2043. TextDrawShowForPlayer(playerid, Data);
  2044. TextDrawShowForPlayer(playerid, Textdraw5);
  2045. TextDrawShowForPlayer(playerid, Textdraw6);
  2046. TextDrawShowForPlayer(playerid, Textdraw7);
  2047. TextDrawShowForPlayer(playerid, Textdraw3);
  2048. TextDrawShowForPlayer(playerid, Horas);
  2049. TextDrawShowForPlayer(playerid, Textdraw4);
  2050. SendClientMessage(playerid, VERMELHO,"Textdraw ativada.");
  2051. return 1;
  2052. }
  2053.  
  2054.  
  2055. CMD:lag(playerid)
  2056. {
  2057. SetPlayerTime(playerid, 12, 0);
  2058. SetPlayerWeather(playerid, 6);
  2059. TextDrawHideForPlayer(playerid,Textdraw0);
  2060. TextDrawHideForPlayer(playerid,Horas);
  2061. TextDrawHideForPlayer(playerid,Data);
  2062. TextDrawHideForPlayer(playerid,Textdraw5);
  2063. TextDrawHideForPlayer(playerid,Textdraw3);
  2064. TextDrawHideForPlayer(playerid,Textdraw6);
  2065. TextDrawHideForPlayer(playerid,Textdraw7);
  2066. TextDrawHideForPlayer(playerid,Textdraw4);
  2067. SendClientMessage(playerid,VERMELHO,"Voce usou o comando Ant Lag!");
  2068. return 1;
  2069. }
  2070.  
  2071. CMD:reparar(playerid, params[])
  2072. {
  2073. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2074. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2075. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2076. if ( !IsPlayerSpawned ( playerid ) ) return 1;
  2077. if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, VERMELHO, "[ERRO]: Você não está em um veículo como motorista.");
  2078. if (GetPlayerMoney(playerid) < -100) return SendClientMessage(playerid, VERMELHO, "Malandro -100$ por reparar o carro");
  2079. new vehicleid = GetPlayerVehicleID(playerid);
  2080. RepairVehicle(vehicleid);
  2081. SendClientMessage(playerid,-1, "{00FF00}Veiculo reparado!");
  2082. return 1;
  2083. }
  2084.  
  2085. CMD:flip(playerid)
  2086. {
  2087. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2088. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2089. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2090. if ( !IsPlayerSpawned ( playerid ) ) return 1;
  2091. if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,-1,"Voce não esta em um veiculo como motorista." ) ;
  2092. new
  2093. VehicleID,
  2094. Float:X,
  2095. Float:Y,
  2096. Float:Z,
  2097. Float:Angle
  2098. ;
  2099. GetPlayerPos ( playerid , X , Y , Z ) ;
  2100. VehicleID = GetPlayerVehicleID ( playerid ) ;
  2101. GetVehicleZAngle ( VehicleID, Angle ) ;
  2102. SetVehiclePos ( VehicleID , X , Y , Z ) ;
  2103. SetVehicleZAngle ( VehicleID , Angle ) ;
  2104. SetVehicleHealth ( VehicleID , 1000.0 ) ;
  2105. GameTextForPlayer ( playerid , "~G~VEICULO VIRADO!" , 3000 , 5 ) ;
  2106. return 1;
  2107. }
  2108.  
  2109. /*CMD:skin(playerid, params[])
  2110. {
  2111. new ID;
  2112. if(sscanf(params, "d", ID)) return SendClientMessage(playerid, -1, "Erro: /skin [ID]");
  2113. if ( strval ( params ) < 0 || strval ( params ) > 299 ) return SendClientMessage( playerid , 0x00C0FFFF , "Escolha a skin de 0 a 299!" ) ;
  2114. SetPlayerSkin(playerid, ID);
  2115. return 1;
  2116. }*/
  2117.  
  2118. CMD:kill(playerid,params[])
  2119. {
  2120. if(LifeBaixo(playerid)) return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2121. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2122. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2123. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2124. if ( IsPlayerInAnyVehicle ( playerid ) )
  2125. {
  2126. new Float:x,Float:y,Float:z;
  2127. GetPlayerPos ( playerid , x , y , z ) ;
  2128. SetPlayerPos ( playerid , x , y , z +1 ) ;
  2129. }
  2130. SetPlayerHealth ( playerid , 0 ) ;
  2131. PlayerPlaySound ( playerid , 1085 , 0.0 , 0.0 , 0.0 ) ;
  2132. return 1;
  2133. }
  2134.  
  2135.  
  2136. CMD:mudar(playerid, params[])
  2137. {
  2138. if(LifeBaixo(playerid)) return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2139. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2140. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2141. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2142. if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) return SendClientMessage( playerid, 0xFF9900AA, "Você não pode usar esse comando em veículos");
  2143. if ( !IsPlayerSpawned ( playerid ) ) return 1;
  2144. SetPlayerHealth(playerid,0.0);
  2145. ForceClassSelection(playerid);
  2146. format(string2, sizeof(string2), "%s foi mudar o Skin --> {F81414}[ /mudar ]",GetNick(playerid) );
  2147. SendClientMessageToAll(LARANJA, string2);
  2148. return 1;
  2149. }
  2150. //==============================================================================
  2151. //=================================== V 1.0 ====================================
  2152. //==============================================================================
  2153. CMD:cm(playerid, params[])
  2154. {
  2155. if(arena[playerid] == true)
  2156. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2157.  
  2158. if(X1W[playerid] == true)
  2159. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2160.  
  2161. if(X1[playerid] == true)
  2162. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2163.  
  2164. if(!IsPlayerSpawned(playerid))
  2165. {
  2166. return 1;
  2167. }
  2168. if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage( playerid, 0xE60000FF, "Você já esta em um veiculo, saia dele e tente novamente"); } else {
  2169. ShowPlayerDialog(playerid, Vehicle_Dialog2, 2, "Veiculos", "Bicicletas\nMotos\nMonster trucks\nBarcos\nHelicoteros\nAvioes\nCarros\nRC veiculos", "Selecionar", "Cancelar" );
  2170. }
  2171. return 1;
  2172. }
  2173.  
  2174. CMD:tmc(playerid, params[])
  2175. {
  2176. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2177. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2178. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2179. if(!IsPlayerSpawned(playerid)) return 1;
  2180. if(GetPlayerState(playerid)!= PLAYER_STATE_ONFOOT) return SendClientMessage( playerid,0x00C0FFFF,"Você precisa estar a pé para usar este comando");
  2181. if(LifeBaixo(playerid)) return SendClientMessage( playerid, -1,"Sua vida esta muito baixa para usar este comando");
  2182. if(JatemCarroSafado[playerid] == 0) return SendClientMessage( playerid, 0xFF9900AA, "Você não tem veículo. Digite /CM para fazer um.");
  2183. if(GetPlayerInterior(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "Você está dentro de um interior.");
  2184. for(new i; i < GetMaxPlayers(); i++){
  2185. if(IsPlayerConnected(i)){
  2186. if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
  2187. if(GetPlayerVehicleID(i) == Vehicle[playerid]){
  2188. if(i != playerid){
  2189. new Float:splayerposx,Float:splayerposy,Float:splayerposz;
  2190. GetPlayerPos(i, splayerposx, splayerposy, splayerposz); SetPlayerPos(i,splayerposx, splayerposy, splayerposz+3); SetCameraBehindPlayer(i);
  2191. SendClientMessage(i, -1, "Você foi ejetado pelo dono do veículo.");
  2192. }
  2193. }
  2194. }
  2195. }
  2196. }
  2197. new Float:playerposx, Float:playerposy,Float:playerposz;
  2198. GetPlayerPos(playerid, playerposx, playerposy, playerposz);
  2199. new Float:Angle;
  2200. SetVehicleVirtualWorld(Vehicle[playerid], GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(Vehicle[playerid], GetPlayerInterior(playerid));
  2201. GetPlayerFacingAngle(playerid,Angle); SetVehicleZAngle(Vehicle[playerid], Angle);
  2202. SetVehiclePos(Vehicle[playerid], playerposx, playerposy, playerposz); PutPlayerInVehicle(playerid,Vehicle[playerid],0);
  2203. SendClientMessage( playerid, 0xFF9900AA, "Seu veículo foi puxado para você");
  2204. KillTimer(TimerMV[playerid]);
  2205. return 1;
  2206. }
  2207.  
  2208. CMD:comandos(playerid, params[])
  2209. {
  2210. new Creditos4[700];
  2211. strins(Creditos4,"{BABABA}Todos os comandos do {F81414}Servidor.\n",strlen(Creditos4));
  2212. strins(Creditos4,"{BABABA}/PROCURADOS\n/HORAS\n/ADM\n",strlen(Creditos4));
  2213. strins(Creditos4,"{BABABA}/REPORT\n/RESETSTATS\n/ADMINS\n",strlen(Creditos4));
  2214. strins(Creditos4,"{BABABA}/MUDARSENHA\n/MUDARNICK\n/AJUDA\n",strlen(Creditos4));
  2215. strins(Creditos4,"{BABABA}/TELEP\n/CREDITOS\n/REGRAS\n",strlen(Creditos4));
  2216. strins(Creditos4,"{BABABA}/CM\n/TCM\n/SAIR(ARENAS APENAS).\n/TELESDM\n/NOVIDADES",strlen(Creditos4));
  2217. ShowPlayerDialog(playerid,dialogajuda, DIALOG_STYLE_MSGBOX, "Comandos",Creditos4, "Ok", "Fechar");
  2218. return 1;
  2219. }
  2220.  
  2221. CMD:novidades(playerid)
  2222. {
  2223. new Creditos7[700];
  2224. strins(Creditos7,"{BABABA}Novidades do{F81414} Servidor\n",strlen(Creditos7));
  2225. strins(Creditos7,"{BABABA}Versão 1.0 Fixado bug (/SAIR X1)\nAdicionado Carros por Los Santos.\n",strlen(Creditos7));
  2226. ShowPlayerDialog(playerid,dialognovi, DIALOG_STYLE_MSGBOX, "NOVIDADES",Creditos7, "Ok", "Fechar");
  2227. return 1;
  2228. }
  2229.  
  2230. CMD:telesdm(playerid, params[])
  2231. {
  2232. new Creditos6[700];
  2233. strins(Creditos6,"{BABABA}Teleportes do {F81414}servidor {00FF00}DMs\n",strlen(Creditos6));
  2234. strins(Creditos6,"{BABABA}/X1 -> {F81414} APENAS DUAS PESSOAS.\n",strlen(Creditos6));
  2235. strins(Creditos6,"{BABABA}/X1W -> {F81414} APENAS DUAS PESSOAS.\n",strlen(Creditos6));
  2236. strins(Creditos6,"{BABABA}/GUERRA -> {F81414} GUERRA OFICIAL DO SERVIDOR\n",strlen(Creditos6));
  2237. strins(Creditos6,"{BABABA}/ARENA -> {F81414} ARENA OFICIAL DO SERVIDOR\n",strlen(Creditos6));
  2238. ShowPlayerDialog(playerid,dialogtelesdm, DIALOG_STYLE_MSGBOX, "Teles DM",Creditos6, "Ok", "Fechar");
  2239. return 1;
  2240. }
  2241.  
  2242. CMD:telep(playerid, params[])
  2243. {
  2244. new Creditos5[700];
  2245. strins(Creditos5,"{BABABA}Teleportes do {F81414}servidor\n",strlen(Creditos5));
  2246. strins(Creditos5,"{BABABA}/AEROLS\n/AEROLV\n/AEROSF\n/AA\n",strlen(Creditos5));
  2247. strins(Creditos5,"{BABABA}/SF\n/LS\n/LV\n/AVENIDA\n/VN\n",strlen(Creditos5));
  2248. strins(Creditos5,"{BABABA}/FAVELA\n/GROVE\n",strlen(Creditos5));
  2249. ShowPlayerDialog(playerid,dialogteles, DIALOG_STYLE_MSGBOX, "TELEPORTES",Creditos5, "Ok", "Fechar");
  2250. return 1;
  2251. }
  2252.  
  2253. CMD:ajuda(playerid, params[])
  2254. {
  2255. new Creditos3[700];
  2256. strins(Creditos3,"{BABABA}Caso esteja perdido peça ajuda para um{F81414} Admin\n",strlen(Creditos3));
  2257. strins(Creditos3,"{BABABA}Usando o comando {F81414}/Adm [mensagem].\n",strlen(Creditos3));
  2258. strins(Creditos3,"{BABABA}Para ver os comandos digite{F81414} /Comandos\n",strlen(Creditos3));
  2259. ShowPlayerDialog(playerid,dialogcomandos, DIALOG_STYLE_MSGBOX, "Ajuda",Creditos3, "Ok", "Fechar");
  2260. return 1;
  2261. }
  2262.  
  2263. CMD:regras(playerid, params[])
  2264. {
  2265. new Creditos2[700];
  2266. strins(Creditos2,"{F81414}Não usar nenhum programa que lhe de vantagem sobre os players\n",strlen(Creditos2));
  2267. strins(Creditos2,"{F81414}Não usar minigun fora da arena /GUERRA\n",strlen(Creditos2));
  2268. strins(Creditos2,"{F81414}Não abusar do DB.\n",strlen(Creditos2));
  2269. strins(Creditos2,"{F81414}Não xingar admins/players\n",strlen(Creditos2));
  2270. ShowPlayerDialog(playerid,dialogregras, DIALOG_STYLE_MSGBOX, "Regras",Creditos2, "Ok", "Fechar");
  2271. return 1;
  2272. }
  2273.  
  2274. CMD:creditos(playerid, params[])
  2275. {
  2276. new Creditos[700];
  2277. strins(Creditos,"{BABABA}GameMode Criado por {F81414}Tw0.P4c___.[Ac]\n",strlen(Creditos));
  2278. strins(Creditos,"{BABABA}Com a ajuda de {F81414}Akatsuki_.[Ac]\n",strlen(Creditos));
  2279. strins(Creditos,"{BABABA}Contem codigos de {F81414} Y_Less,ZeeX,Double-O-Seven\n",strlen(Creditos));
  2280. ShowPlayerDialog(playerid,dialogcreditos, DIALOG_STYLE_MSGBOX, "Créditos do Servidor",Creditos, "Ok", "Fechar");
  2281. return 1;
  2282. }
  2283. //==============================================================================
  2284. //================================= Arenas =====================================
  2285. //==============================================================================
  2286. CMD:x1w(playerid, params[])
  2287. {
  2288. if(X1W[playerid] == true)
  2289. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2290.  
  2291. if(X1[playerid] == true)
  2292. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2293.  
  2294. if(pX1W == 2)
  2295. return SendClientMessage(playerid, VERMELHO,"[ERRO]: Ja tem mais de 2 pessoas no X1, tente mais tarde.!");
  2296.  
  2297. if(LifeBaixo(playerid))
  2298. return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2299.  
  2300. SetPlayerInterior(playerid, 16);
  2301. SetPlayerVirtualWorld(playerid,1);
  2302. new gRand = random ( sizeof RandomSpawnsX1 ) ;
  2303. SetPlayerPos ( playerid , RandomSpawnsX1 [ gRand ] [ SX ] , RandomSpawnsX1 [ gRand ] [ SY ] , RandomSpawnsX1 [ gRand ] [ SZ ] ) ;
  2304. SetPlayerFacingAngle ( playerid , RandomSpawnsX1 [ gRand ] [ SA ] ) ;
  2305.  
  2306. ArmamentoW(playerid);
  2307. format(string2, sizeof(string2),"[X1W]: %s[ID:%i] foi para o x1W Quem vai ? [/X1W]",GetNick(playerid), playerid);
  2308. SendClientMessageToAll(VERDE_AGUA,string2);
  2309. pX1W++;
  2310. X1W[playerid] = true;
  2311. return 1;
  2312. }
  2313.  
  2314. CMD:guerra(playerid,params[])
  2315. {
  2316. if(X1[playerid] == true)
  2317. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2318.  
  2319. if(X1W[playerid] == true)
  2320. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2321.  
  2322. if(arena[playerid] == true)
  2323. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2324.  
  2325. if(LifeBaixo(playerid))
  2326. return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2327.  
  2328. new skinsg[10] =
  2329. {
  2330. 179,
  2331. 191,
  2332. 213,
  2333. 285,
  2334. 286,
  2335. 252,
  2336. 265,
  2337. 266,
  2338. 267,
  2339. 287
  2340.  
  2341. };
  2342. //Players
  2343. SetPlayerInterior(playerid, 0);
  2344. SetPlayerVirtualWorld(playerid,16);
  2345. ResetPlayerWeapons(playerid);
  2346. //Pos
  2347. new gRand = random ( sizeof RandomSpawnGuerra ) ;
  2348. SetPlayerPos ( playerid , RandomSpawnGuerra [ gRand ] [ SX ] , RandomSpawnGuerra [ gRand ] [ SY ] , RandomSpawnGuerra [ gRand ] [ SZ ] ) ;
  2349. SetPlayerFacingAngle ( playerid , RandomSpawnGuerra [ gRand ] [ SA ] ) ;
  2350. //Armas
  2351. GivePlayerWeapon(playerid,26,9999);
  2352. GivePlayerWeapon(playerid,4,1);
  2353. GivePlayerWeapon(playerid,18,1500);
  2354. GivePlayerWeapon(playerid,22,4000);
  2355. GivePlayerWeapon(playerid,28,4000);
  2356. GivePlayerWeapon(playerid,31,4000);
  2357. GivePlayerWeapon(playerid,38,500);
  2358. SetPlayerHealth(playerid,100);
  2359. SetPlayerArmour(playerid,100);
  2360. SetPlayerSkin(playerid,skinsg[random(10)]);
  2361. SendClientMessage(playerid,ROXO,"[INFO - GUERRA]Mate a todos!Não tenha dó!\nAo matar ganhará + (1000$) e + 1 de score Boa sorte!");
  2362. //Mensagem
  2363. format(string2, sizeof(string2),"[INFO - ARENAS]: %s [ID:%i] foi para a Guerra quem vai ? [/GUERRA]",GetNick(playerid), playerid);
  2364. SendClientMessageToAll(VERDE_AGUA,string2);
  2365. arena[playerid] = true;
  2366. return 1;
  2367. }
  2368.  
  2369. CMD:arena(playerid,params[])
  2370. {
  2371. if(X1[playerid] == true)
  2372. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2373.  
  2374. if(X1W[playerid] == true)
  2375. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2376.  
  2377. if(arena[playerid] == true)
  2378. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2379.  
  2380. if(LifeBaixo(playerid))
  2381. return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2382. //Pos
  2383. new gRand = random ( sizeof RandomSpawnArena ) ;
  2384. SetPlayerPos ( playerid , RandomSpawnArena [ gRand ] [ SX ] , RandomSpawnArena [ gRand ] [ SY ] , RandomSpawnArena [ gRand ] [ SZ ] ) ;
  2385. SetPlayerFacingAngle ( playerid , RandomSpawnArena [ gRand ] [ SA ] ) ;
  2386. //Players
  2387. SetPlayerInterior(playerid, 0);
  2388. SetPlayerVirtualWorld(playerid,16);
  2389. ResetPlayerWeapons(playerid);
  2390. //Armas
  2391. GivePlayerWeapon(playerid,26,9999);
  2392. GivePlayerWeapon(playerid,22,4000);
  2393. GivePlayerWeapon(playerid,28,4000);
  2394. GivePlayerWeapon(playerid,34,4000);
  2395. SetPlayerHealth(playerid,100);
  2396. SetPlayerArmour(playerid,100);
  2397. SendClientMessage(playerid,ROXO,"[INFO - ARENA]Mate a todos!Não tenha dó!\nAo matar ganhará + (1000$) e + 1 de score Boa sorte!");
  2398. //Mensagem
  2399. format(string2, sizeof(string2),"[INFO - ARENAS]: %s [ID:%i] foi para a Arena quem vai ? [/ARENA]",GetNick(playerid), playerid);
  2400. SendClientMessageToAll(VERDE_AGUA,string2);
  2401. arena[playerid] = true;
  2402. return 1;
  2403. }
  2404.  
  2405. CMD:x1(playerid, params[])
  2406. {
  2407. if(X1[playerid] == true)
  2408. return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2409.  
  2410. if(pX1 == 2)
  2411. return SendClientMessage(playerid, VERMELHO,"[ERRO]: Ja tem mais de 2 pessoas no X1, tente mais tarde.!");
  2412.  
  2413. if(LifeBaixo(playerid))
  2414. return SendClientMessage( playerid, VERMELHO,"Sua vida esta muito baixa para usar este comando");
  2415.  
  2416. SetPlayerInterior(playerid, 16);
  2417. SetPlayerVirtualWorld(playerid,2);
  2418. new gRand = random ( sizeof RandomSpawnsX1 ) ;
  2419. SetPlayerPos ( playerid , RandomSpawnsX1 [ gRand ] [ SX ] , RandomSpawnsX1 [ gRand ] [ SY ] , RandomSpawnsX1 [ gRand ] [ SZ ] ) ;
  2420. SetPlayerFacingAngle ( playerid , RandomSpawnsX1 [ gRand ] [ SA ] ) ;
  2421.  
  2422. Armamento(playerid);
  2423. format(string2, sizeof(string2),"[X1]: %s[ID:%i] foi para o x1 Quem vai ? [/X1]",GetNick(playerid), playerid);
  2424. SendClientMessageToAll(VERDE_AGUA,string2);
  2425. pX1++;
  2426. X1[playerid] = true;
  2427. return 1;
  2428. }
  2429.  
  2430. CMD:sair(playerid, params[])
  2431. {
  2432. if (X1[playerid] == true)
  2433. {
  2434. SetPlayerHealth(playerid, 0.0);
  2435. X1[playerid] = false;
  2436. return 1;
  2437. }
  2438. if (arena[playerid] == true)
  2439. {
  2440. if (!IsPlayerSpawned(playerid)) { return 1; }
  2441. SetPlayerHealth(playerid, 0.0);
  2442. arena[playerid] = false;
  2443. return 1;
  2444. }
  2445.  
  2446. if (X1W[playerid] == true)
  2447. {
  2448. SetPlayerHealth(playerid, 0.0);
  2449. X1W[playerid] = false;
  2450. return 1;
  2451. }
  2452. return 1;
  2453. }
  2454. //==============================================================================
  2455. //================================= Fim Arenas =================================
  2456. //==============================================================================
  2457. /*public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  2458. {
  2459. SetPlayerPosFindZ(playerid, fX, fY, fZ);
  2460. return 1;
  2461. }*/
  2462.  
  2463. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  2464. {
  2465. if ( success == 0 )
  2466. {
  2467. format ( string2 , sizeof ( string2 ) , "{FFFFFF}Erro: {0099FF}Comando \"{FFFFFF}%s\" {0099FF}não existe.", cmdtext ) ;
  2468. SendClientMessage ( playerid , -1 , string2 ) ;
  2469. }
  2470. return 1;
  2471. }
  2472.  
  2473. public SendMSG()
  2474. {
  2475. new randMSG = random(sizeof(RandomMSG));
  2476. SendClientMessageToAll(AZUL_CLARO, RandomMSG[randMSG]);
  2477. return 0;
  2478. }
  2479.  
  2480. public CriarVeiculo(playerid, modelo)
  2481. {
  2482. if(!IsPlayerSpawned(playerid)) return 1;
  2483. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return 1;
  2484. if(GetPlayerInterior(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "{BABABA}Você está dentro de um interior.");
  2485. if (GetPlayerVirtualWorld(playerid) != 0) return SendClientMessage( playerid, 0xFF9900AA, "Você está em uma área não permitida para veículos.");
  2486. if(modelo == 432) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
  2487. if(modelo == 520) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
  2488. if(modelo == 447) return SendClientMessage( playerid, 0xFF9900AA, "Veículo disponível somente em: /MD");
  2489. if(modelo == 464) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  2490. if(modelo == 465) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  2491. if(modelo == 501) return SendClientMessage( playerid, 0xFF9900AA, "Este veículo esta indisponível no momento!");
  2492. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432) {
  2493. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
  2494. }
  2495. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) {
  2496. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
  2497. }
  2498. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 447) {
  2499. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
  2500. }
  2501. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425) {
  2502. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
  2503. }
  2504. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 464) {
  2505. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage( playerid, 0xFF9900AA, "Você deve sair de seu veículo atual.");
  2506. }
  2507. if(Vehicle[playerid] != 0) {
  2508. DestroyVehicle ( Vehicle [ playerid ] ) ;
  2509. Vehicle [ playerid ] = 0 ;
  2510. }
  2511. new Float:X,Float:Y,Float:Z,Float:Angle;
  2512. GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
  2513. Vehicle[playerid] = CreateVehicle ( modelo , X , Y , Z+1 , Angle , -1 , -1 , 90 ) ;
  2514. AddVehicleComponent(Vehicle[playerid], 1010); SetVehicleVirtualWorld(Vehicle[playerid], GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(Vehicle[playerid], GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,Vehicle[playerid],0);
  2515. SendClientMessage( playerid, 0xFF9900AA, "Veículo fornecido!");
  2516. TotalVeiculos++;
  2517. JatemCarroSafado[playerid] = 1;
  2518. return 1;
  2519. }
  2520.  
  2521. public Kicka(p)
  2522. {
  2523. #undef Kick
  2524. Kick(p);
  2525. #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  2526. return 1;
  2527. }
  2528.  
  2529. public Bana(p)
  2530. {
  2531. #undef Ban
  2532. Ban(p);
  2533. #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  2534. return 1;
  2535. }
  2536.  
  2537. public UpdateTime()
  2538. {
  2539. new hour, minute, second;
  2540. new string[500];
  2541. new dia,mes,ano;
  2542. gettime(hour, minute, second);
  2543. getdate(ano,mes,dia);
  2544. format(string,32,"%02d/%02d/%02d",dia,mes,ano);
  2545. TextDrawSetString(Data,string);
  2546. format(string,32,"%02d:%02d:%02d",hour,minute,second);
  2547. TextDrawSetString(Horas,string);
  2548. }
  2549.  
  2550. CMD:aerolv(playerid,params[]) {
  2551. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2552. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2553. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2554. if(!IsPlayerSpawned(playerid)) { return 1; }
  2555. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2556. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2557. SetVehiclePos(GetPlayerVehicleID(playerid),1705.7985,1481.9393,10.3573+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2558. } else { SetPlayerPos(playerid,1705.7985,1481.9393,10.3573); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2559. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de las venturas -> {F81414}[/AEROLV]",GetNick(playerid), playerid);
  2560. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2561. return 1;
  2562. }
  2563.  
  2564. CMD:avenida(playerid,params[]) {
  2565. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2566. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2567. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2568. if(!IsPlayerSpawned(playerid)) { return 1; }
  2569. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2570. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2571. SetVehiclePos(GetPlayerVehicleID(playerid),2062.9380,809.8578,9.0879+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2572. } else { SetPlayerPos(playerid,2062.9380,809.8578,9.0879); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2573. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a avenida de lv -> {F81414}[/AEVNIDA]",GetNick(playerid), playerid);
  2574. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2575. return 1;
  2576. }
  2577.  
  2578. CMD:lv(playerid,params[]) {
  2579. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2580. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2581. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2582. if(!IsPlayerSpawned(playerid)) { return 1; }
  2583. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2584. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2585. SetVehiclePos(GetPlayerVehicleID(playerid),2172.8481,945.4304,15.2356+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2586. } else { SetPlayerPos(playerid,2172.8481,945.4304,15.2356); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2587. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para las venturas -> {F81414}[/LV]",GetNick(playerid), playerid);
  2588. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2589. return 1;
  2590. }
  2591.  
  2592. CMD:favela(playerid,params[]) {
  2593. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2594. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2595. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2596. if(!IsPlayerSpawned(playerid)) { return 1; }
  2597. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2598. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2599. SetVehiclePos(GetPlayerVehicleID(playerid),2159.8218,-1012.9626,62.3522+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2600. } else { SetPlayerPos(playerid,2159.8218,-1012.9626,62.3522); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2601. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a favela em LS -> {F81414}[/FAVELA]",GetNick(playerid), playerid);
  2602. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2603. return 1;
  2604. }
  2605.  
  2606. CMD:ls(playerid,params[]) {
  2607. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2608. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2609. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2610. if(!IsPlayerSpawned(playerid)) { return 1; }
  2611. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2612. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2613. SetVehiclePos(GetPlayerVehicleID(playerid),1544.4202,-1353.4918,329.0461+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2614. } else { SetPlayerPos(playerid,1544.4202,-1353.4918,329.0461); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2615. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para los santos -> {F81414}[/LS]",GetNick(playerid), playerid);
  2616. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2617. return 1;
  2618. }
  2619.  
  2620. CMD:aerols(playerid,params[]) {
  2621. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2622. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2623. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2624. if(!IsPlayerSpawned(playerid)) { return 1; }
  2625. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2626. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2627. SetVehiclePos(GetPlayerVehicleID(playerid),1972.9900,-2201.7126,13.1045+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2628. } else { SetPlayerPos(playerid,1972.9900,-2201.7126,13.1045); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2629. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de los santos -> {F81414}[/AEROLS]",GetNick(playerid), playerid);
  2630. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2631. return 1;
  2632. }
  2633.  
  2634. CMD:grove(playerid,params[]) {
  2635. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2636. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2637. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2638. if(!IsPlayerSpawned(playerid)) { return 1; }
  2639. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2640. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2641. SetVehiclePos(GetPlayerVehicleID(playerid),2473.5525,-1711.1073,13.0765+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2642. } else { SetPlayerPos(playerid,2473.5525,-1711.1073,13.0765); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2643. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para a grove street -> {F81414}[/GROVE]",GetNick(playerid), playerid);
  2644. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2645. return 1;
  2646. }
  2647.  
  2648. CMD:vn(playerid,params[]) {
  2649. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2650. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2651. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2652. if(!IsPlayerSpawned(playerid)) { return 1; }
  2653. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2654. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2655. SetVehiclePos(GetPlayerVehicleID(playerid),1464.9005,-889.5593,55.5248+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2656. } else { SetPlayerPos(playerid,1464.9005,-889.5593,55.5248); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2657. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para vinewood -> {F81414}[/VN]",GetNick(playerid), playerid);
  2658. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2659. return 1;
  2660. }
  2661.  
  2662. CMD:sf(playerid,params[]) {
  2663. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2664. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2665. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2666. if(!IsPlayerSpawned(playerid)) { return 1; }
  2667. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2668. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2669. SetVehiclePos(GetPlayerVehicleID(playerid),-2323.7454,113.2356,34.8764+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2670. } else { SetPlayerPos(playerid,-2323.7454,113.2356,34.8764); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2671. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para san fierro -> {F81414}[/SF]",GetNick(playerid), playerid);
  2672. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2673. return 1;
  2674. }
  2675.  
  2676. CMD:aerosf(playerid,params[]) {
  2677. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2678. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2679. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2680. if(!IsPlayerSpawned(playerid)) { return 1; }
  2681. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2682. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2683. SetVehiclePos(GetPlayerVehicleID(playerid),-1416.3014,-310.9113,13.5622+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2684. } else { SetPlayerPos(playerid,-1416.3014,-310.9113,13.5622); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2685. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto de san fierro -> {F81414}[/AEROSF]",GetNick(playerid), playerid);
  2686. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2687. return 1;
  2688. }
  2689.  
  2690. CMD:aa(playerid,params[]) {
  2691. if(arena[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está na arena,não pode usar comandos!");
  2692. if(X1W[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1w,não pode usar comandos!");
  2693. if(X1[playerid] == true) return SendClientMessage(playerid, VERMELHO,"[ERRO]:Voce está no x1,não pode usar comandos!");
  2694. if(!IsPlayerSpawned(playerid)) { return 1; }
  2695. SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0);
  2696. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  2697. SetVehiclePos(GetPlayerVehicleID(playerid),432.5104,2507.4890,16.0512+10); SetVehicleZAngle(GetPlayerVehicleID(playerid),272.2324);
  2698. } else { SetPlayerPos(playerid,432.5104,2507.4890,16.0512); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,272.2324); }
  2699. format(string2, sizeof(string2),"[INFO - TELE]: %s[ID:%i] foi para o aeroporto abandonado -> {F81414}[/AA]",GetNick(playerid), playerid);
  2700. SendClientMessageToAll(LARANJA,string2); SetCameraBehindPlayer(playerid);
  2701. return 1;
  2702. }
  2703.  
  2704. stock ArmamentoW ( playerid )
  2705. {
  2706. SetPlayerHealth ( playerid,100);
  2707. SetPlayerArmour (playerid,100);
  2708. GivePlayerWeapon ( playerid , 24 , 9999 ) ;
  2709. GivePlayerWeapon ( playerid , 27 ,9999 ) ;
  2710. GivePlayerWeapon ( playerid , 34 ,9999 ) ;
  2711. ResetPlayerWeapons( playerid ) ;
  2712. GivePlayerWeapon ( playerid , 24 , 9999 ) ;
  2713. GivePlayerWeapon ( playerid , 27 ,9999 ) ;
  2714. GivePlayerWeapon ( playerid , 34 ,9999 ) ;
  2715. return GameTextForPlayer ( playerid , "Voce e o melhor ?? ~r~Prove" , 300 , 0 ) , true ;
  2716. }
  2717.  
  2718. stock Armamento ( playerid )
  2719. {
  2720. SetPlayerArmour (playerid,100);
  2721. SetPlayerHealth ( playerid,100);
  2722. GivePlayerWeapon ( playerid , 26 , 9999 ) ;
  2723. GivePlayerWeapon ( playerid , 31 ,9999 ) ;
  2724. GivePlayerWeapon ( playerid , 22 ,9999 ) ;
  2725. ResetPlayerWeapons( playerid ) ;
  2726. GivePlayerWeapon ( playerid , 26 , 9999 ) ;
  2727. GivePlayerWeapon ( playerid , 31 ,9999 ) ;
  2728. GivePlayerWeapon ( playerid , 24 ,9999 ) ;
  2729. return GameTextForPlayer ( playerid , "Voce e o melhor ?? ~r~Prove" , 300 , 0 ) , true ;
  2730. }
  2731.  
  2732. stock KitGuerra ( playerid )
  2733. {
  2734. GivePlayerWeapon ( playerid , 24 , 99 ) ;
  2735. GivePlayerWeapon ( playerid , 34 , 99 ) ;
  2736. GivePlayerWeapon ( playerid , 26 , 99 ) ;
  2737. GivePlayerWeapon ( playerid , 18 , 1 ) ;
  2738. GivePlayerWeapon ( playerid , 9 , 99 ) ;
  2739. return 1;
  2740. }
  2741.  
  2742. stock Nome(playerid)
  2743. {
  2744. new pNome[MAX_PLAYER_NAME];
  2745. GetPlayerName(playerid, pNome, 24);
  2746. return pNome;
  2747. }
  2748.  
  2749. stock HeadshotCheck(playerid, &Float:x, &Float:y, &Float:z)
  2750. {
  2751. new Float:fx,Float:fy,Float:fz;
  2752. GetPlayerCameraFrontVector(playerid, fx, fy, fz);
  2753.  
  2754. new Float:cx,Float:cy,Float:cz;
  2755. GetPlayerCameraPos(playerid, cx, cy, cz);
  2756.  
  2757. for(new Float:i = 0.0; i < 50; i = i + 0.5)
  2758. {
  2759. x = fx * i + cx;
  2760. y = fy * i + cy;
  2761. z = fz * i + cz;
  2762.  
  2763. #if defined SHOWPATH
  2764. CreatePickup(1239, 4, x, y, z, -1);
  2765. #endif
  2766.  
  2767. for(new player = 0; player < MAX_PLAYERS; player ++)
  2768. {
  2769. if(IsPlayerConnected(playerid))
  2770. {
  2771. if(player != playerid)
  2772. {
  2773. if(GetPlayerSpecialAction(player) == SPECIAL_ACTION_DUCK)
  2774. {
  2775. if(IsPlayerInRangeOfPoint(player, 0.3, x, y, z))
  2776. {
  2777. //new string[128];
  2778. // format(string, sizeof(string), "[NEWS]: %s levou um Headshot do %s", PlayerName(player), PlayerName(playerid));
  2779. // SendClientMessageToAll(0xFF9900AA, string);
  2780.  
  2781. GameTextForPlayer(playerid, "~r~HEADSHOT!", 2000, 6);
  2782. GameTextForPlayer(player, "~r~HEADSHOT!", 2000, 6);
  2783.  
  2784. SetPlayerHealth(player, 0.0);
  2785. CallRemoteFunction("OnPlayerDeath", "ddd", player, playerid, 34);
  2786. }
  2787. }
  2788. else
  2789. {
  2790. if(IsPlayerInRangeOfPoint(player, 0.3, x, y, z - 0.7))
  2791. {
  2792. // new string[128];
  2793. // format(string, sizeof(string), "[NEWS]: %s levou um Headshot do %s", PlayerName(player), PlayerName(playerid));
  2794. // SendClientMessageToAll(0xFF9900AA, string);
  2795.  
  2796. GameTextForPlayer(playerid, "~r~HEADSHOT!", 2000, 6);
  2797. GameTextForPlayer(player, "~r~HEADSHOT!", 2000, 6);
  2798.  
  2799. SetPlayerHealth(player, 0.0);
  2800. CallRemoteFunction("OnPlayerDeath", "ddd", player, playerid, 34);
  2801. }
  2802. }
  2803. }
  2804. }
  2805. }
  2806. }
  2807. return 1;
  2808. }
  2809.  
  2810. stock LifeBaixo(playerid)
  2811. {
  2812. new Float:HP;
  2813. GetPlayerHealth(playerid, HP);
  2814. if(HP < 35) return 1;
  2815. return 0;
  2816. }
  2817.  
  2818. stock PosicaoFrentePlayer( playerid, &Float:x, &Float:y, Float:distance)
  2819. {
  2820. new
  2821. Float:a
  2822. ;
  2823. GetPlayerPos( playerid, x, y, a);
  2824. GetPlayerFacingAngle( playerid, a);
  2825. if(GetPlayerVehicleID( playerid ))
  2826. {
  2827. GetVehicleZAngle(GetPlayerVehicleID( playerid ), a);
  2828. }
  2829. x += (distance * floatsin(-a, degrees));
  2830. y += (distance * floatcos(-a, degrees));
  2831. }
  2832.  
  2833. IsPlayerSpawned(playerid)
  2834. {
  2835. new statex = GetPlayerState(playerid);
  2836. if (statex != PLAYER_STATE_NONE && statex != PLAYER_STATE_WASTED && statex != PLAYER_STATE_SPAWNED)
  2837. {
  2838. if (statex != PLAYER_STATE_SPECTATING)
  2839. {
  2840. return true;
  2841. }
  2842. }
  2843. return false;
  2844. }
  2845.  
  2846. stock GetNick(p)
  2847. {
  2848. static Nome2[24];
  2849. GetPlayerName(p, Nome2, 24);
  2850. return Nome2;
  2851. }
  2852.  
  2853. stock token_by_delim(const string[], return_str[], delim, start_index)
  2854. {
  2855. new x=0;
  2856. while(string[start_index] != EOS && string[start_index] != delim)
  2857. {
  2858. return_str[x] = string[start_index];
  2859. x++;
  2860. start_index++;
  2861. }
  2862. return_str[x] = EOS;
  2863. if(string[start_index] == EOS) start_index = (-1);
  2864. return start_index;
  2865. }
  2866.  
  2867.  
  2868. stock LoadStaticVehiclesFromFile(const filename[])
  2869. {
  2870. new File:file_ptr,line[128],var_from_line[64],vehicletype,Float:SpawnX,Float:SpawnY,Float:SpawnZ,Float:SpawnRot,Color1,Color2,index,vehicles_loaded;
  2871. file_ptr = fopen(filename,filemode:io_read);
  2872. if(!file_ptr) return 0;
  2873. vehicles_loaded = 0;
  2874. while(fread(file_ptr,line,256) > 0) {
  2875. index = 0;
  2876. index = token_by_delim(line,var_from_line,',',index);
  2877. if(index == (-1)) continue;
  2878. vehicletype = strval(var_from_line);
  2879. if(vehicletype < 400 || vehicletype > 611) continue;
  2880. index = token_by_delim(line,var_from_line,',',index+1);
  2881. if(index == (-1)) continue;
  2882. SpawnX = floatstr(var_from_line);
  2883. index = token_by_delim(line,var_from_line,',',index+1);
  2884. if(index == (-1)) continue;
  2885. SpawnY = floatstr(var_from_line);
  2886. index = token_by_delim(line,var_from_line,',',index+1);
  2887. if(index == (-1)) continue;
  2888. SpawnZ = floatstr(var_from_line);
  2889. index = token_by_delim(line,var_from_line,',',index+1);
  2890. if(index == (-1)) continue;
  2891. SpawnRot = floatstr(var_from_line);
  2892. index = token_by_delim(line,var_from_line,',',index+1);
  2893. if(index == (-1)) continue;
  2894. Color1 = strval(var_from_line);
  2895. index = token_by_delim(line,var_from_line,';',index+1);
  2896. Color2 = strval(var_from_line);
  2897. AddStaticVehicleEx(vehicletype,SpawnX,SpawnY,SpawnZ,SpawnRot,Color1,Color2,(30*60)); // respawn 30 minutes
  2898. new numplate_test[32+1],vid;
  2899. format(numplate_test,32,"AC{44AA33}%d",vid);
  2900. SetVehicleNumberPlate(vid, numplate_test);
  2901. vehicles_loaded++;
  2902. }
  2903. fclose(file_ptr);
  2904. printf("Loaded %d vehicles from: %s",vehicles_loaded,filename);
  2905. return vehicles_loaded;
  2906. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement