Advertisement
Guest User

Game Mode.

a guest
Apr 30th, 2013
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 96.53 KB | None | 0 0
  1. /*
  2. Agradecimentos a Fórum SAMP.
  3. Créditos totais a Sky pelo velocimetro.
  4. Game Mode: Feito por Pedro Pawn.
  5. */
  6.  
  7. //includes:
  8. #include <a_samp>
  9. #include <DOF2>
  10. #include <zcmd>
  11. #include <sscanf2>
  12. #include <progress>
  13. #include <ELC_AC_BASE>
  14.  
  15. //forwards:
  16. forward ComandoDTempo(playerid);
  17. forward TempoJogado(playerid);
  18. forward Kicka(p);
  19. forward Bana(p);
  20. forward LoadTextsDraws(playerid);
  21. forward Atualize(playerid);
  22. forward DGuerraTrafico(playerid);
  23.  
  24. //defines:
  25. #define grove 0
  26. #define ballas 1
  27. #define vagos 2
  28. #define aztecas 3
  29. #define scm SendClientMessage
  30. #define scmt SendClientMessageToAll
  31. #define Error 0xFF0000FF
  32. #define Branco 0xFFFFFFFF
  33. #define Verde 0x006A00FF
  34. #define Azul 0x004080FF
  35. #define Rosa 0xFF0080FF
  36. #define Amarelo 0xFFFF00FF4
  37. #define Neutra 0x92A3AFFF
  38. #define PlayerClicado clickedplayerid
  39. #define MAX_GANGS 4
  40. #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  41. #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  42. #define BarPaint 0x00FF0CAA
  43. #define FAIXA_IP "189.168.1"
  44.  
  45. //dialogs:
  46. #define DIALOG_MSG 85
  47. #define DIALOG_REGISTRO 1
  48. #define DIALOG_LOGAR 2
  49. #define DIALOG_SHOP 3
  50. #define DIALOG_GPS 4
  51. #define DIALOG_LOCAL 6
  52.  
  53. //otimizações:
  54. #if defined MAX_PLAYERS
  55.     #undef MAX_PLAYERS
  56. #endif
  57. #define MAX_PLAYERS (50)
  58.  
  59. #if defined MAX_VEHICLES
  60.     #undef MAX_VEHICLES
  61. #endif
  62. #define MAX_VEHICLES (30)
  63.  
  64. //variaveis:
  65. new motivo[128];
  66. new id;
  67. new Text:TextDrawC;
  68. new Gang[MAX_PLAYERS];
  69. new CarroA[5];
  70. new CarroG[5];
  71. new CarroV[5];
  72. new CarroB[5];
  73. new MinutosJogados[MAX_PLAYERS];
  74. new HorasJogadas[MAX_PLAYERS];
  75. new Timer;
  76. new name[MAX_PLAYER_NAME];
  77. enum Informacoes
  78. {
  79.     Senha,
  80.     Matou,
  81.     Morreu,
  82.     Dinheiro
  83. }
  84. new Player[MAX_PLAYERS][Informacoes];
  85. new Erro[MAX_PLAYERS];
  86. new Jogador[MAX_PLAYERS];
  87.  
  88. new stryng[128];
  89. new PlayerText:VehInfo[MAX_PLAYERS][5];
  90. new VelocimetroTimer[MAX_PLAYERS];
  91. new Bar:SVelo[MAX_PLAYERS] = {INVALID_BAR_ID,...},Bar:SLataria[MAX_PLAYERS] = {INVALID_BAR_ID,...};
  92. enum GPSInfo
  93. {
  94.     zone_name[30],
  95.     Float:zone_minx,
  96.     Float:zone_miny,
  97.     Float:zone_minz,
  98.     Float:zone_maxx,
  99.     Float:zone_maxy,
  100.     Float:zone_maxz
  101. };
  102. new Float:Zones[][GPSInfo] =
  103. {
  104.     {"The Big Ear",                -410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00},
  105.     {"Aldea Malvada",               -1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00},
  106.     {"Angel Pine",                  -2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00},
  107.     {"Arco del Oeste",               -901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00},
  108.     {"Avispa Country Club",         -2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00},
  109.     {"Avispa Country Club",         -2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00},
  110.     {"Avispa Country Club",         -2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00},
  111.     {"Avispa Country Club",         -2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10},
  112.     {"Avispa Country Club",         -2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10},
  113.     {"Avispa Country Club",         -2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70},
  114.     {"Back o Beyond",               -1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00},
  115.     {"Battery Point",               -2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00},
  116.     {"Bayside",                     -2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00},
  117.     {"Bayside Marina",              -2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00},
  118.     {"Beacon Hill",                  -399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50},
  119.     {"Blackfield",                    964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90},
  120.     {"Blackfield",                    964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90},
  121.     {"Blackfield Chapel",            1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90},
  122.     {"Blackfield Chapel",            1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90},
  123.     {"Blackfield Intersection",      1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90},
  124.     {"Blackfield Intersection",      1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90},
  125.     {"Blackfield Intersection",      1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90},
  126.     {"Blackfield Intersection",      1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90},
  127.     {"Blueberry",                     104.50,  -220.10,     2.30,   349.60,   152.20,   200.00},
  128.     {"Blueberry",                      19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00},
  129.     {"Blueberry Acres",              -319.60,  -220.10,     0.00,   104.50,   293.30,   200.00},
  130.     {"Caligula's Palace",            2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90},
  131.     {"Caligula's Palace",            2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90},
  132.     {"Calton Heights",              -2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00},
  133.     {"Chinatown",                   -2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00},
  134.     {"City Hall",                   -2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00},
  135.     {"Come-A-Lot",                   2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90},
  136.     {"Commerce",                     1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90},
  137.     {"Commerce",                     1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90},
  138.     {"Commerce",                     1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90},
  139.     {"Commerce",                     1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90},
  140.     {"Commerce",                     1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90},
  141.     {"Commerce",                     1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90},
  142.     {"Conference Center",            1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90},
  143.     {"Conference Center",            1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90},
  144.     {"Cranberry Station",           -2007.80,    56.30,     0.00, -1922.00,   224.70,   100.00},
  145.     {"Creek",                        2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90},
  146.     {"Dillimore",                     580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00},
  147.     {"Doherty",                     -2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00},
  148.     {"Doherty",                     -2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00},
  149.     {"Downtown",                    -1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00},
  150.     {"Downtown",                    -1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00},
  151.     {"Downtown",                    -1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00},
  152.     {"Downtown",                    -1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00},
  153.     {"Downtown",                    -2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00},
  154.     {"Downtown",                    -1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00},
  155.     {"Downtown Los Santos",          1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90},
  156.     {"Downtown Los Santos",          1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90},
  157.     {"Downtown Los Santos",          1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90},
  158.     {"Downtown Los Santos",          1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90},
  159.     {"Downtown Los Santos",          1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90},
  160.     {"Downtown Los Santos",          1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90},
  161.     {"Downtown Los Santos",          1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90},
  162.     {"Downtown Los Santos",          1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90},
  163.     {"Downtown Los Santos",          1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90},
  164.     {"East Beach",                   2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90},
  165.     {"East Beach",                   2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90},
  166.     {"East Beach",                   2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90},
  167.     {"East Beach",                   2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90},
  168.     {"East Los Santos",              2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90},
  169.     {"East Los Santos",              2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90},
  170.     {"East Los Santos",              2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90},
  171.     {"East Los Santos",              2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90},
  172.     {"East Los Santos",              2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90},
  173.     {"East Los Santos",              2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90},
  174.     {"East Los Santos",              2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90},
  175.     {"Easter Basin",                -1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00},
  176.     {"Easter Basin",                -1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00},
  177.     {"Aeroporto de Easter Bay",          -1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00},
  178.     {"Aeroporto de Easter Bay",          -1794.90,  -730.10,    -3.00, -1213.90,   -50.00,   200.00},
  179.     {"Aeroporto de Easter Bay",          -1213.90,  -730.10,     0.00, -1132.80,   -50.00,   200.00},
  180.     {"Aeroporto de Easter Bay",          -1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00},
  181.     {"Aeroporto de Easter Bay",          -1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00},
  182.     {"Aeroporto de Easter Bay",          -1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40},
  183.     {"Aeroporto de Easter Bay",          -1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40},
  184.     {"Aeroporto de Easter Bay",          -1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40},
  185.     {"Easter Bay Chemicals",        -1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00},
  186.     {"Easter Bay Chemicals",        -1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00},
  187.     {"El Castillo del Diablo",       -464.50,  2217.60,     0.00,  -208.50,  2580.30,   200.00},
  188.     {"El Castillo del Diablo",       -208.50,  2123.00,    -7.60,   114.00,  2337.10,   200.00},
  189.     {"El Castillo del Diablo",       -208.50,  2337.10,     0.00,     8.40,  2487.10,   200.00},
  190.     {"El Corona",                    1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90},
  191.     {"El Corona",                    1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90},
  192.     {"El Quebrados",                -1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00},
  193.     {"Esplanade East",              -1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00},
  194.     {"Esplanade East",              -1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00},
  195.     {"Esplanade East",              -1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30},
  196.     {"Esplanade North",             -2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00},
  197.     {"Esplanade North",             -1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00},
  198.     {"Esplanade North",             -1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00},
  199.     {"Fallen Tree",                  -792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00},
  200.     {"Fallow Bridge",                 434.30,   366.50,     0.00,   603.00,   555.60,   200.00},
  201.     {"Fern Ridge",                    508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00},
  202.     {"Financial",                   -1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00},
  203.     {"Fisher's Lagoon",              1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00},
  204.     {"Flint Intersection",           -187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90},
  205.     {"Flint Range",                  -594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00},
  206.     {"Fort Carson",                  -376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00},
  207.     {"Foster Valley",               -2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00},
  208.     {"Foster Valley",               -2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00},
  209.     {"Foster Valley",               -2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00},
  210.     {"Foster Valley",               -2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00},
  211.     {"Frederick Bridge",             2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00},
  212.     {"Gant Bridge",                 -2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00},
  213.     {"Gant Bridge",                 -2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00},
  214.     {"Ganton",                       2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90},
  215.     {"Ganton",                       2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90},
  216.     {"Garcia",                      -2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00},
  217.     {"Garcia",                      -2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00},
  218.     {"Garver Bridge",               -1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90},
  219.     {"~yGarver Bridge",               -1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90},
  220.     {"Garver Bridge",               -1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30},
  221.     {"Parque Glen",                    1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90},
  222.     {"Parque Glen",                    1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90},
  223.     {"Parque Glen",                    1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90},
  224.     {"Green Palms",                   176.50,  1305.40,    -3.00,   338.60,  1520.70,   200.00},
  225.     {"Greenglass College",            964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90},
  226.     {"Greenglass College",            964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90},
  227.     {"Hampton Barns",                 603.00,   264.30,     0.00,   761.90,   366.50,   200.00},
  228.     {"Hankypanky Point",             2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00},
  229.     {"Harry Gold Parkway",           1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90},
  230.     {"Hashbury",                    -2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00},
  231.     {"Hilltop Farm",                  967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00},
  232.     {"Hunter Quarry",                 337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70},
  233.     {"Idlewood",                     1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90},
  234.     {"Idlewood",                     1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90},
  235.     {"Idlewood",                     1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90},
  236.     {"Idlewood",                     1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90},
  237.     {"Idlewood",                     2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90},
  238.     {"Idlewood",                     1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90},
  239.     {"Jefferson",                    1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90},
  240.     {"Jefferson",                    2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90},
  241.     {"Jefferson",                    2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90},
  242.     {"Jefferson",                    2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90},
  243.     {"Jefferson",                    2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90},
  244.     {"Jefferson",                    2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90},
  245.     {"Julius Thruway East",          2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90},
  246.     {"Julius Thruway East",          2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90},
  247.     {"Julius Thruway East",          2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90},
  248.     {"Julius Thruway East",          2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90},
  249.     {"Julius Thruway North",         2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90},
  250.     {"Julius Thruway North",         2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90},
  251.     {"Julius Thruway North",         2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90},
  252.     {"Julius Thruway North",         1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90},
  253.     {"Julius Thruway North",         1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90},
  254.     {"Julius Thruway North",         1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90},
  255.     {"Julius Thruway North",         1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90},
  256.     {"Julius Thruway North",         1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90},
  257.     {"Julius Thruway South",         1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90},
  258.     {"Julius Thruway South",         2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90},
  259.     {"Julius Thruway West",          1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90},
  260.     {"Julius Thruway West",          1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90},
  261.     {"Juniper Hill",                -2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00},
  262.     {"Juniper Hollow",              -2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00},
  263.     {"K.A.C.C. Military Fuels",      2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90},
  264.     {"Kincaid Bridge",              -1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90},
  265.     {"Kincaid Bridge",              -1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90},
  266.     {"Kincaid Bridge",              -1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90},
  267.     {"King's",                      -2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00},
  268.     {"King's",                      -2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00},
  269.     {"King's",                      -2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00},
  270.     {"LVA Freight Depot",            1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90},
  271.     {"LVA Freight Depot",            1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90},
  272.     {"LVA Freight Depot",            1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90},
  273.     {"LVA Freight Depot",            1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90},
  274.     {"LVA Freight Depot",            1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90},
  275.     {"Las Barrancas",                -926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00},
  276.     {"Las Brujas",                   -365.10,  2123.00,    -3.00,  -208.50,  2217.60,   200.00},
  277.     {"Las Colinas",                  1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90},
  278.     {"Las Colinas",                  2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90},
  279.     {"Las Colinas",                  2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90},
  280.     {"Las Colinas",                  2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90},
  281.     {"Las Colinas",                  2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90},
  282.     {"Las Colinas",                  2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90},
  283.     {"Las Colinas",                  2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90},
  284.     {"Las Payasadas",                -354.30,  2580.30,     2.00,  -133.60,  2816.80,   200.00},
  285.     {"Aeroporto de Las Venturas",         1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90},
  286.     {"Aeroporto de Las Venturas",         1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90},
  287.     {"Aeroporto de Las Venturas",         1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90},
  288.     {"Aeroporto de Las Venturas",         1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50},
  289.     {"Last Dime Motel",              1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90},
  290.     {"Leafy Hollow",                -1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00},
  291.     {"Lil' Probe Inn",                -90.20,  1286.80,    -3.00,   153.80,  1554.10,   200.00},
  292.     {"Linden Side",                  2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90},
  293.     {"Linden Station",               2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90},
  294.     {"Linden Station",               2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40},
  295.     {"Little Mexico",                1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90},
  296.     {"Little Mexico",                1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90},
  297.     {"Los Flores",                   2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90},
  298.     {"Los Flores",                   2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90},
  299.     {"Aeroporto de Los Santos",     1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90},
  300.     {"Aeroporto de Los Santos",     1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90},
  301.     {"Aeroporto de Los Santos",     1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90},
  302.     {"Aeroporto de Los Santos",     1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90},
  303.     {"Aeroporto de Los Santos",     1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90},
  304.     {"Aeroporto de Los Santos",     2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90},
  305.     {"Marina",                        647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90},
  306.     {"Marina",                        647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90},
  307.     {"Marina",                        807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90},
  308.     {"Market",                        787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90},
  309.     {"Market",                        952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90},
  310.     {"Market",                       1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90},
  311.     {"Market",                        926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90},
  312.     {"Market Station",                787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80},
  313.     {"Martin Bridge",                -222.10,   293.30,     0.00,  -122.10,   476.40,   200.00},
  314.     {"Missionary Hill",             -2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00},
  315.     {"Montgomery",                   1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00},
  316.     {"Montgomery",                   1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00},
  317.     {"Montgomery Intersection",      1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00},
  318.     {"Montgomery Intersection",      1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00},
  319.     {"Mulholland",                   1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90},
  320.     {"Mulholland",                   1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90},
  321.     {"Mulholland",                   1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90},
  322.     {"Mulholland",                   1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90},
  323.     {"Mulholland",                   1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90},
  324.     {"Mulholland",                   1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90},
  325.     {"Mulholland",                    768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90},
  326.     {"Mulholland",                    687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90},
  327.     {"Mulholland",                    737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90},
  328.     {"Mulholland",                   1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90},
  329.     {"Mulholland",                    952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90},
  330.     {"Mulholland",                    911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90},
  331.     {"Mulholland",                    861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90},
  332.     {"Mulholland Intersection",      1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90},
  333.     {"North Rock",                   2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00},
  334.     {"Ocean Docks",                  2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90},
  335.     {"Ocean Docks",                  2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90},
  336.     {"Ocean Docks",                  2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90},
  337.     {"Ocean Docks",                  2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90},
  338.     {"Ocean Docks",                  2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90},
  339.     {"Ocean Docks",                  2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90},
  340.     {"Ocean Docks",                  2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90},
  341.     {"Ocean Flats",                 -2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00},
  342.     {"Ocean Flats",                 -2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00},
  343.     {"Ocean Flats",                 -2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00},
  344.     {"Octane Springs",                338.60,  1228.50,     0.00,   664.30,  1655.00,   200.00},
  345.     {"Old Venturas Strip",           2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90},
  346.     {"Palisades",                   -2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00},
  347.     {"Palomino Creek",               2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00},
  348.     {"Paradiso",                    -2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00},
  349.     {"Pershing Square",              1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90},
  350.     {"Pilgrim",                      2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90},
  351.     {"Pilgrim",                      2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90},
  352.     {"Pilson Intersection",          1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90},
  353.     {"Pirates in Men's Pants",       1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90},
  354.     {"Playa del Seville",            2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90},
  355.     {"Prickle Pine",                 1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90},
  356.     {"Prickle Pine",                 1117.40,  2507.20,   -89.00,  1534.50,  2723.20,   110.90},
  357.     {"Prickle Pine",                 1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90},
  358.     {"Prickle Pine",                 1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90},
  359.     {"Queens",                      -2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00},
  360.     {"Queens",                      -2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00},
  361.     {"Queens",                      -2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00},
  362.     {"Randolph Industrial Estate",   1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90},
  363.     {"Redsands East",                1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90},
  364.     {"Redsands East",                1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90},
  365.     {"Redsands East",                1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90},
  366.     {"Redsands West",                1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90},
  367.     {"Redsands West",                1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90},
  368.     {"Redsands West",                1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90},
  369.     {"Redsands West",                1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90},
  370.     {"Regular Tom",                  -405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00},
  371.     {"Richman",                       647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90},
  372.     {"Richman",                       647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90},
  373.     {"Richman",                       225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90},
  374.     {"Richman",                       225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90},
  375.     {"Richman",                        72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90},
  376.     {"Richman",                        72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90},
  377.     {"Richman",                       321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90},
  378.     {"Richman",                       321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90},
  379.     {"Richman",                       321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90},
  380.     {"Richman",                       321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90},
  381.     {"Robada Intersection",         -1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90},
  382.     {"Roca Escalante",               2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90},
  383.     {"Roca Escalante",               2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90},
  384.     {"Rockshore East",               2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90},
  385.     {"Rockshore West",               1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90},
  386.     {"Rockshore West",               2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90},
  387.     {"Rodeo",                          72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90},
  388.     {"Rodeo",                          72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90},
  389.     {"Rodeo",                         225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90},
  390.     {"Rodeo",                         225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90},
  391.     {"Rodeo",                         334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90},
  392.     {"Rodeo",                         312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90},
  393.     {"Rodeo",                         422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90},
  394.     {"Rodeo",                         558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90},
  395.     {"Rodeo",                         466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90},
  396.     {"Rodeo",                         422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90},
  397.     {"Rodeo",                         466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90},
  398.     {"Rodeo",                         334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90},
  399.     {"Royal Cassino",                 2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90},
  400.     {"San Andreas Sound",            2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00},
  401.     {"Santa Flora",                 -2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00},
  402.     {"Praia de Santa Maria",             342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90},
  403.     {"Praia de Santa Maria",              72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90},
  404.     {"Shady Cabin",                 -1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00},
  405.     {"Shady Creeks",                -1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00},
  406.     {"Shady Creeks",                -2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00},
  407.     {"Sobell Rail Yards",            2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90},
  408.     {"Spinybed",                     2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90},
  409.     {"Starfish Cassino",              2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90},
  410.     {"Starfish Cassino",              2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90},
  411.     {"Starfish Cassino",              2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90},
  412.     {"Temple",                       1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90},
  413.     {"Temple",                       1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90},
  414.     {"Temple",                       1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90},
  415.     {"Temple",                        952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90},
  416.     {"Temple",                       1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90},
  417.     {"Temple",                       1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90},
  418.     {"The Camel's Toe",              2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90},
  419.     {"The Clown's Pocket",           2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90},
  420.     {"The Emerald Isle",             2011.90,  2202.70,   -89.00,  2237.40,  2508.20,   110.90},
  421.     {"The Four Dragons Casino",      1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90},
  422.     {"The High Roller",              1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90},
  423.     {"The Mako Span",                1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00},
  424.     {"The Panopticon",               -947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00},
  425.     {"The Pink Swan",                1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90},
  426.     {"The Sherman Dam",              -968.70,  1929.40,    -3.00,  -481.10,  2155.20,   200.00},
  427.     {"The Strip",                    2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90},
  428.     {"The Strip",                    2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90},
  429.     {"The Strip",                    2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90},
  430.     {"The Strip",                    2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90},
  431.     {"The Visage",                   1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90},
  432.     {"The Visage",                   1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90},
  433.     {"Unity Station",                1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50},
  434.     {"Valle Ocultado",               -936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00},
  435.     {"Verdant Bluffs",                930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90},
  436.     {"Verdant Bluffs",               1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90},
  437.     {"Verdant Bluffs",               1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90},
  438.     {"Verdant Meadows",                37.00,  2337.10,    -3.00,   435.90,  2677.90,   200.00},
  439.     {"Praia de Verona",                  647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90},
  440.     {"Praia de Verona",                  930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90},
  441.     {"Praia de Verona",                  851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90},
  442.     {"Praia de Verona",                 1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90},
  443.     {"Praia de Verona",                 1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90},
  444.     {"Vinewood",                      787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90},
  445.     {"Vinewood",                      787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90},
  446.     {"Vinewood",                      647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90},
  447.     {"Vinewood",                      647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90},
  448.     {"Whitewood Estates",             883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90},
  449.     {"Whitewood Estates",            1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90},
  450.     {"Willowfield",                  1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90},
  451.     {"Willowfield",                  2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90},
  452.     {"Willowfield",                  2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90},
  453.     {"Willowfield",                  2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90},
  454.     {"Willowfield",                  2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90},
  455.     {"Willowfield",                  2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90},
  456.     {"Willowfield",                  2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90},
  457.     {"Yellow Bell Station",          1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00},
  458.     {"Los Santos",                     44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00},
  459.     {"Las Venturas",                  869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00},
  460.     {"Bone County",                  -480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00},
  461.     {"Tierra Robada",               -2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00},
  462.     {"Tierra Robada",               -1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00},
  463.     {"San Fierro",                  -2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00},
  464.     {"Red County",                  -1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00},
  465.     {"Flint County",                -1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00},
  466.     {"Whetstone",                   -2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}
  467. };
  468. new VeiculosNome[][] =
  469. {
  470.     "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
  471.     "Limosine","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto",
  472.     "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
  473.     "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
  474.     "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
  475.     "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
  476.     "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
  477.     "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX",
  478.     "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
  479.     "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial","Boxville","Benson","Mesa",
  480.     "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
  481.     "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
  482.     "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
  483.     "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
  484.     "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
  485.     "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
  486.     "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
  487.     "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
  488.     "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
  489.     "Andromada","Dodo","RC Cam","Launch","Viatura (LSPD)","Viatura (SFPD)","Viatura (LVPD)","Police Ranger",
  490.     "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
  491.     "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  492. };
  493.  
  494. new Dominando[MAX_PLAYERS];
  495. new GZTrafico;
  496. new DonoTrafico;
  497. new GuerraTrafico;
  498. new ProvocoTrafico[MAX_PLAYERS];
  499. new TempoGuerraTrafico;
  500. new string1[128];
  501. new Roubando[MAX_PLAYERS];
  502.  
  503. //=================
  504. main()
  505. {
  506.     print("Carregado!");
  507.     print("\n----------------------------------");
  508.     print("Créditos ao GameMode: Pedro Pawn.");
  509.     print("War Of organized gangs: versão atual: 2.0");
  510.     print("Velocimetro: Sky.");
  511.     print("Agradecimentos: Fórum SAMP.");
  512.     print("----------------------------------\n");
  513. }
  514.  
  515. public OnGameModeInit()
  516. {
  517.     SetGameModeText("War Of organized gangs 2.0.");
  518.     AddPlayerClassEx(grove,105,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0); //grove
  519.     AddPlayerClassEx(grove,106,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
  520.     AddPlayerClassEx(grove,107,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
  521.     AddPlayerClassEx(ballas,102,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
  522.     AddPlayerClassEx(ballas,103,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
  523.     AddPlayerClassEx(ballas,104,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
  524.     AddPlayerClassEx(vagos,108,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
  525.     AddPlayerClassEx(vagos,109,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
  526.     AddPlayerClassEx(vagos,110,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
  527.     AddPlayerClassEx(aztecas,114,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
  528.     AddPlayerClassEx(aztecas,115,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
  529.     AddPlayerClassEx(aztecas,116,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
  530.     //====HQ AZTECAS======
  531.     CarroA[0] = CreateVehicle(576,1826.6999500,-2025.4000200,13.1000000,0.0000000,7,7,-1); //Tornado
  532.     CarroA[1] = CreateVehicle(575,1826.8000500,-2031.9000200,13.0000000,0.0000000,7,7,-1); //Broadway
  533.     CarroA[2] = CreateVehicle(475,1823.1999500,-2025.8000500,13.1000000,0.0000000,7,7,-1); //Sabre
  534.     CarroA[3] = CreateVehicle(439,1823.1999500,-2031.6999500,13.2000000,0.0000000,7,7,-1); //Stallion
  535.     CarroA[4] = CreateVehicle(482,1830.5000000,-2003.4000200,13.6000000,179.7130000,7,7,-1); //Burrito
  536.     //====================
  537.     //====HQ GROVE=======
  538.     CarroG[0] = CreateVehicle(482,2506.6001000,-1685.0000000,13.6000000,0.0000000,128,128,-1); //Burrito
  539.     CarroG[1] = CreateVehicle(567,2499.3999000,-1682.6999500,13.3000000,284.0000000,128,128,-1); //Savanna
  540.     CarroG[2] = CreateVehicle(536,2492.1001000,-1684.0000000,13.2000000,278.0000000,128,128,-1); //Blade
  541.     CarroG[3] = CreateVehicle(492,2508.3000500,-1670.5000000,13.1000000,348.0000000,128,128,-1); //Greenwood
  542.     CarroG[4] = CreateVehicle(467,2505.8999000,-1677.4000200,13.0000000,330.0000000,128,128,-1); //Oceanic
  543.     //====================
  544.     //====HQ VAGOS=======
  545.     CarroV[0] = CreateVehicle(482,2822.6001000,-1188.3000500,25.3000000,268.2560000,6,6,-1); //Burrito
  546.     CarroV[1] = CreateVehicle(474,2826.6001000,-1173.8000500,24.9000000,182.0790000,6,6,-1); //Hermes
  547.     CarroV[2] = CreateVehicle(410,2822.3999000,-1178.5999800,24.9000000,270.9120000,6,6,-1); //Manana
  548.     CarroV[3] = CreateVehicle(518,2815.6001000,-1178.8000500,25.0000000,272.1930000,6,6,-1); //Buccaneer
  549.     CarroV[4] = CreateVehicle(566,2814.3000500,-1188.0000000,25.0000000,269.6440000,6,6,-1); //Tahoma
  550.     //HQ BALLAS===========
  551.     CarroB[0] = CreateVehicle(566,2000.5000000,-1139.4000200,25.2000000,90.2250000,5,5,-1); //Tahoma
  552.     CarroB[1] = CreateVehicle(551,1994.1999500,-1139.6999500,25.3000000,90.2250000,5,5,-1); //Merit
  553.     CarroB[2] = CreateVehicle(547,1999.5999800,-1132.0000000,25.2000000,90.2250000,5,5,-1); //Primo
  554.     CarroB[3] = CreateVehicle(517,1991.3000500,-1131.9000200,25.5000000,90.2250000,5,5,-1); //Majestic
  555.     CarroB[4] = CreateVehicle(482,1982.8000500,-1132.0999800,26.0000000,90.2250000,5,5,-1); //Burrito
  556.     //Lombadas: créditos a lós.
  557.     CreateObject(3865, 2431.477051, -1662.562378, 23.346226, 0.0000, 0.0000, 90.0000);
  558.     CreateObject(3865, 2331.300537, -1732.902344, 10.866785, 0.0000, 0.0000, 0.0000);
  559.     CreateObject(3865, 2822.697021, -1969.249634, 8.446474, 0.0000, 0.0000, 270.0000);
  560.     CreateObject(3865, 2837.791260, -1968.909790, 8.421474, 0.0000, 0.0000, 270.0000);
  561.     CreateObject(3865, 1928.193970, -1751.836670, 10.716782, 0.0000, 0.0000, 180.0000);
  562.     CreateObject(3865, 1613.119751, -1732.000244, 10.716789, 0.0000, 0.0000, 180.0000);
  563.     CreateObject(3865, 1529.771484, -1720.911865, 10.841787, 0.0000, 0.0000, 90.0001);
  564.     CreateObject(3865, 1520.375244, -1732.240356, 10.749582, 0.0000, 0.0000, 0.0000);
  565.     CreateObject(3865, 1529.424561, -1603.775513, 10.766790, 0.0000, 0.0000, 270.0000);
  566.     CreateObject(3865, 1323.189087, -1731.666870, 10.741789, 0.0000, 0.0000, 180.0002);
  567.     CreateObject(3865, 1160.055054, -1711.628662, 11.140226, 0.0000, 0.0000, 180.0002);
  568.     CreateObject(3865, 369.826508, -1657.199341, 30.101086, 0.0000, 0.0000, 270.0000);
  569.     CreateObject(3865, 369.718628, -1722.624146, 19.197357, 0.0000, 0.0000, 270.0000);
  570.     CreateObject(3865, 369.665771, -1829.674561, 5.005795, 0.0000, 0.0000, 270.0000);
  571.     CreateObject(3865, 551.933533, -1668.723267, 15.915226, 0.0000, 0.0000, 0.0000);
  572.     CreateObject(3865, 369.869354, -1982.568359, 4.980794, 0.0000, 0.0000, 270.0000);
  573.     CreateObject(3865, 1261.886353, -1079.179199, 24.798252, 0.0000, 0.0000, 270.0000);
  574.     CreateObject(3865, 1323.420654, -1038.153931, 26.337036, 0.0000, 0.0000, 0.0000);
  575.     CreateObject(3865, 1482.021362, -1057.819458, 21.238293, 0.0000, 0.0000, 90.0001);
  576.     CreateObject(3865, 1589.030884, -1160.881226, 21.365175, 0.0000, 0.0000, 180.0001);
  577.     CreateObject(3865, 2244.503418, -1139.947632, 23.579838, 0.0000, 0.0000, 168.7501);
  578.     CreateObject(3865, 2370.846191, -1327.036133, 21.369862, 0.0000, 0.0000, 270.0001);
  579.     CreateObject(3865, 2450.775635, -1518.902710, 35.425476, 0.0000, 0.0000, 270.0001);
  580.     CreateObject(3865, 2430.737793, -1470.459473, 21.367035, 0.0000, 0.0000, 270.0001);
  581.     CreateObject(3865, 2430.773682, -1662.756348, 23.073957, 0.0000, 0.0000, 270.0000);
  582.     CreateObject(3865, 2463.247803, -1658.498779, 10.716391, 0.0000, 0.0000, 180.0000);
  583.     CreateObject(3865, 2463.461182, -1659.396729, 10.744118, 0.0000, 0.0000, 0.0000);
  584.     CreateObject(3865, 2331.122070, -1731.971313, 10.844513, 0.0000, 0.0000, 180.0001);
  585.     CreateObject(3865, 1928.404663, -1752.843994, 10.756287, 0.0000, 0.0000, 0.0000);
  586.     CreateObject(3865, 1613.330078, -1732.830933, 10.762777, 0.0000, 0.0000, 0.0000);
  587.     CreateObject(3865, 1520.179810, -1731.617065, 10.791788, 0.0000, 0.0000, 180.0001);
  588.     CreateObject(3865, 1529.126587, -1721.031372, 10.791788, 0.0000, 0.0000, 270.0000);
  589.     CreateObject(3865, 1530.076660, -1603.610840, 10.794518, 0.0000, 0.0000, 90.0000);
  590.     CreateObject(3865, 1323.363281, -1732.769409, 10.716789, 0.0000, 0.0000, 0.0000);
  591.     CreateObject(3865, 1160.283081, -1712.683594, 11.117954, 0.0000, 0.0000, 0.0000);
  592.     CreateObject(3865, 370.659607, -1657.000244, 30.078672, 0.0000, 0.0000, 90.0000);
  593.     CreateObject(3865, 370.500366, -1722.399292, 19.193628, 0.0000, 0.0000, 90.0000);
  594.     CreateObject(3865, 370.023102, -1829.540161, 4.983466, 0.0000, 0.0000, 90.0000);
  595.     CreateObject(3865, 370.045380, -1982.343506, 5.005794, 0.0000, 0.0000, 90.0000);
  596.     CreateObject(3865, 1263.092773, -1078.985840, 24.775980, 0.0000, 0.0000, 90.0002);
  597.     CreateObject(3865, 1323.274780, -1037.234497, 26.289764, 0.0000, 0.0000, 180.0000);
  598.     CreateObject(3865, 1589.247559, -1161.398438, 21.328182, 0.0000, 0.0000, 0.0000);
  599.     CreateObject(3865, 2471.438965, -1732.692017, 10.899067, 0.0000, 0.0000, 0.0000);
  600.     CreateObject(3865, 2471.192627, -1731.901733, 10.896339, 0.0000, 0.0000, 180.0000);
  601.     CreateObject(3865, 2185.634277, -1742.818848, 10.683977, 0.0000, 0.0000, 90.0001);
  602.     CreateObject(3865, 2184.976563, -1743.038086, 10.661705, 0.0000, 0.0000, 270.0000);
  603.     CreateObject(3865, 2081.134033, -1906.306152, 10.941786, 0.0000, 0.0000, 270.0000);
  604.     CreateObject(3865, 2081.802246, -1906.137207, 10.994513, 0.0000, 0.0000, 90.0002);
  605.     CreateObject(3865, 1941.795654, -1931.945435, 10.941786, 0.0000, 0.0000, 180.0000);
  606.     CreateObject(3865, 1942.000244, -1932.614624, 10.969513, 0.0000, 0.0000, 0.0001);
  607.     CreateObject(3865, 1701.721436, -1592.865723, 10.883875, 0.0000, 0.0000, 0.0001);
  608.     CreateObject(3865, 1701.480591, -1592.149414, 10.911602, 0.0000, 0.0000, 180.0002);
  609.     CreateObject(3865, 1158.438721, -931.988098, 40.877213, 0.0000, 0.0000, 270.0001);
  610.     CreateObject(3865, 1159.107300, -931.840698, 41.000446, 0.0000, 0.0000, 90.0001);
  611.     CreateObject(3865, 925.623047, -948.598267, 37.538677, 0.0000, 0.0000, 180.0003);
  612.     CreateObject(3865, 925.835327, -950.811218, 37.566128, 0.0000, 0.0000, 0.0001);
  613.     CreateObject(3865, 355.255707, -1773.039551, 2.743529, 0.0000, 0.0000, 360.0000);
  614.     CreateObject(3865, 355.125214, -1772.422607, 2.846187, 0.0000, 0.0000, 179.9999);
  615.     CreateObject(3865, 721.254333, -1586.136841, 11.725403, 0.0000, 0.0000, 179.9999);
  616.     CreateObject(3865, 721.424805, -1586.838379, 11.703085, 0.0000, 0.0000, 359.9997);
  617.     CreateObject(3865, 944.614075, -1572.733643, 10.791788, 0.0000, 0.0000, 359.9997);
  618.     CreateObject(3865, 944.399841, -1571.812500, 10.794516, 0.0000, 0.0000, 179.9994);
  619.     CreateObject(3865, 1296.987305, -1660.287354, 10.741789, 0.0000, 0.0000, 269.9996);
  620.     CreateObject(3865, 1297.920410, -1660.110474, 10.719517, 0.0000, 0.0000, 89.9996);
  621.     CreateObject(3865, 1312.898438, -1660.130859, 10.791788, 0.0000, 0.0000, 89.9996);
  622.     CreateObject(3865, 1311.871582, -1660.327515, 10.816788, 0.0000, 0.0000, 269.9995);
  623.     CreateObject(3865, 1357.469604, -1922.608154, 17.813128, 0.0000, 0.0000, 348.7497);
  624.     CreateObject(3865, 1357.431763, -1921.695679, 17.840855, 0.0000, 0.0000, 168.7492);
  625.     CreateObject(3865, 1289.793579, -2056.125000, 56.030380, 0.0000, 0.0000, 179.9992);
  626.     CreateObject(3865, 1289.957642, -2057.000488, 56.057831, 0.0000, 0.0000, 359.9987);
  627.     CreateObject(3865, 1389.576538, -1743.191528, 10.766788, 0.0000, 0.0000, 89.9989);
  628.     CreateObject(3865, 1388.664185, -1743.370361, 10.719517, 0.0000, 0.0000, 269.9984);
  629.     CreateObject(3865, 2823.456055, -1969.039063, 8.474201, 0.0000, 0.0000, 89.9988);
  630.     CreateObject(3865, 2838.529785, -1968.712524, 8.394894, 0.0000, 0.0000, 89.9988);
  631.     CreateObject(3865, 2287.913330, -2304.382568, 11.077242, 0.0000, 0.0000, 315.0000);
  632.     CreateObject(3865, 2288.336670, -2303.660400, 11.086193, 0.0000, 0.0000, 135.0000);
  633.     CreateObject(3865, 1962.146973, -2177.654297, 11.130848, 0.0000, 0.0000, 90.0000);
  634.     CreateObject(3865, 1961.116943, -2177.814697, 11.208574, 0.0000, 0.0000, 270.0000);
  635.     CreateObject(3865, 1821.394165, -1876.714111, 10.897945, 0.0000, 0.0000, 270.0000);
  636.     CreateObject(3865, 1822.076172, -1876.460693, 10.809561, 0.0000, 0.0000, 90.0002);
  637.     CreateObject(3865, 1649.388184, -1872.750488, 10.791788, 0.0000, 0.0000, 0.0003);
  638.     CreateObject(3865, 1649.187500, -1871.835205, 10.744516, 0.0000, 0.0000, 180.0004);
  639.     CreateObject(3865, 1320.845825, -1851.750488, 10.732838, 0.0000, 0.0000, 180.0004);
  640.     CreateObject(3865, 1321.046021, -1852.676392, 10.716789, 0.0000, 0.0000, 0.0002);
  641.     CreateObject(3865, 942.996826, -1230.425659, 14.144801, 0.0000, 0.0000, 90.0000);
  642.     CreateObject(3865, 942.221802, -1230.550781, 14.153721, 0.0000, 0.0000, 270.0000);
  643.     CreateObject(3865, 1150.647583, -1227.181885, 14.675970, 0.0000, 0.0000, 270.0000);
  644.     CreateObject(3865, 1151.469360, -1227.008667, 14.703636, 0.0000, 0.0000, 90.0001);
  645.     CreateObject(3865, 1343.078735, -1417.874634, 10.691790, 0.0000, 0.0000, 90.0001);
  646.     CreateObject(3865, 1342.445068, -1418.044800, 10.694517, 0.0000, 0.0000, 270.0000);
  647.     CreateObject(3865, 1357.110107, -1418.191162, 10.822189, 0.0000, 0.0000, 270.0000);
  648.     CreateObject(3865, 1358.108398, -1418.019897, 10.774204, 0.0000, 0.0000, 90.0002);
  649.     CreateObject(3865, 2431.374756, -1662.555542, 23.097296, 0.0000, 0.0000, 90.0000);
  650.     CreateObject(3865, 551.722961, -1667.656372, 15.954409, 0.0000, 0.0000, 180.0002);
  651.     CreateObject(3865, 751.345642, -1643.067261, 3.024577, 0.0000, 0.0000, 270.0000);
  652.     CreateObject(3865, 751.942383, -1642.891602, 3.052244, 0.0000, 0.0000, 90.0001);
  653.     CreateObject(3865, 728.731018, -1674.371704, 7.991571, 0.0000, 0.0000, 0.0000);
  654.     CreateObject(3865, 728.493958, -1673.562866, 8.062235, 0.0000, 0.0000, 180.0002);
  655.     CreateObject(3865, 809.758667, -1702.931396, 10.741789, 0.0000, 0.0000, 270.0000);
  656.     CreateObject(3865, 810.708984, -1702.733521, 10.766788, 0.0000, 0.0000, 90.0001);
  657.     CreateObject(3865, 917.848938, -1762.018188, 10.790501, 0.0000, 0.0000, 90.0001);
  658.     CreateObject(3865, 916.648743, -1762.241211, 10.790455, 0.0000, 0.0000, 270.0003);
  659.     CreateObject(3865, 1034.107422, -1790.956055, 11.030943, 0.0000, 0.0000, 247.5003);
  660.     CreateObject(3865, 1035.075073, -1791.027344, 11.093517, 0.0000, 0.0000, 67.5002);
  661.     CreateObject(3865, 1048.655029, -1712.691650, 10.841787, 0.0000, 0.0000, 360.0000);
  662.     CreateObject(3865, 1048.483276, -1711.638672, 10.894461, 0.0000, 0.0000, 179.9998);
  663.     CreateObject(3865, 1132.968140, -1571.776489, 10.733335, 0.0000, 0.0000, 179.9998);
  664.     CreateObject(3865, 1133.167114, -1572.739868, 10.761063, 0.0000, 0.0000, 359.9996);
  665.     CreateObject(3865, 1443.931274, -1440.247070, 10.816746, 0.0000, 0.0000, 179.9995);
  666.     CreateObject(3865, 1444.171875, -1441.324341, 10.841738, 0.0000, 0.0000, 359.9994);
  667.     CreateObject(3865, 1454.179565, -1451.536621, 10.752022, 0.0000, 0.0000, 269.9992);
  668.     CreateObject(3865, 1455.138306, -1451.353638, 10.777037, 0.0000, 0.0000, 89.9987);
  669.     CreateObject(3865, 1645.433960, -1441.340942, 10.891787, 0.0000, 0.0000, 359.9984);
  670.     CreateObject(3865, 1658.413818, -1451.878784, 10.866716, 0.0000, 0.0000, 89.9977);
  671.     CreateObject(3865, 1645.255371, -1440.412842, 10.858278, 0.0000, 0.0000, 179.9980);
  672.     CreateObject(3865, 1657.391968, -1452.048340, 10.819395, 0.0000, 0.0000, 269.9974);
  673.     CreateObject(3865, 1862.536743, -1341.274048, 10.766762, 0.0000, 0.0000, 359.9977);
  674.     CreateObject(3865, 1862.311523, -1340.149414, 10.816742, 0.0000, 0.0000, 179.9974);
  675.     CreateObject(3865, 1835.640259, -1260.315918, 10.952724, 0.0000, 0.0000, 179.9974);
  676.     CreateObject(3865, 1835.828735, -1261.352173, 10.993334, 0.0000, 0.0000, 359.9969);
  677.     CreateObject(3865, 1520.460449, -1591.673462, 10.691755, 0.0000, 0.0000, 180.0002);
  678.     CreateObject(3865, 1520.692627, -1592.662109, 10.719456, 0.0000, 0.0000, 0.0003);
  679.     CreateObject(3865, 1429.895752, -1721.351318, 10.791788, 0.0000, 0.0000, 90.0002);
  680.     CreateObject(3865, 1428.939697, -1721.552490, 10.827032, 0.0000, 0.0000, 270.0002);
  681.     CreateObject(3865, 1429.192139, -1603.109619, 10.816790, 0.0000, 0.0000, 270.0002);
  682.     CreateObject(3865, 1430.112427, -1602.950806, 10.791758, 0.0000, 0.0000, 90.0003);
  683.     CreateObject(3865, 1455.152222, -1313.456665, 10.816761, 0.0000, 0.0000, 90.0003);
  684.     CreateObject(3865, 1454.332642, -1313.624512, 10.869434, 0.0000, 0.0000, 270.0001);
  685.     CreateObject(3865, 1609.789307, -1314.432373, 14.764170, 0.0000, 0.0000, 90.0005);
  686.     CreateObject(3865, 1604.048584, -1314.554688, 14.820707, 0.0000, 0.0000, 270.0005);
  687.     CreateObject(3865, 1714.301636, -1184.646484, 21.046417, 0.0000, 0.0000, 270.0005);
  688.     CreateObject(3865, 1715.294067, -1184.392334, 21.099091, 0.0000, 0.0000, 90.0003);
  689.     CreateObject(3865, 1442.673096, -1160.448242, 21.090176, 0.0000, 0.0000, 180.0006);
  690.     CreateObject(3865, 1442.827393, -1161.364746, 21.117846, 0.0000, 0.0000, 0.0007);
  691.     CreateObject(3865, 1228.913208, -1280.291504, 10.874914, 0.0000, 0.0000, 180.0006);
  692.     CreateObject(3865, 1229.058960, -1281.279053, 10.952602, 0.0000, 0.0000, 0.0004);
  693.     CreateObject(3865, 1062.941406, -1428.453979, 10.770216, 0.0000, 0.0000, 90.0006);
  694.     CreateObject(3865, 1061.890381, -1428.657593, 10.795212, 0.0000, 0.0000, 270.0007);
  695.     CreateObject(3865, 990.221741, -1490.114136, 10.791727, 0.0000, 0.0000, 0.0009);
  696.     CreateObject(3865, 990.003357, -1489.201538, 10.816698, 0.0000, 0.0000, 180.0011);
  697.     CreateObject(3865, 1036.928833, -1626.829834, 10.766735, 0.0000, 0.0000, 270.0007);
  698.     CreateObject(3865, 1037.928345, -1626.630249, 10.716774, 0.0000, 0.0000, 90.0000);
  699.     CreateObject(3865, 1095.737427, -1852.780029, 10.791739, 0.0000, 0.0000, 0.0010);
  700.     CreateObject(3865, 1095.500244, -1851.807861, 10.819412, 0.0000, 0.0000, 180.0009);
  701.     CreateObject(3865, 1492.031982, -1871.860596, 10.716759, 0.0000, 0.0000, 180.0009);
  702.     CreateObject(3865, 1492.196777, -1872.732300, 10.769455, 0.0000, 0.0000, 0.0004);
  703.     //===================
  704.     DisableInteriorEnterExits();
  705.     ShowPlayerMarkers(0);
  706.     CreatePickup(1274,23,1632.5125,-1169.8737,24.0781);
  707.     CreatePickup(1279,23,2458.6389,-1895.1144,13.5469);
  708.     GZTrafico = GangZoneCreate(2479.8335,-1883.0388,2440.6567,-1900.6251);
  709.     DonoTrafico =0;
  710.     //=====================
  711.     SetTimer("Deposit",5000,true);
  712. }
  713.  
  714. public OnGameModeExit()
  715. {
  716.     DOF2_Exit();
  717.     TextDrawDestroy(TextDrawC);
  718.     TextDrawHideForAll(TextDrawC);
  719.     return 1;
  720. }
  721.  
  722. public OnPlayerRequestClass(playerid, classid)
  723. {
  724.     if((classid >= 0) && (classid <= 2))
  725.     {
  726.         Gang[playerid] = grove;
  727.     }
  728.     if((classid >= 3) && (classid <= 5))
  729.     {
  730.         Gang[playerid] = ballas;
  731.     }
  732.     if((classid >=6) && (classid <= 8))
  733.     {
  734.         Gang[playerid] = vagos;
  735.     }
  736.     if((classid >=9) && (classid <= 11))
  737.     {
  738.         Gang[playerid] = aztecas;
  739.     }
  740.     SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
  741.     SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
  742.     SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
  743.     SetPlayerFacingAngle(playerid,0.0);
  744.     return 1;
  745. }
  746.  
  747. public OnPlayerConnect(playerid)
  748. {
  749.     SendDeathMessage(playerid,INVALID_PLAYER_ID,200);
  750.     LoadTextsDraws(playerid);
  751.     TextDrawC = TextDrawCreate(1.0,433.0,"/ajuda - comandos.");
  752.     TextDrawAlignment(TextDrawC,0);
  753.     TextDrawBackgroundColor(TextDrawC,0x000000ff);
  754.     TextDrawFont(TextDrawC,2);
  755.     TextDrawLetterSize(TextDrawC,0.2999, 1.4);
  756.     TextDrawBoxColor(TextDrawC,0x00000050);
  757.     TextDrawColor(TextDrawC,0xffffffff);
  758.     TextDrawSetOutline(TextDrawC,1);
  759.     TextDrawSetProportional(TextDrawC,1);
  760.     TextDrawSetShadow(TextDrawC,1);
  761.     TextDrawShowForPlayer(playerid, TextDrawC);
  762.     Timer = SetTimerEx("TempoJogado",1000*60,true,"i", playerid);
  763.     GetPlayerName(playerid, name, sizeof(name));
  764.     format(string1,sizeof(string1),"%s entrou no servidor!",name);
  765.     scmt(Amarelo,string1);
  766.     if(DOF2_FileExists(Contas(playerid))) ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Logar:", "Você é registrado digite sua senha para logar!\nSe errar 5 vezes sua conta será banida!", "Confirma", "Cancelar");
  767.     else ShowPlayerDialog(playerid,DIALOG_REGISTRO, DIALOG_STYLE_INPUT,"Registro:","Você ainda não é registrado digite uma senha para se registrar!", "Confirma", "Cancelar");
  768.     scm(playerid,Amarelo,"- Bem vindo ao servidor.");
  769.     scm(playerid,Amarelo,"Versão atual: 2.0.");
  770.     scm(playerid,Amarelo,"Versão antiga: 1.0");
  771.     Jogador[playerid] = INVALID_PLAYER_ID;
  772.     if(DonoTrafico ==0)
  773.     {
  774.         GangZoneShowForPlayer(playerid,GZTrafico,-1);
  775.     }
  776.     if(DonoTrafico == 1)
  777.     {
  778.         GangZoneShowForPlayer(playerid,GZTrafico,Verde);
  779.     }
  780.     if(DonoTrafico == 2)
  781.     {
  782.         GangZoneShowForPlayer(playerid,GZTrafico,Rosa);
  783.     }
  784.     if(DonoTrafico == 3)
  785.     {
  786.         GangZoneShowForPlayer(playerid,GZTrafico,Amarelo);
  787.     }
  788.     if(DonoTrafico == 4)
  789.     {
  790.         GangZoneShowForPlayer(playerid,GZTrafico,Azul);
  791.     }
  792.     return 1;
  793. }
  794.  
  795. public OnPlayerDisconnect(playerid, reason)
  796. {
  797.     SendDeathMessage(INVALID_PLAYER_ID,playerid,201);
  798.  
  799.     GetPlayerName(playerid, name, sizeof(name));
  800.     format(string1,sizeof(string1),"%s saiu do servidor!",name);
  801.     scmt(Error,string1);
  802.     SalvarContas(playerid);
  803.     KillTimer(Timer);
  804.     if(IsPlayerInAnyVehicle(playerid))
  805.     {
  806.         KillTimer(VelocimetroTimer[playerid]);
  807.         PlayerTextDrawHide(playerid, VehInfo[playerid][0]);
  808.         PlayerTextDrawHide(playerid, VehInfo[playerid][1]);
  809.         PlayerTextDrawHide(playerid, VehInfo[playerid][2]);
  810.         PlayerTextDrawHide(playerid, VehInfo[playerid][3]);
  811.         PlayerTextDrawHide(playerid, VehInfo[playerid][4]);
  812.  
  813.         DestroyProgressBar(SVelo[playerid]);
  814.         DestroyProgressBar(SLataria[playerid]);
  815.  
  816.         SVelo[playerid] = INVALID_BAR_ID;
  817.         SLataria[playerid] = INVALID_BAR_ID;
  818.     }
  819.     if(ProvocoTrafico[playerid] == 1)
  820.     {
  821.         GangZoneStopFlashForAll(GZTrafico);
  822.         GangZoneShowForAll(GZTrafico, -1);
  823.         GuerraTrafico = 0;
  824.         ProvocoTrafico[playerid] = 0;
  825.         DonoTrafico = 0;
  826.         Dominando[playerid] = 0;
  827.         KillTimer(TempoGuerraTrafico);
  828.     }
  829.     return 1;
  830. }
  831.  
  832. public OnPlayerDeath(playerid, killerid, reason)
  833. {
  834.     SendDeathMessage(playerid, killerid,reason);
  835.     if(ProvocoTrafico[playerid] == 1)
  836.     {
  837.         GangZoneStopFlashForAll(GZTrafico);
  838.         GangZoneShowForAll(GZTrafico, -1);
  839.         GuerraTrafico = 0;
  840.         ProvocoTrafico[playerid] = 0;
  841.         DonoTrafico = 0;
  842.         Dominando[playerid] = 0;
  843.         KillTimer(TempoGuerraTrafico);
  844.     }
  845.     return 1;
  846. }
  847.  
  848. public OnPlayerText(playerid, text[])
  849. {
  850.     new Float:p[3], s[128], n[24];
  851.     GetPlayerName(playerid, n, 24);
  852.     GetPlayerPos(playerid, p[0], p[1], p[2]);
  853.     format(s, 128, "%s diz: %s", n, text);
  854.     for(new i, j = GetMaxPlayers(); i != j; i++)
  855.     {
  856.         if(IsPlayerInRangeOfPoint(i,5,p[0],p[1],p[2]))
  857.         {
  858.             scm(i,-1,s);
  859.         }
  860.     }
  861.     return false;
  862. }
  863.  
  864. public OnPlayerSpawn(playerid)
  865. {
  866.     if(Gang[playerid] == grove)
  867.     {
  868.         ResetPlayerWeapons(playerid);
  869.         GivePlayerWeapon(playerid,24,250);
  870.         GivePlayerWeapon(playerid,28,400);
  871.         GivePlayerWeapon(playerid,30,350);
  872.         GivePlayerWeapon(playerid,29,250);
  873.         SetPlayerHealth(playerid,100);
  874.         SetPlayerArmour(playerid,100);
  875.         SetPlayerColor(playerid,Verde);
  876.     }
  877.     else if(Gang[playerid] == ballas)
  878.     {
  879.         ResetPlayerWeapons(playerid);
  880.         GivePlayerWeapon(playerid,24,250);
  881.         GivePlayerWeapon(playerid,28,400);
  882.         GivePlayerWeapon(playerid,30,350);
  883.         GivePlayerWeapon(playerid,29,250);
  884.         SetPlayerHealth(playerid,100);
  885.         SetPlayerArmour(playerid,100);
  886.         SetPlayerColor(playerid,Rosa);
  887.     }
  888.     else if(Gang[playerid] == vagos)
  889.     {
  890.         ResetPlayerWeapons(playerid);
  891.         GivePlayerWeapon(playerid,24,250);
  892.         GivePlayerWeapon(playerid,28,400);
  893.         GivePlayerWeapon(playerid,30,350);
  894.         GivePlayerWeapon(playerid,29,250);
  895.         SetPlayerHealth(playerid,100);
  896.         SetPlayerArmour(playerid,100);
  897.         SetPlayerColor(playerid,Amarelo);
  898.     }
  899.     else if(Gang[playerid] == aztecas)
  900.     {
  901.         ResetPlayerWeapons(playerid);
  902.         GivePlayerWeapon(playerid,24,250);
  903.         GivePlayerWeapon(playerid,28,400);
  904.         GivePlayerWeapon(playerid,30,350);
  905.         GivePlayerWeapon(playerid,29,250);
  906.         SetPlayerHealth(playerid,100);
  907.         SetPlayerArmour(playerid,100);
  908.         SetPlayerColor(playerid,Azul);
  909.     }
  910.     return 1;
  911. }
  912.  
  913. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  914. {
  915.     static Name[24];
  916.     GetPlayerName(playerid,Name,24);
  917.     printf("[COMANDOS]: jogador %s digitou comando: %s",Name,cmdtext);
  918.     if (!success)
  919.     return scm(playerid,Error,"Comando executado não existe.");
  920.     return true;
  921. }
  922.  
  923. //================Comandos:=====================================================
  924.  
  925.     CMD:afk(playerid,params[])
  926.     {
  927.         GetPlayerName(playerid,name,sizeof(name));
  928.         format(string1,sizeof(string1),"O jogador %s [id: %i] está no modo ausente!",name,id);
  929.         SetPlayerVirtualWorld(playerid,5);
  930.         TogglePlayerControllable(playerid,0);
  931.         scmt(-1,string1);
  932.         scm(id,Neutra,"Você entrou no modo ausente!");
  933.         return 1;
  934.     }
  935.    
  936.     CMD:sairafk(playerid,params[])
  937.     {
  938.         GetPlayerName(playerid,name,sizeof(name));
  939.         format(string1,sizeof(string1),"O jogador %s [id: %i] saiu do modo ausente.",name,id);
  940.         SetPlayerVirtualWorld(playerid,0);
  941.         TogglePlayerControllable(playerid,1);
  942.         scmt(-1,string1);
  943.         scm(id,Neutra,"Você saiu do modo ausente!");
  944.         return 1;
  945.     }
  946.    
  947.     CMD:roubardeposito(playerid,params[])
  948.     {
  949.         if(!IsPlayerInRangeOfPoint(playerid,3.0,1632.5125,-1169.8737,24.0781)) return scm(playerid,Error,"Você não está no deposito de dinheiro! (/gps)");
  950.         if(Roubando[playerid] == 1) return scm(playerid,Error,"Você já está roubando!");
  951.         if(Gang[playerid] != grove && Gang[playerid] != ballas && Gang[playerid] != vagos&& Gang[playerid] != aztecas) return scm(playerid,Error,"Você não é de nenhuma organização!");
  952.         SetTimerEx("ComandoDTempo",50000, false,"i",playerid);
  953.         scm(playerid,Neutra,"Aguarde..");
  954.         Roubando[playerid] = 1;
  955.         return 1;
  956.     }
  957.    
  958.     CMD:ajuda(playerid,params[])
  959.     {
  960.         if(Gang[playerid]!= grove && Gang[playerid]!= ballas && Gang[playerid]!= vagos && Gang[playerid]!= aztecas) return scm(playerid,Error,"Você não é de nenhuma organização!");
  961.         scm(playerid,Amarelo,"Comandos:");
  962.         scm(playerid,Neutra,"/shop /creditos /objetivo /radio /tempojogando /dominar /ligar /desligar /gps /relatorio /afk /sairafk.");
  963.         scm(playerid,Neutra,"- Pressione a tecla (TAB) e selecione o jogador para mandar mensagem privada.");
  964.         //total 12.
  965.         return 1;
  966.     }
  967.  
  968.     CMD:radio(playerid,params[])
  969.     {
  970.         if(Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos) return scm(playerid,Error,"Você não é de nenhuma organização!");
  971.         new str_op[128];
  972.         if(sscanf(params, "s[128]", str_op))
  973.         return scm(playerid,Error,"Use: /rádio [mensagem].");
  974.         new player_name[MAX_PLAYER_NAME],
  975.         str_msg[128];
  976.         GetPlayerName(playerid,player_name,MAX_PLAYER_NAME);
  977.         if(Gang[playerid] == ballas)
  978.         {
  979.             format(str_msg,sizeof str_msg,"Rádio %s: %s,câmbio.",player_name,str_op);
  980.             scm(playerid,Rosa,str_msg);
  981.         }
  982.         else if(Gang[playerid] == aztecas)
  983.         {
  984.             format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
  985.             scm(playerid,Azul,str_msg);
  986.         }
  987.         else if(Gang[playerid] == grove)
  988.         {
  989.             format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
  990.             scm(playerid,Verde,str_msg);
  991.         }
  992.         else if(Gang[playerid] == vagos)
  993.         {
  994.             format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
  995.             scm(playerid,Amarelo,str_msg);
  996.         }
  997.         return 1;
  998.     }
  999.  
  1000.     CMD:objetivo(playerid,params[])
  1001.     {
  1002.         ShowPlayerDialog(playerid,DIALOG_MSG, DIALOG_STYLE_MSGBOX,"Objetivo:", "O objetivo do servidor é matar as gangues inimigas.\n Você pode também roubar dinheiro para conseguir novas armas e também pode conquistar o local do tráfico, para conseguir respeito.", "Ok","");
  1003.         return 1;
  1004.     }
  1005.  
  1006.     CMD:shop(playerid,params[])
  1007.     {
  1008.         if(!IsPlayerInRangeOfPoint(playerid,3.0,2458.6389,-1895.1144,13.5469)) return scm(playerid,Error,"Você não está no local de tráfico! (/gps).");
  1009.         ShowPlayerDialog(playerid,DIALOG_SHOP,DIALOG_STYLE_LIST,"Lista de armas:","M4 1500$.\nShotgun 800$.\nPistola 600$.\nSpaz 12 2000$.\nColete 300$.\nGranada 1200$.\nBomba de Gás 1150$.\nMolotov 1000$.\nSniper 2800$.", "Comprar", "Sair");
  1010.         return 1;
  1011.     }
  1012.    
  1013.     CMD:gps(playerid,params[])
  1014.     {
  1015.         if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
  1016.         ShowPlayerDialog(playerid,DIALOG_GPS,DIALOG_STYLE_LIST,"GPS Car.","Local tráfico\nDeposito de dinheiro.\nCasa grove.\nCasa ballas.\nCasa vagos.\nCasa Aztecas.","Visualizar","Cancelar");
  1017.         return 1;
  1018.     }
  1019.    
  1020.     CMD:creditos(playerid,params[])
  1021.     {
  1022.         scm(playerid,Neutra,"Créditos GameMode:");
  1023.         scm(playerid,Amarelo,"Pedro Pawn.");
  1024.         scm(playerid,Amarelo,"Velocimetro: Sky.");
  1025.         scm(playerid,Amarelo,"Versão atual: 2.0.");
  1026.         scm(playerid,Amarelo,"Versão antiga: 1.0.");
  1027.         scm(playerid,Error,"Grato equipe: War Of organized gangs.");
  1028.         return 1;
  1029.     }
  1030.    
  1031.     CMD:dominar(playerid,params[])
  1032.     {
  1033.         if(Gang[playerid] == grove)
  1034.         {
  1035.             if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error, "Você não está no local de tráfico.");
  1036.             if(Dominando[playerid] == 1) return scm(playerid,Error, "Você já está dominando um territorio.");
  1037.             if(GuerraTrafico == 1) return scm(playerid,Error, "Já está tendo uma guerra neste territorio.");
  1038.             GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  1039.             format(string1, sizeof(string1), "%s (Grove) está tentando dominar o local de tráfico!",name);
  1040.             scmt(Verde,string1);
  1041.             scm(playerid,Neutra,"Espere 1 minuto para dominar está área.");
  1042.             GangZoneFlashForAll(GZTrafico,Verde);
  1043.             Dominando[playerid] = 1;
  1044.             ProvocoTrafico[playerid] = 1;
  1045.             GuerraTrafico = 1;
  1046.             TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
  1047.         }
  1048.        
  1049.         else if(Gang[playerid] == ballas)
  1050.         {
  1051.             if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
  1052.             if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio.");
  1053.             if(GuerraTrafico == 1) return scm(playerid, -1, "Já está tendo uma guerra neste territorio.");
  1054.             GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  1055.             format(string1, sizeof(string1),"%%s (Ballas) está tentando dominar o local de tráfico!",name);
  1056.             scmt(Rosa,string1);
  1057.             scm(playerid,Neutra, "Espere 1 minuto para dominar o local.");
  1058.             GangZoneFlashForAll(GZTrafico,Rosa);
  1059.             Dominando[playerid] = 1;
  1060.             ProvocoTrafico[playerid] = 1;
  1061.             GuerraTrafico = 1;
  1062.             TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
  1063.         }
  1064.        
  1065.         else if(Gang[playerid] == vagos)
  1066.         {
  1067.             if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
  1068.             if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio!.");
  1069.             if(GuerraTrafico == 1) return scm(playerid,Error,"Já está tendo uma guerra neste territorio.");
  1070.             GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  1071.             format(string1, sizeof(string1),"%s (Vagos) está tentando dominar o local de tráfico!",name);
  1072.             scmt(Amarelo,string1);
  1073.             scm(playerid,Neutra,"Espere 1 minuto para dominar o local.");
  1074.             GangZoneFlashForAll(GZTrafico,Amarelo);
  1075.             Dominando[playerid] = 1;
  1076.             ProvocoTrafico[playerid] = 1;
  1077.             GuerraTrafico = 1;
  1078.             TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
  1079.         }
  1080.  
  1081.         else if(Gang[playerid] == aztecas)
  1082.         {
  1083.             if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
  1084.             if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio!.");
  1085.             if(GuerraTrafico == 1) return scm(playerid,Error,"Já está tendo uma guerra neste territorio.");
  1086.             GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  1087.             format(string1, sizeof(string1), "%s %s (Aztecas) está tentando dominar o local de tráfico!",name);
  1088.             scmt(Azul,string1);
  1089.             scm(playerid,Neutra, "Espere 1 minuto para dominar o local.");
  1090.             GangZoneFlashForAll(GZTrafico,Azul);
  1091.             Dominando[playerid] = 1;
  1092.             ProvocoTrafico[playerid] = 1;
  1093.             GuerraTrafico = 1;
  1094.             TempoGuerraTrafico = SetTimerEx("DGuerraTrafico",60000,0,"i",playerid);
  1095.             return true;
  1096.         }
  1097.         return true;
  1098.     }
  1099.  
  1100.     CMD:tempojogando(playerid,params[])
  1101.     {
  1102.         format(string1, sizeof(string1),"Você já jogou: %i horas e %d minutos no servidor (neste login).",HorasJogadas [playerid],MinutosJogados[playerid]);
  1103.         scm(playerid,Amarelo,string1);
  1104.         return 1;
  1105.     }
  1106.  
  1107.     CMD:ligar(playerid,params[])
  1108.     {
  1109.         if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
  1110.         SetVehicleEngineState(GetPlayerVehicleID(playerid), 1);
  1111.         scm(playerid,Verde, "Veiculo ligado.");
  1112.         return 1;
  1113.     }
  1114.    
  1115.     CMD:desligar(playerid,params[])
  1116.     {
  1117.         if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
  1118.         SetVehicleEngineState(GetPlayerVehicleID(playerid), 0);
  1119.         scm(playerid,Error, "Veiculo desligado.");
  1120.         return 1;
  1121.     }
  1122.    
  1123.     CMD:dinheiro(playerid,params[])
  1124.     {
  1125.         new OutroNome[24],value;
  1126.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
  1127.         if(sscanf(params,"dd",id,value)) return scm(playerid,Error,"Correto: /dinheiro [id] [valor].");
  1128.         if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
  1129.         GetPlayerName(playerid,name,sizeof(name));
  1130.         GetPlayerName(id,OutroNome,24);
  1131.         format(string1,sizeof(string1),"O administrador %s deu dinheiro ao player %s [id:%d].",name,OutroNome, id);
  1132.         scm(playerid,Neutra,string1);
  1133.         GivePlayerMoney(id,(id) + value);
  1134.         scm(id,Neutra,"Você recebeu dinheiro de um administrador.");
  1135.         return 1;
  1136.     }
  1137.    
  1138.     CMD:darvida(playerid,params[])
  1139.     {
  1140.         new OutroNome[24],valor;
  1141.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador.");
  1142.         if(sscanf(params,"dd",id,valor)) return scm(playerid,Error,"Correto: /darvida [id] [quantidade vida].");
  1143.         if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
  1144.         GetPlayerName(playerid,name,sizeof(name));
  1145.         GetPlayerName(id, OutroNome, 24);
  1146.         format(string1,sizeof(string1),"O Administrador %s deu vida ao player %s [id:%d].",name,OutroNome, id);
  1147.         scm(playerid,Neutra,string1);
  1148.         SetPlayerHealth(playerid,id +valor);
  1149.         scm(id,Neutra,"O administrador setou sua vida!");
  1150.         return 1;
  1151.     }
  1152.    
  1153.     CMD:darcolete(playerid,params[])
  1154.     {
  1155.         new OutroNome[24],valor;
  1156.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador.");
  1157.         if(sscanf(params,"dd",id,valor)) return scm(playerid,Error,"Correto: /darcolete [id] [quantidade vida].");
  1158.         if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
  1159.         GetPlayerName(playerid,name,sizeof(name));
  1160.         GetPlayerName(id, OutroNome, 24);
  1161.         format(string1,sizeof(string1),"O Administrador %s deu colete ao player %s [id:%d].",name,OutroNome, id);
  1162.         scm(playerid,Neutra,string1);
  1163.         SetPlayerArmour(playerid,id +valor);
  1164.         scm(id,Neutra,"O administrador setou seu colete!");
  1165.         return 1;
  1166.     }
  1167.    
  1168.     CMD:anuncio(playerid,params[])
  1169.     {
  1170.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error, "Você não é administrador!");
  1171.         if(isnull(params)) return scm(playerid,Error, "Correto: /anuncio [mensagem].");
  1172.         new pStr[128];
  1173.         GetPlayerName(playerid, name, 20);
  1174.         format (pStr, 128, "Administrador %s: %s", name, params);
  1175.         scmt(Error, pStr);
  1176.         return 1;
  1177.     }
  1178.  
  1179.     CMD:a(playerid,params[])
  1180.     {
  1181.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error, "Você não é administrador!");
  1182.         if(isnull(params)) return scm(playerid,Error, "Correto: /a [mensagem].");
  1183.         new gStr[128];
  1184.         GetPlayerName(playerid,name,20);
  1185.         format (gStr, 128, "Administrador %s: %s",name,params);
  1186.         scm(playerid,Azul, gStr);
  1187.         return true;
  1188.     }
  1189.    
  1190.     CMD:kick(playerid,params[])
  1191.     {
  1192.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
  1193.         if(sscanf(params,"ds[128]",id,motivo)) return scm(playerid,Error,"Correto: [id] [motivo].");
  1194.         if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
  1195.         GetPlayerName(playerid,name,sizeof(name));
  1196.         format(string1,sizeof(string1),"O administrador %s kickou o player [id: %i] motivo: %s",name,id,motivo);
  1197.         scmt(Error,string1);
  1198.         Kick(id);
  1199.         return 1;
  1200.     }
  1201.    
  1202.     CMD:ban(playerid,params[])
  1203.     {
  1204.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
  1205.         if(sscanf(params,"ds[128]",id,motivo)) return scm(playerid,Error,"Correto: /ban [id] [motivo].");
  1206.         if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
  1207.         GetPlayerName(playerid, name, sizeof(name));
  1208.         format(string1,sizeof(string1),"O administrador %s baniu o player [id: %i] motivo: %s",name,id,motivo);
  1209.         scmt(Error,string1);
  1210.         Ban(id);
  1211.         return 1;
  1212.     }
  1213.  
  1214.     CMD:relatorio(playerid,params[])
  1215.     {
  1216.         new str_op [128];
  1217.         if(sscanf(params,"s[128]",str_op))return scm (playerid,Error,"Correto: /relatorio [mensagem]." );
  1218.         new str_msg [128];
  1219.         GetPlayerName (playerid,name,MAX_PLAYER_NAME);
  1220.         format(str_msg, sizeof str_msg, "[Relatorio] %s: %s",name,str_op);
  1221.         for(new slots = GetMaxPlayers(),i;i< slots; i++)
  1222.         if(IsPlayerAdmin(i))
  1223.         scm(i,Error,str_msg);
  1224.         scm(playerid,Amarelo,"Relatório enviado!");
  1225.         return 1;
  1226.     }
  1227.    
  1228.     CMD:locaiss(playerid,params[])
  1229.     {
  1230.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
  1231.         ShowPlayerDialog(playerid,DIALOG_LOCAL,DIALOG_STYLE_LIST,"Locais servidor","Local tráfico\nDeposito de dinheiro.\nCasa grove.\nCasa ballas.\nCasa vagos.\nCasa Aztecas.","Ir","Cancelar");
  1232.         return 1;
  1233.     }
  1234.    
  1235.     CMD:comandosadm(playerid,params[])
  1236.     {
  1237.         if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
  1238.         scm(playerid,Neutra,"Comandos:");
  1239.         scm(playerid,Amarelo,"/darvida /darcolete /anuncio /dinheiro /kick /ban /a /locaiss /dinheiro ");
  1240.         //total 9 cmd.
  1241.         return 1;
  1242.     }
  1243.  
  1244. public OnPlayerEnterCheckpoint(playerid)
  1245. {
  1246.     DisablePlayerCheckpoint(playerid);
  1247.     return 1;
  1248. }
  1249.  
  1250. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1251. {
  1252.     if(dialogid == DIALOG_LOCAL)
  1253.     {
  1254.         if(response)
  1255.         {
  1256.             if(listitem == 0)
  1257.             {
  1258.                 SetPlayerPos(playerid,2458.6389,-1895.1144,13.5469);
  1259.             }
  1260.             else if(listitem == 1)
  1261.             {
  1262.                 SetPlayerPos(playerid,1632.5125,-1169.8737,24.0781);
  1263.             }
  1264.             else if(listitem ==2)
  1265.             {
  1266.                 SetPlayerPos(playerid,2478.2656,-1633.4364,13.4048);
  1267.             }
  1268.             else if(listitem ==3)
  1269.             {
  1270.                 SetPlayerPos(playerid,1999.7797,-1131.8314,25);
  1271.             }
  1272.             else if(listitem == 4)
  1273.             {
  1274.                 SetPlayerPos(playerid,2821.1477,-1182.1031,25.2305);
  1275.             }
  1276.             else if(listitem ==5)
  1277.             {
  1278.                 SetPlayerPos(playerid,1829.5374,-2014.0790,13.5469);
  1279.                 return 1;
  1280.             }
  1281.         }
  1282.     }
  1283.    
  1284.     if(dialogid == DIALOG_GPS)
  1285.     {
  1286.         if(response)
  1287.         {
  1288.             if(listitem == 0)
  1289.             {
  1290.                 SetPlayerCheckpoint(playerid,2458.6389,-1895.1144,13.5469,10.0);
  1291.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1292.             }
  1293.            
  1294.             else if(listitem==1)
  1295.             {
  1296.                 SetPlayerCheckpoint(playerid,1632.5125,-1169.8737,24.0781,10.0);
  1297.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1298.             }
  1299.            
  1300.             else if(listitem ==2)
  1301.             {
  1302.                 SetPlayerCheckpoint(playerid,2478.2656,-1633.4364,13.4048,10.0);
  1303.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1304.             }
  1305.  
  1306.             else if(listitem ==3)
  1307.             {
  1308.                 SetPlayerCheckpoint(playerid,1999.7797,-1131.8314,25,10.0);
  1309.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1310.             }
  1311.  
  1312.             else if(listitem ==4)
  1313.             {
  1314.                 SetPlayerCheckpoint(playerid,2821.1477,-1182.1031,25.2305,10.0);
  1315.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1316.             }
  1317.            
  1318.             else if(listitem == 5)
  1319.             {
  1320.                 SetPlayerCheckpoint(playerid,1829.5374,-2014.0790,13.5469,10.0);
  1321.                 scm(playerid,Amarelo,"vá até o ponto no mapa!");
  1322.                 return 1;
  1323.             }
  1324.         }
  1325.     }
  1326.    
  1327.     if (dialogid == DIALOG_SHOP)
  1328.     {
  1329.         if (response)
  1330.         {
  1331.             if (listitem == 0)
  1332.             {
  1333.                 if (GetPlayerMoney(playerid) < 1500) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1334.                 GivePlayerWeapon(playerid, 31, 250);
  1335.                 GivePlayerMoney(playerid, -1500);
  1336.             }
  1337.            
  1338.             else if (listitem == 1)
  1339.             {
  1340.                 if (GetPlayerMoney(playerid) < 800) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1341.                 GivePlayerWeapon(playerid, 25, 350);
  1342.                 GivePlayerMoney(playerid, -800);
  1343.  
  1344.             }
  1345.            
  1346.             else if (listitem == 2)
  1347.             {
  1348.                 if (GetPlayerMoney(playerid) < 600) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1349.                 GivePlayerWeapon(playerid, 22, 125);
  1350.                 GivePlayerMoney(playerid, -600);
  1351.  
  1352.             }
  1353.            
  1354.             else if (listitem == 3)
  1355.             {
  1356.                 if(GetPlayerMoney(playerid)< 2000) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1357.                 GivePlayerWeapon(playerid, 27, 250);
  1358.                 GivePlayerMoney(playerid,-2000);
  1359.  
  1360.             }
  1361.            
  1362.             else if (listitem == 4)
  1363.             {
  1364.                 if(GetPlayerMoney(playerid) < 300) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1365.                 SetPlayerArmour(playerid,100);
  1366.                 GivePlayerMoney(playerid,-300);
  1367.             }
  1368.            
  1369.             else if (listitem == 5)
  1370.             {
  1371.                 if(GetPlayerMoney(playerid) < 1200) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1372.                 GivePlayerWeapon(playerid,16,5);
  1373.                 GivePlayerMoney(playerid, -1200);
  1374.             }
  1375.            
  1376.             else if (listitem == 6)
  1377.             {
  1378.                 if(GetPlayerMoney(playerid) < 1150) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1379.                 GivePlayerWeapon(playerid,17,15);
  1380.                 GivePlayerMoney(playerid,-1150);
  1381.             }
  1382.            
  1383.             else if (listitem == 7)
  1384.             {
  1385.                 if(GetPlayerMoney(playerid) < 1000) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1386.                 GivePlayerWeapon(playerid,18,10);
  1387.                 GivePlayerMoney(playerid,-1000);
  1388.             }
  1389.            
  1390.             else if (listitem == 8)
  1391.             {
  1392.                 if(GetPlayerMoney(playerid) < 2800) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
  1393.                 GivePlayerWeapon(playerid,34,50);
  1394.                 GivePlayerMoney(playerid,-2800);
  1395.                 return 1;
  1396.             }
  1397.         }
  1398.     }
  1399.    
  1400.     if(dialogid == DIALOG_REGISTRO)
  1401.     {
  1402.         if(!strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "Registro", "Digite apenas números!\nDigite sua senha novamente para se registrar!", "Confirma", "Cancelar");
  1403.         if(!response) return Kick(playerid);
  1404.         else
  1405.         {
  1406.             Player[playerid][Senha] = strval(inputtext);
  1407.             SalvarContas(playerid);
  1408.             ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Logar", "Você se cadastrou, agora é só logar com sua senha registrada!", "Confirma", "Cancelar");
  1409.         }
  1410.     }
  1411.    
  1412.     if(dialogid == DIALOG_LOGAR)
  1413.     {
  1414.         if(!strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Logar", "Digite apenas números!\nDigite sua senha cadastrada para logar!\nSe errar 5 vezes sua conta será banida!", "Confirma", "Cancelar");
  1415.         if(!response) return Kick(playerid);
  1416.         else
  1417.         {
  1418.             Player[playerid][Senha] = DOF2_GetInt(Contas(playerid), "Senha");
  1419.             if(strval(inputtext) == Player[playerid][Senha])
  1420.             {
  1421.                 Player[playerid][Matou] = DOF2_GetInt(Contas(playerid), "Matou");
  1422.                 Player[playerid][Morreu] = DOF2_GetInt(Contas(playerid), "Morreu");
  1423.                 Player[playerid][Dinheiro] = DOF2_GetInt(Contas(playerid), "Dinheiro");
  1424.                 GivePlayerMoney(playerid, Player[playerid][Dinheiro]);
  1425.             }
  1426.             else
  1427.             {
  1428.                 ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Logar", "Você digitou sua senha errado, digite-a novamente para logar!\nSe errar 5 vezes sua conta será banida!", "Confirma", "Cancelar");
  1429.                 Erro[playerid]++;
  1430.                 if(Erro[playerid] == 5)
  1431.                 {
  1432.                     scm(playerid, Neutra, "Sua conta está banida por errar 5 vezes a sua senha.");
  1433.                     Ban(playerid);
  1434.                 }
  1435.             }
  1436.         }
  1437.     }
  1438.    
  1439.     if(dialogid == 9752 && response)
  1440.     {
  1441.         GetPlayerName(playerid,name,sizeof(name));
  1442.         format(string1, sizeof(string1), "» Mensagem particular de %s: %s.",name, inputtext);
  1443.         scm(Jogador[playerid], Amarelo, string1);
  1444.         scm(playerid, Verde, "Sua mensagem foi enviada.");
  1445.         Jogador[playerid] = INVALID_PLAYER_ID;
  1446.         return 1;
  1447.     }
  1448.     return 1;
  1449. }
  1450.  
  1451. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1452. {
  1453.     new lights,alarm,doors,bonet,boot,objective;
  1454.     SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonet,boot,objective);
  1455.     scm(playerid,Verde,"Use: /ligar para ligar o veiculo.");
  1456.     return 1;
  1457. }
  1458.  
  1459. public OnPlayerExitVehicle(playerid, vehicleid)
  1460. {
  1461.     new lights,alarm,doors,bonet,boot,objective;
  1462.     scm(playerid,Error,"Use: /desligar para desligar o veiculo.");
  1463.     SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonet,boot,objective);
  1464.     return 1;
  1465. }
  1466.  
  1467. public OnPlayerStateChange(playerid, newstate, oldstate)
  1468. {
  1469.     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1470.     {
  1471.         new carro = GetPlayerVehicleID(playerid);
  1472.         for (new i = 0; i < sizeof(CarroA); i++)
  1473.         {
  1474.             if (carro == CarroA[i]) if (Gang[playerid] != aztecas) RemovePlayerFromVehicle(playerid);
  1475.         }
  1476.         for (new i = 0; i < sizeof(CarroG); i++)
  1477.         {
  1478.             if (carro == CarroG[i]) if (Gang[playerid] != grove) RemovePlayerFromVehicle(playerid);
  1479.         }
  1480.         for (new i = 0; i < sizeof(CarroV); i++)
  1481.         {
  1482.             if (carro == CarroV[i]) if (Gang[playerid] != vagos) RemovePlayerFromVehicle(playerid);
  1483.         }
  1484.         for (new i = 0; i < sizeof(CarroB); i++)
  1485.         {
  1486.             if (carro == CarroB[i]) if (Gang[playerid] != ballas) RemovePlayerFromVehicle(playerid);
  1487.         }
  1488.     }
  1489.    
  1490.     if(newstate == PLAYER_STATE_DRIVER)
  1491.     {
  1492.         PlayerTextDrawShow(playerid, VehInfo[playerid][0]);
  1493.         PlayerTextDrawShow(playerid, VehInfo[playerid][1]);
  1494.         PlayerTextDrawShow(playerid, VehInfo[playerid][2]);
  1495.         PlayerTextDrawShow(playerid, VehInfo[playerid][3]);
  1496.         PlayerTextDrawShow(playerid, VehInfo[playerid][4]);
  1497.         SVelo[playerid] = CreateProgressBar(280.00, 406.00, 59.50, 4.19, BarPaint, 200.0);
  1498.         SLataria[playerid] = CreateProgressBar(259.00, 420.00, 59.50, 4.19, -16776961, 1000.0);
  1499.         ShowProgressBarForPlayer(playerid, SVelo[playerid]);
  1500.         ShowProgressBarForPlayer(playerid, SLataria[playerid]);
  1501.         VelocimetroTimer[playerid] = SetTimerEx("Atualize", 100, true, "i", playerid);
  1502.         return true;
  1503.     }
  1504.    
  1505.     if(oldstate == PLAYER_STATE_DRIVER)
  1506.     {
  1507.         KillTimer(VelocimetroTimer[playerid]);
  1508.         PlayerTextDrawHide(playerid, VehInfo[playerid][0]);
  1509.         PlayerTextDrawHide(playerid, VehInfo[playerid][1]);
  1510.         PlayerTextDrawHide(playerid, VehInfo[playerid][2]);
  1511.         PlayerTextDrawHide(playerid, VehInfo[playerid][3]);
  1512.         PlayerTextDrawHide(playerid, VehInfo[playerid][4]);
  1513.         DestroyProgressBar(SVelo[playerid]);
  1514.         DestroyProgressBar(SLataria[playerid]);
  1515.         SVelo[playerid] = INVALID_BAR_ID;
  1516.         SLataria[playerid] = INVALID_BAR_ID;
  1517.         return true;
  1518.     }
  1519.     return true;
  1520. }
  1521.  
  1522. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1523. {
  1524.     if(playerid == clickedplayerid) return scm(playerid, Error, "Você não pode enviar mensagens para si mesmo!");
  1525.     ShowPlayerDialog(playerid, 9752, DIALOG_STYLE_INPUT, "Mensagem Pessoal","Escreva uma mensagem para o player.","Enviar","Fechar");
  1526.     Jogador[playerid] = PlayerClicado;
  1527.     return 1;
  1528. }
  1529.  
  1530. public ComandoDTempo(playerid)
  1531. {
  1532.     GivePlayerMoney(playerid, 2500);
  1533.     scm(playerid, Neutra, "Dinheiro roubado!");
  1534.     Roubando [playerid] =0;
  1535.     return 1;
  1536. }
  1537.  
  1538. stock Contas(playerid)
  1539. {
  1540.     new arquivo[40];
  1541.     GetPlayerName(playerid, name, 32);
  1542.     format(arquivo,40,"Contas/%s.ini",name);
  1543.     return arquivo;
  1544. }
  1545.  
  1546. stock SalvarContas(playerid)
  1547. {
  1548.     if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid));
  1549.     {
  1550.         Player[playerid][Dinheiro] = GetPlayerMoney(playerid);
  1551.         DOF2_SetInt(Contas(playerid),"Senha",Player[playerid][Senha]);
  1552.         DOF2_SetInt(Contas(playerid),"Matou",Player[playerid][Matou]);
  1553.         DOF2_SetInt(Contas(playerid),"Morreu",Player[playerid][Morreu]);
  1554.         DOF2_SetInt(Contas(playerid),"Dinheiro",Player[playerid][Dinheiro]);
  1555.         DOF2_SaveFile();
  1556.     }
  1557.     return 1;
  1558. }
  1559.  
  1560. public TempoJogado(playerid)
  1561. {
  1562.     MinutosJogados[playerid] ++;
  1563.     if(MinutosJogados[playerid] == 60)
  1564.     {
  1565.         HorasJogadas[playerid] ++;
  1566.         MinutosJogados[playerid] = 0;
  1567.         return 1;
  1568.     }
  1569.     return 1;
  1570. }
  1571.  
  1572. stock GetTempoJogado(playerid)
  1573. {
  1574.     format(string1, sizeof(string1),"%d:%d",HorasJogados[playerid],MinutosJogados[playerid]);
  1575.     return 1;
  1576. }
  1577.  
  1578. //paulor
  1579. public Kicka(p)
  1580. {
  1581.     #undef Kick
  1582.     Kick(p);
  1583.     #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  1584.     return 1;
  1585. }
  1586. public Bana(p)
  1587. {
  1588.     #undef Ban
  1589.     Ban(p);
  1590.     #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  1591.     return 1;
  1592. }
  1593.  
  1594. public DGuerraTrafico(playerid)
  1595. {
  1596.     if(Gang[playerid] == grove)
  1597.     {
  1598.         if(ProvocoTrafico[playerid] == 1)
  1599.         {
  1600.             if(IsPlayerInTrafico(playerid))
  1601.             {
  1602.                 GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  1603.                 format(string1, sizeof(string1),"%s e a grove, dominaram o local de tráfico.",name);
  1604.                 scmt(Verde,string1);
  1605.                 scm(playerid,Error, "Você dominou o local de tráfico.");
  1606.                 GangZoneStopFlashForAll(GZTrafico);
  1607.                 GangZoneShowForAll(GZTrafico, Verde);
  1608.                 Dominando[playerid] = 0;
  1609.                 ProvocoTrafico[playerid] = 0;
  1610.                 GuerraTrafico = 0;
  1611.                 DonoTrafico = 1;
  1612.                 KillTimer(TempoGuerraTrafico);
  1613.                 return true;
  1614.             }
  1615.             else
  1616.             {
  1617.                 scmt(Error,"Os grove não dominaram o local de tráfico!");
  1618.                 scm(playerid,Error,"Você saiu da área!");
  1619.                 Dominando[playerid] = 0;
  1620.                 GangZoneStopFlashForAll(GZTrafico);
  1621.                 GangZoneShowForAll(GZTrafico,-1);
  1622.                 ProvocoTrafico[playerid] = 0;
  1623.                 GuerraTrafico = 0;
  1624.                 DonoTrafico = 0;
  1625.                 KillTimer(TempoGuerraTrafico);
  1626.                 return true;
  1627.             }
  1628.         }
  1629.         return true;
  1630.  }
  1631.     if(Gang[playerid] == ballas)
  1632.     {
  1633.         if(ProvocoTrafico[playerid] == 1)
  1634.         {
  1635.             if(IsPlayerInTrafico(playerid))
  1636.             {
  1637.                 GetPlayerName(playerid,name, MAX_PLAYER_NAME);
  1638.                 format(string1, sizeof(string1),"%s e os ballas, dominaram o local de tráfico.",name);
  1639.                 scmt(Rosa,string1);
  1640.                 scm(playerid,Neutra, "Você dominou o local de tráfico.");
  1641.                 GangZoneStopFlashForAll(GZTrafico);
  1642.                 GangZoneShowForAll(GZTrafico,Rosa);
  1643.                 Dominando[playerid] = 0;
  1644.                 ProvocoTrafico[playerid] = 0;
  1645.                 GuerraTrafico = 0;
  1646.                 DonoTrafico = 1;
  1647.                 KillTimer(TempoGuerraTrafico);
  1648.                 return true;
  1649.             }
  1650.             else
  1651.             {
  1652.                 scmt(Error,"Os ballas não dominaram o local de tráfico!");
  1653.                 scm(playerid,Error,"Você saiu da área!");
  1654.                 Dominando[playerid] = 0;
  1655.                 GangZoneStopFlashForAll(GZTrafico);
  1656.                 GangZoneShowForAll(GZTrafico,-1);
  1657.                 ProvocoTrafico[playerid] = 0;
  1658.                 GuerraTrafico = 0;
  1659.                 DonoTrafico = 0;
  1660.                 KillTimer(TempoGuerraTrafico);
  1661.                 return true;
  1662.             }
  1663.         }
  1664.         return true;
  1665.     }
  1666.  
  1667.     if(Gang[playerid] == vagos)
  1668.     {
  1669.         if(ProvocoTrafico[playerid] == 1)
  1670.         {
  1671.             if(IsPlayerInTrafico(playerid))
  1672.             {
  1673.                 GetPlayerName(playerid,name, MAX_PLAYER_NAME);
  1674.                 format(string1, sizeof(string1),"%s e os vagos, dominaram o local de tráfico.",name);
  1675.                 scmt(Amarelo,string1);
  1676.                 scm(playerid,Neutra,"Você dominou o local de tráfico.");
  1677.                 GangZoneStopFlashForAll(GZTrafico);
  1678.                 GangZoneShowForAll(GZTrafico, Amarelo);
  1679.                 Dominando[playerid] = 0;
  1680.                 ProvocoTrafico[playerid] = 0;
  1681.                 GuerraTrafico = 0;
  1682.                 DonoTrafico = 1;
  1683.                 KillTimer(TempoGuerraTrafico);
  1684.                 return true;
  1685.             }
  1686.             else
  1687.             {
  1688.                 scmt(Error,"Os vagos não dominaram o local de tráfico.");
  1689.                 scm(playerid,Error,"Você saiu da área!");
  1690.                 Dominando[playerid] = 0;
  1691.                 GangZoneStopFlashForAll(GZTrafico);
  1692.                 GangZoneShowForAll(GZTrafico,-1);
  1693.                 ProvocoTrafico[playerid] = 0;
  1694.                 GuerraTrafico = 0;
  1695.                 DonoTrafico = 0;
  1696.                 KillTimer(TempoGuerraTrafico);
  1697.                 return true;
  1698.             }
  1699.         }
  1700.         return true;
  1701.  }
  1702.  
  1703.     if(Gang[playerid] == aztecas)
  1704.     {
  1705.         if(ProvocoTrafico[playerid] == 1)
  1706.         {
  1707.             if(IsPlayerInTrafico(playerid))
  1708.             {
  1709.                 GetPlayerName(playerid,name, MAX_PLAYER_NAME);
  1710.                 format(string1, sizeof(string1),"%s e os aztecas, dominaram o local de tráfico.",name);
  1711.                 scmt(Azul,string1);
  1712.                 scm(playerid,Azul,"Você dominou o local de tráfico.");
  1713.                 GangZoneStopFlashForAll(GZTrafico);
  1714.                 GangZoneShowForAll(GZTrafico, Rosa);
  1715.                 Dominando[playerid] = 0;
  1716.                 ProvocoTrafico[playerid] = 0;
  1717.                 GuerraTrafico = 0;
  1718.                 DonoTrafico = 1;
  1719.                 KillTimer(TempoGuerraTrafico);
  1720.                 return true;
  1721.             }
  1722.             else
  1723.             {
  1724.                 scmt(Error,"Os aztecas não dominaram o local de tráfico!");
  1725.                 scm(playerid,Error,"Você saiu da área!");
  1726.                 Dominando[playerid] = 0;
  1727.                 GangZoneStopFlashForAll(GZTrafico);
  1728.                 GangZoneShowForAll(GZTrafico,-1);
  1729.                 ProvocoTrafico[playerid] = 0;
  1730.                 GuerraTrafico = 0;
  1731.                 DonoTrafico = 0;
  1732.                 KillTimer(TempoGuerraTrafico);
  1733.                 return true;
  1734.             }
  1735.         }
  1736.         return true;
  1737.     }
  1738.     return true;
  1739. }
  1740.  
  1741. stock IsPlayerInTrafico(playerid)
  1742. {
  1743.     new Float:x,Float:y,Float:z;
  1744.     GetPlayerPos(playerid, x, y, z);
  1745.     if(x <= 2479.8335 && y <= -1883.0388 && x >= 2440.6567 && y >= -1900.6251) return true;
  1746.     else return false;
  1747. }
  1748.  
  1749. stock SetVehicleEngineState(vid,setstate)
  1750. {
  1751.     new engine,lights,alarm,doors,boonet,boot,objective;
  1752.     GetVehicleParamsEx(vid,engine,lights,alarm,doors,boonet,boot,objective);
  1753.     if(setstate) SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,boonet,boot,objective);
  1754.     else SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,engine,alarm,doors,boonet,boot,objective);
  1755. }
  1756.  
  1757. public LoadTextsDraws(playerid)
  1758. {
  1759.     VehInfo[playerid][0] = CreatePlayerTextDraw(playerid, 308.000000, 378.000000, "_");
  1760.     PlayerTextDrawAlignment(playerid, VehInfo[playerid][0], 2);
  1761.     PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][0], 255);
  1762.     PlayerTextDrawFont(playerid, VehInfo[playerid][0], 1);
  1763.     PlayerTextDrawLetterSize(playerid, VehInfo[playerid][0], 0.500000, 6.999997);
  1764.     PlayerTextDrawColor(playerid, VehInfo[playerid][0], -1);
  1765.     PlayerTextDrawSetOutline(playerid, VehInfo[playerid][0], 0);
  1766.     PlayerTextDrawSetProportional(playerid, VehInfo[playerid][0], 1);
  1767.     PlayerTextDrawSetShadow(playerid, VehInfo[playerid][0], 1);
  1768.     PlayerTextDrawUseBox(playerid, VehInfo[playerid][0], 1);
  1769.     PlayerTextDrawBoxColor(playerid, VehInfo[playerid][0], 572661640);
  1770.     PlayerTextDrawTextSize(playerid, VehInfo[playerid][0], 0.000000, 197.000000);
  1771.     VehInfo[playerid][1] = CreatePlayerTextDraw(playerid, 254.000000, 378.000000, "War Of organized gangs.");
  1772.     PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][1], -16776961);
  1773.     PlayerTextDrawFont(playerid, VehInfo[playerid][1], 2);
  1774.     PlayerTextDrawLetterSize(playerid, VehInfo[playerid][1], 0.230000, 0.699998);
  1775.     PlayerTextDrawColor(playerid, VehInfo[playerid][1], -1);
  1776.     PlayerTextDrawSetOutline(playerid, VehInfo[playerid][1], 1);
  1777.     PlayerTextDrawSetProportional(playerid, VehInfo[playerid][1], 1);
  1778.     VehInfo[playerid][2] = CreatePlayerTextDraw(playerid, 212.000000, 389.000000, "~n~");
  1779.     PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][2], 255);
  1780.     PlayerTextDrawFont(playerid, VehInfo[playerid][2], 1);
  1781.     PlayerTextDrawLetterSize(playerid, VehInfo[playerid][2], 0.330000, 0.799998);
  1782.     PlayerTextDrawColor(playerid, VehInfo[playerid][2], -1);
  1783.     PlayerTextDrawSetOutline(playerid, VehInfo[playerid][2], 0);
  1784.     PlayerTextDrawSetProportional(playerid, VehInfo[playerid][2], 1);
  1785.     PlayerTextDrawSetShadow(playerid, VehInfo[playerid][2], 1);
  1786.     VehInfo[playerid][3] = CreatePlayerTextDraw(playerid, 348.000000, 403.000000, "~n~");
  1787.     PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][3], 255);
  1788.     PlayerTextDrawFont(playerid, VehInfo[playerid][3], 1);
  1789.     PlayerTextDrawLetterSize(playerid, VehInfo[playerid][3], 0.270000, 0.799999);
  1790.     PlayerTextDrawColor(playerid, VehInfo[playerid][3], -1);
  1791.     PlayerTextDrawSetOutline(playerid, VehInfo[playerid][3], 0);
  1792.     PlayerTextDrawSetProportional(playerid, VehInfo[playerid][3], 1);
  1793.     PlayerTextDrawSetShadow(playerid, VehInfo[playerid][3], 1);
  1794.     VehInfo[playerid][4] = CreatePlayerTextDraw(playerid, 323.000000, 418.000000, "~n~");
  1795.     PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][4], 255);
  1796.     PlayerTextDrawFont(playerid, VehInfo[playerid][4], 1);
  1797.     PlayerTextDrawLetterSize(playerid, VehInfo[playerid][4], 0.270000, 0.799999);
  1798.     PlayerTextDrawColor(playerid, VehInfo[playerid][4], -1);
  1799.     PlayerTextDrawSetOutline(playerid, VehInfo[playerid][4], 0);
  1800.     PlayerTextDrawSetProportional(playerid, VehInfo[playerid][4], 1);
  1801.     PlayerTextDrawSetShadow(playerid, VehInfo[playerid][4], 1);
  1802.     return true;
  1803. }
  1804.  
  1805. public Atualize(playerid)
  1806. {
  1807.     new Velocidade,Float:bLataria,Float:Stats,vehicleid = GetPlayerVehicleID(playerid);
  1808.     GetVehicleHealth(GetPlayerVehicleID(playerid), Stats);
  1809.     if(VehInfo[playerid][3] != PlayerText:INVALID_TEXT_DRAW)
  1810.     {
  1811.         format(stryng, sizeof(stryng), ": ~g~%d ~w~km/h",GetPlayerSpeed(playerid));
  1812.         PlayerTextDrawSetString(playerid,VehInfo[playerid][3],stryng);
  1813.     }
  1814.  
  1815.     if(VehInfo[playerid][2] != PlayerText:INVALID_TEXT_DRAW)
  1816.      {
  1817.         format(stryng, sizeof(stryng),"Veiculo: ~y~%s~n~_~n~~w~Velocidade:~n~_~n~Lataria:~n~_~n~Gps: ~p~%s", VeiculosNome[GetVehicleModel(vehicleid)-400], GetPlayerArea(playerid));
  1818.         PlayerTextDrawSetString(playerid,VehInfo[playerid][2],stryng);
  1819.     }
  1820.    
  1821.     if((Velocidade = GetPlayerSpeed(playerid)) && SVelo[playerid] != INVALID_BAR_ID)
  1822.     {
  1823.         SetProgressBarValue(SVelo[playerid],Velocidade);
  1824.         UpdateProgressBar(SVelo[playerid],playerid);
  1825.     }
  1826.  
  1827.     if((bLataria = Stats) && SLataria[playerid] != INVALID_BAR_ID)
  1828.     {
  1829.         SetProgressBarValue(SLataria[playerid], bLataria);
  1830.         UpdateProgressBar(SLataria[playerid], playerid);
  1831.     }
  1832.    
  1833.     if(Stats < 250)
  1834.     {
  1835.         PlayerTextDrawSetString(playerid, VehInfo[playerid][4],":~r~Vai explodir!");
  1836.     }
  1837.    
  1838.     else if(Stats > 250 && Stats < 500)
  1839.     {
  1840.         PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~p~Quebrando!");
  1841.     }
  1842.    
  1843.     else if(Stats > 500 && Stats < 700)
  1844.     {
  1845.         PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~y~Danificado!");
  1846.     }
  1847.    
  1848.     else if(Stats > 700 && Stats < 850)
  1849.     {
  1850.         PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~b~Bom!");
  1851.     }
  1852.    
  1853.     else if(Stats > 850)
  1854.     {
  1855.         PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~g~Otimo!");
  1856.     }
  1857.  
  1858.     return true;
  1859. }
  1860.  
  1861. stock GetPlayerArea(playerid)
  1862. {
  1863.     new str[130];
  1864.     format(str,sizeof(str), "%s", Zones[GetPlayerZone(playerid)][zone_name]);
  1865.     return str;
  1866. }
  1867.  
  1868. stock GetPlayerZone(playerid)
  1869. {
  1870.     new Float:x, Float:y, Float:z;
  1871.     GetPlayerPos(playerid, x, y, z);
  1872.     for(new i = 0; i<sizeof(Zones); i++)
  1873.     {
  1874.         if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz])
  1875.         return i;
  1876.     }
  1877.     return false;
  1878. }
  1879.  
  1880. stock GetPlayerSpeed(playerid)
  1881. {
  1882.     new Float:ST[4];
  1883.     if(IsPlayerInAnyVehicle(playerid))
  1884.     GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
  1885.     else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
  1886.     ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 100.3;
  1887.     return floatround(ST[3]);
  1888. }
  1889.  
  1890. /*
  1891. Game Mode: Pedro pawn.
  1892. Agradecimentos a Fórum SAMP.
  1893. Créditos totais a Sky pelo velocimetro.
  1894. Faça bom uso.
  1895. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement