Advertisement
Chip7

[GM] GameMode Zombie Vs Humans Versão 1.6 Beta

Sep 29th, 2013
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 96.16 KB | None | 0 0
  1. /*
  2.   VISITE NOSSO SITE: http://www.sampknd.com/
  3.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  4.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  5. */
  6.  
  7. #if defined Parka
  8.                --== Zombie Vs Humans ==--
  9.                     Create By Parka
  10.                       Version: 1.6
  11.                 Date: 10:00 pm  07/03/2013
  12.                       Mode: Zombie
  13. #endif
  14. #include <a_samp>
  15. #include <YSI\y_ini>
  16. #include <streamer>
  17. #include <foreach>
  18. #include <sscanf2>
  19. #include <zcmd>
  20.  
  21. main()
  22. {
  23.     print("[!]==========================[!]");
  24.     print("[!]--== Zombie Vs Humans ==--[!]");
  25.     print("[!]     Create By Parka      [!]");
  26.     print("[!]       Mode: Zombie       [!]");
  27.     print("[!]==========================[!]\n");
  28. }
  29. /*[!]========================[!] Defines [!]===============================[!]*/
  30. #define LIMA   0x00FF00AA
  31. #define CIAN   0x00FFFFAA
  32. #define KAKI   0xF0E68CAA
  33. #define LARC   0x88AA88AA
  34. #define OROS   0xFFD700AA
  35. #define PLAT   0xC0C0C0AA
  36.  
  37. #define LL   "{00FF00}"
  38. #define KK   "{F0E68C}"
  39. #define CC   "{00FFFF}"
  40. #define OO   "{FFD700}"
  41. #define PP   "{C0C0C0}"
  42. #define LA   "{88AA88}"
  43. #define BC   "{FFFFFF}"
  44.  
  45.  
  46. #define MAX_STATS 100
  47.  
  48. #define AZ    "{0000FF}"
  49. #define RO    "{FF0000}"
  50. #define VE    "{008000}"
  51. #define AM    "{FFFF00}"
  52. #define NE    "{000000}"
  53. #define NA    "{FFA500}"
  54. #define GR    "{808080}"
  55.  
  56. #define MainAzul      0x0000FFAA
  57. #define MainRojo      0xFF0000AA
  58. #define MainVerde     0x008000AA
  59. #define MainAmarillo  0xFFFF00AA
  60. #define MainNegro     0x000000AA
  61. #define MainBlanco    0xFFFFFFAA
  62. #define MainNaranja   0xFFA500AA
  63. #define FormalAdmin   0x808080AA
  64.  
  65. //-- dialogos
  66. #define Dialog_Register             (0)
  67. #define Dialog_Login                (1)
  68. #define Dialog_Compra               (2)
  69. #define Dialog_Buy_Comida           (3)
  70.  
  71. //-- Raza
  72. #define Raza_Humana     (0)
  73. #define Raza_Zombie     (1)
  74. //-- Viruz
  75. #define Viruz_X     (1)
  76. #define Viruz_XX    (2)
  77. #define Viruz_Z     (3)
  78.  
  79.  
  80. //-- MAXIMO
  81. #define MAX_ZONE_NAME (28)
  82. #define AMMO_SELL     (5)
  83. #define MAX_ADMIN     (1)//
  84. #define MAX_AVISOS    (3)//
  85.  
  86. #define Archivo "%s.ini"
  87.  
  88. #define GM "Server:"
  89.  
  90. #define Tecla(%0) \
  91.     (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  92.  
  93. /*[!]=======================[!] Variables [!]==============================[!]*/
  94. enum pInfo
  95. {
  96. pPass,
  97. pCash,
  98. pAdmin,
  99. pKills,
  100. pDeaths,
  101.  
  102. pDia,
  103. pMes,
  104. pYear,
  105. pMins,
  106. pHora,
  107. pSkills,
  108. pInfecct,
  109. pCuret,
  110. Avisos
  111.  
  112. }
  113. new PlayerInfo[MAX_PLAYERS][pInfo];
  114. new Text:TextdrawGlobal[4];
  115.  
  116. new bool:EnteredDialog[MAX_PLAYERS];
  117.  
  118. new BeberStats  [ MAX_PLAYERS ];
  119. new ComidaStats [ MAX_PLAYERS ];
  120. new Float:Vida  [ MAX_PLAYERS ];
  121. new MyTime      [ MAX_PLAYERS ];
  122. new bool:PlayerSpawnStats[ MAX_PLAYERS ];
  123.  
  124. new PlayerText:Textdraw0;
  125. new PlayerText:Textdraw1;
  126. new PlayerText:Textdraw2;
  127. new PlayerText:Textdraw3;
  128. new PlayerText:Textdraw4;
  129. new PlayerText:Textdraw5;
  130.  
  131. new bool:InformationText[4];
  132. new Timer[1];
  133.  
  134. new Objectid[2];
  135. new Viruz[MAX_PLAYERS];
  136.  
  137. static FloodComando[MAX_PLAYERS];
  138. static CureZombie[MAX_PLAYERS];
  139. static Equipo[MAX_PLAYERS];
  140.  
  141. new Zombie[11] =
  142. {
  143. 157,158,159,160,161,
  144. 162,137,230,131,130,
  145. 162
  146. };
  147.  
  148. new Humano[10] =
  149. {
  150. 122,120,119,98,73,
  151. 55,56,12,263,298
  152. };
  153.  
  154. enum SAZONE_MAIN { //Betamaster
  155.         SAZONE_NAME[28],
  156.         Float:SAZONE_AREA[6]
  157. };
  158.  
  159. static const gSAZones[][SAZONE_MAIN] = {  // Majority of names and area coordinates adopted from Mabako's 'Zones Script' v0.2
  160.     //  NAME                            AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
  161.     {"The Big Ear",                 {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
  162.     {"Aldea Malvada",               {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
  163.     {"Angel Pine",                  {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
  164.     {"Arco del Oeste",              {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
  165.     {"Avispa Country Club",         {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
  166.     {"Avispa Country Club",         {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
  167.     {"Avispa Country Club",         {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
  168.     {"Avispa Country Club",         {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
  169.     {"Avispa Country Club",         {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
  170.     {"Avispa Country Club",         {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
  171.     {"Back o Beyond",               {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
  172.     {"Battery Point",               {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
  173.     {"Bayside",                     {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
  174.     {"Bayside Marina",              {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
  175.     {"Beacon Hill",                 {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
  176.     {"Blackfield",                  {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
  177.     {"Blackfield",                  {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
  178.     {"Blackfield Chapel",           {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
  179.     {"Blackfield Chapel",           {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
  180.     {"Blackfield Intersection",     {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
  181.     {"Blackfield Intersection",     {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
  182.     {"Blackfield Intersection",     {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
  183.     {"Blackfield Intersection",     {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
  184.     {"Blueberry",                   {104.50,-220.10,2.30,349.60,152.20,200.00}},
  185.     {"Blueberry",                   {19.60,-404.10,3.80,349.60,-220.10,200.00}},
  186.     {"Blueberry Acres",             {-319.60,-220.10,0.00,104.50,293.30,200.00}},
  187.     {"Caligula's Palace",           {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
  188.     {"Caligula's Palace",           {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
  189.     {"Calton Heights",              {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
  190.     {"Chinatown",                   {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
  191.     {"City Hall",                   {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
  192.     {"Come-A-Lot",                  {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
  193.     {"Commerce",                    {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
  194.     {"Commerce",                    {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
  195.     {"Commerce",                    {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
  196.     {"Commerce",                    {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
  197.     {"Commerce",                    {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
  198.     {"Commerce",                    {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
  199.     {"Conference Center",           {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
  200.     {"Conference Center",           {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
  201.     {"Cranberry Station",           {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
  202.     {"Creek",                       {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
  203.     {"Dillimore",                   {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
  204.     {"Doherty",                     {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
  205.     {"Doherty",                     {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
  206.     {"Downtown",                    {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
  207.     {"Downtown",                    {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
  208.     {"Downtown",                    {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
  209.     {"Downtown",                    {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
  210.     {"Downtown",                    {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
  211.     {"Downtown",                    {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
  212.     {"Downtown Los Santos",         {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
  213.     {"Downtown Los Santos",         {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
  214.     {"Downtown Los Santos",         {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
  215.     {"Downtown Los Santos",         {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
  216.     {"Downtown Los Santos",         {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
  217.     {"Downtown Los Santos",         {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
  218.     {"Downtown Los Santos",         {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
  219.     {"Downtown Los Santos",         {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
  220.     {"Downtown Los Santos",         {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
  221.     {"East Beach",                  {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
  222.     {"East Beach",                  {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
  223.     {"East Beach",                  {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
  224.     {"East Beach",                  {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
  225.     {"East Los Santos",             {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
  226.     {"East Los Santos",             {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
  227.     {"East Los Santos",             {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
  228.     {"East Los Santos",             {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
  229.     {"East Los Santos",             {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
  230.     {"East Los Santos",             {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
  231.     {"East Los Santos",             {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
  232.     {"Easter Basin",                {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
  233.     {"Easter Basin",                {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
  234.     {"Easter Bay Airport",          {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
  235.     {"Easter Bay Airport",          {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
  236.     {"Easter Bay Airport",          {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
  237.     {"Easter Bay Airport",          {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
  238.     {"Easter Bay Airport",          {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
  239.     {"Easter Bay Airport",          {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
  240.     {"Easter Bay Airport",          {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
  241.     {"Easter Bay Airport",          {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
  242.     {"Easter Bay Chemicals",        {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
  243.     {"Easter Bay Chemicals",        {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
  244.     {"El Castillo del Diablo",      {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
  245.     {"El Castillo del Diablo",      {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
  246.     {"El Castillo del Diablo",      {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
  247.     {"El Corona",                   {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
  248.     {"El Corona",                   {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
  249.     {"El Quebrados",                {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
  250.     {"Esplanade East",              {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
  251.     {"Esplanade East",              {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
  252.     {"Esplanade East",              {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
  253.     {"Esplanade North",             {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
  254.     {"Esplanade North",             {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
  255.     {"Esplanade North",             {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
  256.     {"Fallen Tree",                 {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
  257.     {"Fallow Bridge",               {434.30,366.50,0.00,603.00,555.60,200.00}},
  258.     {"Fern Ridge",                  {508.10,-139.20,0.00,1306.60,119.50,200.00}},
  259.     {"Financial",                   {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
  260.     {"Fisher's Lagoon",             {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
  261.     {"Flint Intersection",          {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
  262.     {"Flint Range",                 {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
  263.     {"Fort Carson",                 {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
  264.     {"Foster Valley",               {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
  265.     {"Foster Valley",               {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
  266.     {"Foster Valley",               {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
  267.     {"Foster Valley",               {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
  268.     {"Frederick Bridge",            {2759.20,296.50,0.00,2774.20,594.70,200.00}},
  269.     {"Gant Bridge",                 {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
  270.     {"Gant Bridge",                 {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
  271.     {"Ganton",                      {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
  272.     {"Ganton",                      {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
  273.     {"Garcia",                      {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
  274.     {"Garcia",                      {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
  275.     {"Garver Bridge",               {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
  276.     {"Garver Bridge",               {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
  277.     {"Garver Bridge",               {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
  278.     {"Glen Park",                   {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
  279.     {"Glen Park",                   {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
  280.     {"Glen Park",                   {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
  281.     {"Green Palms",                 {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
  282.     {"Greenglass College",          {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
  283.     {"Greenglass College",          {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
  284.     {"Hampton Barns",               {603.00,264.30,0.00,761.90,366.50,200.00}},
  285.     {"Hankypanky Point",            {2576.90,62.10,0.00,2759.20,385.50,200.00}},
  286.     {"Harry Gold Parkway",          {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
  287.     {"Hashbury",                    {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
  288.     {"Hilltop Farm",                {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
  289.     {"Hunter Quarry",               {337.20,710.80,-115.20,860.50,1031.70,203.70}},
  290.     {"Idlewood",                    {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
  291.     {"Idlewood",                    {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
  292.     {"Idlewood",                    {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
  293.     {"Idlewood",                    {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
  294.     {"Idlewood",                    {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
  295.     {"Idlewood",                    {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
  296.     {"Jefferson",                   {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
  297.     {"Jefferson",                   {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
  298.     {"Jefferson",                   {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
  299.     {"Jefferson",                   {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
  300.     {"Jefferson",                   {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
  301.     {"Jefferson",                   {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
  302.     {"Julius Thruway East",         {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
  303.     {"Julius Thruway East",         {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
  304.     {"Julius Thruway East",         {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
  305.     {"Julius Thruway East",         {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
  306.     {"Julius Thruway North",        {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
  307.     {"Julius Thruway North",        {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
  308.     {"Julius Thruway North",        {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
  309.     {"Julius Thruway North",        {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
  310.     {"Julius Thruway North",        {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
  311.     {"Julius Thruway North",        {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
  312.     {"Julius Thruway North",        {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
  313.     {"Julius Thruway North",        {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
  314.     {"Julius Thruway South",        {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
  315.     {"Julius Thruway South",        {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
  316.     {"Julius Thruway West",         {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
  317.     {"Julius Thruway West",         {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
  318.     {"Juniper Hill",                {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
  319.     {"Juniper Hollow",              {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
  320.     {"K.A.C.C. Military Fuels",     {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
  321.     {"Kincaid Bridge",              {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
  322.     {"Kincaid Bridge",              {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
  323.     {"Kincaid Bridge",              {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
  324.     {"King's",                      {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
  325.     {"King's",                      {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
  326.     {"King's",                      {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
  327.     {"LVA Freight Depot",           {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
  328.     {"LVA Freight Depot",           {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
  329.     {"LVA Freight Depot",           {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
  330.     {"LVA Freight Depot",           {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
  331.     {"LVA Freight Depot",           {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
  332.     {"Las Barrancas",               {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
  333.     {"Las Brujas",                  {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
  334.     {"Las Colinas",                 {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
  335.     {"Las Colinas",                 {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
  336.     {"Las Colinas",                 {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
  337.     {"Las Colinas",                 {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
  338.     {"Las Colinas",                 {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
  339.     {"Las Colinas",                 {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
  340.     {"Las Colinas",                 {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
  341.     {"Las Payasadas",               {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
  342.     {"Las Venturas Airport",        {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
  343.     {"Las Venturas Airport",        {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
  344.     {"Las Venturas Airport",        {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
  345.     {"Las Venturas Airport",        {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
  346.     {"Last Dime Motel",             {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
  347.     {"Leafy Hollow",                {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
  348.     {"Liberty City",                {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
  349.     {"Lil' Probe Inn",              {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
  350.     {"Linden Side",                 {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
  351.     {"Linden Station",              {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
  352.     {"Linden Station",              {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
  353.     {"Little Mexico",               {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
  354.     {"Little Mexico",               {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
  355.     {"Los Flores",                  {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
  356.     {"Los Flores",                  {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
  357.     {"Los Santos International",    {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
  358.     {"Los Santos International",    {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
  359.     {"Los Santos International",    {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
  360.     {"Los Santos International",    {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
  361.     {"Los Santos International",    {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
  362.     {"Los Santos International",    {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
  363.     {"Marina",                      {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
  364.     {"Marina",                      {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
  365.     {"Marina",                      {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
  366.     {"Market",                      {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
  367.     {"Market",                      {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
  368.     {"Market",                      {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
  369.     {"Market",                      {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
  370.     {"Market Station",              {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
  371.     {"Martin Bridge",               {-222.10,293.30,0.00,-122.10,476.40,200.00}},
  372.     {"Missionary Hill",             {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
  373.     {"Montgomery",                  {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
  374.     {"Montgomery",                  {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
  375.     {"Montgomery Intersection",     {1546.60,208.10,0.00,1745.80,347.40,200.00}},
  376.     {"Montgomery Intersection",     {1582.40,347.40,0.00,1664.60,401.70,200.00}},
  377.     {"Mulholland",                  {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
  378.     {"Mulholland",                  {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
  379.     {"Mulholland",                  {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
  380.     {"Mulholland",                  {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
  381.     {"Mulholland",                  {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
  382.     {"Mulholland",                  {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
  383.     {"Mulholland",                  {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
  384.     {"Mulholland",                  {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
  385.     {"Mulholland",                  {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
  386.     {"Mulholland",                  {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
  387.     {"Mulholland",                  {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
  388.     {"Mulholland",                  {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
  389.     {"Mulholland",                  {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
  390.     {"Mulholland Intersection",     {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
  391.     {"North Rock",                  {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
  392.     {"Ocean Docks",                 {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
  393.     {"Ocean Docks",                 {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
  394.     {"Ocean Docks",                 {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
  395.     {"Ocean Docks",                 {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
  396.     {"Ocean Docks",                 {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
  397.     {"Ocean Docks",                 {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
  398.     {"Ocean Docks",                 {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
  399.     {"Ocean Flats",                 {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
  400.     {"Ocean Flats",                 {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
  401.     {"Ocean Flats",                 {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
  402.     {"Octane Springs",              {338.60,1228.50,0.00,664.30,1655.00,200.00}},
  403.     {"Old Venturas Strip",          {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
  404.     {"Palisades",                   {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
  405.     {"Palomino Creek",              {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
  406.     {"Paradiso",                    {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
  407.     {"Pershing Square",             {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
  408.     {"Pilgrim",                     {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
  409.     {"Pilgrim",                     {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
  410.     {"Pilson Intersection",         {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
  411.     {"Pirates in Men's Pants",      {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
  412.     {"Playa del Seville",           {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
  413.     {"Prickle Pine",                {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
  414.     {"Prickle Pine",                {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
  415.     {"Prickle Pine",                {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
  416.     {"Prickle Pine",                {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
  417.     {"Queens",                      {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
  418.     {"Queens",                      {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
  419.     {"Queens",                      {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
  420.     {"Randolph Industrial Estate",  {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
  421.     {"Redsands East",               {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
  422.     {"Redsands East",               {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
  423.     {"Redsands East",               {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
  424.     {"Redsands West",               {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
  425.     {"Redsands West",               {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
  426.     {"Redsands West",               {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
  427.     {"Redsands West",               {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
  428.     {"Regular Tom",                 {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
  429.     {"Richman",                     {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
  430.     {"Richman",                     {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
  431.     {"Richman",                     {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
  432.     {"Richman",                     {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
  433.     {"Richman",                     {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
  434.     {"Richman",                     {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
  435.     {"Richman",                     {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
  436.     {"Richman",                     {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
  437.     {"Richman",                     {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
  438.     {"Richman",                     {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
  439.     {"Robada Intersection",         {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
  440.     {"Roca Escalante",              {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
  441.     {"Roca Escalante",              {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
  442.     {"Rockshore East",              {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
  443.     {"Rockshore West",              {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
  444.     {"Rockshore West",              {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
  445.     {"Rodeo",                       {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
  446.     {"Rodeo",                       {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
  447.     {"Rodeo",                       {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
  448.     {"Rodeo",                       {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
  449.     {"Rodeo",                       {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
  450.     {"Rodeo",                       {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
  451.     {"Rodeo",                       {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
  452.     {"Rodeo",                       {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
  453.     {"Rodeo",                       {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
  454.     {"Rodeo",                       {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
  455.     {"Rodeo",                       {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
  456.     {"Rodeo",                       {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
  457.     {"Royal Casino",                {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
  458.     {"San Andreas Sound",           {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
  459.     {"Santa Flora",                 {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
  460.     {"Santa Maria Beach",           {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
  461.     {"Santa Maria Beach",           {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
  462.     {"Shady Cabin",                 {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
  463.     {"Shady Creeks",                {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
  464.     {"Shady Creeks",                {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
  465.     {"Sobell Rail Yards",           {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
  466.     {"Spinybed",                    {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
  467.     {"Starfish Casino",             {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
  468.     {"Starfish Casino",             {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
  469.     {"Starfish Casino",             {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
  470.     {"Temple",                      {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
  471.     {"Temple",                      {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
  472.     {"Temple",                      {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
  473.     {"Temple",                      {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
  474.     {"Temple",                      {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
  475.     {"Temple",                      {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
  476.     {"The Camel's Toe",             {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
  477.     {"The Clown's Pocket",          {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
  478.     {"The Emerald Isle",            {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
  479.     {"The Farm",                    {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
  480.     {"The Four Dragons Casino",     {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
  481.     {"The High Roller",             {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
  482.     {"The Mako Span",               {1664.60,401.70,0.00,1785.10,567.20,200.00}},
  483.     {"The Panopticon",              {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
  484.     {"The Pink Swan",               {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
  485.     {"The Sherman Dam",             {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
  486.     {"The Strip",                   {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
  487.     {"The Strip",                   {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
  488.     {"The Strip",                   {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
  489.     {"The Strip",                   {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
  490.     {"The Visage",                  {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
  491.     {"The Visage",                  {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
  492.     {"Unity Station",               {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
  493.     {"Valle Ocultado",              {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
  494.     {"Verdant Bluffs",              {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
  495.     {"Verdant Bluffs",              {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
  496.     {"Verdant Bluffs",              {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
  497.     {"Verdant Meadows",             {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
  498.     {"Verona Beach",                {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
  499.     {"Verona Beach",                {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
  500.     {"Verona Beach",                {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
  501.     {"Verona Beach",                {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
  502.     {"Verona Beach",                {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
  503.     {"Vinewood",                    {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
  504.     {"Vinewood",                    {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
  505.     {"Vinewood",                    {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
  506.     {"Vinewood",                    {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
  507.     {"Whitewood Estates",           {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
  508.     {"Whitewood Estates",           {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
  509.     {"Willowfield",                 {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
  510.     {"Willowfield",                 {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
  511.     {"Willowfield",                 {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
  512.     {"Willowfield",                 {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
  513.     {"Willowfield",                 {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
  514.     {"Willowfield",                 {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
  515.     {"Willowfield",                 {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
  516.     {"Yellow Bell Station",         {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
  517.     {"Los Santos",                  {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
  518.     {"Las Venturas",                {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
  519.     {"Bone County",                 {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
  520.     {"Tierra Robada",               {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
  521.     {"Tierra Robada",               {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
  522.     {"San Fierro",                  {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
  523.     {"Red County",                  {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
  524.     {"Flint County",                {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
  525.     {"Whetstone",                   {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
  526. };
  527.  
  528. new CarName[212][] = {
  529.     "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
  530.     "Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
  531.     "Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
  532.     "Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
  533.     "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
  534.     "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
  535.     "Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
  536.     "Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa","RC Goblin","Hotring Racer A","Hotring Racer B",
  537.     "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain",
  538.     "Nebula","Majestic","Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
  539.     "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover",
  540.     "Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
  541.     "Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight","Trailer",
  542.     "Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer A","Emperor",
  543.     "Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","Andromada","Dodo","RC Cam","Launch","Police Car (LSPD)","Police Car (SFPD)",
  544.     "Police Car (LVPD)","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
  545.     "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  546. };
  547.  
  548. /*[!]======================================================================[!]*/
  549. public OnGameModeInit()
  550. {
  551.     SetGameModeText("Humans Vs Zombies");
  552.     SendRconCommand("mapname Whetstone");
  553.     SendRconCommand("hostname The walking dead|0.3x|V: 1.0|");
  554.     DisableInteriorEnterExits();
  555.     UsePlayerPedAnims();
  556.     EnableStuntBonusForAll(0);
  557.  
  558.     SetTimer("OnPlayerUpDateEx", 1000, true);
  559.  
  560.     SetWeather( 9 );
  561.     SetTimer("HorasMinutos",1 * 60 * 1000, true);
  562.     for(new i; i < sizeof( Humano ); i++){AddPlayerClass( Humano[i], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);}
  563.     for(new i; i < sizeof( Zombie ); i++){AddPlayerClass( Zombie[i], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);}
  564.  
  565.     Create3DTextLabel( ""LA"ShotGun: $2000\n"LA"M4: $2200\n"LA"AK-47: $2500\n"LA"Shiper Rifle: $5000",-1,310.6954,-165.1933,999.5938+0.75,30.0,0,1);
  566.     Create3DTextLabel( ""KK"9mm: $600\n"KK"9mm Silenciada: $800\n"KK"Desert Eagle: $1200\n"KK"Rifle County: $3500",-1,314.8313,-165.2574,999.5938+0.75,30.0,0,1);
  567.     Create3DTextLabel( ""BC"Uzi: $1500\n"BC"MP5: $1600\n"BC"Tec-90: $1200\n"BC"Chaleco: $200",-1,317.6752,-161.3642,999.5938+0.75,30.0,0,1);
  568.     Create3DTextLabel( ""LL"Para comprar uma arma colocate \n"LL"frente da mesma e pressione a letra '"KK"Y"LL"'",-1,311.4319,-168.8823,999.5938+0.75,30.0,0,1);
  569.  
  570.     AddStaticPickup( 1318 , 1 , -1623.8755 , -2693.77340 , 48.7427 , -1);
  571.     AddStaticPickup( 1318 , 1 , 316.258087 , -169.656600 , 999.601 , -1);
  572.     AddStaticPickup( 1318 , 1 , -1561.8456 , -2733.40230 , 48.7435 , -1);
  573.     AddStaticPickup( 1318 , 1 , 501.980987 , -69.1501990 , 998.757 , -1);
  574.     AddStaticPickup( 1239 , 1 , 498.404700 , -75.7382000 , 998.757 , -1);
  575.  
  576.     TextdrawGlobal[1] = TextDrawCreate(329.000000, 344.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
  577.     TextDrawAlignment(TextdrawGlobal[1], 2);
  578.     TextDrawBackgroundColor(TextdrawGlobal[1], 255);
  579.     TextDrawFont(TextdrawGlobal[1], 1);
  580.     TextDrawLetterSize(TextdrawGlobal[1], 0.229999, 1.200000);
  581.     TextDrawColor(TextdrawGlobal[1], -1);
  582.     TextDrawSetOutline(TextdrawGlobal[1], 1);
  583.     TextDrawSetProportional(TextdrawGlobal[1], 1);
  584.  
  585.     TextdrawGlobal[2] = TextDrawCreate(329.000000, 362.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
  586.     TextDrawAlignment(TextdrawGlobal[2], 2);
  587.     TextDrawBackgroundColor(TextdrawGlobal[2], 255);
  588.     TextDrawFont(TextdrawGlobal[2], 1);
  589.     TextDrawLetterSize(TextdrawGlobal[2], 0.229999, 1.200000);
  590.     TextDrawColor(TextdrawGlobal[2], -1);
  591.     TextDrawSetOutline(TextdrawGlobal[2], 1);
  592.     TextDrawSetProportional(TextdrawGlobal[2], 1);
  593.  
  594.     TextdrawGlobal[3] = TextDrawCreate(329.000000, 380.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
  595.     TextDrawAlignment(TextdrawGlobal[3], 2);
  596.     TextDrawBackgroundColor(TextdrawGlobal[3], 255);
  597.     TextDrawFont(TextdrawGlobal[3], 1);
  598.     TextDrawLetterSize(TextdrawGlobal[3], 0.229999, 1.200000);
  599.     TextDrawColor(TextdrawGlobal[3], -1);
  600.     TextDrawSetOutline(TextdrawGlobal[3], 1);
  601.     TextDrawSetProportional(TextdrawGlobal[3], 1);
  602.  
  603.     TextdrawGlobal[0] = TextDrawCreate(329.000000, 396.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
  604.     TextDrawAlignment(TextdrawGlobal[0], 2);
  605.     TextDrawBackgroundColor(TextdrawGlobal[0], 255);
  606.     TextDrawFont(TextdrawGlobal[0], 1);
  607.     TextDrawLetterSize(TextdrawGlobal[0], 0.229999, 1.200000);
  608.     TextDrawColor(TextdrawGlobal[0], -1);
  609.     TextDrawSetOutline(TextdrawGlobal[0], 1);
  610.     TextDrawSetProportional(TextdrawGlobal[0], 1);
  611.  
  612.     Objectid[0] = CreateDynamicObject(980,-1636.6999512,-2709.8999023,50.5000000,0.0000000,0.0000000,317.9992676);
  613.     Objectid[1] = CreateDynamicObject(980,-1541.1999512,-2777.3999023,49.2000008,0.0000000,0.0000000,326.2492676); //object(airportgate) (4)
  614.  
  615.     AddStaticVehicleEx(470,-1545.3000488,-2747.8999023,48.5999985,352.5000000,95,10,15); //Patriot
  616.     AddStaticVehicleEx(470,-1543.7998047,-2740.0996094,48.5999985,352.4963379,95,10,15); //Patriot
  617.     AddStaticVehicleEx(470,-1540.8000488,-2750.8999023,48.5999985,352.4963379,95,10,15); //Patriot
  618.     AddStaticVehicleEx(470,-1536.0000000,-2753.1000977,48.5999985,352.4963379,95,10,15); //Patriot
  619.     AddStaticVehicleEx(470,-1539.0996094,-2742.8994141,48.5999985,352.4963379,95,10,15); //Patriot
  620.     AddStaticVehicleEx(470,-1534.7998047,-2744.5996094,48.5999985,352.4963379,95,10,15); //Patriot
  621.     AddStaticVehicleEx(500,-1561.5999756,-2759.6000977,48.7999992,325.5000000,88,89,15); //Mesa
  622.     AddStaticVehicleEx(500,-1564.0999756,-2758.0000000,48.7999992,325.4974365,88,89,15); //Mesa
  623.     AddStaticVehicleEx(500,-1566.6999512,-2756.1000977,48.7999992,325.4974365,88,89,15); //Mesa
  624.     AddStaticVehicleEx(500,-1569.1999512,-2754.3999023,48.7999992,325.4974365,88,89,15); //Mesa
  625.     AddStaticVehicleEx(500,-1571.8000488,-2752.6999512,48.7999992,325.4974365,88,89,15); //Mesa
  626.     AddStaticVehicleEx(500,-1574.1999512,-2751.1000977,48.7999992,325.4974365,88,89,15); //Mesa
  627.     AddStaticVehicleEx(495,-1577.8000488,-2747.8999023,49.0999985,325.5000000,134,68,15); //Sandking
  628.     AddStaticVehicleEx(495,-1580.5999756,-2746.0000000,49.0999985,325.4974365,134,68,15); //Sandking
  629.     AddStaticVehicleEx(495,-1583.5000000,-2744.1000977,49.0999985,325.4974365,134,68,15); //Sandking
  630.     AddStaticVehicleEx(495,-1586.5000000,-2742.0000000,49.0999985,325.4974365,134,68,15); //Sandking
  631.     AddStaticVehicleEx(468,-1523.6999512,-2749.3999023,48.2999992,351.7500000,132,4,15); //Sanchez
  632.     AddStaticVehicleEx(468,-1524.9000244,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  633.     AddStaticVehicleEx(468,-1526.0000000,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  634.     AddStaticVehicleEx(468,-1527.0999756,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  635.     AddStaticVehicleEx(468,-1528.6999512,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  636.     AddStaticVehicleEx(468,-1529.8000488,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  637.     AddStaticVehicleEx(468,-1530.8000488,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  638.     AddStaticVehicleEx(468,-1532.0000000,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
  639.     AddStaticVehicleEx(437,-1580.5999756,-2717.0000000,48.7999992,56.2500000,100,104,15); //Coach
  640.     AddStaticVehicleEx(437,-1582.9000244,-2720.5000000,48.7999992,56.2500000,100,104,15); //Coach
  641.  
  642.     CreateDynamicObject(3749,-1541.5000000,-2777.8000488,52.2999992,0.0000000,0.0000000,324.7500000); //object(clubgate01_lax) (1)
  643.     CreateDynamicObject(3749,-1636.0999756,-2709.3000488,53.5000000,0.0000000,0.0000000,317.9948730); //object(clubgate01_lax) (2)
  644.     CreateDynamicObject(8209,-1589.5000000,-2744.0000000,50.2000008,0.0000000,0.0000000,144.7500305); //object(vgsselecfence11) (1)
  645.     CreateDynamicObject(987,-1527.1999512,-2770.8999023,47.5000000,0.0000000,0.0000000,233.2500305); //object(elecfence_bar) (1)
  646.     CreateDynamicObject(987,-1520.8000488,-2760.8000488,47.5000000,0.0000000,0.0000000,236.9952393); //object(elecfence_bar) (2)
  647.     CreateDynamicObject(987,-1514.5999756,-2751.3999023,47.5000000,0.0000000,0.0000000,236.9915924); //object(elecfence_bar) (3)
  648.     CreateDynamicObject(987,-1524.1999512,-2743.8999023,47.5000000,0.0000000,0.0000000,321.7416077); //object(elecfence_bar) (4)
  649.     CreateDynamicObject(987,-1533.5999756,-2736.5000000,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (5)
  650.     CreateDynamicObject(987,-1543.0999756,-2729.1000977,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (6)
  651.     CreateDynamicObject(987,-1552.1999512,-2721.8999023,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (7)
  652.     CreateDynamicObject(987,-1560.1999512,-2715.3999023,47.5000000,0.0000000,0.0000000,320.9901123); //object(elecfence_bar) (8)
  653.     CreateDynamicObject(987,-1571.5999756,-2712.1999512,47.5000000,0.0000000,0.0000000,344.9868164); //object(elecfence_bar) (9)
  654.     CreateDynamicObject(987,-1582.4000244,-2707.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (10)
  655.     CreateDynamicObject(987,-1593.1999512,-2702.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (11)
  656.     CreateDynamicObject(987,-1604.0000000,-2697.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (12)
  657.     CreateDynamicObject(987,-1614.8000488,-2692.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (13)
  658.     CreateDynamicObject(987,-1624.8000488,-2685.6999512,47.5000000,0.0000000,0.0000000,327.7313232); //object(elecfence_bar) (14)
  659.     CreateDynamicObject(987,-1633.0999756,-2694.1999512,47.5000000,0.0000000,0.0000000,45.7283936); //object(elecfence_bar) (15)
  660.     CreateDynamicObject(987,-1641.5999756,-2702.5000000,47.5000000,0.0000000,0.0000000,44.9750977); //object(elecfence_bar) (16)
  661.     CreateDynamicObject(1281,-1569.6999512,-2724.1000977,51.0000000,2.0046692,332.9821167,49.0219116); //object(parktable1) (1)
  662.     CreateDynamicObject(1281,-1563.9000244,-2728.1999512,51.0000000,359.9983521,330.7469482,54.7448120); //object(parktable1) (2)
  663.     CreateDynamicObject(1281,-1557.6999512,-2732.6999512,51.0000000,0.6326904,327.7447510,52.1449890); //object(parktable1) (3)
  664.     CreateDynamicObject(1281,-1552.1999512,-2736.1000977,51.0000000,2.0289917,334.4797974,48.9641113); //object(parktable1) (4)
  665.     CreateDynamicObject(1281,-1564.5999756,-2732.1000977,48.7999992,0.0000000,270.0000000,54.7498169); //object(parktable1) (5)
  666.     CreateDynamicObject(3593,-1601.6999512,-2753.3999023,48.2999992,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (1)
  667.     CreateDynamicObject(3593,-1531.6999512,-2803.1000977,46.7000008,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (2)
  668.     CreateDynamicObject(3593,-1657.3000488,-2714.5000000,48.2999992,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (3)
  669.     CreateDynamicObject(3594,-1613.8000488,-2759.6000977,46.5999985,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (1)
  670.     CreateDynamicObject(2677,-1595.9000244,-2758.3999023,47.7999992,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_7) (1)
  671.     CreateDynamicObject(2676,-1595.5000000,-2746.1999512,47.7000008,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_8) (1)
  672.     CreateDynamicObject(2675,-1602.5000000,-2742.0000000,47.7999992,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_6) (1)
  673.     CreateDynamicObject(2674,-1587.3000488,-2752.5000000,47.5000000,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_2) (1)
  674.     CreateDynamicObject(2675,-1604.4000244,-2775.3000488,46.0000000,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_6) (2)
  675.     CreateDynamicObject(2674,-1606.5999756,-2766.6000977,45.9000015,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_2) (2)
  676.     CreateDynamicObject(2672,-1585.4000244,-2764.8000488,47.5999985,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_4) (1)
  677.     CreateDynamicObject(1328,-1601.5999756,-2783.3999023,46.5999985,0.0000000,0.0000000,0.0000000); //object(binnt10_la) (1)
  678.     CreateDynamicObject(12957,-1595.1999512,-2767.3000488,47.4000015,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (1)
  679.     CreateDynamicObject(12961,-1657.8000488,-2210.1999512,31.8999996,0.0000000,0.0000000,0.0000000); //object(sw_hedstones) (3)
  680.     CreateDynamicObject(1369,-1641.0999756,-2238.8999023,34.2000008,0.0000000,0.0000000,0.0000000); //object(cj_wheelchair1) (1)
  681.     CreateDynamicObject(2905,-1630.1999512,-2236.3999023,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadleg) (1)
  682.     CreateDynamicObject(2906,-1631.3000488,-2236.8999023,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadarm) (1)
  683.     CreateDynamicObject(2907,-1658.3000488,-2219.0000000,32.2999992,0.0000000,0.0000000,340.5000000); //object(kmb_deadtorso) (1)
  684.     CreateDynamicObject(2908,-1658.0999756,-2225.8000488,32.7999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (1)
  685.     CreateDynamicObject(3007,-1648.9000244,-2244.3999023,29.7999992,0.0000000,0.0000000,0.0000000); //object(chopcop_torso) (1)
  686.     CreateDynamicObject(2908,-1641.4000244,-2243.6000977,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (2)
  687.     CreateDynamicObject(2908,-1652.9000244,-2243.1999512,30.5000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (3)
  688.     CreateDynamicObject(12961,-1657.8000488,-2200.8000488,32.5000000,0.0000000,0.0000000,0.0000000); //object(sw_hedstones) (5)
  689.     CreateDynamicObject(2907,-1632.3994141,-2237.6992188,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (2)
  690.     CreateDynamicObject(2907,-1644.6999512,-2228.5000000,29.2999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (3)
  691.     CreateDynamicObject(2907,-1649.6992188,-2227.2998047,29.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (4)
  692.     CreateDynamicObject(3092,-1651.1999512,-2235.0000000,28.8999996,277.5000000,0.0000000,25.5000000); //object(dead_tied_cop) (1)
  693.     CreateDynamicObject(3092,-1651.9000244,-2231.6999512,29.0000000,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (2)
  694.     CreateDynamicObject(3092,-1650.0999756,-2231.1999512,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (3)
  695.     CreateDynamicObject(3092,-1649.1999512,-2229.3000488,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (4)
  696.     CreateDynamicObject(3092,-1644.1999512,-2230.6999512,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (5)
  697.     CreateDynamicObject(3092,-1642.0000000,-2236.3999023,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (6)
  698.     CreateDynamicObject(3098,-1646.6999512,-2220.3999023,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (1)
  699.     CreateDynamicObject(3098,-1646.6999512,-2224.0000000,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (2)
  700.     CreateDynamicObject(3098,-1644.3000488,-2224.0000000,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (3)
  701.     CreateDynamicObject(3098,-1644.3000488,-2220.6000977,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (4)
  702.     CreateDynamicObject(3098,-1642.6999512,-2223.8000488,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (5)
  703.     CreateDynamicObject(3098,-1642.6999512,-2223.8000488,36.4000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (6)
  704.     CreateDynamicObject(3098,-1642.6999512,-2223.8000488,39.7000008,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (7)
  705.     CreateDynamicObject(3098,-1645.5999756,-2223.8000488,39.7000008,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (8)
  706.     CreateDynamicObject(3098,-1645.5999756,-2223.8000488,35.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (9)
  707.     CreateDynamicObject(849,-1665.0000000,-2236.6999512,33.2000008,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3) (1)
  708.     CreateDynamicObject(850,-1656.8000488,-2240.0000000,30.7999992,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_1) (1)
  709.     CreateDynamicObject(851,-1663.9000244,-2226.6999512,32.5000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_2) (1)
  710.     CreateDynamicObject(16442,-1657.4000244,-2225.3000488,32.2000008,0.0000000,0.0000000,0.0000000); //object(desn2_stripsigs1) (1)
  711.     CreateDynamicObject(2908,-1658.0999756,-2225.3000488,32.7999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (4)
  712.     CreateDynamicObject(2908,-1657.0999756,-2225.3000488,33.4000015,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (5)
  713.     CreateDynamicObject(2908,-1657.8000488,-2225.3000488,33.0000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (6)
  714.     CreateDynamicObject(2908,-1658.5000000,-2225.3000488,33.4000015,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (7)
  715.     CreateDynamicObject(2908,-1657.9000244,-2225.3000488,33.0999985,0.0000000,0.0000000,0.7500000); //object(kmb_deadhead) (8)
  716.     CreateDynamicObject(2803,-1653.3000488,-2238.1000977,29.7000008,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (1)
  717.     CreateDynamicObject(2803,-1643.1992188,-2229.3994141,29.6000004,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (2)
  718.     CreateDynamicObject(2803,-1681.3000488,-2275.6000977,38.0999985,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (3)
  719.     CreateDynamicObject(2803,-1671.5000000,-2269.1999512,36.2999992,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (4)
  720.     CreateDynamicObject(12957,-1670.4000244,-2218.8999023,33.5000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (2)
  721.     CreateDynamicObject(12957,-1674.9000244,-2241.6000977,34.4000015,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (3)
  722.  
  723.     CreateDynamicObject(356,311.6000061,-162.3999939,999.5999756,276.4063721,159.3993530,250.2672729); //object(1)
  724.     CreateDynamicObject(355,310.5000000,-163.1999969,999.5999756,278.1065674,146.1935425,138.9589844); //object(2)
  725.     CreateDynamicObject(349,309.8999939,-162.6000061,999.5999756,84.6968384,261.8941650,200.1403198); //object(3)
  726.     CreateDynamicObject(358,310.5000000,-161.3999939,999.5999756,82.6160889,246.1438599,121.5330811); //object(4)
  727.     CreateDynamicObject(357,314.8999939,-161.5000000,999.5999756,83.5934448,290.4814453,79.1505127); //object(5)
  728.     CreateDynamicObject(348,314.2000122,-162.1999969,999.5999756,271.4998169,180.0000000,87.7500000); //object(6)
  729.     CreateDynamicObject(347,315.0000000,-163.1999969,999.5999756,281.4702148,11.3864746,11.1648560); //object(7)
  730.     CreateDynamicObject(346,315.8999939,-162.3999939,999.5999756,278.1066895,213.8062134,311.7905273); //object(8)
  731.     CreateDynamicObject(1242,319.1000061,-159.8000031,999.9000244,0.0000000,0.0000000,0.0000000); //object(bodyarmour) (1)
  732.     CreateDynamicObject(352,319.0000000,-163.3000031,999.7999878,271.4998169,180.0000000,77.2500000); //object(9)
  733.     CreateDynamicObject(353,318.8999939,-162.3999939,999.7999878,84.1447144,230.2736206,217.6237183); //object(10)
  734.     CreateDynamicObject(372,319.0000000,-160.8999939,999.7999878,83.8161926,345.9354248,104.7360229); //object(11)
  735.  
  736.     return 1;
  737. }
  738. /*[!]======================================================================[!]*/
  739. public OnGameModeExit()
  740. {
  741.     return 1;
  742. }
  743. /*[!]======================================================================[!]*/
  744. public OnPlayerRequestClass(playerid, classid)
  745. {
  746.  
  747.     switch( classid )
  748.     {
  749.         case 0,1,2,3,4,5,6,7,8,9,10:
  750.         {
  751.         SetPlayerCameraPos(playerid, -1564.243530, -2746.124755, 49.833274 );
  752.         SetPlayerCameraLookAt(playerid, -1561.370483, -2742.076171, 49.238334 );
  753.         Equipo[playerid] = Raza_Humana;
  754.         SetPlayerPosEx(playerid,-1557.8397,-2737.2100,48.7435,144.0719);
  755.         GameTextForPlayer(playerid, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~__________~w~Humano", 1000, 6);
  756.         }
  757.         case 11,12,13,14,15,16,17,18,19,20:
  758.         {
  759.         SetPlayerCameraPos(playerid, -1851.936157, -1639.604370, 25.086112 );
  760.         SetPlayerCameraLookAt(playerid, -1853.789550, -1635.148681, 23.777824 );
  761.         Equipo[playerid] = Raza_Zombie;
  762.         SetPlayerPosEx(playerid, -1856.9889,-1629.3225,21.8975,177.0140);
  763.         GameTextForPlayer(playerid, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~__________~r~Zombie", 1000, 6);
  764.         }
  765.    }
  766.  
  767.     return 1;
  768. }
  769. /*[!]======================================================================[!]*/
  770. public OnPlayerRequestSpawn(playerid)
  771. {
  772.  
  773.     return 1;
  774. }
  775. /*[!]======================================================================[!]*/
  776. public OnPlayerConnect(playerid)
  777. {
  778.     if(fexist(Usuario(playerid)))
  779.     {
  780.     INI_ParseFile(Usuario(playerid), "CargarUser_%s", .bExtra = true, .extra = playerid);
  781.     ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_INPUT,""LL" login.",""KK"Sua conta já existe, por favor, digite a sua senha.","Ingresar","Salir");
  782.     }
  783.     else
  784.     {
  785.     ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_INPUT,""LL" registrar...",""KK"Sua conta não está registrado, por favor digite uma senha.","Register","Salir");
  786.     }
  787.  
  788.     MyTime[playerid] = SetTimerEx( "StatusFromPlayerTextDraw", 1000, true, "d", playerid);
  789.    
  790.     Textdraw0 = CreatePlayerTextDraw(playerid,606.000000, 401.000000, "hud:radar_datefood");
  791.     PlayerTextDrawAlignment(playerid,Textdraw0, 2);
  792.     PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
  793.     PlayerTextDrawFont(playerid,Textdraw0, 4);
  794.     PlayerTextDrawLetterSize(playerid,Textdraw0, 0.500000, 1.000000);
  795.     PlayerTextDrawColor(playerid,Textdraw0, 16711935);
  796.     PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
  797.     PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
  798.     PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
  799.     PlayerTextDrawUseBox(playerid,Textdraw0, 1);
  800.     PlayerTextDrawBoxColor(playerid,Textdraw0, 17);
  801.     PlayerTextDrawTextSize(playerid,Textdraw0, 20.000000, 20.000000);
  802.     PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);
  803.  
  804.     Textdraw1 = CreatePlayerTextDraw(playerid,606.000000, 370.000000, "hud:radar_girlfriend");
  805.     PlayerTextDrawAlignment(playerid,Textdraw1, 2);
  806.     PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
  807.     PlayerTextDrawFont(playerid,Textdraw1, 4);
  808.     PlayerTextDrawLetterSize(playerid,Textdraw1, 0.500000, 1.000000);
  809.     PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
  810.     PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
  811.     PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
  812.     PlayerTextDrawUseBox(playerid,Textdraw1, 1);
  813.     PlayerTextDrawBoxColor(playerid,Textdraw1, 17);
  814.     PlayerTextDrawTextSize(playerid,Textdraw1, 20.000000, 20.000000);
  815.     PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);
  816.  
  817.     Textdraw2 = CreatePlayerTextDraw(playerid,606.000000, 340.000000, "hud:radar_diner");
  818.     PlayerTextDrawAlignment(playerid,Textdraw2, 2);
  819.     PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
  820.     PlayerTextDrawFont(playerid,Textdraw2, 4);
  821.     PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
  822.     PlayerTextDrawColor(playerid,Textdraw2, 16711935);
  823.     PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
  824.     PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
  825.     PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
  826.     PlayerTextDrawUseBox(playerid,Textdraw2, 1);
  827.     PlayerTextDrawBoxColor(playerid,Textdraw2, 17);
  828.     PlayerTextDrawTextSize(playerid,Textdraw2, 20.000000, 20.000000);
  829.     PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);
  830.  
  831.     Textdraw3 = CreatePlayerTextDraw(playerid,587.000000, 23.000000, "~n~_~n~_~n~_");
  832.     PlayerTextDrawAlignment(playerid,Textdraw3, 2);
  833.     PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
  834.     PlayerTextDrawFont(playerid,Textdraw3, 1);
  835.     PlayerTextDrawLetterSize(playerid,Textdraw3, 0.569999, 1.400000);
  836.     PlayerTextDrawColor(playerid,Textdraw3, -1);
  837.     PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
  838.     PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
  839.     PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
  840.     PlayerTextDrawUseBox(playerid,Textdraw3, 1);
  841.     PlayerTextDrawBoxColor(playerid,Textdraw3, 255);
  842.     PlayerTextDrawTextSize(playerid,Textdraw3, 5.000000, 77.000000);
  843.     PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);
  844.  
  845.     Textdraw4 = CreatePlayerTextDraw(playerid,558.000000, 21.000000, "~g~~h~~h~~h~Debug Monitor");
  846.     PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
  847.     PlayerTextDrawFont(playerid,Textdraw4, 1);
  848.     PlayerTextDrawLetterSize(playerid,Textdraw4, 0.250000, 1.100000);
  849.     PlayerTextDrawColor(playerid,Textdraw4, -1);
  850.     PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
  851.     PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
  852.     PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
  853.     PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);
  854.  
  855.     Textdraw5 = CreatePlayerTextDraw(playerid,548.000000, 33.000000, "~r~Zombie Killed:~w~ 000~n~~b~~h~Human Killed:~w~ 000~n~~p~Time:~w~ 00:00:00~n~~y~~h~~h~Date:~w~ 00/00/0000");
  856.     PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
  857.     PlayerTextDrawFont(playerid,Textdraw5, 1);
  858.     PlayerTextDrawLetterSize(playerid,Textdraw5, 0.250000, 1.100000);
  859.     PlayerTextDrawColor(playerid,Textdraw5, -1);
  860.     PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
  861.     PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
  862.     PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
  863.     PlayerTextDrawSetSelectable(playerid,Textdraw5, 0);
  864.  
  865.     PlayerSpawnStats[ playerid ] = false;
  866.     EnteredDialog   [ playerid ] = false;
  867.  
  868.     PlayerTextDrawShow( playerid, Textdraw3);
  869.     PlayerTextDrawShow( playerid, Textdraw4);
  870.     PlayerTextDrawShow( playerid, Textdraw5);
  871.    
  872.     PlayerInfo[playerid][pCash]      = 0;
  873.     PlayerInfo[playerid][pAdmin]     = 0;
  874.     PlayerInfo[playerid][pKills]     = 0;
  875.     PlayerInfo[playerid][pDeaths]    = 0;
  876.     PlayerInfo[playerid][pMins]      = 0;
  877.     PlayerInfo[playerid][pHora]      = 0;
  878.     PlayerInfo[playerid][pSkills]    = 0;
  879.     PlayerInfo[playerid][pInfecct]   = 0;
  880.     PlayerInfo[playerid][pCuret]     = 0;
  881.  
  882.     BeberStats [ playerid ] = MAX_STATS;
  883.     ComidaStats[ playerid ] = MAX_STATS;
  884.  
  885.     Viruz[playerid] = 1;
  886.     SetPlayerColor(playerid, PLAT);
  887.     SetPlayerTime(playerid, 23, 0);
  888.  
  889.     SetPlayerCheckpoint(playerid, -1548.0659, -2733.6726, 48.7435, 1.0);
  890.     Create3DTextLabel( "Desinfectados", MainNaranja ,-1548.0659, -2733.6726, 48.7435+0.75,30.0,0,1);
  891.     RemoveBuildingForPlayer(playerid, 18105, 313, -164, 1000, 50.0);
  892.  
  893.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
  894.     for(new i; i < 15; i++){SendClientMessage(playerid, LARC, " ");}
  895.     SendClientMessage(playerid, LARC,     "[!]==========================[!]");
  896.     SendClientMessage(playerid, LARC,     "[!]: Zombie Vs Humans");
  897.     SendClientMessage(playerid, KAKI,     "[!]: Create By Cesar_Google");
  898.     SendClientMessage(playerid, LARC,     "[!]: Mode: Zombie");
  899.     SendClientMessage(playerid, LARC,     "[!]==========================[!]");
  900.     return 1;
  901. }
  902. /*[!]======================================================================[!]*/
  903. public OnPlayerDisconnect(playerid, reason)
  904. {
  905.     KillTimer(MyTime[playerid]);
  906.  
  907.     new INI:File = INI_Open(Usuario(playerid));
  908.     INI_SetTag(File,"data");
  909.     INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  910.     INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  911.     INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  912.     INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  913.     INI_WriteInt(File,"Minutos",PlayerInfo[playerid][pMins]);
  914.     INI_WriteInt(File,"Horas",PlayerInfo[playerid][pHora]);
  915.     INI_WriteInt(File,"Skills",PlayerInfo[playerid][pSkills]);
  916.     INI_WriteInt(File,"Infectado",PlayerInfo[playerid][pInfecct]);
  917.     INI_WriteInt(File,"Cura",PlayerInfo[playerid][pCuret]);
  918.  
  919.     INI_Close(File);
  920.  
  921.     SetPlayerColor(playerid, PLAT);
  922.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
  923.     return 1;
  924. }
  925. /*[!]======================================================================[!]*/
  926. public OnPlayerSpawn(playerid)
  927. {
  928.     new Rand = random(7);
  929.     if(Equipo[playerid] == Raza_Humana){
  930.     SetPlayerColor(playerid, MainBlanco);
  931.  
  932.     SetPlayerTeam(playerid, Raza_Humana);
  933.    
  934.     new rand = random(sizeof Humano);
  935.     SetPlayerSkin(playerid, Humano[rand]);
  936.    
  937.     PlayerSpawnStats[ playerid ] = true;
  938.     PlayerTextDrawShow( playerid, Textdraw0);
  939.     PlayerTextDrawShow( playerid, Textdraw1);
  940.     PlayerTextDrawShow( playerid, Textdraw2);
  941.  
  942.     for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++){RemovePlayerAttachedObject(playerid, i);}
  943.  
  944.     switch(Rand){
  945.     case 0: SetPlayerPosEx(playerid,-1574.3148,-2725.5625,48.7435,144.7881); //
  946.     case 1: SetPlayerPosEx(playerid,-1571.7781,-2727.1465,48.7435,147.9633); //
  947.     case 2: SetPlayerPosEx(playerid,-1569.3335,-2728.7822,48.7435,139.6283); //
  948.     case 3: SetPlayerPosEx(playerid,-1567.1415,-2730.4785,48.7435,144.3909); //
  949.     case 4: SetPlayerPosEx(playerid,-1555.3521,-2737.9768,48.7435,142.0095); //
  950.     case 5: SetPlayerPosEx(playerid,-1557.7585,-2736.2126,48.7435,147.5659); //
  951.     case 6: SetPlayerPosEx(playerid,-1559.9460,-2734.7583,48.7435,147.5659); //
  952.     }
  953.     }
  954.     if(Equipo[playerid] == Raza_Zombie){
  955.     SetPlayerColor(playerid, MainRojo);
  956.  
  957.     SetPlayerTeam(playerid, Raza_Zombie);
  958.  
  959.     new rand = random(sizeof Zombie);
  960.     SetPlayerSkin(playerid, Zombie[rand]);
  961.    
  962.     PlayerTextDrawHide( playerid, Textdraw0);
  963.     PlayerTextDrawHide( playerid, Textdraw1);
  964.     PlayerTextDrawHide( playerid, Textdraw2);
  965.    
  966.     SetPlayerAttachedObject( playerid, 0, 2908, 5, 0.080947, -0.008420, -0.023922, 238.895111, 352.390716, 265.339782, 1.000000, 1.000000, 1.000000 ); // kmb_deadhead -
  967.     SetPlayerAttachedObject( playerid, 1, 2804, 8, 0.300914, -0.033888, -0.017660, 10.251863, 178.031677, 280.822998, 0.669003, 1.000000, 1.025910 ); // CJ_MEAT_1 -
  968.     SetPlayerAttachedObject( playerid, 2, 2806, 1, 0.072145, 0.035297, -0.028837, 87.446678, 357.016815, 107.058639, 0.547959, 0.538617, 0.894741 ); // CJ_MEAT_2 -
  969.  
  970.     switch(Rand){
  971.     case 0: SetPlayerPosEx(playerid,-1631.6165,-2234.9192,31.4766,183.4629); //
  972.     case 1: SetPlayerPosEx(playerid,-1631.3101,-2240.0259,31.4766,183.4629); //
  973.     case 2: SetPlayerPosEx(playerid,-1631.0062,-2245.0981,31.4766,183.4629); //
  974.     case 3: SetPlayerPosEx(playerid,-1641.9156,-2246.4170,31.4766,285.8613); //
  975.     case 4: SetPlayerPosEx(playerid,-1640.4717,-2232.6885,31.4766,184.6536); //
  976.     case 5: SetPlayerPosEx(playerid,-1640.2056,-2235.9534,31.4766,177.1126); //
  977.     case 6: SetPlayerPosEx(playerid,-1635.5457,-2244.4036,31.4766,181.8753); //
  978.     }
  979.     }
  980.  
  981.     SetPlayerScore(playerid ,PlayerInfo[playerid][pSkills]);
  982.     ResetPlayerWeapons(playerid);
  983.     SetPlayerTime(playerid, 23, 0);
  984.     return 1;
  985. }
  986. /*[!]======================================================================[!]*/
  987. public OnPlayerDeath(playerid, killerid, reason)
  988. {
  989.     if(reason >= 0 && reason <= 34) SendDeathMessage(killerid, playerid, reason);
  990.  
  991.     if(Equipo[killerid] == Raza_Humana){
  992.     GivePlayerMoney(killerid, 1000);
  993.     PlayerInfo[killerid][pSkills]++;
  994.     }
  995.  
  996.     if(Equipo[killerid] == Raza_Zombie){
  997.     Equipo[playerid] = Raza_Zombie;
  998.     PlayerInfo[playerid][pInfecct]++;
  999.  
  1000.     new Txt[24], zone[MAX_ZONE_NAME];
  1001.     switch(Viruz[killerid]){
  1002.     case 1:{
  1003.     Txt = "~g~ Xtreme";
  1004.     PlayerInfo[killerid][pSkills]  ++;
  1005.     GivePlayerMoney(playerid, 100);
  1006.     GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$100 ~p~+1 skills", 2000, 3);
  1007.     }
  1008.     case 2:{
  1009.     Txt = "~g~ X-xtreme";
  1010.     PlayerInfo[killerid][pSkills]+= 2;
  1011.     GivePlayerMoney(playerid, 125);
  1012.     GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$125 ~p~+2 skills", 2000, 3);
  1013.     }
  1014.     case 3:{
  1015.     Txt = "~g~ Z-xtreme";
  1016.     PlayerInfo[killerid][pSkills]+= 5;
  1017.     GivePlayerMoney(playerid, 225);
  1018.     GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$225 ~p~+5 skills", 2000, 3);
  1019.     }
  1020.     }
  1021.     new str[128];
  1022.     GetPlayer3DZone(killerid , zone, MAX_ZONE_NAME);
  1023.     format(str, sizeof str, "~r~%s ~y~infectado ~w~%s ~y~com a viruz %s ~y~perto ~p~%s", Nombre(killerid), Nombre(playerid), Txt, zone);
  1024.     Anuncios(str) ;
  1025.     }
  1026.  
  1027.     for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++){RemovePlayerAttachedObject(playerid, i);}
  1028.     return 1;
  1029. }
  1030. /*[!]======================================================================[!]*/
  1031. public OnPlayerText(playerid, text[])
  1032. {
  1033.     return 1;
  1034. }
  1035. /*[!]=========================[!] ZCMD [!]=================================[!]*/
  1036. new Cadena[256];
  1037.  
  1038. CMD:conta(playerid,params[])
  1039. {
  1040.     new str[256];
  1041.     format( str, sizeof str
  1042.     , ""BC"nome: "PP"%s    "BC"Horas reproduz: "OO"%d\n"BC"Os tempos de cura: "OO"%d\n"BC"Número de infectados: "OO"%d\n"BC"Matas: "LL"%d\n"BC"morrer: "LL"%d\n\n"BC"Score: "LL"%d",
  1043.     Nombre(playerid),
  1044.     PlayerInfo[playerid][pHora],
  1045.     PlayerInfo[playerid][pCuret],
  1046.     PlayerInfo[playerid][pInfecct],
  1047.     PlayerInfo[playerid][pKills],
  1048.     PlayerInfo[playerid][pDeaths],
  1049.     PlayerInfo[playerid][pSkills]);
  1050.     ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "Conta de Usuário", str, "Aceptar", "");
  1051.     return 1;
  1052. }
  1053.  
  1054. CMD:comprar(playerid,params[])
  1055. {
  1056.     ShowPlayerDialog(playerid, Dialog_Compra, DIALOG_STYLE_LIST, ".:[ Comprar Items, Viruz y Cura ]:.", ""RO"Medikit "BC"20% ("LL"$1000"BC")\n"RO"Medikit "BC"50% ("LL"$3000"BC")\n"RO"Medikit "BC"100% ("LL"$5000"BC")\n"KK"Viruz XX ("LL"$5000"BC")\n"KK"Viruz Z ("LL"$70000"BC")", "Comprar", "Cancelar");
  1057.     return 1;
  1058. }
  1059.  
  1060. CMD:setkills(playerid, params[])
  1061. {
  1062.     if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , -1, ""GM" Uso /Setkills (player/nome) (quantidade) ");
  1063.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1064.     PlayerInfo[params[0]][pKills] = params[1];
  1065.     format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio %d puntos de Kills",Nombre(params[0]), Nombre(playerid), params[1]);
  1066.     SendClientMessage(params[0], FormalAdmin, Cadena);
  1067.     format(Cadena, sizeof( Cadena ), ""GM" %s Le Distes %d puntos de Kills a %s",Nombre(playerid), params[1], Nombre(params[0]));
  1068.     SendClientMessage(playerid, FormalAdmin, Cadena);
  1069.     return 1;
  1070. }
  1071.  
  1072. CMD:setcash(playerid, params[])
  1073. {
  1074.     if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setcash (player/nome) (quantidade) ");
  1075.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1076.     GivePlayerMoney(params[0], params[1]);
  1077.     format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio %d Dolares",Nombre(params[0]), Nombre(playerid), params[1]);
  1078.     SendClientMessage(params[0], FormalAdmin, Cadena);
  1079.     format(Cadena, sizeof( Cadena ), ""GM" %s você deu %d Dolares para %s",Nombre(playerid), params[1], Nombre(params[0]));
  1080.     SendClientMessage(playerid, FormalAdmin, Cadena);
  1081.     return 1;
  1082. }
  1083.  
  1084. CMD:setdeaths(playerid, params[])
  1085. {
  1086.     if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setdeaths (player/nome) (quantidade) ");
  1087.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1088.     PlayerInfo[params[0]][pDeaths] = params[1];
  1089.     format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s te colocou mortes %d",Nombre(params[0]), Nombre(playerid), params[1]);
  1090.     SendClientMessage(params[0], FormalAdmin, Cadena);
  1091.     format(Cadena, sizeof( Cadena ), ""GM" %s você colocou todas as mortes %s em %d",Nombre(playerid), Nombre(params[0]), params[1]);
  1092.     SendClientMessage(playerid, FormalAdmin, Cadena);
  1093.     return true;
  1094. }
  1095.  
  1096. CMD:setadmin(playerid, params[])
  1097. {
  1098.     if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setadmin (player/nome) (quantidade) ");
  1099.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN || IsPlayerAdmin(playerid))
  1100.     {
  1101.     PlayerInfo[params[0]][pAdmin] = params[1];
  1102.     format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio Admin Nivel: %d",Nombre(params[0]), Nombre(playerid), params[1]);
  1103.     SendClientMessage(params[0], FormalAdmin, Cadena);
  1104.     format(Cadena, sizeof( Cadena ), ""GM" %s Le Distes Admin Nivel: %d a %s",Nombre(playerid), params[1],Nombre(params[0]));
  1105.     SendClientMessage(playerid, FormalAdmin, Cadena);
  1106.     } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1107.     return 1;
  1108. }
  1109.  
  1110. CMD:kick(playerid, params[])
  1111. {
  1112.     if ( sscanf( params, "is[126]" ,params[0] , params[1] ) ) return SendClientMessage(playerid, FormalAdmin, ""GM" /kick [playerid] [razão]");
  1113.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
  1114.     if(!IsPlayerConnected(params[0]) || params[0] == playerid || PlayerInfo[params[0]][pAdmin] >= 4)
  1115.     return SendClientMessage(playerid, FormalAdmin, ""GM" O jogador não está conectado, é de nível superior do que você ou você mesmo.");
  1116.     format( Cadena, sizeof( Cadena ) , ""GM" o Administrador %s Expulso a %s. Razon: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
  1117.     SendClientMessageToAll(MainNaranja, Cadena);
  1118.     format( Cadena, sizeof( Cadena ) , ""GM" %s tem Kick para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
  1119.     SendClientMessage(playerid ,FormalAdmin, Cadena);
  1120.     Kick( params[0] );
  1121.     } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1122.     return 1;
  1123. }
  1124.  
  1125. CMD:ban(playerid, params[])
  1126. {
  1127.     if ( sscanf( params, "is[126]" ,params[0] , params[1] ) ) return SendClientMessage(playerid, FormalAdmin, ""GM" /ban [playerid] [razão]");
  1128.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
  1129.     if(!IsPlayerConnected(params[0]) || params[0] == playerid || PlayerInfo[params[0]][pAdmin] >= 4)
  1130.     return SendClientMessage(playerid, FormalAdmin, ""GM" O jogador não está conectado, é de nível superior do que você ou você mesmo.");
  1131.     format( Cadena, sizeof( Cadena ) , ""GM" o Administrador %s Expulso para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
  1132.     SendClientMessageToAll(MainNaranja, Cadena);
  1133.     format( Cadena, sizeof( Cadena ) , ""GM" %s tem Ban para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
  1134.     SendClientMessage(playerid ,FormalAdmin, Cadena);
  1135.     Ban( params[0] );
  1136.     } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1137.     return 1;
  1138. }
  1139.  
  1140. CMD:warn(playerid, params[])
  1141. {
  1142.     if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
  1143.     if( sscanf ( params, "is[126]", params[0], params[1])) return SendClientMessage(playerid, FormalAdmin,""GM" /warn [playerid] [razão].");
  1144.     if(PlayerInfo[params[0]][pAdmin] >= MAX_ADMIN ) return SendClientMessage(playerid,FormalAdmin, ""GM" Você pode usar este comando com um administrador.");
  1145.     if(!IsPlayerConnected(params[0]) && params[0] == INVALID_PLAYER_ID || params[0] == playerid) return SendClientMessage(playerid,FormalAdmin, ""GM" O jogador não está conectado ou é você mesmo.");
  1146.     PlayerInfo[params[0]][Avisos]++;
  1147.     if( PlayerInfo[params[0]][Avisos] == MAX_AVISOS ) {
  1148.     format(Cadena, sizeof (Cadena), ""GM" o Administrador %s Expulso de servidor para %s [razão: %s] [avisos: %d/%d]", Nombre(playerid), Nombre(params[0]), params[1], PlayerInfo[params[0]][Avisos], MAX_AVISOS);
  1149.     SendClientMessageToAll(MainRojo, Cadena);
  1150.     PlayerInfo[params[0]][Avisos] = 0;
  1151.     Kick(params[0]);
  1152.     return 1;
  1153.     } else {
  1154.     format(Cadena, sizeof (Cadena), ""GM" o Administrador %s Advierte a %s razão: %s [avisos: %d/%d]", Nombre(playerid), Nombre(params[0]), params[1], PlayerInfo[params[0]][Avisos], MAX_AVISOS);
  1155.     return SendClientMessageToAll(MainAmarillo, Cadena);
  1156.     }
  1157.     } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
  1158. }
  1159.  
  1160.  
  1161. /*[!]======================================================================[!]*/
  1162. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1163. {
  1164.     if( Equipo[playerid] == Raza_Zombie )
  1165.         return RemovePlayerFromVehicle(playerid);
  1166.  
  1167.     if( Equipo[ispassenger] == Raza_Zombie )
  1168.         return RemovePlayerFromVehicle(ispassenger);
  1169.  
  1170.     return 1;
  1171. }
  1172. /*[!]======================================================================[!]*/
  1173. public OnPlayerExitVehicle(playerid, vehicleid)
  1174. {
  1175.     return 1;
  1176. }
  1177. /*[!]======================================================================[!]*/
  1178. public OnPlayerStateChange(playerid, newstate, oldstate)
  1179. {
  1180.     new vehicleid = GetPlayerVehicleID(playerid);
  1181.     if(IsPlayerInVehicle(playerid,vehicleid))
  1182.     {
  1183.     if(IsPlayerConnected(playerid))
  1184.     {
  1185.     new str[200];
  1186.     format(str, sizeof str, "_~n~_~n~_~n~_~n~_~n~_~n~__________________~g~~h~%s", CarName[GetVehicleModel(vehicleid) - 400]);
  1187.     GameTextForPlayer(playerid, str, 3000, 3);
  1188.     }
  1189.     }
  1190.     return 1;
  1191. }
  1192. /*[!]======================================================================[!]*/
  1193. public OnPlayerEnterCheckpoint(playerid)
  1194. {
  1195.     foreach(new i:Player)
  1196.     {
  1197.     if( Equipo[ i ] == Raza_Zombie )
  1198.     {
  1199.     if( !IsPlayerConnected( i ) ) continue;
  1200.     CurarZombie( i );
  1201.     }
  1202.     }
  1203.     return 1;
  1204. }
  1205. /*[!]======================================================================[!]*/
  1206. public OnPlayerLeaveCheckpoint(playerid)
  1207. {
  1208.     CureZombie[playerid] = 0;
  1209.     KillTimer(Timer[0]);
  1210.  
  1211.     return 1;
  1212. }
  1213. /*[!]======================================================================[!]*/
  1214. public OnPlayerPickUpPickup(playerid, pickupid)
  1215. {
  1216.     return 1;
  1217. }
  1218. /*[!]======================================================================[!]*/
  1219. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1220. {
  1221.     if(Equipo[playerid] == Raza_Zombie&&Viruz[playerid] == Viruz_XX||Viruz[playerid] == Viruz_Z){
  1222.     if(Tecla(KEY_JUMP)){
  1223.     if(GetTickCount() - FloodComando[playerid] > 999){
  1224.     MegaJump(playerid, Float: 0.2, Float: 0.3);
  1225.     FloodComando[playerid] = GetTickCount();
  1226.     }
  1227.     }
  1228.     }
  1229.  
  1230.     if(Tecla(KEY_FIRE)){
  1231.     if(Equipo[playerid] == Raza_Zombie)
  1232.         return ResetPlayerWeapons(playerid);
  1233.     }
  1234.  
  1235.     if(Tecla( KEY_SECONDARY_ATTACK)){
  1236.         if(Equipo[playerid] == Raza_Humana){
  1237.             if(IsPlayerInRangeOfPoint(playerid, 0.90, 501.980987, -69.150199, 998.757812)){
  1238.             SetPlayerPos(playerid, -1561.8456, -2733.4023, 48.7435);
  1239.             SetPlayerInterior(playerid, 0);
  1240.             }
  1241.             if(IsPlayerInRangeOfPoint(playerid, 0.90, -1561.8456, -2733.4023, 48.7435)){
  1242.             SetPlayerPos(playerid, 501.980987, -69.150199, 998.757812);
  1243.             SetPlayerInterior(playerid, 11);
  1244.             }
  1245.         }
  1246.     }
  1247.  
  1248.     if(Tecla(KEY_SECONDARY_ATTACK)){
  1249.         if(Equipo[playerid] == Raza_Humana){
  1250.             if(IsPlayerInRangeOfPoint(playerid, 0.90, 316.258087, -169.656600, 999.601013 ) )
  1251.             {
  1252.             SetPlayerPos(playerid, -1623.8755 , -2693.7734 , 48.7427);
  1253.             SetPlayerInterior(playerid, 0);
  1254.             }
  1255.             if(IsPlayerInRangeOfPoint(playerid, 0.90, -1623.8755 , -2693.7734 , 48.7427 ) )
  1256.             {
  1257.             SetPlayerPos(playerid, 316.258087, -169.656600, 999.601013);
  1258.             SetPlayerInterior(playerid, 6);
  1259.             }
  1260.         }
  1261.     }
  1262.  
  1263.     if( Tecla( KEY_YES ) )
  1264.     {
  1265.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 309.0719 , -162.4290 , 999.5938 ))
  1266.     {
  1267.     if( GetPlayerMoney( playerid ) < 2000 )
  1268.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1269.     GivePlayerMoney(playerid, -2000);
  1270.     GivePlayerWeapon(playerid, 25, AMMO_SELL);
  1271.     }
  1272.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 312.2012,-162.3321,999.5938 ))
  1273.     {
  1274.     if( GetPlayerMoney( playerid ) < 2200 )
  1275.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1276.     GivePlayerMoney(playerid, -2200);
  1277.     GivePlayerWeapon(playerid, 31, AMMO_SELL);
  1278.     }
  1279.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 310.7312,-163.7771,999.5938 ))
  1280.     {
  1281.     if( GetPlayerMoney( playerid ) < 2500 )
  1282.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1283.     GivePlayerMoney(playerid, -2500);
  1284.     GivePlayerWeapon(playerid, 30, AMMO_SELL);
  1285.     }
  1286.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 310.6336,-160.9112,999.5938 ))
  1287.     {
  1288.     if( GetPlayerMoney( playerid ) < 5000 )
  1289.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1290.     GivePlayerMoney(playerid, -5000);
  1291.     GivePlayerWeapon(playerid, 34, AMMO_SELL);
  1292.     }
  1293.  
  1294.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 316.5230,-162.2719,999.5938 ))
  1295.     {
  1296.     if( GetPlayerMoney( playerid ) < 600 )
  1297.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1298.     GivePlayerMoney(playerid, -600);
  1299.     GivePlayerWeapon(playerid, 22, AMMO_SELL);
  1300.     }
  1301.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 315.0421,-163.7780,999.5938 ))
  1302.     {
  1303.     if( GetPlayerMoney( playerid ) < 800 )
  1304.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1305.     GivePlayerMoney(playerid, -800);
  1306.     GivePlayerWeapon(playerid, 23, AMMO_SELL);
  1307.     }
  1308.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 313.6808,-162.2760,999.5938 ))
  1309.     {
  1310.     if( GetPlayerMoney( playerid ) < 1200 )
  1311.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1312.     GivePlayerMoney(playerid, -1200);
  1313.     GivePlayerWeapon(playerid, 24, AMMO_SELL);
  1314.     }
  1315.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 315.0736,-160.9113,999.5938 ))
  1316.     {
  1317.     if( GetPlayerMoney( playerid ) < 3500 )
  1318.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1319.     GivePlayerMoney(playerid, -3500);
  1320.     GivePlayerWeapon(playerid, 33, AMMO_SELL);
  1321.     }
  1322.  
  1323.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2810,-163.4189,999.6010 ))
  1324.     {
  1325.     if( GetPlayerMoney( playerid ) < 1500 )
  1326.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1327.     GivePlayerMoney(playerid, -1500);
  1328.     GivePlayerWeapon(playerid, 28, AMMO_SELL);
  1329.     }
  1330.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2810,-162.1685,999.5938 ))
  1331.     {
  1332.     if( GetPlayerMoney( playerid ) < 1600 )
  1333.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1334.     GivePlayerMoney(playerid, -1600);
  1335.     GivePlayerWeapon(playerid, 29, AMMO_SELL);
  1336.     }
  1337.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2815,-160.7358,999.5938 ))
  1338.     {
  1339.     if( GetPlayerMoney( playerid ) < 1200 )
  1340.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
  1341.     GivePlayerMoney(playerid, -1200);
  1342.     GivePlayerWeapon(playerid, 32, AMMO_SELL);
  1343.     }
  1344.     if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2815,-159.7386,999.5938 ))
  1345.     {
  1346.     if( GetPlayerMoney( playerid ) < 200 )
  1347.     return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar Armadura **");
  1348.  
  1349.     new Float:Ammoid;
  1350.     if( GetPlayerArmour( playerid , Ammoid) >= 200 )
  1351.     return SendClientMessage(playerid, MainRojo, ""GM" Você tem bastante armadura não pode comprar mais **");
  1352.  
  1353.     GivePlayerMoney(playerid, -200);
  1354.     SetPlayerArmour(playerid, 100);
  1355.     }
  1356.  
  1357.     }
  1358.  
  1359.     return 1;
  1360. }
  1361.  
  1362. /*[!]======================================================================[!]*/
  1363. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){
  1364.  
  1365.     if(Equipo[playerid] == Equipo[issuerid]) return 1;
  1366.  
  1367.     if(issuerid != INVALID_PLAYER_ID){
  1368.         if(Equipo[issuerid] == Raza_Zombie){
  1369.        
  1370.         new Float:Health, Float:Armour;
  1371.         GetPlayerArmour(playerid, Armour);
  1372.         GetPlayerHealth(playerid, Health);
  1373.  
  1374.         new Float:X  = 20.0;
  1375.         new Float:XX = 20.0;
  1376.         new Float:Z  = 30.0;
  1377.  
  1378.         if(Viruz[issuerid] == Viruz_X){
  1379.        
  1380.         if(Armour > 0)
  1381.             return SetPlayerArmour(playerid, Armour - X);
  1382.  
  1383.         if(Armour < 1)
  1384.             return SetPlayerHealth(playerid, Health - X);
  1385.         }
  1386.  
  1387.         if(Viruz[issuerid] == Viruz_XX){
  1388.         if(Armour > 0)
  1389.             return SetPlayerArmour(playerid, Health - XX);
  1390.  
  1391.         if(Armour < 0)
  1392.             return SetPlayerHealth(playerid, Health - XX);
  1393.         }
  1394.  
  1395.         if(Viruz[issuerid] == Viruz_Z){
  1396.         if( Armour > 0 )
  1397.             return SetPlayerArmour(playerid, Health - Z);
  1398.  
  1399.         if( Armour < 0 )
  1400.             return SetPlayerHealth(playerid, Health - Z);
  1401.         }
  1402.         Sonido(playerid,1130);
  1403.         Sonido(issuerid,1130);
  1404.         }
  1405.     }
  1406.     return 1;
  1407. }
  1408. /*[!]======================================================================[!]*/
  1409. public OnPlayerUpdate(playerid)
  1410. {
  1411.  
  1412.  
  1413.  
  1414.     return 1;
  1415. }
  1416. /*[!]======================================================================[!]*/
  1417. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1418. {
  1419.     new Float:Health, Float:Amour;
  1420.     GetPlayerArmour( playerid , Amour );
  1421.     GetPlayerHealth( playerid , Health );
  1422.  
  1423.     switch( dialogid )
  1424.     {
  1425.  
  1426.     case Dialog_Buy_Comida:
  1427.     {
  1428.         if (!response) return 1;
  1429.         if(response)
  1430.         {
  1431.             switch( listitem )
  1432.             {
  1433.                 case 0:
  1434.                 {
  1435.                 if ( GetPlayerMoney( playerid ) <= 250 )
  1436.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1437.  
  1438.                 GivePlayerMoney( playerid, -250);
  1439.                 BeberStats [ playerid ] += 20;
  1440.                 SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  1441.                 SendClientMessage( playerid, MainVerde, "Você compra uma garrafa de água.!");
  1442.                 }
  1443.                 case 1:
  1444.                 {
  1445.                 if ( GetPlayerMoney( playerid ) <= 750 )
  1446.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1447.  
  1448.                 GivePlayerMoney( playerid, -750);
  1449.                 BeberStats [ playerid ] += 25;
  1450.                 SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_BEER);
  1451.                 SendClientMessage( playerid, MainVerde, "Você compra uma Cerveja.!");
  1452.                 }
  1453.                 case 2:
  1454.                 {
  1455.                 if ( GetPlayerMoney( playerid ) <= 100 )
  1456.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1457.  
  1458.                 GivePlayerMoney( playerid, -100);
  1459.                 ComidaStats [ playerid ] = 15;
  1460.                 SendClientMessage( playerid, MainVerde, "Você compra uma Pizza.!");
  1461.                 }
  1462.                 case 3:
  1463.                 {
  1464.                 if ( GetPlayerMoney( playerid ) <= 1000 )
  1465.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1466.  
  1467.                 GivePlayerMoney( playerid, -1000);
  1468.                 ComidaStats [ playerid ] = MAX_STATS;
  1469.                 SendClientMessage( playerid, MainVerde, "Você compra Aveia.!");
  1470.                 }
  1471.                 case 4:
  1472.                 {
  1473.                 if ( GetPlayerMoney( playerid ) <= 2000 )
  1474.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1475.  
  1476.                 GivePlayerMoney( playerid, -2000 );
  1477.                 ComidaStats [ playerid ] += 30;
  1478.                 SendClientMessage( playerid, MainVerde, "Você compra uma Hambúrguer.!");
  1479.                 }
  1480.                 case 5:
  1481.                 {
  1482.                 if ( GetPlayerMoney( playerid ) <= 1000 )
  1483.                     return  SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
  1484.  
  1485.                 GivePlayerMoney( playerid, -1000 );
  1486.                 BeberStats [ playerid ] += 28;
  1487.                 SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  1488.                 SendClientMessage( playerid, MainVerde, "Você compra uma Pepsi.!");
  1489.                 }
  1490.             }
  1491.         }
  1492.     }
  1493.         case Dialog_Compra:
  1494.         {
  1495.             if (!response) return 1;
  1496.             if(response)
  1497.             {
  1498.                 switch( listitem )
  1499.                 {
  1500.                 case 0:
  1501.                 {
  1502.                 if( Amour > 0 && Health > 80 )
  1503.                     return SendClientMessage( playerid , MainRojo , ""GM" A vida não precisa **" );
  1504.  
  1505.                 if( GetPlayerMoney( playerid ) < 1000 )
  1506.                     return  SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
  1507.                 GivePlayerMoney( playerid , -1000);
  1508.                 SetPlayerHealth( playerid , Health+20);
  1509.                 }
  1510.                 case 1:
  1511.                 {
  1512.                 if( Amour > 0 && Health > 50 )
  1513.                     return SendClientMessage( playerid , MainRojo , ""GM" A vida não precisa **" );
  1514.  
  1515.                 if( GetPlayerMoney( playerid ) < 3000 )
  1516.                     return  SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
  1517.                 GivePlayerMoney( playerid , -3000);
  1518.                 SetPlayerHealth( playerid , Health+50);
  1519.                 }
  1520.                 case 2:
  1521.                 {
  1522.                 if( GetPlayerMoney( playerid ) < 5000 )
  1523.                     return  SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
  1524.                 SetPlayerHealth( playerid , Health+100);
  1525.                 GivePlayerMoney( playerid , -5000);
  1526.                 }
  1527.                 case 3:
  1528.                 {
  1529.                 if( Equipo[playerid] != Raza_Zombie )
  1530.                     return  SendClientMessage( playerid , MainRojo , ""GM" você não é Zombie **" );
  1531.  
  1532.                 if( GetPlayerMoney( playerid ) < 5000 )
  1533.                     return  SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
  1534.                 GivePlayerMoney( playerid , -5000);
  1535.                 Viruz[playerid] = Viruz_XX;
  1536.                 }
  1537.                 case 4:
  1538.                 {
  1539.                 if( Equipo[playerid] != Raza_Zombie )
  1540.                     return  SendClientMessage( playerid , MainRojo , ""GM" você não é Zombie **" );
  1541.  
  1542.                 if( GetPlayerMoney( playerid ) < 70000 )
  1543.                     return  SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
  1544.                 GivePlayerMoney( playerid , -70000);
  1545.                 Viruz[playerid] = Viruz_Z;
  1546.                 }
  1547.                 }
  1548.             }
  1549.         }
  1550.  
  1551.         case Dialog_Register:
  1552.         {
  1553.             if (!response) return Kick(playerid);
  1554.             if(response)
  1555.             {
  1556.                 if(!strval(inputtext)) return ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_INPUT, ""LL" registrar...",""RO" A senha só pode escrever números.\n"KK"Por favor insira uma senha..","Registrar","Salir");
  1557.                 new INI:File = INI_Open(Usuario(playerid));
  1558.                 new A,D,M;
  1559.                 getdate( A, M, D);
  1560.                 INI_SetTag(File,"data");
  1561.                 INI_WriteInt(File,"Password",udb_hash(inputtext));
  1562.                 INI_WriteInt(File,"Cash",0);
  1563.                 INI_WriteInt(File,"Admin",0);
  1564.                 INI_WriteInt(File,"Kills",0);
  1565.                 INI_WriteInt(File,"Deaths",0);
  1566.                 INI_WriteInt(File,"Dia", D);
  1567.                 INI_WriteInt(File,"Mes", M);
  1568.                 INI_WriteInt(File,"Year",A);
  1569.                 INI_WriteInt(File,"Minutos",0);
  1570.                 INI_WriteInt(File,"Horas",0);
  1571.                 INI_WriteInt(File,"Skills",0);
  1572.                 INI_Close(File);
  1573.  
  1574.             }
  1575.         }
  1576.  
  1577.         case Dialog_Login:
  1578.         {
  1579.             if ( !response ) return Kick ( playerid );
  1580.             if( response )
  1581.             {
  1582.                 if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  1583.                 {
  1584.                     INI_ParseFile(Usuario(playerid), "CargarUser_%s", .bExtra = true, .extra = playerid);
  1585.                     GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  1586.                 }
  1587.                 else
  1588.                 {
  1589.                     ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_INPUT,""LL" login.",""RO" A senha está incorreta, por favor coloque um válido.\n"KK"Sua conta já existe, por favor, digite a sua senha.","Login","Salir");
  1590.                 }
  1591.                 return 1;
  1592.             }
  1593.         }
  1594.     }
  1595.     return 1;
  1596. }
  1597. /*[!]======================================================================[!]*/
  1598. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1599. {
  1600.     return 1;
  1601. }
  1602. /*[!]========================[!] Stocks [!]================================[!]*/
  1603.  
  1604. stock Usuario(playerid)
  1605. {
  1606.     new string[128];
  1607.     format(string,sizeof(string), Archivo, Nombre( playerid ));
  1608.     return string;
  1609. }
  1610.  
  1611. stock udb_hash(buf[]) {
  1612.     new length=strlen(buf);
  1613.     new s1 = 1;
  1614.     new s2 = 0;
  1615.     new n;
  1616.     for (n=0; n<length; n++)
  1617.     {
  1618.        s1 = (s1 + buf[n]) % 65521;
  1619.        s2 = (s2 + s1)     % 65521;
  1620.     }
  1621.     return (s2 << 16) + s1;
  1622. }
  1623.  
  1624. stock Nombre( targerid )
  1625. {
  1626.     new Name[24];
  1627.     GetPlayerName( targerid , Name , 24 );
  1628.     return Name;
  1629. }
  1630.  
  1631. stock NombreWeapon( targerid )
  1632. {
  1633.     new Name[24];
  1634.     GetWeaponName( targerid , Name , 24 );
  1635.     return Name;
  1636. }
  1637.  
  1638. stock MegaJump(playerid, Float:forwardspeed, Float:upwardspeed)
  1639. {
  1640.     new Float:vx, Float:vy, Float:vz;
  1641.     new Float:rot;
  1642.     GetPlayerFacingAngle(playerid, rot);
  1643.     rot = 360 - rot;
  1644.  
  1645.     GetPlayerVelocity(playerid, vx, vy, vz);
  1646.     SetPlayerVelocity(playerid, vx + forwardspeed * floatsin(rot, degrees), vy + forwardspeed * floatcos(rot, degrees), vz + upwardspeed);
  1647.     return 1;
  1648. }
  1649.  
  1650. stock Sonido( playerid, sonido)
  1651. {
  1652.     PlayerPlaySound(playerid, sonido, 0.0, 0.0, 0.0);
  1653.     return sonido;
  1654. }
  1655.  
  1656. stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z, Float:a)
  1657. {
  1658.     SetPlayerPos(playerid, x, y, z);
  1659.     SetPlayerFacingAngle(playerid, a);
  1660.     return 1;
  1661. }
  1662.  
  1663. stock GetPlayer3DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
  1664. {
  1665.     new Float:x, Float:y, Float:z;
  1666.     GetPlayerPos(playerid, x, y, z);
  1667.     for(new i = 0; i != sizeof(gSAZones); i++ )
  1668.     {
  1669.         if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
  1670.         {
  1671.             return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  1672.         }
  1673.     }
  1674.     return 0;
  1675. }
  1676.  
  1677. /*[!]=======================[!] CallBack [!]===============================[!]*/
  1678. #define CallBack%0(%1) forward%0(%1); public%0(%1)
  1679. CallBack OnPlayerUpDateEx( )
  1680. {
  1681.     foreach(new i:Player)
  1682.     {
  1683.  
  1684.     if( IsPlayerInRangeOfPoint( i, 0.9, 498.404700 , -75.7382000 , 998.757 ) )
  1685.     {
  1686.     if( EnteredDialog[ i ] == false )
  1687.     {
  1688.     ShowPlayerDialog( i, Dialog_Buy_Comida, DIALOG_STYLE_LIST, "Venda de abastecimento", ""KK"Água("LL"250$"KK")\n"KK"Cerveja("LL"750$"KK")\n"KK"Pizza("LL"100$"KK")\n"KK"Aveia("LL"1000$"KK")\n"KK"Hambúrguer("LL"2000$"KK")\n"KK"Pepsi("LL"1000$"KK")", "Aceptar", "Salir");
  1689.     EnteredDialog[ i ] = true;
  1690.     }
  1691.     }else EnteredDialog[ i ] = false;
  1692.  
  1693.  
  1694.     if( Equipo[i] == Raza_Humana)
  1695.     {
  1696.     if(IsPlayerInRangeOfPoint( i,15.0,-1636.6999512,-2709.8999023,55.5000000))
  1697.     {
  1698.     MoveDynamicObject(Objectid[0],-1636.6992188,-2709.8994141,55.5000000,5.0);
  1699.     }
  1700.     else
  1701.     {
  1702.     MoveDynamicObject(Objectid[0],-1636.6999512,-2709.8999023,50.5000000,5.0);
  1703.     }
  1704.  
  1705.     if(IsPlayerInRangeOfPoint( i,15.0,-1541.1999512,-2777.3999023,49.2000008))
  1706.     {
  1707.     MoveDynamicObject(Objectid[1],-1541.1999512,-2777.3999023,54.2999992,5.0);
  1708.     }
  1709.     else
  1710.     {
  1711.     MoveDynamicObject(Objectid[1],-1541.1999512,-2777.3999023,49.2000008,5.0);
  1712.     }
  1713.     }
  1714.  
  1715.     }
  1716.     return 1;
  1717. }
  1718.  
  1719. CallBack CurarZombie( playerid )
  1720. {
  1721.     if( IsPlayerConnected( playerid ) ) {
  1722.     if( CureZombie[playerid] == 10 )
  1723.     {
  1724.     CureZombie[playerid] = 0;
  1725.     Equipo[playerid] = Raza_Humana;
  1726.     Sonido(playerid, 1058);
  1727.     SpawnPlayer(playerid);
  1728.     PlayerInfo[playerid][pCuret]++;
  1729.     GameTextForPlayer(playerid, "_~n~_~g~~h~Curado...", 999, 6);
  1730.     new str[64];
  1731.     format( str, sizeof str, "~y~%s ~w~ foi curado", Nombre(playerid));
  1732.     Anuncios( str );
  1733.     return 1;
  1734.     }
  1735.     GameTextForPlayer(playerid, "_~n~_~p~Curando...", 999, 6);
  1736.     CureZombie[playerid]++;
  1737.     Timer[0] = SetTimerEx("CurarZombie", 1000, false, "d", playerid);
  1738.     }
  1739.     return 1;
  1740. }
  1741.  
  1742. CallBack CargarUser_data(playerid,name[],value[])
  1743. {
  1744.     INI_Int("Password",PlayerInfo[playerid][pPass]);
  1745.     INI_Int("Cash",PlayerInfo[playerid][pCash]);
  1746.     INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  1747.     INI_Int("Kills",PlayerInfo[playerid][pKills]);
  1748.     INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  1749.     INI_Int("Dia",PlayerInfo[playerid][pDia]);
  1750.     INI_Int("Mes",PlayerInfo[playerid][pMes]);
  1751.     INI_Int("Year",PlayerInfo[playerid][pYear]);
  1752.     INI_Int("Minutos",PlayerInfo[playerid][pMins]);
  1753.     INI_Int("Horas",PlayerInfo[playerid][pHora]);
  1754.     INI_Int("Skills",PlayerInfo[playerid][pSkills]);
  1755.     INI_Int("Infectado",PlayerInfo[playerid][pInfecct]);
  1756.     INI_Int("Cura",PlayerInfo[playerid][pCuret]);
  1757.     return 1;
  1758. }
  1759.  
  1760. CallBack Anuncios( text[] ) {
  1761.     if (!InformationText[0]) {
  1762.         InformationText[0] = true;
  1763.         TextDrawSetString(TextdrawGlobal[1], text);
  1764.         TextDrawShowForAll(TextdrawGlobal[1]);
  1765.         SetTimerEx("LiberarEspacio", 8000, false, "d", 0);
  1766.     }
  1767.     else if (!InformationText[1]) {
  1768.         InformationText[1] = true;
  1769.         TextDrawSetString(TextdrawGlobal[2], text);
  1770.         TextDrawShowForAll(TextdrawGlobal[2]);
  1771.         SetTimerEx("LiberarEspacio", 8000, false, "d", 1);
  1772.     }
  1773.     else if (!InformationText[2]) {
  1774.         InformationText[2] = true;
  1775.         TextDrawSetString(TextdrawGlobal[3], text);
  1776.         TextDrawShowForAll(TextdrawGlobal[3]);
  1777.         SetTimerEx("LiberarEspacio", 8000, false, "d", 2);
  1778.     }
  1779.     else if (!InformationText[3]) {
  1780.         InformationText[3] = true;
  1781.         TextDrawSetString(TextdrawGlobal[0], text);
  1782.         TextDrawShowForAll(TextdrawGlobal[0]);
  1783.         SetTimerEx("LiberarEspacio", 8000, false, "d", 3);
  1784.     }
  1785.     return 1;
  1786. }
  1787.  
  1788. CallBack HorasMinutos()
  1789. {
  1790.     foreach(new playerid:Player)
  1791.     {
  1792.     PlayerInfo[playerid][pMins]++;
  1793.     if(PlayerInfo[playerid][pMins] == 60)
  1794.     {
  1795.     PlayerInfo[playerid][pHora]++;
  1796.     PlayerInfo[playerid][pMins] = 0;
  1797.     }
  1798.     }
  1799.     return 1;
  1800. }
  1801.  
  1802. CallBack LiberarEspacio(slot) {
  1803.     InformationText[slot] = false;
  1804.     switch(slot) {
  1805.         case 0: TextDrawHideForAll(TextdrawGlobal[1]);
  1806.         case 1: TextDrawHideForAll(TextdrawGlobal[2]);
  1807.         case 2: TextDrawHideForAll(TextdrawGlobal[3]);
  1808.         case 3: TextDrawHideForAll(TextdrawGlobal[0]);
  1809.     }
  1810.     return 1;
  1811. }
  1812.  
  1813. CallBack StatusFromPlayerTextDraw(Userid)
  1814. {
  1815.     if(Equipo[Userid] != Raza_Zombie){
  1816.     new Date[6];
  1817.     getdate( Date[2], Date[1], Date[0]);
  1818.     gettime( Date[5], Date[4], Date[3]);
  1819.  
  1820.     new StrIng[128];
  1821.     format( StrIng, sizeof StrIng, "~r~Zombie Killed:~w~ %d~n~~b~~h~Human Killed:~w~ %d~n~~p~Time:~w~ %02d:%02d:%02d~n~~y~~h~~h~Date:~w~ %02d/%02d/%02d",
  1822.     PlayerInfo[Userid][pSkills],
  1823.     PlayerInfo[Userid][pInfecct],
  1824.     Date[5],Date[4],Date[3],Date[0],Date[1],Date[2]);
  1825.     PlayerTextDrawSetString( Userid, Textdraw5, StrIng);
  1826.  
  1827.     if(PlayerSpawnStats[Userid] == true){
  1828.     static TimerStats;
  1829.     TimerStats++;
  1830.     if(TimerStats >= 120){
  1831.     TimerStats=0;
  1832.     new Rand = random( 2 );
  1833.     switch(Rand){
  1834.     case 0: BeberStats[ Userid ] -= 6;
  1835.     case 1: ComidaStats[ Userid ] -= 6;
  1836.     }
  1837.     }
  1838.  
  1839.     GetPlayerHealth( Userid, Vida[ Userid ]);
  1840.     switch( floatround(Vida[ Userid ]) ){
  1841.     case 0  .. 20 :{
  1842.     PlayerTextDrawColor( Userid, Textdraw1, 0xFF000044);
  1843.     PlayerTextDrawShow( Userid, Textdraw1);
  1844.     }
  1845.     case 21 .. 50 :{
  1846.     PlayerTextDrawColor( Userid, Textdraw1, 0xFF8C0044);
  1847.     PlayerTextDrawShow( Userid, Textdraw1);
  1848.     }
  1849.     case 51 .. 80 :{
  1850.     PlayerTextDrawColor( Userid, Textdraw1, 0xFFD70044);
  1851.     PlayerTextDrawShow( Userid, Textdraw1);
  1852.     }
  1853.     case 81 .. 100:{
  1854.     PlayerTextDrawColor( Userid, Textdraw1, 16711935);
  1855.     PlayerTextDrawShow( Userid, Textdraw1);
  1856.     }
  1857.     }
  1858.  
  1859.     switch( BeberStats[ Userid ] )
  1860.     {
  1861.     case 0  .. 20 :{
  1862.     PlayerTextDrawColor( Userid, Textdraw0, -16776961);
  1863.     PlayerTextDrawShow( Userid, Textdraw0);
  1864.     }
  1865.     case 21 .. 50 :{
  1866.     PlayerTextDrawColor( Userid, Textdraw0, -5963521);
  1867.     PlayerTextDrawShow( Userid, Textdraw0);
  1868.     }
  1869.     case 51 .. 80 :{
  1870.     PlayerTextDrawColor( Userid, Textdraw0, -65281);
  1871.     PlayerTextDrawShow( Userid, Textdraw0);
  1872.     }
  1873.     case 81 .. 100:{
  1874.     PlayerTextDrawColor( Userid, Textdraw0, 16711935);
  1875.     PlayerTextDrawShow( Userid, Textdraw0);
  1876.     }
  1877.     }
  1878.  
  1879.     switch( ComidaStats[ Userid ] ){
  1880.     case 0  .. 20 :{
  1881.     PlayerTextDrawColor( Userid, Textdraw2, -16776961);
  1882.     PlayerTextDrawShow( Userid, Textdraw2);
  1883.     }
  1884.     case 21 .. 50 :{
  1885.     PlayerTextDrawColor( Userid, Textdraw2, -5963521);
  1886.     PlayerTextDrawShow( Userid, Textdraw2);
  1887.     }
  1888.     case 51 .. 80 :{
  1889.     PlayerTextDrawColor( Userid, Textdraw2, -65281);
  1890.     PlayerTextDrawShow( Userid, Textdraw2);
  1891.     }
  1892.     case 81 .. 100:{
  1893.     PlayerTextDrawColor( Userid, Textdraw2, 16711935);
  1894.     PlayerTextDrawShow( Userid, Textdraw2);
  1895.     }
  1896.     }
  1897.  
  1898.  
  1899.     if( Vida [ Userid ] <= 5 ){
  1900.     SendClientMessage(Userid, MainRojo, "Você perde muito sangue morreu.!");
  1901.     SetPlayerHealth  (Userid, 0.0);
  1902.     GivePlayerMoney  (Userid, -5000);
  1903.  
  1904.     BeberStats [ Userid ] = MAX_STATS;
  1905.     ComidaStats[ Userid ] = MAX_STATS;
  1906.     return 1;
  1907.     }
  1908.  
  1909.     if( ComidaStats [ Userid ] <= 0 || BeberStats [ Userid ] <= 0 ){
  1910.     SendClientMessage( Userid, MainRojo, "Você morreu de não comer ou sede.!");
  1911.     SetPlayerHealth  ( Userid, 0.0);
  1912.     GivePlayerMoney  ( Userid, -5000);
  1913.  
  1914.     BeberStats [ Userid ] = MAX_STATS;
  1915.     ComidaStats[ Userid ] = MAX_STATS;
  1916.     }
  1917.     }
  1918.     }
  1919.     return 1;
  1920. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement