Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- VISITE NOSSO SITE: http://www.sampknd.com/
- VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
- SAMP KND MELHOR BLOG DE SAMP DO BRASIL
- */
- #if defined Parka
- --== Zombie Vs Humans ==--
- Create By Parka
- Version: 1.6
- Date: 10:00 pm 07/03/2013
- Mode: Zombie
- #endif
- #include <a_samp>
- #include <YSI\y_ini>
- #include <streamer>
- #include <foreach>
- #include <sscanf2>
- #include <zcmd>
- main()
- {
- print("[!]==========================[!]");
- print("[!]--== Zombie Vs Humans ==--[!]");
- print("[!] Create By Parka [!]");
- print("[!] Mode: Zombie [!]");
- print("[!]==========================[!]\n");
- }
- /*[!]========================[!] Defines [!]===============================[!]*/
- #define LIMA 0x00FF00AA
- #define CIAN 0x00FFFFAA
- #define KAKI 0xF0E68CAA
- #define LARC 0x88AA88AA
- #define OROS 0xFFD700AA
- #define PLAT 0xC0C0C0AA
- #define LL "{00FF00}"
- #define KK "{F0E68C}"
- #define CC "{00FFFF}"
- #define OO "{FFD700}"
- #define PP "{C0C0C0}"
- #define LA "{88AA88}"
- #define BC "{FFFFFF}"
- #define MAX_STATS 100
- #define AZ "{0000FF}"
- #define RO "{FF0000}"
- #define VE "{008000}"
- #define AM "{FFFF00}"
- #define NE "{000000}"
- #define NA "{FFA500}"
- #define GR "{808080}"
- #define MainAzul 0x0000FFAA
- #define MainRojo 0xFF0000AA
- #define MainVerde 0x008000AA
- #define MainAmarillo 0xFFFF00AA
- #define MainNegro 0x000000AA
- #define MainBlanco 0xFFFFFFAA
- #define MainNaranja 0xFFA500AA
- #define FormalAdmin 0x808080AA
- //-- dialogos
- #define Dialog_Register (0)
- #define Dialog_Login (1)
- #define Dialog_Compra (2)
- #define Dialog_Buy_Comida (3)
- //-- Raza
- #define Raza_Humana (0)
- #define Raza_Zombie (1)
- //-- Viruz
- #define Viruz_X (1)
- #define Viruz_XX (2)
- #define Viruz_Z (3)
- //-- MAXIMO
- #define MAX_ZONE_NAME (28)
- #define AMMO_SELL (5)
- #define MAX_ADMIN (1)//
- #define MAX_AVISOS (3)//
- #define Archivo "%s.ini"
- #define GM "Server:"
- #define Tecla(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- /*[!]=======================[!] Variables [!]==============================[!]*/
- enum pInfo
- {
- pPass,
- pCash,
- pAdmin,
- pKills,
- pDeaths,
- pDia,
- pMes,
- pYear,
- pMins,
- pHora,
- pSkills,
- pInfecct,
- pCuret,
- Avisos
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new Text:TextdrawGlobal[4];
- new bool:EnteredDialog[MAX_PLAYERS];
- new BeberStats [ MAX_PLAYERS ];
- new ComidaStats [ MAX_PLAYERS ];
- new Float:Vida [ MAX_PLAYERS ];
- new MyTime [ MAX_PLAYERS ];
- new bool:PlayerSpawnStats[ MAX_PLAYERS ];
- new PlayerText:Textdraw0;
- new PlayerText:Textdraw1;
- new PlayerText:Textdraw2;
- new PlayerText:Textdraw3;
- new PlayerText:Textdraw4;
- new PlayerText:Textdraw5;
- new bool:InformationText[4];
- new Timer[1];
- new Objectid[2];
- new Viruz[MAX_PLAYERS];
- static FloodComando[MAX_PLAYERS];
- static CureZombie[MAX_PLAYERS];
- static Equipo[MAX_PLAYERS];
- new Zombie[11] =
- {
- 157,158,159,160,161,
- 162,137,230,131,130,
- 162
- };
- new Humano[10] =
- {
- 122,120,119,98,73,
- 55,56,12,263,298
- };
- enum SAZONE_MAIN { //Betamaster
- SAZONE_NAME[28],
- Float:SAZONE_AREA[6]
- };
- static const gSAZones[][SAZONE_MAIN] = { // Majority of names and area coordinates adopted from Mabako's 'Zones Script' v0.2
- // NAME AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
- {"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}},
- {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
- {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
- {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
- {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
- {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
- {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
- {"Easter Bay Airport", {-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}},
- {"Garver 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}},
- {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
- {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
- {"Glen Park", {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}},
- {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
- {"Las Venturas Airport", {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}},
- {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.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}},
- {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
- {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
- {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
- {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
- {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
- {"Los Santos International", {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 Casino", {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}},
- {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
- {"Santa Maria Beach", {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 Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
- {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
- {"Starfish Casino", {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 Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.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}},
- {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
- {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
- {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
- {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
- {"Verona Beach", {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 CarName[212][] = {
- "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
- "Voodoo","Pony","Mule","Cheetah","Ambulance","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","ZR3 50","Walton","Regina",
- "Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
- "Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","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","Police Car (LSPD)","Police Car (SFPD)",
- "Police Car (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"
- };
- /*[!]======================================================================[!]*/
- public OnGameModeInit()
- {
- SetGameModeText("Humans Vs Zombies");
- SendRconCommand("mapname Whetstone");
- SendRconCommand("hostname The walking dead|0.3x|V: 1.0|");
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- EnableStuntBonusForAll(0);
- SetTimer("OnPlayerUpDateEx", 1000, true);
- SetWeather( 9 );
- SetTimer("HorasMinutos",1 * 60 * 1000, true);
- for(new i; i < sizeof( Humano ); i++){AddPlayerClass( Humano[i], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);}
- for(new i; i < sizeof( Zombie ); i++){AddPlayerClass( Zombie[i], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);}
- Create3DTextLabel( ""LA"ShotGun: $2000\n"LA"M4: $2200\n"LA"AK-47: $2500\n"LA"Shiper Rifle: $5000",-1,310.6954,-165.1933,999.5938+0.75,30.0,0,1);
- Create3DTextLabel( ""KK"9mm: $600\n"KK"9mm Silenciada: $800\n"KK"Desert Eagle: $1200\n"KK"Rifle County: $3500",-1,314.8313,-165.2574,999.5938+0.75,30.0,0,1);
- Create3DTextLabel( ""BC"Uzi: $1500\n"BC"MP5: $1600\n"BC"Tec-90: $1200\n"BC"Chaleco: $200",-1,317.6752,-161.3642,999.5938+0.75,30.0,0,1);
- Create3DTextLabel( ""LL"Para comprar uma arma colocate \n"LL"frente da mesma e pressione a letra '"KK"Y"LL"'",-1,311.4319,-168.8823,999.5938+0.75,30.0,0,1);
- AddStaticPickup( 1318 , 1 , -1623.8755 , -2693.77340 , 48.7427 , -1);
- AddStaticPickup( 1318 , 1 , 316.258087 , -169.656600 , 999.601 , -1);
- AddStaticPickup( 1318 , 1 , -1561.8456 , -2733.40230 , 48.7435 , -1);
- AddStaticPickup( 1318 , 1 , 501.980987 , -69.1501990 , 998.757 , -1);
- AddStaticPickup( 1239 , 1 , 498.404700 , -75.7382000 , 998.757 , -1);
- TextdrawGlobal[1] = TextDrawCreate(329.000000, 344.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
- TextDrawAlignment(TextdrawGlobal[1], 2);
- TextDrawBackgroundColor(TextdrawGlobal[1], 255);
- TextDrawFont(TextdrawGlobal[1], 1);
- TextDrawLetterSize(TextdrawGlobal[1], 0.229999, 1.200000);
- TextDrawColor(TextdrawGlobal[1], -1);
- TextDrawSetOutline(TextdrawGlobal[1], 1);
- TextDrawSetProportional(TextdrawGlobal[1], 1);
- TextdrawGlobal[2] = TextDrawCreate(329.000000, 362.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
- TextDrawAlignment(TextdrawGlobal[2], 2);
- TextDrawBackgroundColor(TextdrawGlobal[2], 255);
- TextDrawFont(TextdrawGlobal[2], 1);
- TextDrawLetterSize(TextdrawGlobal[2], 0.229999, 1.200000);
- TextDrawColor(TextdrawGlobal[2], -1);
- TextDrawSetOutline(TextdrawGlobal[2], 1);
- TextDrawSetProportional(TextdrawGlobal[2], 1);
- TextdrawGlobal[3] = TextDrawCreate(329.000000, 380.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
- TextDrawAlignment(TextdrawGlobal[3], 2);
- TextDrawBackgroundColor(TextdrawGlobal[3], 255);
- TextDrawFont(TextdrawGlobal[3], 1);
- TextDrawLetterSize(TextdrawGlobal[3], 0.229999, 1.200000);
- TextDrawColor(TextdrawGlobal[3], -1);
- TextDrawSetOutline(TextdrawGlobal[3], 1);
- TextDrawSetProportional(TextdrawGlobal[3], 1);
- TextdrawGlobal[0] = TextDrawCreate(329.000000, 396.000000, "Cesar_Google Esta robando el aereopuerto abandonado de livery city");
- TextDrawAlignment(TextdrawGlobal[0], 2);
- TextDrawBackgroundColor(TextdrawGlobal[0], 255);
- TextDrawFont(TextdrawGlobal[0], 1);
- TextDrawLetterSize(TextdrawGlobal[0], 0.229999, 1.200000);
- TextDrawColor(TextdrawGlobal[0], -1);
- TextDrawSetOutline(TextdrawGlobal[0], 1);
- TextDrawSetProportional(TextdrawGlobal[0], 1);
- Objectid[0] = CreateDynamicObject(980,-1636.6999512,-2709.8999023,50.5000000,0.0000000,0.0000000,317.9992676);
- Objectid[1] = CreateDynamicObject(980,-1541.1999512,-2777.3999023,49.2000008,0.0000000,0.0000000,326.2492676); //object(airportgate) (4)
- AddStaticVehicleEx(470,-1545.3000488,-2747.8999023,48.5999985,352.5000000,95,10,15); //Patriot
- AddStaticVehicleEx(470,-1543.7998047,-2740.0996094,48.5999985,352.4963379,95,10,15); //Patriot
- AddStaticVehicleEx(470,-1540.8000488,-2750.8999023,48.5999985,352.4963379,95,10,15); //Patriot
- AddStaticVehicleEx(470,-1536.0000000,-2753.1000977,48.5999985,352.4963379,95,10,15); //Patriot
- AddStaticVehicleEx(470,-1539.0996094,-2742.8994141,48.5999985,352.4963379,95,10,15); //Patriot
- AddStaticVehicleEx(470,-1534.7998047,-2744.5996094,48.5999985,352.4963379,95,10,15); //Patriot
- AddStaticVehicleEx(500,-1561.5999756,-2759.6000977,48.7999992,325.5000000,88,89,15); //Mesa
- AddStaticVehicleEx(500,-1564.0999756,-2758.0000000,48.7999992,325.4974365,88,89,15); //Mesa
- AddStaticVehicleEx(500,-1566.6999512,-2756.1000977,48.7999992,325.4974365,88,89,15); //Mesa
- AddStaticVehicleEx(500,-1569.1999512,-2754.3999023,48.7999992,325.4974365,88,89,15); //Mesa
- AddStaticVehicleEx(500,-1571.8000488,-2752.6999512,48.7999992,325.4974365,88,89,15); //Mesa
- AddStaticVehicleEx(500,-1574.1999512,-2751.1000977,48.7999992,325.4974365,88,89,15); //Mesa
- AddStaticVehicleEx(495,-1577.8000488,-2747.8999023,49.0999985,325.5000000,134,68,15); //Sandking
- AddStaticVehicleEx(495,-1580.5999756,-2746.0000000,49.0999985,325.4974365,134,68,15); //Sandking
- AddStaticVehicleEx(495,-1583.5000000,-2744.1000977,49.0999985,325.4974365,134,68,15); //Sandking
- AddStaticVehicleEx(495,-1586.5000000,-2742.0000000,49.0999985,325.4974365,134,68,15); //Sandking
- AddStaticVehicleEx(468,-1523.6999512,-2749.3999023,48.2999992,351.7500000,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1524.9000244,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1526.0000000,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1527.0999756,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1528.6999512,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1529.8000488,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1530.8000488,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(468,-1532.0000000,-2749.3999023,48.2999992,351.7492676,132,4,15); //Sanchez
- AddStaticVehicleEx(437,-1580.5999756,-2717.0000000,48.7999992,56.2500000,100,104,15); //Coach
- AddStaticVehicleEx(437,-1582.9000244,-2720.5000000,48.7999992,56.2500000,100,104,15); //Coach
- CreateDynamicObject(3749,-1541.5000000,-2777.8000488,52.2999992,0.0000000,0.0000000,324.7500000); //object(clubgate01_lax) (1)
- CreateDynamicObject(3749,-1636.0999756,-2709.3000488,53.5000000,0.0000000,0.0000000,317.9948730); //object(clubgate01_lax) (2)
- CreateDynamicObject(8209,-1589.5000000,-2744.0000000,50.2000008,0.0000000,0.0000000,144.7500305); //object(vgsselecfence11) (1)
- CreateDynamicObject(987,-1527.1999512,-2770.8999023,47.5000000,0.0000000,0.0000000,233.2500305); //object(elecfence_bar) (1)
- CreateDynamicObject(987,-1520.8000488,-2760.8000488,47.5000000,0.0000000,0.0000000,236.9952393); //object(elecfence_bar) (2)
- CreateDynamicObject(987,-1514.5999756,-2751.3999023,47.5000000,0.0000000,0.0000000,236.9915924); //object(elecfence_bar) (3)
- CreateDynamicObject(987,-1524.1999512,-2743.8999023,47.5000000,0.0000000,0.0000000,321.7416077); //object(elecfence_bar) (4)
- CreateDynamicObject(987,-1533.5999756,-2736.5000000,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (5)
- CreateDynamicObject(987,-1543.0999756,-2729.1000977,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (6)
- CreateDynamicObject(987,-1552.1999512,-2721.8999023,47.5000000,0.0000000,0.0000000,321.7401123); //object(elecfence_bar) (7)
- CreateDynamicObject(987,-1560.1999512,-2715.3999023,47.5000000,0.0000000,0.0000000,320.9901123); //object(elecfence_bar) (8)
- CreateDynamicObject(987,-1571.5999756,-2712.1999512,47.5000000,0.0000000,0.0000000,344.9868164); //object(elecfence_bar) (9)
- CreateDynamicObject(987,-1582.4000244,-2707.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (10)
- CreateDynamicObject(987,-1593.1999512,-2702.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (11)
- CreateDynamicObject(987,-1604.0000000,-2697.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (12)
- CreateDynamicObject(987,-1614.8000488,-2692.1000977,47.5000000,0.0000000,0.0000000,335.2313232); //object(elecfence_bar) (13)
- CreateDynamicObject(987,-1624.8000488,-2685.6999512,47.5000000,0.0000000,0.0000000,327.7313232); //object(elecfence_bar) (14)
- CreateDynamicObject(987,-1633.0999756,-2694.1999512,47.5000000,0.0000000,0.0000000,45.7283936); //object(elecfence_bar) (15)
- CreateDynamicObject(987,-1641.5999756,-2702.5000000,47.5000000,0.0000000,0.0000000,44.9750977); //object(elecfence_bar) (16)
- CreateDynamicObject(1281,-1569.6999512,-2724.1000977,51.0000000,2.0046692,332.9821167,49.0219116); //object(parktable1) (1)
- CreateDynamicObject(1281,-1563.9000244,-2728.1999512,51.0000000,359.9983521,330.7469482,54.7448120); //object(parktable1) (2)
- CreateDynamicObject(1281,-1557.6999512,-2732.6999512,51.0000000,0.6326904,327.7447510,52.1449890); //object(parktable1) (3)
- CreateDynamicObject(1281,-1552.1999512,-2736.1000977,51.0000000,2.0289917,334.4797974,48.9641113); //object(parktable1) (4)
- CreateDynamicObject(1281,-1564.5999756,-2732.1000977,48.7999992,0.0000000,270.0000000,54.7498169); //object(parktable1) (5)
- CreateDynamicObject(3593,-1601.6999512,-2753.3999023,48.2999992,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (1)
- CreateDynamicObject(3593,-1531.6999512,-2803.1000977,46.7000008,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (2)
- CreateDynamicObject(3593,-1657.3000488,-2714.5000000,48.2999992,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (3)
- CreateDynamicObject(3594,-1613.8000488,-2759.6000977,46.5999985,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (1)
- CreateDynamicObject(2677,-1595.9000244,-2758.3999023,47.7999992,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_7) (1)
- CreateDynamicObject(2676,-1595.5000000,-2746.1999512,47.7000008,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_8) (1)
- CreateDynamicObject(2675,-1602.5000000,-2742.0000000,47.7999992,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_6) (1)
- CreateDynamicObject(2674,-1587.3000488,-2752.5000000,47.5000000,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_2) (1)
- CreateDynamicObject(2675,-1604.4000244,-2775.3000488,46.0000000,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_6) (2)
- CreateDynamicObject(2674,-1606.5999756,-2766.6000977,45.9000015,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_2) (2)
- CreateDynamicObject(2672,-1585.4000244,-2764.8000488,47.5999985,0.0000000,0.0000000,0.0000000); //object(proc_rubbish_4) (1)
- CreateDynamicObject(1328,-1601.5999756,-2783.3999023,46.5999985,0.0000000,0.0000000,0.0000000); //object(binnt10_la) (1)
- CreateDynamicObject(12957,-1595.1999512,-2767.3000488,47.4000015,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (1)
- CreateDynamicObject(12961,-1657.8000488,-2210.1999512,31.8999996,0.0000000,0.0000000,0.0000000); //object(sw_hedstones) (3)
- CreateDynamicObject(1369,-1641.0999756,-2238.8999023,34.2000008,0.0000000,0.0000000,0.0000000); //object(cj_wheelchair1) (1)
- CreateDynamicObject(2905,-1630.1999512,-2236.3999023,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadleg) (1)
- CreateDynamicObject(2906,-1631.3000488,-2236.8999023,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadarm) (1)
- CreateDynamicObject(2907,-1658.3000488,-2219.0000000,32.2999992,0.0000000,0.0000000,340.5000000); //object(kmb_deadtorso) (1)
- CreateDynamicObject(2908,-1658.0999756,-2225.8000488,32.7999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (1)
- CreateDynamicObject(3007,-1648.9000244,-2244.3999023,29.7999992,0.0000000,0.0000000,0.0000000); //object(chopcop_torso) (1)
- CreateDynamicObject(2908,-1641.4000244,-2243.6000977,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (2)
- CreateDynamicObject(2908,-1652.9000244,-2243.1999512,30.5000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (3)
- CreateDynamicObject(12961,-1657.8000488,-2200.8000488,32.5000000,0.0000000,0.0000000,0.0000000); //object(sw_hedstones) (5)
- CreateDynamicObject(2907,-1632.3994141,-2237.6992188,30.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (2)
- CreateDynamicObject(2907,-1644.6999512,-2228.5000000,29.2999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (3)
- CreateDynamicObject(2907,-1649.6992188,-2227.2998047,29.6000004,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (4)
- CreateDynamicObject(3092,-1651.1999512,-2235.0000000,28.8999996,277.5000000,0.0000000,25.5000000); //object(dead_tied_cop) (1)
- CreateDynamicObject(3092,-1651.9000244,-2231.6999512,29.0000000,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (2)
- CreateDynamicObject(3092,-1650.0999756,-2231.1999512,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (3)
- CreateDynamicObject(3092,-1649.1999512,-2229.3000488,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (4)
- CreateDynamicObject(3092,-1644.1999512,-2230.6999512,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (5)
- CreateDynamicObject(3092,-1642.0000000,-2236.3999023,29.6000004,277.4981689,0.0000000,25.4992676); //object(dead_tied_cop) (6)
- CreateDynamicObject(3098,-1646.6999512,-2220.3999023,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (1)
- CreateDynamicObject(3098,-1646.6999512,-2224.0000000,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (2)
- CreateDynamicObject(3098,-1644.3000488,-2224.0000000,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (3)
- CreateDynamicObject(3098,-1644.3000488,-2220.6000977,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (4)
- CreateDynamicObject(3098,-1642.6999512,-2223.8000488,32.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (5)
- CreateDynamicObject(3098,-1642.6999512,-2223.8000488,36.4000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (6)
- CreateDynamicObject(3098,-1642.6999512,-2223.8000488,39.7000008,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (7)
- CreateDynamicObject(3098,-1645.5999756,-2223.8000488,39.7000008,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (8)
- CreateDynamicObject(3098,-1645.5999756,-2223.8000488,35.9000015,0.0000000,0.0000000,0.0000000); //object(break_wall_1b) (9)
- CreateDynamicObject(849,-1665.0000000,-2236.6999512,33.2000008,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3) (1)
- CreateDynamicObject(850,-1656.8000488,-2240.0000000,30.7999992,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_1) (1)
- CreateDynamicObject(851,-1663.9000244,-2226.6999512,32.5000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_2) (1)
- CreateDynamicObject(16442,-1657.4000244,-2225.3000488,32.2000008,0.0000000,0.0000000,0.0000000); //object(desn2_stripsigs1) (1)
- CreateDynamicObject(2908,-1658.0999756,-2225.3000488,32.7999992,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (4)
- CreateDynamicObject(2908,-1657.0999756,-2225.3000488,33.4000015,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (5)
- CreateDynamicObject(2908,-1657.8000488,-2225.3000488,33.0000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (6)
- CreateDynamicObject(2908,-1658.5000000,-2225.3000488,33.4000015,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (7)
- CreateDynamicObject(2908,-1657.9000244,-2225.3000488,33.0999985,0.0000000,0.0000000,0.7500000); //object(kmb_deadhead) (8)
- CreateDynamicObject(2803,-1653.3000488,-2238.1000977,29.7000008,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (1)
- CreateDynamicObject(2803,-1643.1992188,-2229.3994141,29.6000004,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (2)
- CreateDynamicObject(2803,-1681.3000488,-2275.6000977,38.0999985,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (3)
- CreateDynamicObject(2803,-1671.5000000,-2269.1999512,36.2999992,0.0000000,0.0000000,0.0000000); //object(cj_meat_bag_1) (4)
- CreateDynamicObject(12957,-1670.4000244,-2218.8999023,33.5000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (2)
- CreateDynamicObject(12957,-1674.9000244,-2241.6000977,34.4000015,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (3)
- CreateDynamicObject(356,311.6000061,-162.3999939,999.5999756,276.4063721,159.3993530,250.2672729); //object(1)
- CreateDynamicObject(355,310.5000000,-163.1999969,999.5999756,278.1065674,146.1935425,138.9589844); //object(2)
- CreateDynamicObject(349,309.8999939,-162.6000061,999.5999756,84.6968384,261.8941650,200.1403198); //object(3)
- CreateDynamicObject(358,310.5000000,-161.3999939,999.5999756,82.6160889,246.1438599,121.5330811); //object(4)
- CreateDynamicObject(357,314.8999939,-161.5000000,999.5999756,83.5934448,290.4814453,79.1505127); //object(5)
- CreateDynamicObject(348,314.2000122,-162.1999969,999.5999756,271.4998169,180.0000000,87.7500000); //object(6)
- CreateDynamicObject(347,315.0000000,-163.1999969,999.5999756,281.4702148,11.3864746,11.1648560); //object(7)
- CreateDynamicObject(346,315.8999939,-162.3999939,999.5999756,278.1066895,213.8062134,311.7905273); //object(8)
- CreateDynamicObject(1242,319.1000061,-159.8000031,999.9000244,0.0000000,0.0000000,0.0000000); //object(bodyarmour) (1)
- CreateDynamicObject(352,319.0000000,-163.3000031,999.7999878,271.4998169,180.0000000,77.2500000); //object(9)
- CreateDynamicObject(353,318.8999939,-162.3999939,999.7999878,84.1447144,230.2736206,217.6237183); //object(10)
- CreateDynamicObject(372,319.0000000,-160.8999939,999.7999878,83.8161926,345.9354248,104.7360229); //object(11)
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnGameModeExit()
- {
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerRequestClass(playerid, classid)
- {
- switch( classid )
- {
- case 0,1,2,3,4,5,6,7,8,9,10:
- {
- SetPlayerCameraPos(playerid, -1564.243530, -2746.124755, 49.833274 );
- SetPlayerCameraLookAt(playerid, -1561.370483, -2742.076171, 49.238334 );
- Equipo[playerid] = Raza_Humana;
- SetPlayerPosEx(playerid,-1557.8397,-2737.2100,48.7435,144.0719);
- GameTextForPlayer(playerid, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~__________~w~Humano", 1000, 6);
- }
- case 11,12,13,14,15,16,17,18,19,20:
- {
- SetPlayerCameraPos(playerid, -1851.936157, -1639.604370, 25.086112 );
- SetPlayerCameraLookAt(playerid, -1853.789550, -1635.148681, 23.777824 );
- Equipo[playerid] = Raza_Zombie;
- SetPlayerPosEx(playerid, -1856.9889,-1629.3225,21.8975,177.0140);
- GameTextForPlayer(playerid, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~__________~r~Zombie", 1000, 6);
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerConnect(playerid)
- {
- if(fexist(Usuario(playerid)))
- {
- INI_ParseFile(Usuario(playerid), "CargarUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_INPUT,""LL" login.",""KK"Sua conta já existe, por favor, digite a sua senha.","Ingresar","Salir");
- }
- else
- {
- ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_INPUT,""LL" registrar...",""KK"Sua conta não está registrado, por favor digite uma senha.","Register","Salir");
- }
- MyTime[playerid] = SetTimerEx( "StatusFromPlayerTextDraw", 1000, true, "d", playerid);
- Textdraw0 = CreatePlayerTextDraw(playerid,606.000000, 401.000000, "hud:radar_datefood");
- PlayerTextDrawAlignment(playerid,Textdraw0, 2);
- PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
- PlayerTextDrawFont(playerid,Textdraw0, 4);
- PlayerTextDrawLetterSize(playerid,Textdraw0, 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw0, 16711935);
- PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
- PlayerTextDrawUseBox(playerid,Textdraw0, 1);
- PlayerTextDrawBoxColor(playerid,Textdraw0, 17);
- PlayerTextDrawTextSize(playerid,Textdraw0, 20.000000, 20.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);
- Textdraw1 = CreatePlayerTextDraw(playerid,606.000000, 370.000000, "hud:radar_girlfriend");
- PlayerTextDrawAlignment(playerid,Textdraw1, 2);
- PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
- PlayerTextDrawFont(playerid,Textdraw1, 4);
- PlayerTextDrawLetterSize(playerid,Textdraw1, 0.500000, 1.000000);
- PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
- PlayerTextDrawUseBox(playerid,Textdraw1, 1);
- PlayerTextDrawBoxColor(playerid,Textdraw1, 17);
- PlayerTextDrawTextSize(playerid,Textdraw1, 20.000000, 20.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);
- Textdraw2 = CreatePlayerTextDraw(playerid,606.000000, 340.000000, "hud:radar_diner");
- PlayerTextDrawAlignment(playerid,Textdraw2, 2);
- PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
- PlayerTextDrawFont(playerid,Textdraw2, 4);
- PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,Textdraw2, 16711935);
- PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
- PlayerTextDrawUseBox(playerid,Textdraw2, 1);
- PlayerTextDrawBoxColor(playerid,Textdraw2, 17);
- PlayerTextDrawTextSize(playerid,Textdraw2, 20.000000, 20.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);
- Textdraw3 = CreatePlayerTextDraw(playerid,587.000000, 23.000000, "~n~_~n~_~n~_");
- PlayerTextDrawAlignment(playerid,Textdraw3, 2);
- PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
- PlayerTextDrawFont(playerid,Textdraw3, 1);
- PlayerTextDrawLetterSize(playerid,Textdraw3, 0.569999, 1.400000);
- PlayerTextDrawColor(playerid,Textdraw3, -1);
- PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
- PlayerTextDrawUseBox(playerid,Textdraw3, 1);
- PlayerTextDrawBoxColor(playerid,Textdraw3, 255);
- PlayerTextDrawTextSize(playerid,Textdraw3, 5.000000, 77.000000);
- PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);
- Textdraw4 = CreatePlayerTextDraw(playerid,558.000000, 21.000000, "~g~~h~~h~~h~Debug Monitor");
- PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
- PlayerTextDrawFont(playerid,Textdraw4, 1);
- PlayerTextDrawLetterSize(playerid,Textdraw4, 0.250000, 1.100000);
- PlayerTextDrawColor(playerid,Textdraw4, -1);
- PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
- PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);
- Textdraw5 = CreatePlayerTextDraw(playerid,548.000000, 33.000000, "~r~Zombie Killed:~w~ 000~n~~b~~h~Human Killed:~w~ 000~n~~p~Time:~w~ 00:00:00~n~~y~~h~~h~Date:~w~ 00/00/0000");
- PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
- PlayerTextDrawFont(playerid,Textdraw5, 1);
- PlayerTextDrawLetterSize(playerid,Textdraw5, 0.250000, 1.100000);
- PlayerTextDrawColor(playerid,Textdraw5, -1);
- PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
- PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
- PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
- PlayerTextDrawSetSelectable(playerid,Textdraw5, 0);
- PlayerSpawnStats[ playerid ] = false;
- EnteredDialog [ playerid ] = false;
- PlayerTextDrawShow( playerid, Textdraw3);
- PlayerTextDrawShow( playerid, Textdraw4);
- PlayerTextDrawShow( playerid, Textdraw5);
- PlayerInfo[playerid][pCash] = 0;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pKills] = 0;
- PlayerInfo[playerid][pDeaths] = 0;
- PlayerInfo[playerid][pMins] = 0;
- PlayerInfo[playerid][pHora] = 0;
- PlayerInfo[playerid][pSkills] = 0;
- PlayerInfo[playerid][pInfecct] = 0;
- PlayerInfo[playerid][pCuret] = 0;
- BeberStats [ playerid ] = MAX_STATS;
- ComidaStats[ playerid ] = MAX_STATS;
- Viruz[playerid] = 1;
- SetPlayerColor(playerid, PLAT);
- SetPlayerTime(playerid, 23, 0);
- SetPlayerCheckpoint(playerid, -1548.0659, -2733.6726, 48.7435, 1.0);
- Create3DTextLabel( "Desinfectados", MainNaranja ,-1548.0659, -2733.6726, 48.7435+0.75,30.0,0,1);
- RemoveBuildingForPlayer(playerid, 18105, 313, -164, 1000, 50.0);
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
- for(new i; i < 15; i++){SendClientMessage(playerid, LARC, " ");}
- SendClientMessage(playerid, LARC, "[!]==========================[!]");
- SendClientMessage(playerid, LARC, "[!]: Zombie Vs Humans");
- SendClientMessage(playerid, KAKI, "[!]: Create By Cesar_Google");
- SendClientMessage(playerid, LARC, "[!]: Mode: Zombie");
- SendClientMessage(playerid, LARC, "[!]==========================[!]");
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerDisconnect(playerid, reason)
- {
- KillTimer(MyTime[playerid]);
- new INI:File = INI_Open(Usuario(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
- INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(File,"Minutos",PlayerInfo[playerid][pMins]);
- INI_WriteInt(File,"Horas",PlayerInfo[playerid][pHora]);
- INI_WriteInt(File,"Skills",PlayerInfo[playerid][pSkills]);
- INI_WriteInt(File,"Infectado",PlayerInfo[playerid][pInfecct]);
- INI_WriteInt(File,"Cura",PlayerInfo[playerid][pCuret]);
- INI_Close(File);
- SetPlayerColor(playerid, PLAT);
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerSpawn(playerid)
- {
- new Rand = random(7);
- if(Equipo[playerid] == Raza_Humana){
- SetPlayerColor(playerid, MainBlanco);
- SetPlayerTeam(playerid, Raza_Humana);
- new rand = random(sizeof Humano);
- SetPlayerSkin(playerid, Humano[rand]);
- PlayerSpawnStats[ playerid ] = true;
- PlayerTextDrawShow( playerid, Textdraw0);
- PlayerTextDrawShow( playerid, Textdraw1);
- PlayerTextDrawShow( playerid, Textdraw2);
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++){RemovePlayerAttachedObject(playerid, i);}
- switch(Rand){
- case 0: SetPlayerPosEx(playerid,-1574.3148,-2725.5625,48.7435,144.7881); //
- case 1: SetPlayerPosEx(playerid,-1571.7781,-2727.1465,48.7435,147.9633); //
- case 2: SetPlayerPosEx(playerid,-1569.3335,-2728.7822,48.7435,139.6283); //
- case 3: SetPlayerPosEx(playerid,-1567.1415,-2730.4785,48.7435,144.3909); //
- case 4: SetPlayerPosEx(playerid,-1555.3521,-2737.9768,48.7435,142.0095); //
- case 5: SetPlayerPosEx(playerid,-1557.7585,-2736.2126,48.7435,147.5659); //
- case 6: SetPlayerPosEx(playerid,-1559.9460,-2734.7583,48.7435,147.5659); //
- }
- }
- if(Equipo[playerid] == Raza_Zombie){
- SetPlayerColor(playerid, MainRojo);
- SetPlayerTeam(playerid, Raza_Zombie);
- new rand = random(sizeof Zombie);
- SetPlayerSkin(playerid, Zombie[rand]);
- PlayerTextDrawHide( playerid, Textdraw0);
- PlayerTextDrawHide( playerid, Textdraw1);
- PlayerTextDrawHide( playerid, Textdraw2);
- SetPlayerAttachedObject( playerid, 0, 2908, 5, 0.080947, -0.008420, -0.023922, 238.895111, 352.390716, 265.339782, 1.000000, 1.000000, 1.000000 ); // kmb_deadhead -
- SetPlayerAttachedObject( playerid, 1, 2804, 8, 0.300914, -0.033888, -0.017660, 10.251863, 178.031677, 280.822998, 0.669003, 1.000000, 1.025910 ); // CJ_MEAT_1 -
- SetPlayerAttachedObject( playerid, 2, 2806, 1, 0.072145, 0.035297, -0.028837, 87.446678, 357.016815, 107.058639, 0.547959, 0.538617, 0.894741 ); // CJ_MEAT_2 -
- switch(Rand){
- case 0: SetPlayerPosEx(playerid,-1631.6165,-2234.9192,31.4766,183.4629); //
- case 1: SetPlayerPosEx(playerid,-1631.3101,-2240.0259,31.4766,183.4629); //
- case 2: SetPlayerPosEx(playerid,-1631.0062,-2245.0981,31.4766,183.4629); //
- case 3: SetPlayerPosEx(playerid,-1641.9156,-2246.4170,31.4766,285.8613); //
- case 4: SetPlayerPosEx(playerid,-1640.4717,-2232.6885,31.4766,184.6536); //
- case 5: SetPlayerPosEx(playerid,-1640.2056,-2235.9534,31.4766,177.1126); //
- case 6: SetPlayerPosEx(playerid,-1635.5457,-2244.4036,31.4766,181.8753); //
- }
- }
- SetPlayerScore(playerid ,PlayerInfo[playerid][pSkills]);
- ResetPlayerWeapons(playerid);
- SetPlayerTime(playerid, 23, 0);
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(reason >= 0 && reason <= 34) SendDeathMessage(killerid, playerid, reason);
- if(Equipo[killerid] == Raza_Humana){
- GivePlayerMoney(killerid, 1000);
- PlayerInfo[killerid][pSkills]++;
- }
- if(Equipo[killerid] == Raza_Zombie){
- Equipo[playerid] = Raza_Zombie;
- PlayerInfo[playerid][pInfecct]++;
- new Txt[24], zone[MAX_ZONE_NAME];
- switch(Viruz[killerid]){
- case 1:{
- Txt = "~g~ Xtreme";
- PlayerInfo[killerid][pSkills] ++;
- GivePlayerMoney(playerid, 100);
- GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$100 ~p~+1 skills", 2000, 3);
- }
- case 2:{
- Txt = "~g~ X-xtreme";
- PlayerInfo[killerid][pSkills]+= 2;
- GivePlayerMoney(playerid, 125);
- GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$125 ~p~+2 skills", 2000, 3);
- }
- case 3:{
- Txt = "~g~ Z-xtreme";
- PlayerInfo[killerid][pSkills]+= 5;
- GivePlayerMoney(playerid, 225);
- GameTextForPlayer(killerid, "_~n~_~n~_~n~_~n~_~n~_~n~~y~Ganastes ~g~$225 ~p~+5 skills", 2000, 3);
- }
- }
- new str[128];
- GetPlayer3DZone(killerid , zone, MAX_ZONE_NAME);
- format(str, sizeof str, "~r~%s ~y~infectado ~w~%s ~y~com a viruz %s ~y~perto ~p~%s", Nombre(killerid), Nombre(playerid), Txt, zone);
- Anuncios(str) ;
- }
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++){RemovePlayerAttachedObject(playerid, i);}
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- /*[!]=========================[!] ZCMD [!]=================================[!]*/
- new Cadena[256];
- CMD:conta(playerid,params[])
- {
- new str[256];
- format( str, sizeof str
- , ""BC"nome: "PP"%s "BC"Horas reproduz: "OO"%d\n"BC"Os tempos de cura: "OO"%d\n"BC"Número de infectados: "OO"%d\n"BC"Matas: "LL"%d\n"BC"morrer: "LL"%d\n\n"BC"Score: "LL"%d",
- Nombre(playerid),
- PlayerInfo[playerid][pHora],
- PlayerInfo[playerid][pCuret],
- PlayerInfo[playerid][pInfecct],
- PlayerInfo[playerid][pKills],
- PlayerInfo[playerid][pDeaths],
- PlayerInfo[playerid][pSkills]);
- ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "Conta de Usuário", str, "Aceptar", "");
- return 1;
- }
- CMD:comprar(playerid,params[])
- {
- ShowPlayerDialog(playerid, Dialog_Compra, DIALOG_STYLE_LIST, ".:[ Comprar Items, Viruz y Cura ]:.", ""RO"Medikit "BC"20% ("LL"$1000"BC")\n"RO"Medikit "BC"50% ("LL"$3000"BC")\n"RO"Medikit "BC"100% ("LL"$5000"BC")\n"KK"Viruz XX ("LL"$5000"BC")\n"KK"Viruz Z ("LL"$70000"BC")", "Comprar", "Cancelar");
- return 1;
- }
- CMD:setkills(playerid, params[])
- {
- if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , -1, ""GM" Uso /Setkills (player/nome) (quantidade) ");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- PlayerInfo[params[0]][pKills] = params[1];
- format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio %d puntos de Kills",Nombre(params[0]), Nombre(playerid), params[1]);
- SendClientMessage(params[0], FormalAdmin, Cadena);
- format(Cadena, sizeof( Cadena ), ""GM" %s Le Distes %d puntos de Kills a %s",Nombre(playerid), params[1], Nombre(params[0]));
- SendClientMessage(playerid, FormalAdmin, Cadena);
- return 1;
- }
- CMD:setcash(playerid, params[])
- {
- if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setcash (player/nome) (quantidade) ");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- GivePlayerMoney(params[0], params[1]);
- format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio %d Dolares",Nombre(params[0]), Nombre(playerid), params[1]);
- SendClientMessage(params[0], FormalAdmin, Cadena);
- format(Cadena, sizeof( Cadena ), ""GM" %s você deu %d Dolares para %s",Nombre(playerid), params[1], Nombre(params[0]));
- SendClientMessage(playerid, FormalAdmin, Cadena);
- return 1;
- }
- CMD:setdeaths(playerid, params[])
- {
- if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setdeaths (player/nome) (quantidade) ");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- PlayerInfo[params[0]][pDeaths] = params[1];
- format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s te colocou mortes %d",Nombre(params[0]), Nombre(playerid), params[1]);
- SendClientMessage(params[0], FormalAdmin, Cadena);
- format(Cadena, sizeof( Cadena ), ""GM" %s você colocou todas as mortes %s em %d",Nombre(playerid), Nombre(params[0]), params[1]);
- SendClientMessage(playerid, FormalAdmin, Cadena);
- return true;
- }
- CMD:setadmin(playerid, params[])
- {
- if(sscanf(params,"ui", params[0], params[1])) return SendClientMessage(playerid , MainRojo, ""GM" Uso /Setadmin (player/nome) (quantidade) ");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN || IsPlayerAdmin(playerid))
- {
- PlayerInfo[params[0]][pAdmin] = params[1];
- format(Cadena, sizeof( Cadena ), ""GM" %s o Administrador %s Te Dio Admin Nivel: %d",Nombre(params[0]), Nombre(playerid), params[1]);
- SendClientMessage(params[0], FormalAdmin, Cadena);
- format(Cadena, sizeof( Cadena ), ""GM" %s Le Distes Admin Nivel: %d a %s",Nombre(playerid), params[1],Nombre(params[0]));
- SendClientMessage(playerid, FormalAdmin, Cadena);
- } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- if ( sscanf( params, "is[126]" ,params[0] , params[1] ) ) return SendClientMessage(playerid, FormalAdmin, ""GM" /kick [playerid] [razão]");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
- if(!IsPlayerConnected(params[0]) || params[0] == playerid || PlayerInfo[params[0]][pAdmin] >= 4)
- return SendClientMessage(playerid, FormalAdmin, ""GM" O jogador não está conectado, é de nível superior do que você ou você mesmo.");
- format( Cadena, sizeof( Cadena ) , ""GM" o Administrador %s Expulso a %s. Razon: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
- SendClientMessageToAll(MainNaranja, Cadena);
- format( Cadena, sizeof( Cadena ) , ""GM" %s tem Kick para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
- SendClientMessage(playerid ,FormalAdmin, Cadena);
- Kick( params[0] );
- } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- if ( sscanf( params, "is[126]" ,params[0] , params[1] ) ) return SendClientMessage(playerid, FormalAdmin, ""GM" /ban [playerid] [razão]");
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
- if(!IsPlayerConnected(params[0]) || params[0] == playerid || PlayerInfo[params[0]][pAdmin] >= 4)
- return SendClientMessage(playerid, FormalAdmin, ""GM" O jogador não está conectado, é de nível superior do que você ou você mesmo.");
- format( Cadena, sizeof( Cadena ) , ""GM" o Administrador %s Expulso para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
- SendClientMessageToAll(MainNaranja, Cadena);
- format( Cadena, sizeof( Cadena ) , ""GM" %s tem Ban para %s. razão: %s" ,Nombre(playerid), Nombre(params[0]), params[1]);
- SendClientMessage(playerid ,FormalAdmin, Cadena);
- Ban( params[0] );
- } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- return 1;
- }
- CMD:warn(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < MAX_ADMIN) {
- if( sscanf ( params, "is[126]", params[0], params[1])) return SendClientMessage(playerid, FormalAdmin,""GM" /warn [playerid] [razão].");
- if(PlayerInfo[params[0]][pAdmin] >= MAX_ADMIN ) return SendClientMessage(playerid,FormalAdmin, ""GM" Você pode usar este comando com um administrador.");
- if(!IsPlayerConnected(params[0]) && params[0] == INVALID_PLAYER_ID || params[0] == playerid) return SendClientMessage(playerid,FormalAdmin, ""GM" O jogador não está conectado ou é você mesmo.");
- PlayerInfo[params[0]][Avisos]++;
- if( PlayerInfo[params[0]][Avisos] == MAX_AVISOS ) {
- format(Cadena, sizeof (Cadena), ""GM" o Administrador %s Expulso de servidor para %s [razão: %s] [avisos: %d/%d]", Nombre(playerid), Nombre(params[0]), params[1], PlayerInfo[params[0]][Avisos], MAX_AVISOS);
- SendClientMessageToAll(MainRojo, Cadena);
- PlayerInfo[params[0]][Avisos] = 0;
- Kick(params[0]);
- return 1;
- } else {
- format(Cadena, sizeof (Cadena), ""GM" o Administrador %s Advierte a %s razão: %s [avisos: %d/%d]", Nombre(playerid), Nombre(params[0]), params[1], PlayerInfo[params[0]][Avisos], MAX_AVISOS);
- return SendClientMessageToAll(MainAmarillo, Cadena);
- }
- } else return SendClientMessage(playerid, FormalAdmin, ""GM" Não é um gerente ou não tem nível suficiente.");
- }
- /*[!]======================================================================[!]*/
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if( Equipo[playerid] == Raza_Zombie )
- return RemovePlayerFromVehicle(playerid);
- if( Equipo[ispassenger] == Raza_Zombie )
- return RemovePlayerFromVehicle(ispassenger);
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsPlayerInVehicle(playerid,vehicleid))
- {
- if(IsPlayerConnected(playerid))
- {
- new str[200];
- format(str, sizeof str, "_~n~_~n~_~n~_~n~_~n~_~n~__________________~g~~h~%s", CarName[GetVehicleModel(vehicleid) - 400]);
- GameTextForPlayer(playerid, str, 3000, 3);
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerEnterCheckpoint(playerid)
- {
- foreach(new i:Player)
- {
- if( Equipo[ i ] == Raza_Zombie )
- {
- if( !IsPlayerConnected( i ) ) continue;
- CurarZombie( i );
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerLeaveCheckpoint(playerid)
- {
- CureZombie[playerid] = 0;
- KillTimer(Timer[0]);
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(Equipo[playerid] == Raza_Zombie&&Viruz[playerid] == Viruz_XX||Viruz[playerid] == Viruz_Z){
- if(Tecla(KEY_JUMP)){
- if(GetTickCount() - FloodComando[playerid] > 999){
- MegaJump(playerid, Float: 0.2, Float: 0.3);
- FloodComando[playerid] = GetTickCount();
- }
- }
- }
- if(Tecla(KEY_FIRE)){
- if(Equipo[playerid] == Raza_Zombie)
- return ResetPlayerWeapons(playerid);
- }
- if(Tecla( KEY_SECONDARY_ATTACK)){
- if(Equipo[playerid] == Raza_Humana){
- if(IsPlayerInRangeOfPoint(playerid, 0.90, 501.980987, -69.150199, 998.757812)){
- SetPlayerPos(playerid, -1561.8456, -2733.4023, 48.7435);
- SetPlayerInterior(playerid, 0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.90, -1561.8456, -2733.4023, 48.7435)){
- SetPlayerPos(playerid, 501.980987, -69.150199, 998.757812);
- SetPlayerInterior(playerid, 11);
- }
- }
- }
- if(Tecla(KEY_SECONDARY_ATTACK)){
- if(Equipo[playerid] == Raza_Humana){
- if(IsPlayerInRangeOfPoint(playerid, 0.90, 316.258087, -169.656600, 999.601013 ) )
- {
- SetPlayerPos(playerid, -1623.8755 , -2693.7734 , 48.7427);
- SetPlayerInterior(playerid, 0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.90, -1623.8755 , -2693.7734 , 48.7427 ) )
- {
- SetPlayerPos(playerid, 316.258087, -169.656600, 999.601013);
- SetPlayerInterior(playerid, 6);
- }
- }
- }
- if( Tecla( KEY_YES ) )
- {
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 309.0719 , -162.4290 , 999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 2000 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -2000);
- GivePlayerWeapon(playerid, 25, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 312.2012,-162.3321,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 2200 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -2200);
- GivePlayerWeapon(playerid, 31, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 310.7312,-163.7771,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 2500 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -2500);
- GivePlayerWeapon(playerid, 30, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 310.6336,-160.9112,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 5000 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid, 34, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 316.5230,-162.2719,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 600 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -600);
- GivePlayerWeapon(playerid, 22, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 315.0421,-163.7780,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 800 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -800);
- GivePlayerWeapon(playerid, 23, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 313.6808,-162.2760,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 1200 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -1200);
- GivePlayerWeapon(playerid, 24, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 315.0736,-160.9113,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 3500 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -3500);
- GivePlayerWeapon(playerid, 33, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2810,-163.4189,999.6010 ))
- {
- if( GetPlayerMoney( playerid ) < 1500 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -1500);
- GivePlayerWeapon(playerid, 28, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2810,-162.1685,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 1600 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -1600);
- GivePlayerWeapon(playerid, 29, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2815,-160.7358,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 1200 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar a arma **");
- GivePlayerMoney(playerid, -1200);
- GivePlayerWeapon(playerid, 32, AMMO_SELL);
- }
- if(IsPlayerInRangeOfPoint(playerid, 0.7 , 318.2815,-159.7386,999.5938 ))
- {
- if( GetPlayerMoney( playerid ) < 200 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você não tem dinheiro suficiente para comprar Armadura **");
- new Float:Ammoid;
- if( GetPlayerArmour( playerid , Ammoid) >= 200 )
- return SendClientMessage(playerid, MainRojo, ""GM" Você tem bastante armadura não pode comprar mais **");
- GivePlayerMoney(playerid, -200);
- SetPlayerArmour(playerid, 100);
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){
- if(Equipo[playerid] == Equipo[issuerid]) return 1;
- if(issuerid != INVALID_PLAYER_ID){
- if(Equipo[issuerid] == Raza_Zombie){
- new Float:Health, Float:Armour;
- GetPlayerArmour(playerid, Armour);
- GetPlayerHealth(playerid, Health);
- new Float:X = 20.0;
- new Float:XX = 20.0;
- new Float:Z = 30.0;
- if(Viruz[issuerid] == Viruz_X){
- if(Armour > 0)
- return SetPlayerArmour(playerid, Armour - X);
- if(Armour < 1)
- return SetPlayerHealth(playerid, Health - X);
- }
- if(Viruz[issuerid] == Viruz_XX){
- if(Armour > 0)
- return SetPlayerArmour(playerid, Health - XX);
- if(Armour < 0)
- return SetPlayerHealth(playerid, Health - XX);
- }
- if(Viruz[issuerid] == Viruz_Z){
- if( Armour > 0 )
- return SetPlayerArmour(playerid, Health - Z);
- if( Armour < 0 )
- return SetPlayerHealth(playerid, Health - Z);
- }
- Sonido(playerid,1130);
- Sonido(issuerid,1130);
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new Float:Health, Float:Amour;
- GetPlayerArmour( playerid , Amour );
- GetPlayerHealth( playerid , Health );
- switch( dialogid )
- {
- case Dialog_Buy_Comida:
- {
- if (!response) return 1;
- if(response)
- {
- switch( listitem )
- {
- case 0:
- {
- if ( GetPlayerMoney( playerid ) <= 250 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -250);
- BeberStats [ playerid ] += 20;
- SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- SendClientMessage( playerid, MainVerde, "Você compra uma garrafa de água.!");
- }
- case 1:
- {
- if ( GetPlayerMoney( playerid ) <= 750 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -750);
- BeberStats [ playerid ] += 25;
- SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_BEER);
- SendClientMessage( playerid, MainVerde, "Você compra uma Cerveja.!");
- }
- case 2:
- {
- if ( GetPlayerMoney( playerid ) <= 100 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -100);
- ComidaStats [ playerid ] = 15;
- SendClientMessage( playerid, MainVerde, "Você compra uma Pizza.!");
- }
- case 3:
- {
- if ( GetPlayerMoney( playerid ) <= 1000 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -1000);
- ComidaStats [ playerid ] = MAX_STATS;
- SendClientMessage( playerid, MainVerde, "Você compra Aveia.!");
- }
- case 4:
- {
- if ( GetPlayerMoney( playerid ) <= 2000 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -2000 );
- ComidaStats [ playerid ] += 30;
- SendClientMessage( playerid, MainVerde, "Você compra uma Hambúrguer.!");
- }
- case 5:
- {
- if ( GetPlayerMoney( playerid ) <= 1000 )
- return SendClientMessage( playerid, MainRojo, "Você não tem dinheiro.!");
- GivePlayerMoney( playerid, -1000 );
- BeberStats [ playerid ] += 28;
- SetPlayerSpecialAction( playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- SendClientMessage( playerid, MainVerde, "Você compra uma Pepsi.!");
- }
- }
- }
- }
- case Dialog_Compra:
- {
- if (!response) return 1;
- if(response)
- {
- switch( listitem )
- {
- case 0:
- {
- if( Amour > 0 && Health > 80 )
- return SendClientMessage( playerid , MainRojo , ""GM" A vida não precisa **" );
- if( GetPlayerMoney( playerid ) < 1000 )
- return SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
- GivePlayerMoney( playerid , -1000);
- SetPlayerHealth( playerid , Health+20);
- }
- case 1:
- {
- if( Amour > 0 && Health > 50 )
- return SendClientMessage( playerid , MainRojo , ""GM" A vida não precisa **" );
- if( GetPlayerMoney( playerid ) < 3000 )
- return SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
- GivePlayerMoney( playerid , -3000);
- SetPlayerHealth( playerid , Health+50);
- }
- case 2:
- {
- if( GetPlayerMoney( playerid ) < 5000 )
- return SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
- SetPlayerHealth( playerid , Health+100);
- GivePlayerMoney( playerid , -5000);
- }
- case 3:
- {
- if( Equipo[playerid] != Raza_Zombie )
- return SendClientMessage( playerid , MainRojo , ""GM" você não é Zombie **" );
- if( GetPlayerMoney( playerid ) < 5000 )
- return SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
- GivePlayerMoney( playerid , -5000);
- Viruz[playerid] = Viruz_XX;
- }
- case 4:
- {
- if( Equipo[playerid] != Raza_Zombie )
- return SendClientMessage( playerid , MainRojo , ""GM" você não é Zombie **" );
- if( GetPlayerMoney( playerid ) < 70000 )
- return SendClientMessage( playerid , MainRojo , ""GM" falta de dinheiro **" );
- GivePlayerMoney( playerid , -70000);
- Viruz[playerid] = Viruz_Z;
- }
- }
- }
- }
- case Dialog_Register:
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- if(!strval(inputtext)) return ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_INPUT, ""LL" registrar...",""RO" A senha só pode escrever números.\n"KK"Por favor insira uma senha..","Registrar","Salir");
- new INI:File = INI_Open(Usuario(playerid));
- new A,D,M;
- getdate( A, M, D);
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Kills",0);
- INI_WriteInt(File,"Deaths",0);
- INI_WriteInt(File,"Dia", D);
- INI_WriteInt(File,"Mes", M);
- INI_WriteInt(File,"Year",A);
- INI_WriteInt(File,"Minutos",0);
- INI_WriteInt(File,"Horas",0);
- INI_WriteInt(File,"Skills",0);
- INI_Close(File);
- }
- }
- case Dialog_Login:
- {
- if ( !response ) return Kick ( playerid );
- if( response )
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(Usuario(playerid), "CargarUser_%s", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- }
- else
- {
- ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_INPUT,""LL" login.",""RO" A senha está incorreta, por favor coloque um válido.\n"KK"Sua conta já existe, por favor, digite a sua senha.","Login","Salir");
- }
- return 1;
- }
- }
- }
- return 1;
- }
- /*[!]======================================================================[!]*/
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- /*[!]========================[!] Stocks [!]================================[!]*/
- stock Usuario(playerid)
- {
- new string[128];
- format(string,sizeof(string), Archivo, Nombre( playerid ));
- return string;
- }
- stock udb_hash(buf[]) {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- stock Nombre( targerid )
- {
- new Name[24];
- GetPlayerName( targerid , Name , 24 );
- return Name;
- }
- stock NombreWeapon( targerid )
- {
- new Name[24];
- GetWeaponName( targerid , Name , 24 );
- return Name;
- }
- stock MegaJump(playerid, Float:forwardspeed, Float:upwardspeed)
- {
- new Float:vx, Float:vy, Float:vz;
- new Float:rot;
- GetPlayerFacingAngle(playerid, rot);
- rot = 360 - rot;
- GetPlayerVelocity(playerid, vx, vy, vz);
- SetPlayerVelocity(playerid, vx + forwardspeed * floatsin(rot, degrees), vy + forwardspeed * floatcos(rot, degrees), vz + upwardspeed);
- return 1;
- }
- stock Sonido( playerid, sonido)
- {
- PlayerPlaySound(playerid, sonido, 0.0, 0.0, 0.0);
- return sonido;
- }
- stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z, Float:a)
- {
- SetPlayerPos(playerid, x, y, z);
- SetPlayerFacingAngle(playerid, a);
- return 1;
- }
- stock GetPlayer3DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- return 0;
- }
- /*[!]=======================[!] CallBack [!]===============================[!]*/
- #define CallBack%0(%1) forward%0(%1); public%0(%1)
- CallBack OnPlayerUpDateEx( )
- {
- foreach(new i:Player)
- {
- if( IsPlayerInRangeOfPoint( i, 0.9, 498.404700 , -75.7382000 , 998.757 ) )
- {
- if( EnteredDialog[ i ] == false )
- {
- ShowPlayerDialog( i, Dialog_Buy_Comida, DIALOG_STYLE_LIST, "Venda de abastecimento", ""KK"Água("LL"250$"KK")\n"KK"Cerveja("LL"750$"KK")\n"KK"Pizza("LL"100$"KK")\n"KK"Aveia("LL"1000$"KK")\n"KK"Hambúrguer("LL"2000$"KK")\n"KK"Pepsi("LL"1000$"KK")", "Aceptar", "Salir");
- EnteredDialog[ i ] = true;
- }
- }else EnteredDialog[ i ] = false;
- if( Equipo[i] == Raza_Humana)
- {
- if(IsPlayerInRangeOfPoint( i,15.0,-1636.6999512,-2709.8999023,55.5000000))
- {
- MoveDynamicObject(Objectid[0],-1636.6992188,-2709.8994141,55.5000000,5.0);
- }
- else
- {
- MoveDynamicObject(Objectid[0],-1636.6999512,-2709.8999023,50.5000000,5.0);
- }
- if(IsPlayerInRangeOfPoint( i,15.0,-1541.1999512,-2777.3999023,49.2000008))
- {
- MoveDynamicObject(Objectid[1],-1541.1999512,-2777.3999023,54.2999992,5.0);
- }
- else
- {
- MoveDynamicObject(Objectid[1],-1541.1999512,-2777.3999023,49.2000008,5.0);
- }
- }
- }
- return 1;
- }
- CallBack CurarZombie( playerid )
- {
- if( IsPlayerConnected( playerid ) ) {
- if( CureZombie[playerid] == 10 )
- {
- CureZombie[playerid] = 0;
- Equipo[playerid] = Raza_Humana;
- Sonido(playerid, 1058);
- SpawnPlayer(playerid);
- PlayerInfo[playerid][pCuret]++;
- GameTextForPlayer(playerid, "_~n~_~g~~h~Curado...", 999, 6);
- new str[64];
- format( str, sizeof str, "~y~%s ~w~ foi curado", Nombre(playerid));
- Anuncios( str );
- return 1;
- }
- GameTextForPlayer(playerid, "_~n~_~p~Curando...", 999, 6);
- CureZombie[playerid]++;
- Timer[0] = SetTimerEx("CurarZombie", 1000, false, "d", playerid);
- }
- return 1;
- }
- CallBack CargarUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Kills",PlayerInfo[playerid][pKills]);
- INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
- INI_Int("Dia",PlayerInfo[playerid][pDia]);
- INI_Int("Mes",PlayerInfo[playerid][pMes]);
- INI_Int("Year",PlayerInfo[playerid][pYear]);
- INI_Int("Minutos",PlayerInfo[playerid][pMins]);
- INI_Int("Horas",PlayerInfo[playerid][pHora]);
- INI_Int("Skills",PlayerInfo[playerid][pSkills]);
- INI_Int("Infectado",PlayerInfo[playerid][pInfecct]);
- INI_Int("Cura",PlayerInfo[playerid][pCuret]);
- return 1;
- }
- CallBack Anuncios( text[] ) {
- if (!InformationText[0]) {
- InformationText[0] = true;
- TextDrawSetString(TextdrawGlobal[1], text);
- TextDrawShowForAll(TextdrawGlobal[1]);
- SetTimerEx("LiberarEspacio", 8000, false, "d", 0);
- }
- else if (!InformationText[1]) {
- InformationText[1] = true;
- TextDrawSetString(TextdrawGlobal[2], text);
- TextDrawShowForAll(TextdrawGlobal[2]);
- SetTimerEx("LiberarEspacio", 8000, false, "d", 1);
- }
- else if (!InformationText[2]) {
- InformationText[2] = true;
- TextDrawSetString(TextdrawGlobal[3], text);
- TextDrawShowForAll(TextdrawGlobal[3]);
- SetTimerEx("LiberarEspacio", 8000, false, "d", 2);
- }
- else if (!InformationText[3]) {
- InformationText[3] = true;
- TextDrawSetString(TextdrawGlobal[0], text);
- TextDrawShowForAll(TextdrawGlobal[0]);
- SetTimerEx("LiberarEspacio", 8000, false, "d", 3);
- }
- return 1;
- }
- CallBack HorasMinutos()
- {
- foreach(new playerid:Player)
- {
- PlayerInfo[playerid][pMins]++;
- if(PlayerInfo[playerid][pMins] == 60)
- {
- PlayerInfo[playerid][pHora]++;
- PlayerInfo[playerid][pMins] = 0;
- }
- }
- return 1;
- }
- CallBack LiberarEspacio(slot) {
- InformationText[slot] = false;
- switch(slot) {
- case 0: TextDrawHideForAll(TextdrawGlobal[1]);
- case 1: TextDrawHideForAll(TextdrawGlobal[2]);
- case 2: TextDrawHideForAll(TextdrawGlobal[3]);
- case 3: TextDrawHideForAll(TextdrawGlobal[0]);
- }
- return 1;
- }
- CallBack StatusFromPlayerTextDraw(Userid)
- {
- if(Equipo[Userid] != Raza_Zombie){
- new Date[6];
- getdate( Date[2], Date[1], Date[0]);
- gettime( Date[5], Date[4], Date[3]);
- new StrIng[128];
- format( StrIng, sizeof StrIng, "~r~Zombie Killed:~w~ %d~n~~b~~h~Human Killed:~w~ %d~n~~p~Time:~w~ %02d:%02d:%02d~n~~y~~h~~h~Date:~w~ %02d/%02d/%02d",
- PlayerInfo[Userid][pSkills],
- PlayerInfo[Userid][pInfecct],
- Date[5],Date[4],Date[3],Date[0],Date[1],Date[2]);
- PlayerTextDrawSetString( Userid, Textdraw5, StrIng);
- if(PlayerSpawnStats[Userid] == true){
- static TimerStats;
- TimerStats++;
- if(TimerStats >= 120){
- TimerStats=0;
- new Rand = random( 2 );
- switch(Rand){
- case 0: BeberStats[ Userid ] -= 6;
- case 1: ComidaStats[ Userid ] -= 6;
- }
- }
- GetPlayerHealth( Userid, Vida[ Userid ]);
- switch( floatround(Vida[ Userid ]) ){
- case 0 .. 20 :{
- PlayerTextDrawColor( Userid, Textdraw1, 0xFF000044);
- PlayerTextDrawShow( Userid, Textdraw1);
- }
- case 21 .. 50 :{
- PlayerTextDrawColor( Userid, Textdraw1, 0xFF8C0044);
- PlayerTextDrawShow( Userid, Textdraw1);
- }
- case 51 .. 80 :{
- PlayerTextDrawColor( Userid, Textdraw1, 0xFFD70044);
- PlayerTextDrawShow( Userid, Textdraw1);
- }
- case 81 .. 100:{
- PlayerTextDrawColor( Userid, Textdraw1, 16711935);
- PlayerTextDrawShow( Userid, Textdraw1);
- }
- }
- switch( BeberStats[ Userid ] )
- {
- case 0 .. 20 :{
- PlayerTextDrawColor( Userid, Textdraw0, -16776961);
- PlayerTextDrawShow( Userid, Textdraw0);
- }
- case 21 .. 50 :{
- PlayerTextDrawColor( Userid, Textdraw0, -5963521);
- PlayerTextDrawShow( Userid, Textdraw0);
- }
- case 51 .. 80 :{
- PlayerTextDrawColor( Userid, Textdraw0, -65281);
- PlayerTextDrawShow( Userid, Textdraw0);
- }
- case 81 .. 100:{
- PlayerTextDrawColor( Userid, Textdraw0, 16711935);
- PlayerTextDrawShow( Userid, Textdraw0);
- }
- }
- switch( ComidaStats[ Userid ] ){
- case 0 .. 20 :{
- PlayerTextDrawColor( Userid, Textdraw2, -16776961);
- PlayerTextDrawShow( Userid, Textdraw2);
- }
- case 21 .. 50 :{
- PlayerTextDrawColor( Userid, Textdraw2, -5963521);
- PlayerTextDrawShow( Userid, Textdraw2);
- }
- case 51 .. 80 :{
- PlayerTextDrawColor( Userid, Textdraw2, -65281);
- PlayerTextDrawShow( Userid, Textdraw2);
- }
- case 81 .. 100:{
- PlayerTextDrawColor( Userid, Textdraw2, 16711935);
- PlayerTextDrawShow( Userid, Textdraw2);
- }
- }
- if( Vida [ Userid ] <= 5 ){
- SendClientMessage(Userid, MainRojo, "Você perde muito sangue morreu.!");
- SetPlayerHealth (Userid, 0.0);
- GivePlayerMoney (Userid, -5000);
- BeberStats [ Userid ] = MAX_STATS;
- ComidaStats[ Userid ] = MAX_STATS;
- return 1;
- }
- if( ComidaStats [ Userid ] <= 0 || BeberStats [ Userid ] <= 0 ){
- SendClientMessage( Userid, MainRojo, "Você morreu de não comer ou sede.!");
- SetPlayerHealth ( Userid, 0.0);
- GivePlayerMoney ( Userid, -5000);
- BeberStats [ Userid ] = MAX_STATS;
- ComidaStats[ Userid ] = MAX_STATS;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement