Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Agradecimentos a Fórum SAMP.
- Créditos totais a Sky pelo velocimetro.
- Game Mode: Feito por Pedro Pawn.
- */
- //includes:
- #include <a_samp>
- #include <DOF2>
- #include <zcmd>
- #include <sscanf2>
- #include <progress>
- #include <ELC_AC_BASE>
- //forwards:
- forward ComandoDTempo(playerid);
- forward TempoJogado(playerid);
- forward Kicka(p);
- forward Bana(p);
- forward LoadTextsDraws(playerid);
- forward Atualize(playerid);
- forward DGuerraTrafico(playerid);
- //defines:
- #define grove 0
- #define ballas 1
- #define vagos 2
- #define aztecas 3
- #define scm SendClientMessage
- #define scmt SendClientMessageToAll
- #define Error 0xFF0000FF
- #define Branco 0xFFFFFFFF
- #define Verde 0x006A00FF
- #define Azul 0x004080FF
- #define Rosa 0xFF0080FF
- #define Amarelo 0xFFFF00FF4
- #define Neutra 0x92A3AFFF
- #define PlayerClicado clickedplayerid
- #define MAX_GANGS 4
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- #define BarPaint 0x00FF0CAA
- #define FAIXA_IP "189.168.1"
- //dialogs:
- #define DIALOG_MSG 85
- #define DIALOG_REGISTRO 1
- #define DIALOG_LOGAR 2
- #define DIALOG_SHOP 3
- #define DIALOG_GPS 4
- #define DIALOG_LOCAL 6
- //otimizações:
- #if defined MAX_PLAYERS
- #undef MAX_PLAYERS
- #endif
- #define MAX_PLAYERS (50)
- #if defined MAX_VEHICLES
- #undef MAX_VEHICLES
- #endif
- #define MAX_VEHICLES (30)
- //variaveis:
- new motivo[128];
- new id;
- new Text:TextDrawC;
- new Gang[MAX_PLAYERS];
- new CarroA[5];
- new CarroG[5];
- new CarroV[5];
- new CarroB[5];
- new MinutosJogados[MAX_PLAYERS];
- new HorasJogadas[MAX_PLAYERS];
- new Timer;
- new name[MAX_PLAYER_NAME];
- enum Informacoes
- {
- Senha,
- Matou,
- Morreu,
- Dinheiro
- }
- new Player[MAX_PLAYERS][Informacoes];
- new Erro[MAX_PLAYERS];
- new Jogador[MAX_PLAYERS];
- new stryng[128];
- new PlayerText:VehInfo[MAX_PLAYERS][5];
- new VelocimetroTimer[MAX_PLAYERS];
- new Bar:SVelo[MAX_PLAYERS] = {INVALID_BAR_ID,...},Bar:SLataria[MAX_PLAYERS] = {INVALID_BAR_ID,...};
- enum GPSInfo
- {
- zone_name[30],
- Float:zone_minx,
- Float:zone_miny,
- Float:zone_minz,
- Float:zone_maxx,
- Float:zone_maxy,
- Float:zone_maxz
- };
- new Float:Zones[][GPSInfo] =
- {
- {"The Big Ear", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
- {"Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
- {"Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
- {"Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
- {"Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
- {"Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
- {"Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
- {"Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
- {"Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
- {"Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
- {"Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
- {"Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
- {"Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
- {"Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
- {"Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
- {"Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
- {"Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
- {"Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
- {"Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
- {"Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
- {"Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
- {"Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
- {"Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
- {"Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
- {"Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
- {"Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
- {"Caligula's Palace", 2087.30, 1543.20, -89.00, 2437.30, 1703.20, 110.90},
- {"Caligula's Palace", 2137.40, 1703.20, -89.00, 2437.30, 1783.20, 110.90},
- {"Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
- {"Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
- {"City Hall", -2867.80, 277.40, -9.10, -2593.40, 458.40, 200.00},
- {"Come-A-Lot", 2087.30, 943.20, -89.00, 2623.10, 1203.20, 110.90},
- {"Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
- {"Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
- {"Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
- {"Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
- {"Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
- {"Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
- {"Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
- {"Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
- {"Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
- {"Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
- {"Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
- {"Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
- {"Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
- {"Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
- {"Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
- {"Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
- {"Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
- {"Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
- {"Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
- {"Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
- {"Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
- {"Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
- {"Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
- {"Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
- {"Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
- {"Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
- {"Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
- {"Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
- {"East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
- {"East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
- {"East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
- {"East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
- {"East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
- {"East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
- {"East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
- {"East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
- {"East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
- {"East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
- {"East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
- {"Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
- {"Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
- {"Aeroporto de Easter Bay", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
- {"Aeroporto de Easter Bay", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
- {"Aeroporto de Easter Bay", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
- {"Aeroporto de Easter Bay", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
- {"Aeroporto de Easter Bay", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
- {"Aeroporto de Easter Bay", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
- {"Aeroporto de Easter Bay", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
- {"Aeroporto de Easter Bay", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
- {"Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
- {"Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
- {"El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
- {"El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
- {"El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
- {"El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
- {"El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
- {"El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
- {"Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
- {"Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
- {"Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
- {"Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
- {"Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
- {"Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
- {"Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
- {"Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
- {"Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
- {"Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
- {"Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
- {"Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
- {"Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
- {"Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
- {"Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
- {"Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
- {"Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
- {"Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
- {"Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
- {"Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
- {"Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
- {"Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
- {"Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
- {"Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
- {"Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
- {"Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
- {"~yGarver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
- {"Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
- {"Parque Glen", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
- {"Parque Glen", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
- {"Parque Glen", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
- {"Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
- {"Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
- {"Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
- {"Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
- {"Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
- {"Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
- {"Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
- {"Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
- {"Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
- {"Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
- {"Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
- {"Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
- {"Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
- {"Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
- {"Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
- {"Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
- {"Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
- {"Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
- {"Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
- {"Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
- {"Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
- {"Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
- {"Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
- {"Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
- {"Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
- {"Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
- {"Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
- {"Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
- {"Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
- {"Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
- {"Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
- {"Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
- {"Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
- {"Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
- {"Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
- {"Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
- {"Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
- {"Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
- {"Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
- {"K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
- {"Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
- {"Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
- {"Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
- {"King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
- {"King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
- {"King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
- {"LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
- {"LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
- {"LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
- {"LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
- {"LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
- {"Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
- {"Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
- {"Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
- {"Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
- {"Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
- {"Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
- {"Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
- {"Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
- {"Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
- {"Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
- {"Aeroporto de Las Venturas", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
- {"Aeroporto de Las Venturas", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
- {"Aeroporto de Las Venturas", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
- {"Aeroporto de Las Venturas", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
- {"Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
- {"Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
- {"Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
- {"Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
- {"Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
- {"Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
- {"Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
- {"Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
- {"Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
- {"Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
- {"Aeroporto de Los Santos", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
- {"Aeroporto de Los Santos", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
- {"Aeroporto de Los Santos", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
- {"Aeroporto de Los Santos", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
- {"Aeroporto de Los Santos", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
- {"Aeroporto de Los Santos", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
- {"Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
- {"Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
- {"Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
- {"Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
- {"Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
- {"Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
- {"Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
- {"Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
- {"Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
- {"Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
- {"Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
- {"Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
- {"Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
- {"Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
- {"Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
- {"Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
- {"Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
- {"Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
- {"Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
- {"Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
- {"Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
- {"Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
- {"Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
- {"Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
- {"Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
- {"Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
- {"Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
- {"Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
- {"North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
- {"Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
- {"Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
- {"Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
- {"Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
- {"Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
- {"Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
- {"Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
- {"Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
- {"Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
- {"Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
- {"Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
- {"Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
- {"Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
- {"Palomino Creek", 2160.20, -149.00, 0.00, 2576.90, 228.30, 200.00},
- {"Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
- {"Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
- {"Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
- {"Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
- {"Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
- {"Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
- {"Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
- {"Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
- {"Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
- {"Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
- {"Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
- {"Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
- {"Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
- {"Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
- {"Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
- {"Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
- {"Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
- {"Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
- {"Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
- {"Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
- {"Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
- {"Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
- {"Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
- {"Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
- {"Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
- {"Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
- {"Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
- {"Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
- {"Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
- {"Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
- {"Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
- {"Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
- {"Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
- {"Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
- {"Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
- {"Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
- {"Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
- {"Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
- {"Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
- {"Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
- {"Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
- {"Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
- {"Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
- {"Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
- {"Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
- {"Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
- {"Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
- {"Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
- {"Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
- {"Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
- {"Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
- {"Royal Cassino", 2087.30, 1383.20, -89.00, 2437.30, 1543.20, 110.90},
- {"San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
- {"Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
- {"Praia de Santa Maria", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
- {"Praia de Santa Maria", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
- {"Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
- {"Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
- {"Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
- {"Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
- {"Spinybed", 2121.40, 2663.10, -89.00, 2498.20, 2861.50, 110.90},
- {"Starfish Cassino", 2437.30, 1783.20, -89.00, 2685.10, 2012.10, 110.90},
- {"Starfish Cassino", 2437.30, 1858.10, -39.00, 2495.00, 1970.80, 60.90},
- {"Starfish Cassino", 2162.30, 1883.20, -89.00, 2437.30, 2012.10, 110.90},
- {"Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
- {"Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
- {"Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
- {"Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
- {"Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
- {"Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
- {"The Camel's Toe", 2087.30, 1203.20, -89.00, 2640.40, 1383.20, 110.90},
- {"The Clown's Pocket", 2162.30, 1783.20, -89.00, 2437.30, 1883.20, 110.90},
- {"The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
- {"The Four Dragons Casino", 1817.30, 863.20, -89.00, 2027.30, 1083.20, 110.90},
- {"The High Roller", 1817.30, 1283.20, -89.00, 2027.30, 1469.20, 110.90},
- {"The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
- {"The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
- {"The Pink Swan", 1817.30, 1083.20, -89.00, 2027.30, 1283.20, 110.90},
- {"The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
- {"The Strip", 2027.40, 863.20, -89.00, 2087.30, 1703.20, 110.90},
- {"The Strip", 2106.70, 1863.20, -89.00, 2162.30, 2202.70, 110.90},
- {"The Strip", 2027.40, 1783.20, -89.00, 2162.30, 1863.20, 110.90},
- {"The Strip", 2027.40, 1703.20, -89.00, 2137.40, 1783.20, 110.90},
- {"The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
- {"The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
- {"Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
- {"Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
- {"Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
- {"Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
- {"Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
- {"Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
- {"Praia de Verona", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
- {"Praia de Verona", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
- {"Praia de Verona", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
- {"Praia de Verona", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
- {"Praia de Verona", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
- {"Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
- {"Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
- {"Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
- {"Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
- {"Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
- {"Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
- {"Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
- {"Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
- {"Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
- {"Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
- {"Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
- {"Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
- {"Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
- {"Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
- {"Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
- {"Las Venturas", 869.40, 596.30, -242.90, 2997.00, 2993.80, 900.00},
- {"Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
- {"Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
- {"Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
- {"San Fierro", -2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00},
- {"Red County", -1213.90, -768.00, -242.90, 2997.00, 596.30, 900.00},
- {"Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
- {"Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
- };
- new VeiculosNome[][] =
- {
- "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
- "Limosine","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto",
- "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
- "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
- "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
- "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
- "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
- "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX",
- "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
- "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial","Boxville","Benson","Mesa",
- "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
- "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
- "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
- "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
- "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
- "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
- "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
- "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
- "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
- "Andromada","Dodo","RC Cam","Launch","Viatura (LSPD)","Viatura (SFPD)","Viatura (LVPD)","Police Ranger",
- "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
- "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
- };
- new Dominando[MAX_PLAYERS];
- new GZTrafico;
- new DonoTrafico;
- new GuerraTrafico;
- new ProvocoTrafico[MAX_PLAYERS];
- new TempoGuerraTrafico;
- new string1[128];
- new Roubando[MAX_PLAYERS];
- //=================
- main()
- {
- print("Carregado!");
- print("\n----------------------------------");
- print("Créditos ao GameMode: Pedro Pawn.");
- print("War Of organized gangs: versão atual: 2.0");
- print("Velocimetro: Sky.");
- print("Agradecimentos: Fórum SAMP.");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("War Of organized gangs 2.0.");
- AddPlayerClassEx(grove,105,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0); //grove
- AddPlayerClassEx(grove,106,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
- AddPlayerClassEx(grove,107,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
- AddPlayerClassEx(ballas,102,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
- AddPlayerClassEx(ballas,103,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
- AddPlayerClassEx(ballas,104,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
- AddPlayerClassEx(vagos,108,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
- AddPlayerClassEx(vagos,109,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
- AddPlayerClassEx(vagos,110,2821.1477,-1182.1031,25.2305,263.3948,0,0,0,0,0,0); //vagos
- AddPlayerClassEx(aztecas,114,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
- AddPlayerClassEx(aztecas,115,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
- AddPlayerClassEx(aztecas,116,1829.5374,-2014.0790,13.5469,175.6421,0,0,0,0,0,0); //aztecas
- //====HQ AZTECAS======
- CarroA[0] = CreateVehicle(576,1826.6999500,-2025.4000200,13.1000000,0.0000000,7,7,-1); //Tornado
- CarroA[1] = CreateVehicle(575,1826.8000500,-2031.9000200,13.0000000,0.0000000,7,7,-1); //Broadway
- CarroA[2] = CreateVehicle(475,1823.1999500,-2025.8000500,13.1000000,0.0000000,7,7,-1); //Sabre
- CarroA[3] = CreateVehicle(439,1823.1999500,-2031.6999500,13.2000000,0.0000000,7,7,-1); //Stallion
- CarroA[4] = CreateVehicle(482,1830.5000000,-2003.4000200,13.6000000,179.7130000,7,7,-1); //Burrito
- //====================
- //====HQ GROVE=======
- CarroG[0] = CreateVehicle(482,2506.6001000,-1685.0000000,13.6000000,0.0000000,128,128,-1); //Burrito
- CarroG[1] = CreateVehicle(567,2499.3999000,-1682.6999500,13.3000000,284.0000000,128,128,-1); //Savanna
- CarroG[2] = CreateVehicle(536,2492.1001000,-1684.0000000,13.2000000,278.0000000,128,128,-1); //Blade
- CarroG[3] = CreateVehicle(492,2508.3000500,-1670.5000000,13.1000000,348.0000000,128,128,-1); //Greenwood
- CarroG[4] = CreateVehicle(467,2505.8999000,-1677.4000200,13.0000000,330.0000000,128,128,-1); //Oceanic
- //====================
- //====HQ VAGOS=======
- CarroV[0] = CreateVehicle(482,2822.6001000,-1188.3000500,25.3000000,268.2560000,6,6,-1); //Burrito
- CarroV[1] = CreateVehicle(474,2826.6001000,-1173.8000500,24.9000000,182.0790000,6,6,-1); //Hermes
- CarroV[2] = CreateVehicle(410,2822.3999000,-1178.5999800,24.9000000,270.9120000,6,6,-1); //Manana
- CarroV[3] = CreateVehicle(518,2815.6001000,-1178.8000500,25.0000000,272.1930000,6,6,-1); //Buccaneer
- CarroV[4] = CreateVehicle(566,2814.3000500,-1188.0000000,25.0000000,269.6440000,6,6,-1); //Tahoma
- //HQ BALLAS===========
- CarroB[0] = CreateVehicle(566,2000.5000000,-1139.4000200,25.2000000,90.2250000,5,5,-1); //Tahoma
- CarroB[1] = CreateVehicle(551,1994.1999500,-1139.6999500,25.3000000,90.2250000,5,5,-1); //Merit
- CarroB[2] = CreateVehicle(547,1999.5999800,-1132.0000000,25.2000000,90.2250000,5,5,-1); //Primo
- CarroB[3] = CreateVehicle(517,1991.3000500,-1131.9000200,25.5000000,90.2250000,5,5,-1); //Majestic
- CarroB[4] = CreateVehicle(482,1982.8000500,-1132.0999800,26.0000000,90.2250000,5,5,-1); //Burrito
- //Lombadas: créditos a lós.
- CreateObject(3865, 2431.477051, -1662.562378, 23.346226, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 2331.300537, -1732.902344, 10.866785, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 2822.697021, -1969.249634, 8.446474, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 2837.791260, -1968.909790, 8.421474, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1928.193970, -1751.836670, 10.716782, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 1613.119751, -1732.000244, 10.716789, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 1529.771484, -1720.911865, 10.841787, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 1520.375244, -1732.240356, 10.749582, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 1529.424561, -1603.775513, 10.766790, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1323.189087, -1731.666870, 10.741789, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 1160.055054, -1711.628662, 11.140226, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 369.826508, -1657.199341, 30.101086, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 369.718628, -1722.624146, 19.197357, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 369.665771, -1829.674561, 5.005795, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 551.933533, -1668.723267, 15.915226, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 369.869354, -1982.568359, 4.980794, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1261.886353, -1079.179199, 24.798252, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1323.420654, -1038.153931, 26.337036, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 1482.021362, -1057.819458, 21.238293, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 1589.030884, -1160.881226, 21.365175, 0.0000, 0.0000, 180.0001);
- CreateObject(3865, 2244.503418, -1139.947632, 23.579838, 0.0000, 0.0000, 168.7501);
- CreateObject(3865, 2370.846191, -1327.036133, 21.369862, 0.0000, 0.0000, 270.0001);
- CreateObject(3865, 2450.775635, -1518.902710, 35.425476, 0.0000, 0.0000, 270.0001);
- CreateObject(3865, 2430.737793, -1470.459473, 21.367035, 0.0000, 0.0000, 270.0001);
- CreateObject(3865, 2430.773682, -1662.756348, 23.073957, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 2463.247803, -1658.498779, 10.716391, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 2463.461182, -1659.396729, 10.744118, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 2331.122070, -1731.971313, 10.844513, 0.0000, 0.0000, 180.0001);
- CreateObject(3865, 1928.404663, -1752.843994, 10.756287, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 1613.330078, -1732.830933, 10.762777, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 1520.179810, -1731.617065, 10.791788, 0.0000, 0.0000, 180.0001);
- CreateObject(3865, 1529.126587, -1721.031372, 10.791788, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1530.076660, -1603.610840, 10.794518, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 1323.363281, -1732.769409, 10.716789, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 1160.283081, -1712.683594, 11.117954, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 370.659607, -1657.000244, 30.078672, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 370.500366, -1722.399292, 19.193628, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 370.023102, -1829.540161, 4.983466, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 370.045380, -1982.343506, 5.005794, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 1263.092773, -1078.985840, 24.775980, 0.0000, 0.0000, 90.0002);
- CreateObject(3865, 1323.274780, -1037.234497, 26.289764, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 1589.247559, -1161.398438, 21.328182, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 2471.438965, -1732.692017, 10.899067, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 2471.192627, -1731.901733, 10.896339, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 2185.634277, -1742.818848, 10.683977, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 2184.976563, -1743.038086, 10.661705, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 2081.134033, -1906.306152, 10.941786, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 2081.802246, -1906.137207, 10.994513, 0.0000, 0.0000, 90.0002);
- CreateObject(3865, 1941.795654, -1931.945435, 10.941786, 0.0000, 0.0000, 180.0000);
- CreateObject(3865, 1942.000244, -1932.614624, 10.969513, 0.0000, 0.0000, 0.0001);
- CreateObject(3865, 1701.721436, -1592.865723, 10.883875, 0.0000, 0.0000, 0.0001);
- CreateObject(3865, 1701.480591, -1592.149414, 10.911602, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 1158.438721, -931.988098, 40.877213, 0.0000, 0.0000, 270.0001);
- CreateObject(3865, 1159.107300, -931.840698, 41.000446, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 925.623047, -948.598267, 37.538677, 0.0000, 0.0000, 180.0003);
- CreateObject(3865, 925.835327, -950.811218, 37.566128, 0.0000, 0.0000, 0.0001);
- CreateObject(3865, 355.255707, -1773.039551, 2.743529, 0.0000, 0.0000, 360.0000);
- CreateObject(3865, 355.125214, -1772.422607, 2.846187, 0.0000, 0.0000, 179.9999);
- CreateObject(3865, 721.254333, -1586.136841, 11.725403, 0.0000, 0.0000, 179.9999);
- CreateObject(3865, 721.424805, -1586.838379, 11.703085, 0.0000, 0.0000, 359.9997);
- CreateObject(3865, 944.614075, -1572.733643, 10.791788, 0.0000, 0.0000, 359.9997);
- CreateObject(3865, 944.399841, -1571.812500, 10.794516, 0.0000, 0.0000, 179.9994);
- CreateObject(3865, 1296.987305, -1660.287354, 10.741789, 0.0000, 0.0000, 269.9996);
- CreateObject(3865, 1297.920410, -1660.110474, 10.719517, 0.0000, 0.0000, 89.9996);
- CreateObject(3865, 1312.898438, -1660.130859, 10.791788, 0.0000, 0.0000, 89.9996);
- CreateObject(3865, 1311.871582, -1660.327515, 10.816788, 0.0000, 0.0000, 269.9995);
- CreateObject(3865, 1357.469604, -1922.608154, 17.813128, 0.0000, 0.0000, 348.7497);
- CreateObject(3865, 1357.431763, -1921.695679, 17.840855, 0.0000, 0.0000, 168.7492);
- CreateObject(3865, 1289.793579, -2056.125000, 56.030380, 0.0000, 0.0000, 179.9992);
- CreateObject(3865, 1289.957642, -2057.000488, 56.057831, 0.0000, 0.0000, 359.9987);
- CreateObject(3865, 1389.576538, -1743.191528, 10.766788, 0.0000, 0.0000, 89.9989);
- CreateObject(3865, 1388.664185, -1743.370361, 10.719517, 0.0000, 0.0000, 269.9984);
- CreateObject(3865, 2823.456055, -1969.039063, 8.474201, 0.0000, 0.0000, 89.9988);
- CreateObject(3865, 2838.529785, -1968.712524, 8.394894, 0.0000, 0.0000, 89.9988);
- CreateObject(3865, 2287.913330, -2304.382568, 11.077242, 0.0000, 0.0000, 315.0000);
- CreateObject(3865, 2288.336670, -2303.660400, 11.086193, 0.0000, 0.0000, 135.0000);
- CreateObject(3865, 1962.146973, -2177.654297, 11.130848, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 1961.116943, -2177.814697, 11.208574, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1821.394165, -1876.714111, 10.897945, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1822.076172, -1876.460693, 10.809561, 0.0000, 0.0000, 90.0002);
- CreateObject(3865, 1649.388184, -1872.750488, 10.791788, 0.0000, 0.0000, 0.0003);
- CreateObject(3865, 1649.187500, -1871.835205, 10.744516, 0.0000, 0.0000, 180.0004);
- CreateObject(3865, 1320.845825, -1851.750488, 10.732838, 0.0000, 0.0000, 180.0004);
- CreateObject(3865, 1321.046021, -1852.676392, 10.716789, 0.0000, 0.0000, 0.0002);
- CreateObject(3865, 942.996826, -1230.425659, 14.144801, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 942.221802, -1230.550781, 14.153721, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1150.647583, -1227.181885, 14.675970, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1151.469360, -1227.008667, 14.703636, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 1343.078735, -1417.874634, 10.691790, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 1342.445068, -1418.044800, 10.694517, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1357.110107, -1418.191162, 10.822189, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 1358.108398, -1418.019897, 10.774204, 0.0000, 0.0000, 90.0002);
- CreateObject(3865, 2431.374756, -1662.555542, 23.097296, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 551.722961, -1667.656372, 15.954409, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 751.345642, -1643.067261, 3.024577, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 751.942383, -1642.891602, 3.052244, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 728.731018, -1674.371704, 7.991571, 0.0000, 0.0000, 0.0000);
- CreateObject(3865, 728.493958, -1673.562866, 8.062235, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 809.758667, -1702.931396, 10.741789, 0.0000, 0.0000, 270.0000);
- CreateObject(3865, 810.708984, -1702.733521, 10.766788, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 917.848938, -1762.018188, 10.790501, 0.0000, 0.0000, 90.0001);
- CreateObject(3865, 916.648743, -1762.241211, 10.790455, 0.0000, 0.0000, 270.0003);
- CreateObject(3865, 1034.107422, -1790.956055, 11.030943, 0.0000, 0.0000, 247.5003);
- CreateObject(3865, 1035.075073, -1791.027344, 11.093517, 0.0000, 0.0000, 67.5002);
- CreateObject(3865, 1048.655029, -1712.691650, 10.841787, 0.0000, 0.0000, 360.0000);
- CreateObject(3865, 1048.483276, -1711.638672, 10.894461, 0.0000, 0.0000, 179.9998);
- CreateObject(3865, 1132.968140, -1571.776489, 10.733335, 0.0000, 0.0000, 179.9998);
- CreateObject(3865, 1133.167114, -1572.739868, 10.761063, 0.0000, 0.0000, 359.9996);
- CreateObject(3865, 1443.931274, -1440.247070, 10.816746, 0.0000, 0.0000, 179.9995);
- CreateObject(3865, 1444.171875, -1441.324341, 10.841738, 0.0000, 0.0000, 359.9994);
- CreateObject(3865, 1454.179565, -1451.536621, 10.752022, 0.0000, 0.0000, 269.9992);
- CreateObject(3865, 1455.138306, -1451.353638, 10.777037, 0.0000, 0.0000, 89.9987);
- CreateObject(3865, 1645.433960, -1441.340942, 10.891787, 0.0000, 0.0000, 359.9984);
- CreateObject(3865, 1658.413818, -1451.878784, 10.866716, 0.0000, 0.0000, 89.9977);
- CreateObject(3865, 1645.255371, -1440.412842, 10.858278, 0.0000, 0.0000, 179.9980);
- CreateObject(3865, 1657.391968, -1452.048340, 10.819395, 0.0000, 0.0000, 269.9974);
- CreateObject(3865, 1862.536743, -1341.274048, 10.766762, 0.0000, 0.0000, 359.9977);
- CreateObject(3865, 1862.311523, -1340.149414, 10.816742, 0.0000, 0.0000, 179.9974);
- CreateObject(3865, 1835.640259, -1260.315918, 10.952724, 0.0000, 0.0000, 179.9974);
- CreateObject(3865, 1835.828735, -1261.352173, 10.993334, 0.0000, 0.0000, 359.9969);
- CreateObject(3865, 1520.460449, -1591.673462, 10.691755, 0.0000, 0.0000, 180.0002);
- CreateObject(3865, 1520.692627, -1592.662109, 10.719456, 0.0000, 0.0000, 0.0003);
- CreateObject(3865, 1429.895752, -1721.351318, 10.791788, 0.0000, 0.0000, 90.0002);
- CreateObject(3865, 1428.939697, -1721.552490, 10.827032, 0.0000, 0.0000, 270.0002);
- CreateObject(3865, 1429.192139, -1603.109619, 10.816790, 0.0000, 0.0000, 270.0002);
- CreateObject(3865, 1430.112427, -1602.950806, 10.791758, 0.0000, 0.0000, 90.0003);
- CreateObject(3865, 1455.152222, -1313.456665, 10.816761, 0.0000, 0.0000, 90.0003);
- CreateObject(3865, 1454.332642, -1313.624512, 10.869434, 0.0000, 0.0000, 270.0001);
- CreateObject(3865, 1609.789307, -1314.432373, 14.764170, 0.0000, 0.0000, 90.0005);
- CreateObject(3865, 1604.048584, -1314.554688, 14.820707, 0.0000, 0.0000, 270.0005);
- CreateObject(3865, 1714.301636, -1184.646484, 21.046417, 0.0000, 0.0000, 270.0005);
- CreateObject(3865, 1715.294067, -1184.392334, 21.099091, 0.0000, 0.0000, 90.0003);
- CreateObject(3865, 1442.673096, -1160.448242, 21.090176, 0.0000, 0.0000, 180.0006);
- CreateObject(3865, 1442.827393, -1161.364746, 21.117846, 0.0000, 0.0000, 0.0007);
- CreateObject(3865, 1228.913208, -1280.291504, 10.874914, 0.0000, 0.0000, 180.0006);
- CreateObject(3865, 1229.058960, -1281.279053, 10.952602, 0.0000, 0.0000, 0.0004);
- CreateObject(3865, 1062.941406, -1428.453979, 10.770216, 0.0000, 0.0000, 90.0006);
- CreateObject(3865, 1061.890381, -1428.657593, 10.795212, 0.0000, 0.0000, 270.0007);
- CreateObject(3865, 990.221741, -1490.114136, 10.791727, 0.0000, 0.0000, 0.0009);
- CreateObject(3865, 990.003357, -1489.201538, 10.816698, 0.0000, 0.0000, 180.0011);
- CreateObject(3865, 1036.928833, -1626.829834, 10.766735, 0.0000, 0.0000, 270.0007);
- CreateObject(3865, 1037.928345, -1626.630249, 10.716774, 0.0000, 0.0000, 90.0000);
- CreateObject(3865, 1095.737427, -1852.780029, 10.791739, 0.0000, 0.0000, 0.0010);
- CreateObject(3865, 1095.500244, -1851.807861, 10.819412, 0.0000, 0.0000, 180.0009);
- CreateObject(3865, 1492.031982, -1871.860596, 10.716759, 0.0000, 0.0000, 180.0009);
- CreateObject(3865, 1492.196777, -1872.732300, 10.769455, 0.0000, 0.0000, 0.0004);
- //===================
- DisableInteriorEnterExits();
- ShowPlayerMarkers(0);
- CreatePickup(1274,23,1632.5125,-1169.8737,24.0781);
- CreatePickup(1279,23,2458.6389,-1895.1144,13.5469);
- GZTrafico = GangZoneCreate(2479.8335,-1883.0388,2440.6567,-1900.6251);
- DonoTrafico =0;
- //=====================
- SetTimer("Deposit",5000,true);
- }
- public OnGameModeExit()
- {
- DOF2_Exit();
- TextDrawDestroy(TextDrawC);
- TextDrawHideForAll(TextDrawC);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if((classid >= 0) && (classid <= 2))
- {
- Gang[playerid] = grove;
- }
- if((classid >= 3) && (classid <= 5))
- {
- Gang[playerid] = ballas;
- }
- if((classid >=6) && (classid <= 8))
- {
- Gang[playerid] = vagos;
- }
- if((classid >=9) && (classid <= 11))
- {
- Gang[playerid] = aztecas;
- }
- SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
- SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
- SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
- SetPlayerFacingAngle(playerid,0.0);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendDeathMessage(playerid,INVALID_PLAYER_ID,200);
- LoadTextsDraws(playerid);
- TextDrawC = TextDrawCreate(1.0,433.0,"/ajuda - comandos.");
- TextDrawAlignment(TextDrawC,0);
- TextDrawBackgroundColor(TextDrawC,0x000000ff);
- TextDrawFont(TextDrawC,2);
- TextDrawLetterSize(TextDrawC,0.2999, 1.4);
- TextDrawBoxColor(TextDrawC,0x00000050);
- TextDrawColor(TextDrawC,0xffffffff);
- TextDrawSetOutline(TextDrawC,1);
- TextDrawSetProportional(TextDrawC,1);
- TextDrawSetShadow(TextDrawC,1);
- TextDrawShowForPlayer(playerid, TextDrawC);
- Timer = SetTimerEx("TempoJogado",1000*60,true,"i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string1,sizeof(string1),"%s entrou no servidor!",name);
- scmt(Amarelo,string1);
- 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");
- else ShowPlayerDialog(playerid,DIALOG_REGISTRO, DIALOG_STYLE_INPUT,"Registro:","Você ainda não é registrado digite uma senha para se registrar!", "Confirma", "Cancelar");
- scm(playerid,Amarelo,"- Bem vindo ao servidor.");
- scm(playerid,Amarelo,"Versão atual: 2.0.");
- scm(playerid,Amarelo,"Versão antiga: 1.0");
- Jogador[playerid] = INVALID_PLAYER_ID;
- if(DonoTrafico ==0)
- {
- GangZoneShowForPlayer(playerid,GZTrafico,-1);
- }
- if(DonoTrafico == 1)
- {
- GangZoneShowForPlayer(playerid,GZTrafico,Verde);
- }
- if(DonoTrafico == 2)
- {
- GangZoneShowForPlayer(playerid,GZTrafico,Rosa);
- }
- if(DonoTrafico == 3)
- {
- GangZoneShowForPlayer(playerid,GZTrafico,Amarelo);
- }
- if(DonoTrafico == 4)
- {
- GangZoneShowForPlayer(playerid,GZTrafico,Azul);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SendDeathMessage(INVALID_PLAYER_ID,playerid,201);
- GetPlayerName(playerid, name, sizeof(name));
- format(string1,sizeof(string1),"%s saiu do servidor!",name);
- scmt(Error,string1);
- SalvarContas(playerid);
- KillTimer(Timer);
- if(IsPlayerInAnyVehicle(playerid))
- {
- KillTimer(VelocimetroTimer[playerid]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][0]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][1]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][2]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][3]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][4]);
- DestroyProgressBar(SVelo[playerid]);
- DestroyProgressBar(SLataria[playerid]);
- SVelo[playerid] = INVALID_BAR_ID;
- SLataria[playerid] = INVALID_BAR_ID;
- }
- if(ProvocoTrafico[playerid] == 1)
- {
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico, -1);
- GuerraTrafico = 0;
- ProvocoTrafico[playerid] = 0;
- DonoTrafico = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoGuerraTrafico);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(playerid, killerid,reason);
- if(ProvocoTrafico[playerid] == 1)
- {
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico, -1);
- GuerraTrafico = 0;
- ProvocoTrafico[playerid] = 0;
- DonoTrafico = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoGuerraTrafico);
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new Float:p[3], s[128], n[24];
- GetPlayerName(playerid, n, 24);
- GetPlayerPos(playerid, p[0], p[1], p[2]);
- format(s, 128, "%s diz: %s", n, text);
- for(new i, j = GetMaxPlayers(); i != j; i++)
- {
- if(IsPlayerInRangeOfPoint(i,5,p[0],p[1],p[2]))
- {
- scm(i,-1,s);
- }
- }
- return false;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Gang[playerid] == grove)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,250);
- GivePlayerWeapon(playerid,28,400);
- GivePlayerWeapon(playerid,30,350);
- GivePlayerWeapon(playerid,29,250);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SetPlayerColor(playerid,Verde);
- }
- else if(Gang[playerid] == ballas)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,250);
- GivePlayerWeapon(playerid,28,400);
- GivePlayerWeapon(playerid,30,350);
- GivePlayerWeapon(playerid,29,250);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SetPlayerColor(playerid,Rosa);
- }
- else if(Gang[playerid] == vagos)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,250);
- GivePlayerWeapon(playerid,28,400);
- GivePlayerWeapon(playerid,30,350);
- GivePlayerWeapon(playerid,29,250);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SetPlayerColor(playerid,Amarelo);
- }
- else if(Gang[playerid] == aztecas)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,250);
- GivePlayerWeapon(playerid,28,400);
- GivePlayerWeapon(playerid,30,350);
- GivePlayerWeapon(playerid,29,250);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SetPlayerColor(playerid,Azul);
- }
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- static Name[24];
- GetPlayerName(playerid,Name,24);
- printf("[COMANDOS]: jogador %s digitou comando: %s",Name,cmdtext);
- if (!success)
- return scm(playerid,Error,"Comando executado não existe.");
- return true;
- }
- //================Comandos:=====================================================
- CMD:afk(playerid,params[])
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string1,sizeof(string1),"O jogador %s [id: %i] está no modo ausente!",name,id);
- SetPlayerVirtualWorld(playerid,5);
- TogglePlayerControllable(playerid,0);
- scmt(-1,string1);
- scm(id,Neutra,"Você entrou no modo ausente!");
- return 1;
- }
- CMD:sairafk(playerid,params[])
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string1,sizeof(string1),"O jogador %s [id: %i] saiu do modo ausente.",name,id);
- SetPlayerVirtualWorld(playerid,0);
- TogglePlayerControllable(playerid,1);
- scmt(-1,string1);
- scm(id,Neutra,"Você saiu do modo ausente!");
- return 1;
- }
- CMD:roubardeposito(playerid,params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid,3.0,1632.5125,-1169.8737,24.0781)) return scm(playerid,Error,"Você não está no deposito de dinheiro! (/gps)");
- if(Roubando[playerid] == 1) return scm(playerid,Error,"Você já está roubando!");
- if(Gang[playerid] != grove && Gang[playerid] != ballas && Gang[playerid] != vagos&& Gang[playerid] != aztecas) return scm(playerid,Error,"Você não é de nenhuma organização!");
- SetTimerEx("ComandoDTempo",50000, false,"i",playerid);
- scm(playerid,Neutra,"Aguarde..");
- Roubando[playerid] = 1;
- return 1;
- }
- CMD:ajuda(playerid,params[])
- {
- if(Gang[playerid]!= grove && Gang[playerid]!= ballas && Gang[playerid]!= vagos && Gang[playerid]!= aztecas) return scm(playerid,Error,"Você não é de nenhuma organização!");
- scm(playerid,Amarelo,"Comandos:");
- scm(playerid,Neutra,"/shop /creditos /objetivo /radio /tempojogando /dominar /ligar /desligar /gps /relatorio /afk /sairafk.");
- scm(playerid,Neutra,"- Pressione a tecla (TAB) e selecione o jogador para mandar mensagem privada.");
- //total 12.
- return 1;
- }
- CMD:radio(playerid,params[])
- {
- if(Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos) return scm(playerid,Error,"Você não é de nenhuma organização!");
- new str_op[128];
- if(sscanf(params, "s[128]", str_op))
- return scm(playerid,Error,"Use: /rádio [mensagem].");
- new player_name[MAX_PLAYER_NAME],
- str_msg[128];
- GetPlayerName(playerid,player_name,MAX_PLAYER_NAME);
- if(Gang[playerid] == ballas)
- {
- format(str_msg,sizeof str_msg,"Rádio %s: %s,câmbio.",player_name,str_op);
- scm(playerid,Rosa,str_msg);
- }
- else if(Gang[playerid] == aztecas)
- {
- format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
- scm(playerid,Azul,str_msg);
- }
- else if(Gang[playerid] == grove)
- {
- format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
- scm(playerid,Verde,str_msg);
- }
- else if(Gang[playerid] == vagos)
- {
- format(str_msg,sizeof str_msg,"Rádio %s: %s, câmbio.",player_name,str_op);
- scm(playerid,Amarelo,str_msg);
- }
- return 1;
- }
- CMD:objetivo(playerid,params[])
- {
- 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","");
- return 1;
- }
- CMD:shop(playerid,params[])
- {
- 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).");
- 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");
- return 1;
- }
- CMD:gps(playerid,params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
- 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");
- return 1;
- }
- CMD:creditos(playerid,params[])
- {
- scm(playerid,Neutra,"Créditos GameMode:");
- scm(playerid,Amarelo,"Pedro Pawn.");
- scm(playerid,Amarelo,"Velocimetro: Sky.");
- scm(playerid,Amarelo,"Versão atual: 2.0.");
- scm(playerid,Amarelo,"Versão antiga: 1.0.");
- scm(playerid,Error,"Grato equipe: War Of organized gangs.");
- return 1;
- }
- CMD:dominar(playerid,params[])
- {
- if(Gang[playerid] == grove)
- {
- if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error, "Você não está no local de tráfico.");
- if(Dominando[playerid] == 1) return scm(playerid,Error, "Você já está dominando um territorio.");
- if(GuerraTrafico == 1) return scm(playerid,Error, "Já está tendo uma guerra neste territorio.");
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1), "%s (Grove) está tentando dominar o local de tráfico!",name);
- scmt(Verde,string1);
- scm(playerid,Neutra,"Espere 1 minuto para dominar está área.");
- GangZoneFlashForAll(GZTrafico,Verde);
- Dominando[playerid] = 1;
- ProvocoTrafico[playerid] = 1;
- GuerraTrafico = 1;
- TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
- }
- else if(Gang[playerid] == ballas)
- {
- if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
- if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio.");
- if(GuerraTrafico == 1) return scm(playerid, -1, "Já está tendo uma guerra neste territorio.");
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%%s (Ballas) está tentando dominar o local de tráfico!",name);
- scmt(Rosa,string1);
- scm(playerid,Neutra, "Espere 1 minuto para dominar o local.");
- GangZoneFlashForAll(GZTrafico,Rosa);
- Dominando[playerid] = 1;
- ProvocoTrafico[playerid] = 1;
- GuerraTrafico = 1;
- TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
- }
- else if(Gang[playerid] == vagos)
- {
- if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
- if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio!.");
- if(GuerraTrafico == 1) return scm(playerid,Error,"Já está tendo uma guerra neste territorio.");
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%s (Vagos) está tentando dominar o local de tráfico!",name);
- scmt(Amarelo,string1);
- scm(playerid,Neutra,"Espere 1 minuto para dominar o local.");
- GangZoneFlashForAll(GZTrafico,Amarelo);
- Dominando[playerid] = 1;
- ProvocoTrafico[playerid] = 1;
- GuerraTrafico = 1;
- TempoGuerraTrafico = SetTimerEx("DGuerraTrafico", 60000, 0, "i", playerid);
- }
- else if(Gang[playerid] == aztecas)
- {
- if(!IsPlayerInTrafico(playerid)) return scm(playerid,Error,"Você não está no local de tráfico!");
- if(Dominando[playerid] == 1) return scm(playerid,Error,"Você já está dominando um territorio!.");
- if(GuerraTrafico == 1) return scm(playerid,Error,"Já está tendo uma guerra neste territorio.");
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1), "%s %s (Aztecas) está tentando dominar o local de tráfico!",name);
- scmt(Azul,string1);
- scm(playerid,Neutra, "Espere 1 minuto para dominar o local.");
- GangZoneFlashForAll(GZTrafico,Azul);
- Dominando[playerid] = 1;
- ProvocoTrafico[playerid] = 1;
- GuerraTrafico = 1;
- TempoGuerraTrafico = SetTimerEx("DGuerraTrafico",60000,0,"i",playerid);
- return true;
- }
- return true;
- }
- CMD:tempojogando(playerid,params[])
- {
- format(string1, sizeof(string1),"Você já jogou: %i horas e %d minutos no servidor (neste login).",HorasJogadas [playerid],MinutosJogados[playerid]);
- scm(playerid,Amarelo,string1);
- return 1;
- }
- CMD:ligar(playerid,params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
- SetVehicleEngineState(GetPlayerVehicleID(playerid), 1);
- scm(playerid,Verde, "Veiculo ligado.");
- return 1;
- }
- CMD:desligar(playerid,params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return scm(playerid,Error,"Você não está em um veiculo!");
- SetVehicleEngineState(GetPlayerVehicleID(playerid), 0);
- scm(playerid,Error, "Veiculo desligado.");
- return 1;
- }
- CMD:dinheiro(playerid,params[])
- {
- new OutroNome[24],value;
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
- if(sscanf(params,"dd",id,value)) return scm(playerid,Error,"Correto: /dinheiro [id] [valor].");
- if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(id,OutroNome,24);
- format(string1,sizeof(string1),"O administrador %s deu dinheiro ao player %s [id:%d].",name,OutroNome, id);
- scm(playerid,Neutra,string1);
- GivePlayerMoney(id,(id) + value);
- scm(id,Neutra,"Você recebeu dinheiro de um administrador.");
- return 1;
- }
- CMD:darvida(playerid,params[])
- {
- new OutroNome[24],valor;
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador.");
- if(sscanf(params,"dd",id,valor)) return scm(playerid,Error,"Correto: /darvida [id] [quantidade vida].");
- if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(id, OutroNome, 24);
- format(string1,sizeof(string1),"O Administrador %s deu vida ao player %s [id:%d].",name,OutroNome, id);
- scm(playerid,Neutra,string1);
- SetPlayerHealth(playerid,id +valor);
- scm(id,Neutra,"O administrador setou sua vida!");
- return 1;
- }
- CMD:darcolete(playerid,params[])
- {
- new OutroNome[24],valor;
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador.");
- if(sscanf(params,"dd",id,valor)) return scm(playerid,Error,"Correto: /darcolete [id] [quantidade vida].");
- if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(id, OutroNome, 24);
- format(string1,sizeof(string1),"O Administrador %s deu colete ao player %s [id:%d].",name,OutroNome, id);
- scm(playerid,Neutra,string1);
- SetPlayerArmour(playerid,id +valor);
- scm(id,Neutra,"O administrador setou seu colete!");
- return 1;
- }
- CMD:anuncio(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error, "Você não é administrador!");
- if(isnull(params)) return scm(playerid,Error, "Correto: /anuncio [mensagem].");
- new pStr[128];
- GetPlayerName(playerid, name, 20);
- format (pStr, 128, "Administrador %s: %s", name, params);
- scmt(Error, pStr);
- return 1;
- }
- CMD:a(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error, "Você não é administrador!");
- if(isnull(params)) return scm(playerid,Error, "Correto: /a [mensagem].");
- new gStr[128];
- GetPlayerName(playerid,name,20);
- format (gStr, 128, "Administrador %s: %s",name,params);
- scm(playerid,Azul, gStr);
- return true;
- }
- CMD:kick(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
- if(sscanf(params,"ds[128]",id,motivo)) return scm(playerid,Error,"Correto: [id] [motivo].");
- if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
- GetPlayerName(playerid,name,sizeof(name));
- format(string1,sizeof(string1),"O administrador %s kickou o player [id: %i] motivo: %s",name,id,motivo);
- scmt(Error,string1);
- Kick(id);
- return 1;
- }
- CMD:ban(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
- if(sscanf(params,"ds[128]",id,motivo)) return scm(playerid,Error,"Correto: /ban [id] [motivo].");
- if(!IsPlayerConnected(id)) return scm(playerid,Error,"O id digitado não está conectado!");
- GetPlayerName(playerid, name, sizeof(name));
- format(string1,sizeof(string1),"O administrador %s baniu o player [id: %i] motivo: %s",name,id,motivo);
- scmt(Error,string1);
- Ban(id);
- return 1;
- }
- CMD:relatorio(playerid,params[])
- {
- new str_op [128];
- if(sscanf(params,"s[128]",str_op))return scm (playerid,Error,"Correto: /relatorio [mensagem]." );
- new str_msg [128];
- GetPlayerName (playerid,name,MAX_PLAYER_NAME);
- format(str_msg, sizeof str_msg, "[Relatorio] %s: %s",name,str_op);
- for(new slots = GetMaxPlayers(),i;i< slots; i++)
- if(IsPlayerAdmin(i))
- scm(i,Error,str_msg);
- scm(playerid,Amarelo,"Relatório enviado!");
- return 1;
- }
- CMD:locaiss(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
- 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");
- return 1;
- }
- CMD:comandosadm(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return scm(playerid,Error,"Você não é administrador!");
- scm(playerid,Neutra,"Comandos:");
- scm(playerid,Amarelo,"/darvida /darcolete /anuncio /dinheiro /kick /ban /a /locaiss /dinheiro ");
- //total 9 cmd.
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_LOCAL)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid,2458.6389,-1895.1144,13.5469);
- }
- else if(listitem == 1)
- {
- SetPlayerPos(playerid,1632.5125,-1169.8737,24.0781);
- }
- else if(listitem ==2)
- {
- SetPlayerPos(playerid,2478.2656,-1633.4364,13.4048);
- }
- else if(listitem ==3)
- {
- SetPlayerPos(playerid,1999.7797,-1131.8314,25);
- }
- else if(listitem == 4)
- {
- SetPlayerPos(playerid,2821.1477,-1182.1031,25.2305);
- }
- else if(listitem ==5)
- {
- SetPlayerPos(playerid,1829.5374,-2014.0790,13.5469);
- return 1;
- }
- }
- }
- if(dialogid == DIALOG_GPS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,2458.6389,-1895.1144,13.5469,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- }
- else if(listitem==1)
- {
- SetPlayerCheckpoint(playerid,1632.5125,-1169.8737,24.0781,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- }
- else if(listitem ==2)
- {
- SetPlayerCheckpoint(playerid,2478.2656,-1633.4364,13.4048,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- }
- else if(listitem ==3)
- {
- SetPlayerCheckpoint(playerid,1999.7797,-1131.8314,25,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- }
- else if(listitem ==4)
- {
- SetPlayerCheckpoint(playerid,2821.1477,-1182.1031,25.2305,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- }
- else if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid,1829.5374,-2014.0790,13.5469,10.0);
- scm(playerid,Amarelo,"vá até o ponto no mapa!");
- return 1;
- }
- }
- }
- if (dialogid == DIALOG_SHOP)
- {
- if (response)
- {
- if (listitem == 0)
- {
- if (GetPlayerMoney(playerid) < 1500) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid, 31, 250);
- GivePlayerMoney(playerid, -1500);
- }
- else if (listitem == 1)
- {
- if (GetPlayerMoney(playerid) < 800) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid, 25, 350);
- GivePlayerMoney(playerid, -800);
- }
- else if (listitem == 2)
- {
- if (GetPlayerMoney(playerid) < 600) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid, 22, 125);
- GivePlayerMoney(playerid, -600);
- }
- else if (listitem == 3)
- {
- if(GetPlayerMoney(playerid)< 2000) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid, 27, 250);
- GivePlayerMoney(playerid,-2000);
- }
- else if (listitem == 4)
- {
- if(GetPlayerMoney(playerid) < 300) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- SetPlayerArmour(playerid,100);
- GivePlayerMoney(playerid,-300);
- }
- else if (listitem == 5)
- {
- if(GetPlayerMoney(playerid) < 1200) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid,16,5);
- GivePlayerMoney(playerid, -1200);
- }
- else if (listitem == 6)
- {
- if(GetPlayerMoney(playerid) < 1150) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid,17,15);
- GivePlayerMoney(playerid,-1150);
- }
- else if (listitem == 7)
- {
- if(GetPlayerMoney(playerid) < 1000) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid,18,10);
- GivePlayerMoney(playerid,-1000);
- }
- else if (listitem == 8)
- {
- if(GetPlayerMoney(playerid) < 2800) return scm(playerid, Error, "Você não tem dinheiro suficiente para comprar o item!");
- GivePlayerWeapon(playerid,34,50);
- GivePlayerMoney(playerid,-2800);
- return 1;
- }
- }
- }
- if(dialogid == DIALOG_REGISTRO)
- {
- 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");
- if(!response) return Kick(playerid);
- else
- {
- Player[playerid][Senha] = strval(inputtext);
- SalvarContas(playerid);
- ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Logar", "Você se cadastrou, agora é só logar com sua senha registrada!", "Confirma", "Cancelar");
- }
- }
- if(dialogid == DIALOG_LOGAR)
- {
- 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");
- if(!response) return Kick(playerid);
- else
- {
- Player[playerid][Senha] = DOF2_GetInt(Contas(playerid), "Senha");
- if(strval(inputtext) == Player[playerid][Senha])
- {
- Player[playerid][Matou] = DOF2_GetInt(Contas(playerid), "Matou");
- Player[playerid][Morreu] = DOF2_GetInt(Contas(playerid), "Morreu");
- Player[playerid][Dinheiro] = DOF2_GetInt(Contas(playerid), "Dinheiro");
- GivePlayerMoney(playerid, Player[playerid][Dinheiro]);
- }
- else
- {
- 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");
- Erro[playerid]++;
- if(Erro[playerid] == 5)
- {
- scm(playerid, Neutra, "Sua conta está banida por errar 5 vezes a sua senha.");
- Ban(playerid);
- }
- }
- }
- }
- if(dialogid == 9752 && response)
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string1, sizeof(string1), "» Mensagem particular de %s: %s.",name, inputtext);
- scm(Jogador[playerid], Amarelo, string1);
- scm(playerid, Verde, "Sua mensagem foi enviada.");
- Jogador[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- new lights,alarm,doors,bonet,boot,objective;
- SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonet,boot,objective);
- scm(playerid,Verde,"Use: /ligar para ligar o veiculo.");
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- new lights,alarm,doors,bonet,boot,objective;
- scm(playerid,Error,"Use: /desligar para desligar o veiculo.");
- SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonet,boot,objective);
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new carro = GetPlayerVehicleID(playerid);
- for (new i = 0; i < sizeof(CarroA); i++)
- {
- if (carro == CarroA[i]) if (Gang[playerid] != aztecas) RemovePlayerFromVehicle(playerid);
- }
- for (new i = 0; i < sizeof(CarroG); i++)
- {
- if (carro == CarroG[i]) if (Gang[playerid] != grove) RemovePlayerFromVehicle(playerid);
- }
- for (new i = 0; i < sizeof(CarroV); i++)
- {
- if (carro == CarroV[i]) if (Gang[playerid] != vagos) RemovePlayerFromVehicle(playerid);
- }
- for (new i = 0; i < sizeof(CarroB); i++)
- {
- if (carro == CarroB[i]) if (Gang[playerid] != ballas) RemovePlayerFromVehicle(playerid);
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- PlayerTextDrawShow(playerid, VehInfo[playerid][0]);
- PlayerTextDrawShow(playerid, VehInfo[playerid][1]);
- PlayerTextDrawShow(playerid, VehInfo[playerid][2]);
- PlayerTextDrawShow(playerid, VehInfo[playerid][3]);
- PlayerTextDrawShow(playerid, VehInfo[playerid][4]);
- SVelo[playerid] = CreateProgressBar(280.00, 406.00, 59.50, 4.19, BarPaint, 200.0);
- SLataria[playerid] = CreateProgressBar(259.00, 420.00, 59.50, 4.19, -16776961, 1000.0);
- ShowProgressBarForPlayer(playerid, SVelo[playerid]);
- ShowProgressBarForPlayer(playerid, SLataria[playerid]);
- VelocimetroTimer[playerid] = SetTimerEx("Atualize", 100, true, "i", playerid);
- return true;
- }
- if(oldstate == PLAYER_STATE_DRIVER)
- {
- KillTimer(VelocimetroTimer[playerid]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][0]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][1]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][2]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][3]);
- PlayerTextDrawHide(playerid, VehInfo[playerid][4]);
- DestroyProgressBar(SVelo[playerid]);
- DestroyProgressBar(SLataria[playerid]);
- SVelo[playerid] = INVALID_BAR_ID;
- SLataria[playerid] = INVALID_BAR_ID;
- return true;
- }
- return true;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- if(playerid == clickedplayerid) return scm(playerid, Error, "Você não pode enviar mensagens para si mesmo!");
- ShowPlayerDialog(playerid, 9752, DIALOG_STYLE_INPUT, "Mensagem Pessoal","Escreva uma mensagem para o player.","Enviar","Fechar");
- Jogador[playerid] = PlayerClicado;
- return 1;
- }
- public ComandoDTempo(playerid)
- {
- GivePlayerMoney(playerid, 2500);
- scm(playerid, Neutra, "Dinheiro roubado!");
- Roubando [playerid] =0;
- return 1;
- }
- stock Contas(playerid)
- {
- new arquivo[40];
- GetPlayerName(playerid, name, 32);
- format(arquivo,40,"Contas/%s.ini",name);
- return arquivo;
- }
- stock SalvarContas(playerid)
- {
- if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid));
- {
- Player[playerid][Dinheiro] = GetPlayerMoney(playerid);
- DOF2_SetInt(Contas(playerid),"Senha",Player[playerid][Senha]);
- DOF2_SetInt(Contas(playerid),"Matou",Player[playerid][Matou]);
- DOF2_SetInt(Contas(playerid),"Morreu",Player[playerid][Morreu]);
- DOF2_SetInt(Contas(playerid),"Dinheiro",Player[playerid][Dinheiro]);
- DOF2_SaveFile();
- }
- return 1;
- }
- public TempoJogado(playerid)
- {
- MinutosJogados[playerid] ++;
- if(MinutosJogados[playerid] == 60)
- {
- HorasJogadas[playerid] ++;
- MinutosJogados[playerid] = 0;
- return 1;
- }
- return 1;
- }
- stock GetTempoJogado(playerid)
- {
- format(string1, sizeof(string1),"%d:%d",HorasJogados[playerid],MinutosJogados[playerid]);
- return 1;
- }
- //paulor
- public Kicka(p)
- {
- #undef Kick
- Kick(p);
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- return 1;
- }
- public Bana(p)
- {
- #undef Ban
- Ban(p);
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- return 1;
- }
- public DGuerraTrafico(playerid)
- {
- if(Gang[playerid] == grove)
- {
- if(ProvocoTrafico[playerid] == 1)
- {
- if(IsPlayerInTrafico(playerid))
- {
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%s e a grove, dominaram o local de tráfico.",name);
- scmt(Verde,string1);
- scm(playerid,Error, "Você dominou o local de tráfico.");
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico, Verde);
- Dominando[playerid] = 0;
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 1;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- else
- {
- scmt(Error,"Os grove não dominaram o local de tráfico!");
- scm(playerid,Error,"Você saiu da área!");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico,-1);
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 0;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- }
- return true;
- }
- if(Gang[playerid] == ballas)
- {
- if(ProvocoTrafico[playerid] == 1)
- {
- if(IsPlayerInTrafico(playerid))
- {
- GetPlayerName(playerid,name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%s e os ballas, dominaram o local de tráfico.",name);
- scmt(Rosa,string1);
- scm(playerid,Neutra, "Você dominou o local de tráfico.");
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico,Rosa);
- Dominando[playerid] = 0;
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 1;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- else
- {
- scmt(Error,"Os ballas não dominaram o local de tráfico!");
- scm(playerid,Error,"Você saiu da área!");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico,-1);
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 0;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- }
- return true;
- }
- if(Gang[playerid] == vagos)
- {
- if(ProvocoTrafico[playerid] == 1)
- {
- if(IsPlayerInTrafico(playerid))
- {
- GetPlayerName(playerid,name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%s e os vagos, dominaram o local de tráfico.",name);
- scmt(Amarelo,string1);
- scm(playerid,Neutra,"Você dominou o local de tráfico.");
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico, Amarelo);
- Dominando[playerid] = 0;
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 1;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- else
- {
- scmt(Error,"Os vagos não dominaram o local de tráfico.");
- scm(playerid,Error,"Você saiu da área!");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico,-1);
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 0;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- }
- return true;
- }
- if(Gang[playerid] == aztecas)
- {
- if(ProvocoTrafico[playerid] == 1)
- {
- if(IsPlayerInTrafico(playerid))
- {
- GetPlayerName(playerid,name, MAX_PLAYER_NAME);
- format(string1, sizeof(string1),"%s e os aztecas, dominaram o local de tráfico.",name);
- scmt(Azul,string1);
- scm(playerid,Azul,"Você dominou o local de tráfico.");
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico, Rosa);
- Dominando[playerid] = 0;
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 1;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- else
- {
- scmt(Error,"Os aztecas não dominaram o local de tráfico!");
- scm(playerid,Error,"Você saiu da área!");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZTrafico);
- GangZoneShowForAll(GZTrafico,-1);
- ProvocoTrafico[playerid] = 0;
- GuerraTrafico = 0;
- DonoTrafico = 0;
- KillTimer(TempoGuerraTrafico);
- return true;
- }
- }
- return true;
- }
- return true;
- }
- stock IsPlayerInTrafico(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(x <= 2479.8335 && y <= -1883.0388 && x >= 2440.6567 && y >= -1900.6251) return true;
- else return false;
- }
- stock SetVehicleEngineState(vid,setstate)
- {
- new engine,lights,alarm,doors,boonet,boot,objective;
- GetVehicleParamsEx(vid,engine,lights,alarm,doors,boonet,boot,objective);
- if(setstate) SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,boonet,boot,objective);
- else SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,engine,alarm,doors,boonet,boot,objective);
- }
- public LoadTextsDraws(playerid)
- {
- VehInfo[playerid][0] = CreatePlayerTextDraw(playerid, 308.000000, 378.000000, "_");
- PlayerTextDrawAlignment(playerid, VehInfo[playerid][0], 2);
- PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][0], 255);
- PlayerTextDrawFont(playerid, VehInfo[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, VehInfo[playerid][0], 0.500000, 6.999997);
- PlayerTextDrawColor(playerid, VehInfo[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid, VehInfo[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, VehInfo[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, VehInfo[playerid][0], 1);
- PlayerTextDrawUseBox(playerid, VehInfo[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, VehInfo[playerid][0], 572661640);
- PlayerTextDrawTextSize(playerid, VehInfo[playerid][0], 0.000000, 197.000000);
- VehInfo[playerid][1] = CreatePlayerTextDraw(playerid, 254.000000, 378.000000, "War Of organized gangs.");
- PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][1], -16776961);
- PlayerTextDrawFont(playerid, VehInfo[playerid][1], 2);
- PlayerTextDrawLetterSize(playerid, VehInfo[playerid][1], 0.230000, 0.699998);
- PlayerTextDrawColor(playerid, VehInfo[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid, VehInfo[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, VehInfo[playerid][1], 1);
- VehInfo[playerid][2] = CreatePlayerTextDraw(playerid, 212.000000, 389.000000, "~n~");
- PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][2], 255);
- PlayerTextDrawFont(playerid, VehInfo[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid, VehInfo[playerid][2], 0.330000, 0.799998);
- PlayerTextDrawColor(playerid, VehInfo[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid, VehInfo[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid, VehInfo[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, VehInfo[playerid][2], 1);
- VehInfo[playerid][3] = CreatePlayerTextDraw(playerid, 348.000000, 403.000000, "~n~");
- PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][3], 255);
- PlayerTextDrawFont(playerid, VehInfo[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid, VehInfo[playerid][3], 0.270000, 0.799999);
- PlayerTextDrawColor(playerid, VehInfo[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid, VehInfo[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid, VehInfo[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, VehInfo[playerid][3], 1);
- VehInfo[playerid][4] = CreatePlayerTextDraw(playerid, 323.000000, 418.000000, "~n~");
- PlayerTextDrawBackgroundColor(playerid, VehInfo[playerid][4], 255);
- PlayerTextDrawFont(playerid, VehInfo[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid, VehInfo[playerid][4], 0.270000, 0.799999);
- PlayerTextDrawColor(playerid, VehInfo[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid, VehInfo[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid, VehInfo[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, VehInfo[playerid][4], 1);
- return true;
- }
- public Atualize(playerid)
- {
- new Velocidade,Float:bLataria,Float:Stats,vehicleid = GetPlayerVehicleID(playerid);
- GetVehicleHealth(GetPlayerVehicleID(playerid), Stats);
- if(VehInfo[playerid][3] != PlayerText:INVALID_TEXT_DRAW)
- {
- format(stryng, sizeof(stryng), ": ~g~%d ~w~km/h",GetPlayerSpeed(playerid));
- PlayerTextDrawSetString(playerid,VehInfo[playerid][3],stryng);
- }
- if(VehInfo[playerid][2] != PlayerText:INVALID_TEXT_DRAW)
- {
- 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));
- PlayerTextDrawSetString(playerid,VehInfo[playerid][2],stryng);
- }
- if((Velocidade = GetPlayerSpeed(playerid)) && SVelo[playerid] != INVALID_BAR_ID)
- {
- SetProgressBarValue(SVelo[playerid],Velocidade);
- UpdateProgressBar(SVelo[playerid],playerid);
- }
- if((bLataria = Stats) && SLataria[playerid] != INVALID_BAR_ID)
- {
- SetProgressBarValue(SLataria[playerid], bLataria);
- UpdateProgressBar(SLataria[playerid], playerid);
- }
- if(Stats < 250)
- {
- PlayerTextDrawSetString(playerid, VehInfo[playerid][4],":~r~Vai explodir!");
- }
- else if(Stats > 250 && Stats < 500)
- {
- PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~p~Quebrando!");
- }
- else if(Stats > 500 && Stats < 700)
- {
- PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~y~Danificado!");
- }
- else if(Stats > 700 && Stats < 850)
- {
- PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~b~Bom!");
- }
- else if(Stats > 850)
- {
- PlayerTextDrawSetString(playerid, VehInfo[playerid][4],": ~g~Otimo!");
- }
- return true;
- }
- stock GetPlayerArea(playerid)
- {
- new str[130];
- format(str,sizeof(str), "%s", Zones[GetPlayerZone(playerid)][zone_name]);
- return str;
- }
- stock GetPlayerZone(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i<sizeof(Zones); i++)
- {
- 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])
- return i;
- }
- return false;
- }
- stock GetPlayerSpeed(playerid)
- {
- new Float:ST[4];
- if(IsPlayerInAnyVehicle(playerid))
- GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
- else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
- ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 100.3;
- return floatround(ST[3]);
- }
- /*
- Game Mode: Pedro pawn.
- Agradecimentos a Fórum SAMP.
- Créditos totais a Sky pelo velocimetro.
- Faça bom uso.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement