specialop Geplaatst: 6 september 2010 Rapport Geplaatst: 6 september 2010 Beste lezer, Ik krijg een fout melding als ik gebruik maakt van de pawno compiler output. Wie kan mij helpen? Dit zijn de foutmeldingen: C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(5) : error 010: invalid function or declaration C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(841) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(843) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(845) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(847) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(849) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(851) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(853) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(855) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(856) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(858) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(860) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(862) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(864) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(866) : warning 202: number of arguments does not match definition C:\Users\Jeffrey\Desktop\server\gamemodes\newcnr.pwn(3586) : error 001: expected token: "*/", but found "-end of file-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. en zo ziet het script er uit. /*////////////////////////////////CREDITS/////////////////////////////////////// //Cops and Robbers! 2009/2010///////Cops and Robbers! 2009/2010/////////////// //Dont Remove this Credits** //Made By Crazymax / Jamesbond007///Made By Crazymax / Jamesbond007/////////// //Dont Remove this Credits**////////Dont Remove this Credits**//////////////// *///////////////////////////////INCLUDES//////////////////////////////////////// #include <a_samp> #include <dprop> #include <CheckpointManager> #include "../include/gl_common.inc" //////////////////////////////DEFINES////////////////////////////////////////// #define WHITE 0xFFFFFFAA #define GREEN 0x008000FF #define RED 0xFF0000FF #define BLUE 0x8080FFFF #define YELLOW 0xFFFF00FF #define ORANGE 0xFF8000FF #define PINK 0xFF80C0FF #define LIGHTBLUE 0x0080C0FF #define COLOR_COPS 0x0000FFFF #define COLOR_CIVILIAN 0xFFFFFFFF #define COLOR_DEAD 0x808080FF #define ADMINFS_MESSAGE_COLOR 0xFF0000FF #define PM_INCOMING_COLOR 0xFFFF22AA #define PM_OUTGOING_COLOR 0xFFCC2299 #define TEAM_CIVILIAN 1 #define TEAM_COPS 2 #define DRAG_ROB 1 #define AMMU_ROB 2 #define BURGER_ROB 3 #define STRIP_ROB 4 #define CLUCK_ROB 5 #define SEX_ROB 6 #define BURGER_ROB2 7 #define HOSPITAL 8 #define BINCO_ROB 9 #define SAND_ROB 10 #define PIZZA_ROB 11 #define AIR_CHECK 12 #define CALG_ROB 13 #define BAR_ROB 14 //////////////////////////////FORWARDS////////////////////////////////////// forward SetPlayerTeamFromClass(playerid,classid); forward update_zones(); forward SetPlayerToTeamColor(playerid); forward binco(playerid); forward strip(playerid); forward burger(playerid); forward cluck(playerid); forward sand(playerid); forward ammu(playerid); forward calg(playerid); forward sex(playerid); forward pizza(playerid); forward wait(playerid); forward wait2(playerid); forward wait3(playerid); forward wait4(playerid); forward jail4(playerid); forward jail5(playerid); forward cantarrestagain(playerid); forward bar(playerid); forward waitrobciv(playerid); forward waitrapeciv(playerid); forward waitesc(playerid); forward arrested(id); forward release(id); forward skydive(playerid); forward GetPlayerZone(playerid); forward dragrob4(playerid); forward OnCheckpointEXIT(playerid, checkpointid); forward SendMSG(); forward AutoUnjail(); ////////////////////////////////NEW///////////////////////////////////////// new Float:civilianPlayerSpawns[5][4] ={ {2506.9507,2127.2871,10.8203,0.0528}, {2026.1967,1342.8868,10.8203,270.8025}, {1461.3868,2775.2068,10.8203,271.6057}, {1694.6954,2204.3601,10.8203,184.2208}, {1538.6593,1040.2419,10.8203,178.7920} }; new Float:copPlayerSpawns[3][4] ={ {2267.8745,2445.7515,3.5313,0.2902}, {2268.0693,2446.3333,-7.1953,180.4812}, {944.7442,1734.4086,8.8516,271.4146} }; new bool:gojail1[MAX_PLAYERS]; new bool:gojail2[MAX_PLAYERS]; new bool:canrobbar[MAX_PLAYERS]; new bool:robbar[MAX_PLAYERS]; new bool:canrobdrag[MAX_PLAYERS]; new bool:waitrobstore[MAX_PLAYERS]; new bool:waitrobsand[MAX_PLAYERS]; new bool:waitrobdrag[MAX_PLAYERS]; new bool:waitrobcalg[MAX_PLAYERS]; new bool:robdrag[MAX_PLAYERS]; new bool:canrobstrip[MAX_PLAYERS]; new bool:robcalg[MAX_PLAYERS]; new bool:canrobcalg[MAX_PLAYERS]; new bool:robsand[MAX_PLAYERS]; new bool:canrobsand[MAX_PLAYERS]; new bool:canrobburger[MAX_PLAYERS]; new bool:canrobammu[MAX_PLAYERS]; new bool:canrobbinco[MAX_PLAYERS]; new bool:canrobcluck[MAX_PLAYERS]; new bool:canrobpizza[MAX_PLAYERS]; new bool:canrobsex[MAX_PLAYERS]; new bool:canrobburger2[MAX_PLAYERS]; new bool:robstrip[MAX_PLAYERS]; new bool:robburger[MAX_PLAYERS]; new bool:robpizza[MAX_PLAYERS]; new bool:robsex[MAX_PLAYERS]; new bool:robcluck[MAX_PLAYERS]; new bool:robbinco[MAX_PLAYERS]; new bool:robammu[MAX_PLAYERS]; new bool:robburger2[MAX_PLAYERS]; new bool:unfair[MAX_PLAYERS]; new bool:canrobciv[MAX_PLAYERS]; new bool:canrapeciv[MAX_PLAYERS]; new bool:FirstPress[MAX_PLAYERS]; new bool:Jailed[MAX_PLAYERS]; new bool:canbehealed[MAX_PLAYERS]; new bool:suicide[MAX_PLAYERS]; new bool:newlife[MAX_PLAYERS]; new bool:canbeair[MAX_PLAYERS]; new bool:isafk[MAX_PLAYERS]; new bool:escaped[MAX_PLAYERS]; new bool:canesc[MAX_PLAYERS]; new bool:rapetodeath[MAX_PLAYERS]; new bool:playerspawned[MAX_PLAYERS]; new bool:canarrestagain[MAX_PLAYERS]; new MyNPC; new JailTime[MAX_PLAYERS]; new JailTimeServed[MAX_PLAYERS]; static gTeam[MAX_PLAYERS]; new gPlayerClass[MAX_PLAYERS]; new RandomMSG[][] = { "Read /help and /rules to avoid breaking the rules!", "Add us to Your Favorites!", "This is Not a Deathmatch Server. Cops, do not attack innocent people!", "Spotted a hacker or someone deathmatching? use /report to note admins about him.", "Need help? Use /help and /cmds to see all your available commands." }; new Float:pHealth; new timer1; new timer2; new copcar1; new copcar11; new copcar2; new copcar22; new copcar222; new copcar3; new copcar4; new copcar44; new copcar444; new copcar5; new copcar55; new copcar6; new copcar7; new copcar77; new copcar777; new copcar7777; new copcar77777; new copcar8; new copcar88; new copcar9; new copcar99; new Text:Textdraw2; enum zoneinfo { zone_name[27], Float:zone_minx, Float:zone_miny, Float:zone_minz, Float:zone_maxx, Float:zone_maxy, Float:zone_maxz } new Float:zones[][zoneinfo] = { { "LV Drug House (Inside)", 2363.7732, -1135.5873, 1050.8750, 2366.7190, -1125.8083, 1050.8826}, { "Lv City Bank", 2333.6050, 1538.5920, 9.0184, 2420.1487, 1607.1777, 500.5000}, { "Lv City Bank (Inside)", 2306.0767, -17.3174, 26.5496, 2317.1667, -0.1374, 26.7696}, { "Regular Players Lounge", 2082.1758, 1203.3190, 6.0203, 2125.7268, 1278.4438, 500.5000}, { "BMUK's Casino", 2078.8538, 1306.0410, 9.0203, 2114.8035, 1364.4226, 500.5000}, { "LV MultiStory", 2257.6921, 1383.5364, 9.0203, 2357.7520, 1523.2224, 500.5000}, { "LV Pyramid", 2237.4563, 1205.2041, 9.0203, 2416.4814, 1362.8427, 500.5000}, { "LV City Hall", 2354.4023, 1079.9636, 9.0203, 2420.8870, 1186.4084, 500.5000}, { "LV Transfender", 2352.2302, 956.4175, 9.0203, 2421.1843, 1066.9310, 500.5000}, { "SE LV Gas Station", 2617.8508, 1062.8749, 9.0203, 2657.1074, 1142.5132, 500.5000}, { "Casino Security", 1878.7798, 944.3989, 9.0203, 1923.6537, 966.3892, 500.5000}, { "Four Dragons Casino", 1878.7661, 970.0151, 9.0203, 2035.9320, 1082.8287, 500.5000}, { "The Strip [south]", 2037.4653, 863.7079, 4.0203, 2076.8149, 1702.8253, 500.5000}, { "Caligulas Casino", 2087.7002, 1543.7769, 9.8203, 2317.1528, 1763.7645, 500.5000}, { "Bedroom", 943.2505, -48.6990, 1000.1172, 948.3954, -40.9521, 1003.5865}, { "LVPD HQ", 2234.2024, 2419.3340, -8.4531, 2360.7454, 2507.3718, 500.5000}, { "LV Aircraft Carrier", 2782.5579, 441.7090, -5.0000, 3166.1729, 520.0420, 500.5000}, { "24/7 store", -36.6344, -57.9175, 1003.3469, -17.3938, -48.9887, 1003.8469}, { "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}, { "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}, { "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}, { "Class Selection", 942.5793, 0.2095, 1000.9295, 947.4127, 4.8616, 1000.9299}, { "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}, { "LV Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90}, { "LV Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90}, { "LV Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90}, { "LV Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90}, { "LV 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}, { "LVPD (Inside)", 228.8148, 140.0497, 1003.0000, 248.7047, 169.0779, 1003.0400}, { "LVPD (Inside)", 188.3310, 156.6014, 1003.0000, 203.9910, 180.7771, 1003.0400}, { "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}, { "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}, { "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}, { "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}, { "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 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 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 Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00}, { "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}, { "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}, { "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 zoneupdates[MAX_PLAYERS]; new player_zone[MAX_PLAYERS]; new zoneupdate; public update_zones() { new line1[10]; new line2[10]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && zoneupdates[i] == 1) { if(IsPlayerInZone(i,player_zone[i])) { } else { new player_zone_before; player_zone_before = player_zone[i]; player_zone[i] = -1; for(new j=0; j<sizeof(zones);j++) { if(IsPlayerInZone(i,j) && player_zone[i] == -1) { if(player_zone_before == -1) GameTextForPlayer(i,zones[j][zone_name],1500,1); else if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0) GameTextForPlayer(i,zones[j][zone_name],1500,1); player_zone[i] = j; format(line1,10,"p%dzone",i); format(line2,10,"%d",j); PropertySet(line1,line2); } } if(player_zone[i] == -1) player_zone[i] = player_zone_before; } } } } IsPlayerInZone(playerid, zoneid) { if(zoneid == -1) return 0; new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx] && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy] && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz] && z < 1200.0000) return 1; return 0; } //////////////////////////////////////MAIN/////////////////////////////////////////////////// main() { print("\n +------------------------------------------------+"); print(" | CrazyMax Cops and Robbers |"); print(" +------------------------------------------------+\n"); } //////////////////////////////ONGAMEMODE//////////////////////////////////// public OnGameModeInit() { SetTimer("SendMSG", 120000, true); SetTimer("AutoUnjail", 1000, true); ConnectNPC("Taxi_Driver","taxinpc"); ConnectNPC("PD_Guard","newnpct"); MyNPC = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 6, 6, 5000); EnableStuntBonusForAll(0); //DisableInteriorEnterExits(); AllowInteriorWeapons(1); //UsePlayerPedAnims(); SetGameModeText("Cops and Robbers"); //////////////////////////////////textdraw//////////////////////////////// Textdraw2 = TextDrawCreate(10.000000, 427.000000, "www.cmgaming.web-rpg.org"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 1); TextDrawLetterSize(Textdraw2, 0.410000, 1.400000); TextDrawColor(Textdraw2, -65281); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1); /////////////////////////////////cops////////////////////////////////////// AddPlayerClassEx(2,280,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,281,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,284,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,285,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,286,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,287,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,165,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,164,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,163,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,166,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,282,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,283,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,288,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,265,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,266,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); AddPlayerClassEx(2,267,1568.6379,-1695.5450,5.8906,179.4654,3,1,24,80,30,400); ////////////////////////////////civilians///////////////////////////////// AddPlayerClassEx(1,20,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,19,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,244,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,17,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,15,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,90,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,12,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,21,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,22,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,28,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,257,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,24,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,60,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,245,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,23,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,29,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,63,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,96,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,122,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,123,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,256,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,85,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,147,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,170,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,180,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,187,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,186,1346.2122,-1756.6079,13.5078,344.6872,5,1,23,80,28,400); AddPlayerClassEx(1,246,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore AddPlayerClassEx(1,152,-1328.2207,-291.2531,14.1484,358.5105,10,1,25,500,28,2000);//whore ///////////////////////////////cop cars/////////////////////////////////// copcar7 = AddStaticVehicle(598,2315.4128,2460.1907,-7.7055,89.7070,0,1); // lvpd car copcar1 = AddStaticVehicle(490,2225.9453,2462.3552,-7.3177,270.4619,0,0); // fbi car copcar11 = AddStaticVehicle(490,2227.1697,2453.2024,-7.3246,272.0889,0,0); // fbi car 2 copcar3 = AddStaticVehicle(596,2276.8530,2430.8970,-7.7324,0.1654,0,1); // cop car AddStaticVehicle(596,2259.5220,2430.3694,-7.7327,358.9061,0,1); // cop car 2 copcar77 = AddStaticVehicle(598,2315.6768,2460.4639,3.0189,90.9892,0,1); // cop car lv copcar777 = AddStaticVehicle(598,2285.7148,2430.7476,3.0200,1.4255,0,1); // cop car lv 2 AddStaticVehicle(596,2250.7148,2430.7834,2.9948,359.2774,0,1); // ls car lv AddStaticVehicle(596,2240.1455,2461.3459,2.9947,270.6838,0,1); // ls car lv copcar4 = AddStaticVehicle(523,2316.3047,2475.4954,2.8430,87.9018,0,1); // bike lv copcar44 = AddStaticVehicle(523,2277.2607,2473.7722,2.8409,2.8389,0,1); // bike lv copcar444 = AddStaticVehicle(523,2307.7493,2429.9353,2.8405,359.5117,0,1); // bike lv AddStaticVehicle(596,2273.6580,2442.8323,10.5416,358.3860,0,1); // lspd car lv AddStaticVehicle(598,2273.4038,2477.5642,10.5669,181.3723,0,1); // lv pd car AddStaticVehicle(523,2260.5571,2459.8083,10.3909,180.4778,0,1); // bike lv copcar6 = AddStaticVehicle(597,2255.6716,2477.4141,10.5883,179.8873,0,1); // sf pd car AddStaticVehicle(523,2255.8315,2441.6489,10.3861,1.4175,0,1); // pd bike copcar5 = AddStaticVehicle(427,972.9521,1794.5769,8.7803,179.2194,0,1); // enforcer copcar55 = AddStaticVehicle(427,972.8572,1770.0696,8.7801,179.9875,0,1); // enforcer 2 copcar2 = AddStaticVehicle(507,954.0931,1749.2371,8.4729,268.6269,0,0); // elegant copcar22 = AddStaticVehicle(507,954.4711,1740.5582,8.4729,270.2333,0,0); // elegant 2 copcar222 = AddStaticVehicle(507,954.4921,1731.5583,8.4743,270.3746,0,0); // elegant 3 copcar7777 = AddStaticVehicle(598,953.2245,1717.0332,8.3969,271.6895,0,1); // fbi cop car copcar77777 = AddStaticVehicle(598,952.9725,1724.4663,8.3937,271.1125,0,1); // fbi cop car 2 copcar8 = AddStaticVehicle(430,2343.2305,532.9164,-0.1866,177.4881,0,7); // cop boat copcar88 = AddStaticVehicle(430,2374.8499,535.5213,-0.2573,180.6364,0,7); // cop boat 2 copcar9 = AddStaticVehicle(497,979.9753,1723.9661,8.8279,91.7408,0,1); // police maverick 497 copcar99 = AddStaticVehicle(497,979.4127,1741.4552,8.8258,91.9325,0,1); // police maverick 497 ///////////////////////////civilian cars///////////////////////////////// AddStaticVehicle(429,2484.0459,2132.0222,10.4250,270.3112,-1,-1); // banshee AddStaticVehicle(434,2508.6360,2132.0215,10.7051,267.2103,1,-1); // hotknife AddStaticVehicle(477,2037.6338,1370.1910,10.4957,181.6982,-1,-1); // zr3 50 AddStaticVehicle(419,2037.9728,1322.7692,10.5400,359.2431,-1,-1); // esp AddStaticVehicle(541,2037.7482,1345.9818,10.3686,0.1992,-1,-1); // bullet AddStaticVehicle(415,2185.0767,1855.7662,10.5909,0.6823,-1,-1); // cheetah AddStaticVehicle(461,2171.3640,1799.6456,10.4075,178.6442,-1,-1); // pcj AddStaticVehicle(420,2313.4116,2408.3528,10.5222,90.8682,6,6); // taxi AddStaticVehicle(451,2267.0566,2336.8911,10.5271,268.3276,-1,-1); // civ car AddStaticVehicle(409,2038.0243,1019.3918,10.5421,180.1663,1,1); // streach AddStaticVehicle(411,2340.4070,2578.5251,10.5420,183.6444,-1,-1); // inf AddStaticVehicle(451,2531.5811,2506.2478,10.5266,89.1505,-1,-1); // tur AddStaticVehicle(521,1596.3923,2196.8359,10.3923,88.5989,-1,-1); // fcr 900 civ AddStaticVehicle(416,1625.9698,1820.1265,10.9696,2.4248,1,3); // ambulance AddStaticVehicle(416,1591.2715,1819.5143,10.9696,0.5266,1,3); // ambulance 2 AddStaticVehicle(533,1602.2604,1839.1134,10.5294,0.6349,-1,-1); // feltzer civ AddStaticVehicle(562,1610.6699,1832.2091,10.4779,180.6247,-1,-1); // elegy civ car AddStaticVehicle(487,1352.9336,1681.4790,10.9975,273.8855,-1,-1); // muvarick AddStaticVehicle(487,1334.4187,1573.7445,10.9959,273.3435,-1,-1); // muvarick 2 AddStaticVehicle(469,1386.0404,1770.3083,10.8325,267.5091,-1,-1); // sparrow civ AddStaticVehicle(519,1579.9121,1537.8514,11.7472,36.2038,94,103); // shamal civ AddStaticVehicle(519,1569.0586,1500.9438,11.7549,107.5114,94,103); // shamal civ 2 AddStaticVehicle(511,1581.7988,1359.3165,12.2306,143.9581,-1,-1); // beagle AddStaticVehicle(553,1302.2853,1439.4570,12.1519,271.4022,-1,-1); // beagle civ AddStaticVehicle(553,1384.3115,1232.3678,12.1495,358.4625,-1,-1); // beagle civ 2 AddStaticVehicle(534,1322.2058,1279.7195,10.5458,0.5207,-1,-1); // remington AddStaticVehicle(593,1285.7025,1324.1078,11.2832,270.3495,0,7); // dodo civ AddStaticVehicle(593,1282.9417,1362.3778,11.2836,271.8013,0,7); // dodo civ 2 AddStaticVehicle(456,2464.8484,2346.1060,10.9936,269.8019,117,12); // yankee AddStaticVehicle(419,2508.8792,2290.9534,10.6178,269.7375,26,44); // esperanto civ AddStaticVehicle(428,2432.5532,2249.8206,10.8674,0.8077,-1,-1); // securicar AddStaticVehicle(428,2432.3350,2265.8704,10.8664,0.5589,-1,-1); // securicar 2 AddStaticVehicle(411,2272.5740,2430.5964,3.0005,359.9728,0,0); // inf cop AddStaticVehicle(411,2285.8125,2431.1599,-7.7261,359.3163,0,0); // inf cop 2 AddStaticVehicle(587,2297.8918,2460.4009,-7.7262,269.9053,0,0); // euros AddStaticVehicle(409,2128.6465,2339.3083,10.4719,89.8082,1,1); // stretch AddStaticVehicle(448,2094.6296,2206.4136,10.4207,359.3926,3,6); // pizza boy AddStaticVehicle(448,2082.9507,2206.2908,10.4193,4.1115,3,6); // pizza boy 2 AddStaticVehicle(448,2072.8979,2225.1821,10.4200,179.4000,3,6); // pizza boy 3 AddStaticVehicle(427,2240.6016,2442.3210,3.4054,270.2090,0,1); // enforcer cop AddStaticVehicle(579,2266.2358,2408.5898,10.6755,91.3882,-1,-1); // huntley AddStaticVehicle(585,2199.8616,2474.8638,10.4057,182.3679,-1,-1); // emperor civ AddStaticVehicle(581,2080.5386,2468.4941,10.4162,358.6427,-1,-1); // 581 bf 400 AddStaticVehicle(576,1978.4434,2412.0491,10.4308,178.9265,-1,-1); // tornade civ AddStaticVehicle(546,1863.3030,2242.7954,10.5448,359.5111,-1,-1); // intruder civ AddStaticVehicle(407,1763.6251,2077.1274,11.0575,180.5280,3,3); // firetruck AddStaticVehicle(407,1750.7843,2077.2300,11.0537,182.0878,3,3); // firetruck 2 AddStaticVehicle(541,1701.5421,2202.7595,10.4449,181.0887,-1,-1); // bullet civ AddStaticVehicle(420,2650.9558,2343.0481,10.4578,45.2367,6,6); // taxi AddStaticVehicle(420,2630.9983,2346.2659,10.4510,117.8333,6,6); // taxi 2 AddStaticVehicle(415,2612.7051,2262.4021,10.5911,89.8314,-1,-1); // cheetah civ AddStaticVehicle(401,2589.9587,2249.6355,10.5999,359.5888,-1,-1); // bravura AddStaticVehicle(405,2551.5740,2196.6057,10.6953,180.1727,-1,-1); // sentinel AddStaticVehicle(576,1538.1079,1023.3242,10.4298,1.4859,-1,-1); // tornado AddStaticVehicle(526,1525.4670,1021.6315,10.5869,2.8571,-1,-1); // fortune AddStaticVehicle(420,1709.6606,1448.4972,10.4748,343.6295,6,6); // taxi AddStaticVehicle(420,1716.5925,1472.6379,10.5219,341.7300,6,6); // taxi 2 AddStaticVehicle(463,1685.4436,1305.9333,10.3599,179.1060,-1,-1); // freeway AddStaticVehicle(555,1676.0524,1297.7843,10.5016,180.2900,-1,-1); // windsor AddStaticVehicle(402,2039.4916,1145.6638,10.5036,180.6555,-1,-1); // bufalo AddStaticVehicle(533,2115.1633,928.5012,10.5293,87.9534,-1,-1); // car AddStaticVehicle(588,1896.4211,2120.9861,10.7244,183.1178,1,1); // hotdog AddStaticVehicle(587,1686.5377,2202.9287,10.5489,180.4697,-1,-1); // euros AddStaticVehicle(436,1525.9714,2258.3313,10.5890,180.6647,-1,-1); // previon AddStaticVehicle(457,1416.2758,2788.7227,10.4471,79.3477,-1,-1); // caddy AddStaticVehicle(572,1415.1873,2761.4976,10.3999,119.5622,-1,-1); // mower AddStaticVehicle(457,1264.8699,2747.2930,10.6148,307.5161,-1,-1); // caddy 2 AddStaticVehicle(457,1179.6781,2807.7144,10.4463,219.5233,-1,-1); // caddy 3 AddStaticVehicle(431,1388.5443,2675.1299,10.9210,0.3344,-1,-1); // bus AddStaticVehicle(420,1419.9277,2669.1960,10.4362,270.2952,6,6); // taxi AddStaticVehicle(420,1453.7291,2669.3701,10.4493,270.2986,6,6); // taxi AddStaticVehicle(409,1450.9886,2609.0557,10.4675,89.6121,1,1); // stretch AddStaticVehicle(409,1407.3912,2609.0940,10.5418,90.7068,1,1); // stretch 2 AddStaticVehicle(451,1367.1987,2520.3003,10.5279,271.1835,-1,-1); // turismo AddStaticVehicle(541,1601.5807,2671.9858,10.4522,89.4420,-1,-1); // bullet AddStaticVehicle(415,1474.9596,2839.5823,10.5924,180.5557,-1,-1); // cheetah AddStaticVehicle(506,1657.1599,2834.9045,10.5248,180.2147,-1,-1); // super gt AddStaticVehicle(477,1466.5758,2753.7979,10.4992,209.5615,-1,-1); // zr 900 AddStaticVehicle(581,1465.6140,2790.7737,10.2690,159.7641,-1,-1); // bf AddStaticVehicle(476,307.9546,2048.8208,18.3530,181.7711,-1,-1); // rustler at area69 AddStaticVehicle(536,2398.9226,1668.1881,10.5580,0.6750,-1,-1); // blade AddStaticVehicle(467,2476.1091,1658.6604,10.5603,180.1424,-1,-1); // oceanic AddStaticVehicle(581,2442.8555,1628.7191,10.4118,183.0274,-1,-1); // bf AddStaticVehicle(480,2489.2803,1533.6500,10.5194,231.5535,-1,-1); // comet AddStaticVehicle(437,2791.5547,1292.5978,10.8833,181.3056,-1,-1); // coach AddStaticVehicle(437,2778.6240,1292.4509,10.8833,180.6206,-1,-1); // coach 2 AddStaticVehicle(437,2767.4197,1281.9526,10.8834,269.4123,-1,-1); // coach 3 AddStaticVehicle(437,2767.3455,1268.8033,10.8833,270.8672,-1,-1); // coach 4 AddStaticVehicle(420,2833.4297,1270.4996,10.5562,359.9856,6,6); // taxi 1 AddStaticVehicle(420,2832.8860,1286.2000,10.5549,2.0574,6,6); // taxi 2 AddStaticVehicle(420,2833.0613,1300.8240,10.5555,358.9271,6,6); // taxi 3 AddStaticVehicle(409,2809.3279,1361.5496,10.5500,180.8881,1,1); // limo 1 AddStaticVehicle(409,2809.4084,1337.0244,10.5500,180.2314,1,1); // limo 2 AddStaticVehicle(477,2393.5105,990.7562,10.5747,0.9780,-1,-1); // zr AddStaticVehicle(451,2460.3967,921.8838,10.5269,270.1442,-1,-1); // turis AddStaticVehicle(541,2132.6008,1012.9296,10.4452,90.2977,-1,-1); // bullet AddStaticVehicle(455,2203.6519,936.2454,11.2569,271.5395,-1,-1); // flat truck AddStaticVehicle(409,2077.4993,1684.2461,10.5416,358.5013,1,1); // stretch AddStaticVehicle(506,2103.8567,2042.8884,10.5247,90.4338,-1,-1); // super gt AddStaticVehicle(415,1885.3099,2242.7969,10.5924,358.1715,-1,-1); // cheetah AddStaticVehicle(535,2103.8303,2082.4026,10.5847,89.5712,-1,-1); // slam van AddStaticVehicle(445,2089.1226,2064.9011,10.8043,179.6315,-1,-1); // admiral AddStaticVehicle(438,2052.4443,1933.9451,12.0634,175.4399,6,6); // cabbie AddStaticVehicle(438,2051.7095,1911.6934,12.1857,180.3970,6,6); // cabbie 2 AddStaticVehicle(451,1687.7078,2245.4590,10.5273,0.8920,-1,-1); // turismo AddStaticVehicle(442,2491.1064,910.4023,10.6509,87.1742,0,0); // romero AddStaticVehicle(419,2171.6128,2000.5649,10.6178,270.4590,-1,-1); // car 1 AddStaticVehicle(411,2187.1741,1979.2195,10.5474,89.4430,-1,-1); // inf AddStaticVehicle(602,2120.0161,1408.9349,10.6191,359.2862,-1,-1); // alpha AddStaticVehicle(516,1385.9606,1052.3046,10.6545,271.9412,-1,-1); // car 2 AddStaticVehicle(461,2207.3379,1285.5494,10.3883,87.5371,-1,-1); // bike AddStaticVehicle(445,2443.0742,1123.4725,10.6953,89.6637,-1,-1); // cityhall car AddStaticVehicle(439,2603.3843,1792.6846,10.7156,89.6224,-1,-1); // stallion AddStaticVehicle(475,2598.9827,1681.4530,10.6254,270.0880,-1,-1); // sabre AddStaticVehicle(540,2541.1873,1275.2072,10.6829,359.7017,-1,-1); // vicent AddStaticVehicle(444,2352.4407,1447.2004,43.1872,89.8660,-1,-1); // monster truck AddStaticVehicle(541,2303.5291,1429.9067,42.4456,268.4243,-1,-1); // bullet AddStaticVehicle(558,983.3221,1139.7059,10.4528,273.0201,-1,-1); // uranus AddStaticVehicle(446,1638.2451,587.8660,-0.4942,183.6537,0,1); // boat 1 AddStaticVehicle(446,1617.6987,587.7490,-0.5431,178.3165,0,1); // boat 2 AddStaticVehicle(575,2442.2634,2548.3528,21.4771,179.5980,-1,-1); // broadway AddStaticVehicle(402,2340.2192,2100.5422,10.5034,358.3581,-1,-1); // buffalo AddStaticVehicle(524,2468.2302,1920.4352,10.6954,0.8277,-1,-1); // cement truck AddStaticVehicle(475,2626.4709,2008.9550,10.6165,358.9038,-1,-1); // sabre AddStaticVehicle(506,2784.3606,2435.8330,10.5246,135.7548,-1,-1); // super gt AddStaticVehicle(603,2867.3538,2349.3999,10.6589,89.4668,-1,-1); // phoniex AddStaticVehicle(482,2131.2002,2728.0071,10.9374,359.9969,-1,-1); // burrito AddStaticVehicle(408,2367.7322,2755.6030,11.3702,180.0362,-1,-1); // trashmaster AddStaticVehicle(426,-176.5759,1219.8658,19.4847,270.5359,-1,-1); // premier AddStaticVehicle(439,6.0997,1225.4216,19.2440,91.9760,-1,-1); // stallion AddStaticVehicle(554,-83.1943,1077.4291,19.8291,359.8952,-1,-1); // yoseman AddStaticVehicle(416,-296.4052,1049.4409,19.7386,358.9655,-1,-1); // ambulance AddStaticVehicle(521,649.9659,1713.6509,6.5588,39.1630,-1,-1); // fcr 900 AddStaticVehicle(562,706.7449,1947.1118,5.1974,181.4662,-1,-1); // elegy AddStaticVehicle(424,1043.4757,2131.6929,10.6014,93.1084,-1,-1); // bf injection AddStaticVehicle(486,2679.1870,846.9143,8.7095,269.2811,-1,-1); // dozer AddStaticVehicle(524,2706.0166,903.0624,11.3954,181.0573,-1,-1); // cement truck AddStaticVehicle(429,2569.1089,744.3083,10.5000,182.4782,-1,-1); // banshee AddStaticVehicle(484,2282.5850,536.0814,0.2611,179.6368,-1,-1); // boat 1 AddStaticVehicle(493,2304.0027,536.3016,0.0074,187.2009,-1,-1); // jetmax AddStaticVehicle(515,2810.4089,897.4940,11.7716,0.8708,-1,-1); // road train AddStaticVehicle(435,2837.6782,896.5282,14.8078,0.8708,-1,-1); // trailer ///////////////////////////////CHECKPOINTS///////////////////////////////// CreateCheckpoint(GLOBAL_OWNER_ID, DRAG_ROB, 1940.3191,1017.8076,992.4688); SetCheckpointInterior(DRAG_ROB, 10); CreateCheckpoint(GLOBAL_OWNER_ID, CLUCK_ROB, 371.3485,-6.6498,1001.8589); SetCheckpointInterior(CLUCK_ROB, 9); CreateCheckpoint(GLOBAL_OWNER_ID, STRIP_ROB, 1215.1404,-12.7778,1000.9219); SetCheckpointInterior(STRIP_ROB, 2); CreateCheckpoint(GLOBAL_OWNER_ID, BURGER_ROB, 378.5348,-72.0883,1001.5151); SetCheckpointInterior(BURGER_ROB, 10); CreateCheckpoint(GLOBAL_OWNER_ID, AMMU_ROB, 298.4149,-80.4314,1001.5156); SetCheckpointInterior(AMMU_ROB, 4); CreateCheckpoint(GLOBAL_OWNER_ID, BURGER_ROB2, 378.4193,-68.5915,1001.5151); SetCheckpointInterior(BURGER_ROB2, 10); CreateCheckpoint(GLOBAL_OWNER_ID, SEX_ROB, -105.5634,-10.9637,1000.7188); SetCheckpointInterior(SEX_ROB, 3); CreateCheckpoint(GLOBAL_OWNER_ID, HOSPITAL, 1607.3618,1820.2750,10.8280); CreateCheckpoint(GLOBAL_OWNER_ID, BINCO_ROB, 207.5931,-101.3633,1005.2578); SetCheckpointInterior(BINCO_ROB, 15); CreateCheckpoint(GLOBAL_OWNER_ID, SAND_ROB, 1139.1024,-4.0604,1000.6719); SetCheckpointInterior(SAND_ROB, 12); CreateCheckpoint(GLOBAL_OWNER_ID, PIZZA_ROB, 376.5511,-115.2914,1001.4922); SetCheckpointInterior(PIZZA_ROB, 5); CreateCheckpoint(GLOBAL_OWNER_ID, AIR_CHECK, 1685.3970,1448.0449,10.7700); SetCheckpointInterior(AIR_CHECK, 0); CreateCheckpoint(GLOBAL_OWNER_ID, CALG_ROB, 2152.6143,1599.7460,1006.1732); SetCheckpointInterior(CALG_ROB, 1); CreateCheckpoint(GLOBAL_OWNER_ID, BAR_ROB, 498.6798,-75.7964,998.7578); SetCheckpointInterior(BAR_ROB, 11); StartCheckpointSeeking(); return 1; } //////////////////////////////PUBLIC//////////////////////////////////////// public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; SetPlayerTeamFromClass(playerid, classid); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 748.4725,1437.231,1102.9531); SetPlayerFacingAngle(playerid, 360.0); SetPlayerCameraPos(playerid, 748.0725,1440.4751,1103.6531); SetPlayerCameraLookAt(playerid, 748.4725,1437.231,1103.0531); PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0); if(FirstPress[playerid] == true) { FirstPress[playerid] = false; ApplyAnimation(playerid,"DANCING","null",0.0,0,0,0,0,0); ApplyAnimation(playerid,"DANCING","DANCE_LOOP",4.1,1,1,1,1,1); } ApplyAnimation(playerid,"DANCING","DANCE_LOOP",4.1,1,1,1,0,0); return 1; } public SetPlayerTeamFromClass(playerid, classid) { switch(classid) { case 0..15: { gTeam[playerid] = TEAM_COPS; GameTextForPlayer(playerid, "~p~Cops", 2000, 6); } case 16..44: { gTeam[playerid] = TEAM_CIVILIAN; GameTextForPlayer(playerid, "~p~Civilians", 2000, 6); } } } public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(0x8739C6FF, RandomMSG[randMSG]); return 1; } public OnPlayerUpdate(playerid) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(GetPlayerWantedLevel(playerid) == 0) { SetPlayerColor(playerid,WHITE); } else if(GetPlayerWantedLevel(playerid) >= 1 && GetPlayerWantedLevel(playerid) <= 3) { SetPlayerColor(playerid,0xFFFF00FF); } else if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= { SetPlayerColor(playerid,0xFF8000FF); } else if(GetPlayerWantedLevel(playerid) >= 9) { SetPlayerColor(playerid,0xFF0000FF); } } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { new string[128], sName[MAX_PLAYER_NAME]; GetPlayerName(playerid, sName, MAX_PLAYER_NAME); if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar1) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (FBI Rancher).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar11) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (FBI Rancher).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar2) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (Elegant).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar22) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (Elegant).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar222) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (Elegant).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar3) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (LSPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar4) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (HPV1000).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar44) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (HPV1000).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar444) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (HPV1000).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar5) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Enforcer).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar55) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Enforcer).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar6) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string),"(DISPATCH) %s has stole a police vehicle (SFPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar7) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (LVPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar77) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (LVPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar777) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (LVPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar7777) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (LVPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar77777) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (LVPD Police Car).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar9) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Police Maverick).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar99) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Police Maverick).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar8) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Predator).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == copcar88) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(gTeam[playerid] == TEAM_CIVILIAN) { format(string,sizeof(string), "(DISPATCH) %s has stole a police vehicle (Predator).",sName); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); SendClientMessage(playerid, ORANGE, "(CRIME) You have stole a Police Vehicle, Wanted Level Increased."); } } } } return 1; } public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid, Textdraw2); if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "Taxi_Driver", true)) { SetPlayerColor(playerid, 0x00FF00FF); PutPlayerInVehicle(playerid, MyNPC, 0); SetPlayerSkin(playerid, 255); } if(!strcmp(npcname, "PD_Guard", true)) { SetPlayerColor(playerid, 0x0000FFFF); } return 1; } playerspawned[playerid] = true; if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4); zoneupdates[playerid] = 1; player_zone[playerid] = -1; SetPlayerHealth(playerid, 100); if(gTeam[playerid] == TEAM_COPS) { SetPlayerWantedLevel(playerid, 0); SendClientMessage(playerid, 0xFF8000FF, "You are a cop, your job is to keep away the criminals from Las Venturas."); SendClientMessage(playerid, 0xFF8000FF, "Use /cmds and read /rules before playing. use /cm for cop radio."); GivePlayerWeapon(playerid, 32, 400); SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid, 0); PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); GivePlayerMoney(playerid, 5000); new rand = random(sizeof(copPlayerSpawns)); SetPlayerPos(playerid, copPlayerSpawns[rand][0], copPlayerSpawns[rand][1], copPlayerSpawns[rand][2]); SetPlayerFacingAngle(playerid, copPlayerSpawns[rand][3]); SetPlayerArmour(playerid, 100); } if(gTeam[playerid] == TEAM_CIVILIAN) { SendClientMessage(playerid, 0xFF8000FF, "You are a robber, your job is to rob stores and casinos."); SendClientMessage(playerid, 0xFF8000FF, "Don't get caught by the police, they will send you to jail."); GivePlayerWeapon(playerid, 26, 200); SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid,0); PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); GivePlayerMoney(playerid, 5000); new rand = random(sizeof(civilianPlayerSpawns)); SetPlayerPos(playerid, civilianPlayerSpawns[rand][0], civilianPlayerSpawns[rand][1], civilianPlayerSpawns[rand][2]); SetPlayerFacingAngle(playerid, civilianPlayerSpawns[rand][3]); } if(unfair[playerid] == true) { unfair[playerid] = false; GameTextForPlayer(playerid, "~y~unfair ~w~death",3000,3); SendClientMessage(playerid, 0xFF8000FF, "Unfair death. Continuing current life."); } if(gojail1[playerid] == true) { Jailed[playerid] = true; JailTime[playerid] = 60; JailTimeServed[playerid] = 0; SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 198.1103,175.2664,1003.0234); ResetPlayerWeapons(playerid); SendClientMessage(playerid,ORANGE,"Welcome to jail, try /escape if your looking to get out of here."); SendClientMessage(playerid,0xFFCC00FF,"You have been send 1 minute to jail for your criminal acts."); } if(gojail2[playerid] == true) { Jailed[playerid] = true; JailTime[playerid] = 90; JailTimeServed[playerid] = 0; SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 198.1103,175.2664,1003.0234); ResetPlayerWeapons(playerid); SendClientMessage(playerid,ORANGE,"Welcome to jail, try /escape if your looking to get out of here."); SendClientMessage(playerid,0xFFCC00FF,"You have been send 1 and a half minute to jail for your criminal acts."); } return 1; } public SetPlayerToTeamColor(playerid) { if(gTeam[playerid] == TEAM_COPS) { SetPlayerColor(playerid, COLOR_COPS); } else if(gTeam[playerid] == TEAM_CIVILIAN) { SetPlayerColor(playerid, COLOR_CIVILIAN); } } public OnPlayerDeath(playerid, killerid, reason) { new string[128], gunname[32], fName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME]; if(killerid == INVALID_PLAYER_ID) { if(suicide[playerid] == false) { if(newlife[playerid] == false) { if(rapetodeath[playerid] == false) { if ((reason == 255) || (killerid == 255)) { GetPlayerName(playerid,sName,MAX_PLAYER_NAME); GetPlayerName(playerid,sName,MAX_PLAYER_NAME); format(string,sizeof(string),"%s [%i] Has Died.",sName,playerid); SendClientMessageToAll(0xBB0000FF,string); GivePlayerMoney(playerid,-10000); } } else { rapetodeath[playerid] = false; } } else { GetPlayerName(playerid,sName,MAX_PLAYER_NAME); format(string, sizeof(string), "%s [%i] Has used the command /newlife to pick a new skin.",sName,playerid); SendClientMessageToAll(PINK,string); newlife[playerid] = false; } } else { GetPlayerName(playerid,sName,MAX_PLAYER_NAME); format(string, sizeof(string), "%s [%i] Has used the command /kill to suicide.",sName,playerid); SendClientMessageToAll(PINK,string); suicide[playerid] = false; } } else { if(gTeam[playerid] == TEAM_CIVILIAN && gTeam[killerid] == TEAM_COPS) { if(GetPlayerWantedLevel(playerid) == 0) { SetPlayerScore(killerid, GetPlayerScore(killerid)-1); SendClientMessage(killerid,RED,"Dont kill innocent people!!"); SendClientMessage(killerid,BLUE,"Dont kill innocent people!!"); GivePlayerMoney(killerid, -10000); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); unfair[playerid] = true; } if(GetPlayerWantedLevel(playerid) <= 3 && GetPlayerWantedLevel(playerid) >= 1) { SendClientMessage(killerid,RED,"Don't kill innocent suspects, Ticket them!"); SetPlayerScore(killerid, GetPlayerScore(killerid)-1); GivePlayerMoney(killerid, -5000); SendClientMessage(killerid,BLUE,"Don't kill innocent suspects, Ticket them!"); } if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= { SetPlayerScore(killerid, GetPlayerScore(killerid)+1); GetPlayerName(playerid,sName,18); GetPlayerName(killerid,fName,18); format(string, sizeof(string), "Suspect %s [%i] has been taken down by officer %s [%i]",sName,playerid,fName,killerid); SendClientMessageToAll(0x80FF00FF,string); SendClientMessage(killerid,0xFFCC00FF,"Good job! you have killed a warrant criminal."); GivePlayerMoney(killerid, 10000); gojail1[playerid] = true; } if(GetPlayerWantedLevel(playerid) >= 9) { SetPlayerScore(killerid, GetPlayerScore(killerid)+1); GetPlayerName(playerid,sName,18); GetPlayerName(killerid,fName,18); format(string, sizeof(string), "Most wanted %s [%i] has been taken down by officer %s [%i]",sName,playerid,fName,killerid); SendClientMessageToAll(0x80FF00FF,string); SendClientMessage(killerid,0xFFCC00FF,"Excellent job! you have killed a most wanted criminal."); GivePlayerMoney(killerid, 10000); gojail2[playerid] = true; } } if(gTeam[playerid] == TEAM_CIVILIAN && gTeam[killerid] == TEAM_CIVILIAN || gTeam[playerid] == TEAM_COPS && gTeam[killerid] == TEAM_CIVILIAN) { if(rapetodeath[playerid] == true) { } else { GetWeaponName(reason,gunname,sizeof(gunname)); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(killerid,fName,MAX_PLAYER_NAME); format(string,sizeof(string),"%s [%i] Has Been Killed by %s [%i] with %s.",sName,playerid,fName,killerid,gunname); SendClientMessageToAll(0xBB0000FF,string); format(string,sizeof(string),"(MURDER) You Have Killed %s [%i]. The cops will be searching for you.",sName,playerid); SendClientMessage(killerid, ORANGE,string); SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+4); format(string,sizeof(string),"(MUDRDER) %s [%i] Has Been Murdered by %s [%i] with %s",sName,playerid,fName,killerid,gunname); CopRadio(BLUE, string); GivePlayerMoney(playerid,-10000); } } if(gTeam[playerid] == TEAM_COPS && gTeam[killerid] == TEAM_COPS) { SetPlayerScore(killerid, GetPlayerScore(killerid)-1); SendClientMessage(killerid,0xFF0000FF,"Don't kill your team mates!!"); SendClientMessage(killerid,BLUE,"Don't kill your team mates!!"); GivePlayerMoney(killerid,-10000); unfair[playerid] = true; } } if(gojail1[playerid] == true && GetPlayerWantedLevel(playerid) == 0) { gojail1[playerid] = false; } if(gojail2[playerid] == true && GetPlayerWantedLevel(playerid) == 0) { gojail2[playerid] = false; } playerspawned[playerid] = false; Jailed[playerid] = false; isafk[playerid] = false; canrobdrag[playerid] = false; canrobsand[playerid] = false; canrobcalg[playerid] = false; canrobburger[playerid] = false; canrobstrip[playerid] = false; canrobcluck[playerid] = false; canrobammu[playerid] = false; canrobbinco[playerid] = false; canrobpizza[playerid] = false; canrobburger2[playerid] = false; KillTimer(timer1); KillTimer(timer2); SendDeathMessage(killerid,playerid,reason); SetPlayerScore(playerid, GetPlayerScore(playerid)-1); SetPlayerWantedLevel(playerid, 0); GameTextForPlayer(playerid, "~r~Wasted", 3500, 2); return 1; } public OnPlayerLeaveCheckpoint(playerid) { VerifyCheckpointe(playerid); return 1; } public OnPlayerEnterCheckpoint(playerid) { VerifyCheckpoint(playerid); return 1; } public OnCheckpointEXIT(playerid, checkpointid) { switch(checkpointid) { case DRAG_ROB: { if(canrobdrag[playerid] == true) { canrobdrag[playerid] = false; if(robdrag[playerid] == true) { robdrag[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer2); } } } case SAND_ROB: { if(canrobsand[playerid] == true) { canrobsand[playerid] = false; if(robsand[playerid] == true) { robsand[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer2); } } } case PIZZA_ROB: { if(canrobpizza[playerid] == true) { canrobpizza[playerid] = false; if(robpizza[playerid] == true) { robpizza[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case SEX_ROB: { if(canrobsex[playerid] == true) { canrobsex[playerid] = false; if(robsex[playerid] == true) { robsex[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case BURGER_ROB: { if(canrobburger[playerid] == true) { canrobburger[playerid] = false; if(robburger[playerid] == true) { robburger[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case BURGER_ROB2: { if(canrobburger2[playerid] == true) { canrobburger2[playerid] = false; if(robburger2[playerid] == true) { robburger2[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case STRIP_ROB: { if(canrobstrip[playerid] == true) { canrobstrip[playerid] = false; if(robstrip[playerid] == true) { robstrip[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case CLUCK_ROB: { if(canrobcluck[playerid] == true) { canrobcluck[playerid] = false; if(robcluck[playerid] == true) { robcluck[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case AMMU_ROB: { if(canrobammu[playerid] == true) { canrobammu[playerid] = false; if(robammu[playerid] == true) { robammu[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed!",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case BINCO_ROB: { if(canrobbinco[playerid] == true) { canrobbinco[playerid] = false; if(robbinco[playerid] == true) { robbinco[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case HOSPITAL: { if(canbehealed[playerid] == true) { canbehealed[playerid] = false; } } case AIR_CHECK: { if(canbeair[playerid] == true) { canbeair[playerid] = false; } } case BAR_ROB: { if(canrobbar[playerid] == true) { canrobbar[playerid] = false; if(robbar[playerid] == true) { robbar[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer1); } } } case CALG_ROB: { if(canrobcalg[playerid] == true) { canrobcalg[playerid] = false; if(robcalg[playerid] == true) { robcalg[playerid] = false; GameTextForPlayer(playerid, "~y~Robbery failed",4000,3); SendClientMessage(playerid, 0xFF641AFF, "You exited the checkpoint! Robbery failed!"); KillTimer(timer2); } } } } return 1; } public OnCheckpointEnter(playerid, checkpointid) { switch(checkpointid) { case DRAG_ROB: { canrobdrag[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robdrag",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robdrag to start robbing the 4 Dragon Casino."); } } case SAND_ROB: { canrobsand[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robsand",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robsand to start robbing the Redsands Casino."); } } case BURGER_ROB: { canrobburger[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robburger",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robburger to start a robbery."); } } case AMMU_ROB: { canrobammu[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robammu",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robammu to start a robbery."); } } case SEX_ROB: { canrobsex[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robsex",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robsex to start a robbery."); } } case PIZZA_ROB: { canrobpizza[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robpizza",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robpizza to start a robbery."); } } case CLUCK_ROB: { canrobcluck[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robcluck",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robcluck to start a robbery."); } } case STRIP_ROB: { canrobstrip[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robstrip",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robstrip to start a robbery."); } } case BURGER_ROB2: { canrobburger2[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robburger2",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robburger2 to start a robbery."); } } case BINCO_ROB: { canrobbinco[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robbinco",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robbinco to start a robbery."); } } case HOSPITAL: { canbehealed[playerid] = true; SendClientMessage(playerid, 0x00FFFFFF, "Welcome to the Hospital!"); SendClientMessage(playerid, 0x00FFFFFF, "Type /heal to heal yourself for $4000!"); } case AIR_CHECK: { canbeair[playerid] = true; SendClientMessage(playerid, 0x00FFFFFF, "Welcome to the Airport!"); SendClientMessage(playerid, 0x00FFFFFF, "Type /skydive to skydive for $10000!"); } case CALG_ROB: { canrobcalg[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robcalg",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robcalg to start robbing the Caligulas Casino."); } } case BAR_ROB: { canrobbar[playerid] = true; if(gTeam[playerid] == TEAM_CIVILIAN) { GameTextForPlayer(playerid, "~r~/robbar",3000,3); SendClientMessage(playerid, 0x00FFFFFF, "Type /robbar to start robbing the Liquor store."); } } } return 1; } public OnPlayerDisconnect(playerid, reason) { KillTimer(timer2); KillTimer(timer1); return 1; } public OnPlayerConnect(playerid) { SetPlayerColor(playerid, COLOR_DEAD); SetPlayerMapIcon(playerid,12,1685.3970,1448.0449,10.7700,5,0); //airport SetPlayerMapIcon(playerid,11,2207.1448,1674.9552,20.3906,25,0); // caligulas SetPlayerMapIcon(playerid,10,2013.7827,1007.5895,39.0911,43,0); // four dragons SetPlayerMapIcon(playerid,9,1661.2365,2241.8606,18.4302,44,0); // redsands SetPlayerMapIcon(playerid,8,2415.6001,1123.7019,10.8203,30,0); // cityhall SetPlayerMapIcon(playerid,7,1607.4890,1820.8252,10.8280,22,0); // hospital SetPlayerMapIcon(playerid,6,2289.5242,2437.1992,46.9775,30,0); // LVPD TextDrawShowForPlayer(playerid, Textdraw2); Jailed[playerid] = false; canarrestagain[playerid] = true; playerspawned[playerid] = false; escaped[playerid] = false; waitrobstore[playerid] = false; isafk[playerid] = false; canrobciv[playerid] = true; canesc[playerid] = true; canrapeciv[playerid] = true; canbeair[playerid] = false; canbehealed[playerid] = false; canrobdrag[playerid] = false; canrobsand[playerid] = false; canrobburger[playerid] = false; canrobstrip[playerid] = false; canrobcluck[playerid] = false; canrobammu[playerid] = false; canrobbinco[playerid] = false; canrobpizza[playerid] = false; canrobburger2[playerid] = false; SendClientMessage(playerid, 0xFF8000FF, "Welcome to Crazymax Cops and Robbers!!"); SendClientMessage(playerid, 0x0000FFFF, "This is Not a Deathmatch Server, use /pc, /rules and /cmds !!"); return 1; } public arrested(id) { if(GetPlayerWantedLevel(id) >= 4 && GetPlayerWantedLevel(id) <= { SetPlayerWantedLevel(id, 0); Jailed[id] = true; JailTime[id] = 60; JailTimeServed[id] = 0; SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE); SetPlayerInterior(id, 3); ResetPlayerWeapons(id); SetPlayerPos(id, 198.1103,175.2664,1003.0234); SendClientMessage(id,ORANGE, "Welcome to jail. Use /escape to escape the jail."); SendClientMessage(id,0xFFCC00FF,"You have been send 1 minute to jail for your criminal acts."); } if(GetPlayerWantedLevel(id) >= 9) { SetPlayerWantedLevel(id, 0); Jailed[id] = true; JailTime[id] = 90; JailTimeServed[id] = 0; SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE); SetPlayerInterior(id, 3); ResetPlayerWeapons(id); SetPlayerPos(id, 198.1103,175.2664,1003.0234); SendClientMessage(id,ORANGE, "Welcome to jail. Use /escape to escape the jail."); SendClientMessage(id,0xFFCC00FF,"You have been send 1 and a half minute to jail for your criminal acts."); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new current_zone; current_zone = player_zone[playerid]; new tmp[256]; new Message[256]; new gMessage[256]; new pName[MAX_PLAYER_NAME+1]; new iName[MAX_PLAYER_NAME+1]; new string[128]; new idx, cmd[20]; new sName[MAX_PLAYER_NAME]; new fName[MAX_PLAYER_NAME]; cmd = strtok(cmdtext, idx); if(strcmp("/pm", cmd, true) == 0) { tmp = strtok(cmdtext,idx); if(!strlen(tmp) || strlen(tmp) > 5) { SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"USAGE: /pm [id] [message]"); return 1; } new id = strval(tmp); gMessage = strrest(cmdtext,idx); if(!strlen(gMessage)) { SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"USAGE: /pm [id] [message]"); return 1; } if(!IsPlayerConnected(id)) { SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"PM Bad player ID"); return 1; } if(playerid != id) { GetPlayerName(id,iName,sizeof(iName)); GetPlayerName(playerid,pName,sizeof(pName)); format(Message,sizeof(Message),"PM To %s [%d]: %s",iName,id,gMessage); SendClientMessage(playerid,PM_INCOMING_COLOR,Message); format(Message,sizeof(Message),"PM From %s [%d]: %s",pName,playerid,gMessage); SendClientMessage(id,PM_INCOMING_COLOR,Message); PlayerPlaySound(id,1085,0.0,0.0,0.0); printf("PM: %s",Message); } else { SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"You cannot PM yourself"); } return 1; } if(strcmp(cmd, "/gc", true) == 0) { new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new giveplayerid, moneys; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, ADMINFS_MESSAGE_COLOR, "USAGE: /givecash [id] [amount]"); return 1; } giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, ADMINFS_MESSAGE_COLOR, "USAGE: /givecash [id] [amount]"); return 1; } moneys = strval(tmp); if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { GivePlayerMoney(playerid, (0 - moneys)); GivePlayerMoney(giveplayerid, moneys); format(string, sizeof(string), "You have sent %s [%d], $%d.", giveplayer,giveplayerid, moneys); SendClientMessage(playerid, YELLOW, string); format(string, sizeof(string), "You have recieved $%d from %s [%d].", moneys, sendername, playerid); SendClientMessage(giveplayerid, YELLOW, string); printf("%s [%d] has transfered %d to %s [%d]",sendername, playerid, moneys, giveplayer, giveplayerid); } else { SendClientMessage(playerid, RED, "Invalid transaction amount."); } } else { format(string, sizeof(string), "%d is not an active player.", giveplayerid); SendClientMessage(playerid, RED, string); } return 1; } if(strcmp(cmd, "/ar", true) == 0) { if(gTeam[playerid] == TEAM_COPS) { new id; tmp = strtok(cmdtext, idx); if(strlen(tmp)) { id = strval(tmp); if(IsPlayerConnected(id)) { if(Jailed[id] == false) { if(GetPlayerWantedLevel(id) >= 4) { if(GetDistanceBetweenPlayers(playerid,id) < { if(!IsPlayerInAnyVehicle(id) && !IsPlayerInAnyVehicle(playerid) || IsPlayerInAnyVehicle(id) && IsPlayerInAnyVehicle(playerid)) { if(playerspawned[playerid] == true) { if(canarrestagain[playerid] == true) { canarrestagain[playerid] = false; SetTimerEx("cantarrestagain", 2500, false, "d", id); GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3); SetTimerEx("arrested", 2500, false, "d", id); GivePlayerMoney(playerid, 10000); GetPlayerName(id,sName, MAX_PLAYER_NAME); GetPlayerName(playerid,fName, MAX_PLAYER_NAME); format(string, sizeof(string), "You have been arrested by %s [%i]",fName,playerid); SendClientMessage(id, 0x0080C0FF, string); format(string, sizeof(string), "Well Done! You have arrested Suspect %s [%i].",sName,id); SendClientMessage(playerid, 0xE4BC1BFF,string); format(string, sizeof(string), "Suspect %s [%i] has been arrested by %s [%i].",sName,id,fName,playerid); SendClientMessageToAll(0x80FF00FF,string); format(string, sizeof(string), "~b~Arrested by %s",fName,playerid); GameTextForPlayer(id, string, 2500, 3); SetPlayerScore(id, GetPlayerScore(id)-1); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPlayerSpecialAction(id, SPECIAL_ACTION_HANDSUP); } else { SendClientMessage(playerid, 0xFF0000AA, "You have already arrested that suspect."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You are dead, you cannot arrest a suspect."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You cannot arrest a player inside a vehicle."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not close enough to arrest!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not warrant!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "This player is already in jail!"); } } else { SendClientMessage(playerid, RED, "Player Not Found."); } } else { SendClientMessage(playerid, 0xFF0000AA, "USAGE: /ar [id]"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Law enforcement agents can use this command!"); } return 1; } if(strcmp(cmdtext,"/loc ",true,5) == 0 && strlen(cmdtext) > 5) { new target; target = strval(cmdtext[5]); if(!IsNumeric(cmdtext[5])) { SendClientMessage(playerid, RED, "USAGE: /loc [id] ID Must be a number"); return 1; } if(GetPlayerColor(target) == COLOR_DEAD) { SendClientMessage(playerid,RED,"That player is dead"); return 1; } current_zone = player_zone[target]; if(current_zone != -1 && IsPlayerConnected(target)) { new playername[MAX_PLAYER_NAME],message2[256]; GetPlayerName(target,playername,MAX_PLAYER_NAME); format(message2,sizeof(message2),"%s [%d]'s current location: %s",playername,target,zones[current_zone][zone_name]); SendClientMessage(playerid,0x00C7FFAA,message2); } else { SendClientMessage(playerid,RED,"Invalid Player ID"); } return 1; } else if(strcmp(cmdtext,"/loc",true,4) == 0 && strlen(cmdtext) <= 4) { SendClientMessage(playerid,RED,"USAGE: /loc [id]"); return 1; } if(strcmp(cmd,"/cw",true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, RED, "You not in any vehicle. You cannot use this command"); return 1; } if(strlen(cmdtext) <= 4) { SendClientMessage(playerid, RED,"USAGE: /cw (msg)"); return 1; } new cwhisperid = GetPlayerVehicleID(playerid); new output[150]; new pname[24]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,3,strlen(cmdtext)); format(string, sizeof(string), "(CAR WHISPER): %s [%d] %s",pname,playerid,output); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInAnyVehicle(i)) { if(GetPlayerVehicleID(i) == cwhisperid) { format(string, sizeof(string), "(CAR WHISPER): %s [%d] %s",pname,playerid,output); SendClientMessage(i, YELLOW,string); } } } return 1; } if(strcmp(cmd,"/w",true)==0) { if(strlen(cmdtext) <= 3) { SendClientMessage(playerid, RED,"USAGE: /w (msg)"); return 1; } new output[150]; new pname[24]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,2,strlen(cmdtext)); format(string, sizeof(string), "(WHISPER): %s [%d] %s",pname,playerid,output); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 20) { format(string, sizeof(string), "(WHISPER): %s [%d] %s",pname,playerid,output); SendClientMessage(i, YELLOW,string); } } return 1; } if(strcmp(cmd, "/fine", true) == 0) { if(gTeam[playerid] == TEAM_COPS) { new id; tmp = strtok(cmdtext, idx); if(strlen(tmp)) { id = strval(tmp); if(IsPlayerConnected(id)) { if(Jailed[id] == false) { if(GetPlayerWantedLevel(id) >= 1 && GetPlayerWantedLevel(id) <= 3) { if(GetDistanceBetweenPlayers(playerid,id) < 15) { if(playerspawned[playerid] == true) { GetPlayerName(id,sName, MAX_PLAYER_NAME); GetPlayerName(playerid,fName, MAX_PLAYER_NAME); format(string, sizeof(string), "You have gave a ticket to Suspect %s [%i]",sName,id); SendClientMessage(playerid, 0xE4BC1BFF,string); format(string, sizeof(string), "Officer %s [%i] have fined you $3000. You have paid the ticket.",fName,playerid); SendClientMessage(id, 0xE4BC1BFF,string); format(string, sizeof(string), "Suspect %s [%i] has been fined by %s [%i].",sName,id,fName,playerid); SendClientMessageToAll(0x80FF00FF,string); SetPlayerWantedLevel(id, 0); GivePlayerMoney(id, -3000); GivePlayerMoney(playerid, 3000); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); } else { SendClientMessage(playerid, 0xFF0000AA, "You are dead, you cannot arrest a suspect."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not close enough to ticket!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not ticketable!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "This player is in jail, you cannot ticket him."); } } else { SendClientMessage(playerid, RED, "Player Not Found."); } } else { SendClientMessage(playerid, 0xFF0000AA, "USAGE: /tk [id]"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Law enforcement agents can use this command!"); } return 1; } if(strcmp(cmd, "/escape", true) == 0) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(Jailed[playerid] == true) { if(canesc[playerid] == true) { if(escaped[playerid] == false) { GetPlayerName(playerid, sName, MAX_PLAYER_NAME); new escrand = random(5); if(escrand == 1) { escaped[playerid] = true; SetPlayerPos(playerid, 2308.1082,2453.7336,10.8203); SetPlayerWantedLevel(playerid, 9); Jailed[playerid] = false; SetPlayerInterior(playerid, 0); format(string,sizeof(string),"(DISPATCH) %s has escaped from jail. (MOST WANTED)",sName); CopRadio(BLUE, string); SendClientMessage(playerid, ORANGE, "(ESCAPE) Escape succesful! Your Most Wanted now."); } else if(escrand == 2) { escaped[playerid] = true; SetPlayerWantedLevel(playerid, 9); SetPlayerPos(playerid, 2355.8311,2490.1804,10.8203); Jailed[playerid] = false; SetPlayerInterior(playerid, 0); format(string,sizeof(string),"(DISPATCH) %s has escaped from jail. (MOST WANTED)",sName); CopRadio(BLUE, string); SendClientMessage(playerid, ORANGE, "(ESCAPE) Escape succesful! Your Most Wanted now."); } else if(escrand == 3 || escrand == 4 || escrand == 5) { canesc[playerid] = false; SetTimerEx("waitesc", 15000, false, "d", playerid); format(string,sizeof(string),"(DISPATCH) %s has attempted to escape from jail.",sName); CopRadio(BLUE, string); SendClientMessage(playerid, ORANGE, "(ESCAPE) The Police have noticed you escape, try again later."); } } else { SendClientMessage(playerid, RED, "You have escape already escaped or you are chained to your cell."); } } else { SendClientMessage(playerid, RED, "Wait before trying to escape again."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You are not in jail to escape."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Civilians can use this command!"); } return 1; } if(strcmp(cmd, "/rob", true) == 0) { if(gTeam[playerid] == TEAM_CIVILIAN) { new id; tmp = strtok(cmdtext, idx); if(strlen(tmp)) { id = strval(tmp); if(IsPlayerConnected(id)) { if(playerid != id) { if(Jailed[id] == false) { if(GetDistanceBetweenPlayers(playerid,id) < { if(!IsPlayerInAnyVehicle(id) && !IsPlayerInAnyVehicle(playerid) || IsPlayerInAnyVehicle(id) && IsPlayerInAnyVehicle(playerid)) { if(canrobciv[playerid] == true) { if(gTeam[id] == TEAM_CIVILIAN) { if(Jailed[id] == false && Jailed[playerid] == true) { SendClientMessage(playerid, 0xFF0000AA, "You can't rob a person from outside the jail."); } else { canrobciv[playerid] = false; SetTimerEx("waitrobciv", 15000, false, "i", playerid); new randMoney = random(15000); GivePlayerMoney(playerid, randMoney); GivePlayerMoney(id, -randMoney); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(id,fName, MAX_PLAYER_NAME); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2); format(string, sizeof(string), "(CRIME) You have robbed $%i from %s [%i].",randMoney,fName,id); SendClientMessage(playerid, 0xE4BC1BFF, string); format(string, sizeof(string), "You have been robbed $%i by %s [%i]",randMoney,sName,playerid); SendClientMessage(id, 0xFDBE00FF, string); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); format(string, sizeof(string), "(DISPATCH) Suspect %s [%i] has robbed %s [%i] at location %s.",sName,playerid,fName,id,zones[current_zone][zone_name]); CopRadio(BLUE, string); CopRadio(BLUE, "All units in the area, please respond."); } } if(gTeam[id] == TEAM_COPS) { if(Jailed[id] == false && Jailed[playerid] == true) { SendClientMessage(playerid, 0xFF0000AA, "You can't rob a person from outside the jail."); } else { canrobciv[playerid] = false; SetTimerEx("waitrobciv", 15000, false, "i", playerid); new randMoney = random(15000); GivePlayerMoney(playerid, randMoney); GivePlayerMoney(id, -randMoney); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(id,fName, MAX_PLAYER_NAME); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); format(string, sizeof(string), "(CRIME) You have robbed $%i from officer %s [%i].",randMoney,fName,id); SendClientMessage(playerid, 0xE4BC1BFF, string); format(string, sizeof(string), "You have been robbed $%i by %s [%i].",randMoney,sName,playerid); SendClientMessage(id, 0xFDBE00FF, string); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); format(string, sizeof(string), "(DISPATCH) Suspect %s [%i] has robbed officer %s [%i] at location %s.",sName,playerid,fName,id,zones[current_zone][zone_name]); CopRadio(BLUE, string); CopRadio(BLUE, "All units in the area, please respond."); } } } else { SendClientMessage(playerid, RED, "Wait before robbing someone again."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You cannot rob a person from outside the vehicle."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not close enough to rob."); } } else { SendClientMessage(playerid, 0xFF0000AA, "This player is in jail you cannot rob him."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You cannot rob yourself."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player not found."); } } else { SendClientMessage(playerid, 0xFF0000AA, "USAGE: /rob [id]"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Civilians can rob other people!"); } return 1; } if(strcmp(cmd, "/rape", true) == 0) { new Float:aHealth; if(gTeam[playerid] == TEAM_CIVILIAN) { new id; tmp = strtok(cmdtext, idx); if(strlen(tmp)) { id = strval(tmp); if(IsPlayerConnected(id)) { if(playerid != id) { if(GetDistanceBetweenPlayers(playerid,id) < { if(!IsPlayerInAnyVehicle(id) && !IsPlayerInAnyVehicle(playerid) || IsPlayerInAnyVehicle(id) && IsPlayerInAnyVehicle(playerid)) { if(canrapeciv[playerid] == true) { if(playerspawned[playerid] == true && playerspawned[id] == true) { if(gTeam[id] == TEAM_CIVILIAN) { if(Jailed[id] == false && Jailed[playerid] == true) { SendClientMessage(playerid, 0xFF0000AA, "You can't rape a person from outside the jail."); } else { if(Jailed[playerid] == true) { format(string, sizeof(string), "(CRIME) You have raped %s [%i].",fName,id); SendClientMessage(playerid, 0xE4BC1BFF, string); format(string, sizeof(string), "You have been raped by %s [%i].",sName,playerid); SendClientMessage(id, 0xE4BC1BFF, string); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPlayerScore(id, GetPlayerScore(id)-1); PlayerPlaySound(id, 1190, 0.0, 0.0, 0.0); GetPlayerHealth(id, aHealth); SetPlayerHealth(id, aHealth - 30); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(id,fName, MAX_PLAYER_NAME); format(string, sizeof(string), "(DISPATCH) Suspect %s [%i] has raped %s [%i] at Jail (LVPD).",sName,playerid,fName,id); CopRadio(BLUE, string); } else { PlayerPlaySound(id, 1190, 0.0, 0.0, 0.0); GetPlayerHealth(id, aHealth); SetPlayerHealth(id, aHealth - 30); canrapeciv[playerid] = false; SetTimerEx("waitrapeciv", 15000, false, "i", playerid); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(id,fName, MAX_PLAYER_NAME); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2); format(string, sizeof(string), "(CRIME) You have raped %s [%i].",fName,id); SendClientMessage(playerid, 0xE4BC1BFF, string); format(string, sizeof(string), "You have been raped by %s [%i].",sName,playerid); SendClientMessage(id, 0xE4BC1BFF, string); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPlayerScore(id, GetPlayerScore(id)-1); format(string, sizeof(string), "(DISPATCH) Suspect %s [%i] has raped %s [%i] at location %s.",sName,playerid,fName,id,zones[current_zone][zone_name]); CopRadio(BLUE, string); CopRadio(BLUE, "All units in the area, please respond."); if(aHealth < 31) { rapetodeath[id] = true; format(string,sizeof(string),"%s [%i] Has Been Raped to Death by %s [%i]",fName,id,sName,playerid); SendClientMessageToAll(0xBB0000FF,string); GivePlayerMoney(id,-10000); SendClientMessage(id, 0x00FFFFFF, "You have paid $10000 for your medical bills."); } } } } if(gTeam[id] == TEAM_COPS) { if(Jailed[id] == false && Jailed[playerid] == true) { SendClientMessage(playerid, 0xFF0000AA, "You can't rape a person from outside the jail."); } else { PlayerPlaySound(id, 1190, 0.0, 0.0, 0.0); GetPlayerHealth(id, aHealth); SetPlayerHealth(id, aHealth - 30); canrapeciv[playerid] = false; SetTimerEx("waitrapeciv", 15000, false, "i", playerid); GetPlayerName(playerid,sName, MAX_PLAYER_NAME); GetPlayerName(id,fName, MAX_PLAYER_NAME); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); format(string, sizeof(string), "(CRIME) You have raped officer %s [%i].",fName,id); SendClientMessage(playerid, 0xE4BC1BFF, string); format(string, sizeof(string), "You have been raped by %s [%i].",sName,playerid); SendClientMessage(id, 0xE4BC1BFF, string); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPlayerScore(id, GetPlayerScore(id)-1); format(string, sizeof(string), "(DISPATCH) Suspect %s [%i] has raped %s [%i] at location %s.",sName,playerid,fName,id,zones[current_zone][zone_name]); CopRadio(BLUE, string); CopRadio(BLUE, "All units in the area, please respond."); if(aHealth < 31) { rapetodeath[id] = true; format(string,sizeof(string),"%s [%i] Has Been Raped to Death by %s [%i]",fName,id,sName,playerid); SendClientMessageToAll(0xBB0000FF,string); GivePlayerMoney(id,-10000); SendClientMessage(id, 0x00FFFFFF, "You have paid $10000 for your medical bills."); } } } } else { SendClientMessage(playerid, 0xFF0000AA, "You are dead or the person you are trying to rape has not spawned."); } } else { SendClientMessage(playerid, RED, "Wait before raping someone again."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You can't rape a person from outside the vehicle."); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player is not close enough to rape."); } } else { SendClientMessage(playerid, 0xFF0000AA, "You cannot rape yourself, pervert!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Player not found."); } } else { SendClientMessage(playerid, 0xFF0000AA, "USAGE: /rape [id]"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Civilians can rape other people!"); } return 1; } if(!strcmp(cmdtext,"/robbinco",true)) { if(gTeam[playerid] != TEAM_CIVILIAN) { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } else if(waitrobstore[playerid] == true) { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the store again!"); } else if(canrobbinco[playerid] == true) { if(robbinco[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Binco Store in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("binco", 12500, false, "d", playerid); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robbinco[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing binco."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing binco."); } return 1; } if(!strcmp(cmdtext,"/robbar",true)) { if(gTeam[playerid] != TEAM_CIVILIAN) { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } else if(waitrobstore[playerid] == true) { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the store again!"); } else if(canrobbar[playerid] == true) { if(robbar[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Liquor Store in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("bar", 12500, false, "d", playerid); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robbar[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the bar."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing bar."); } return 1; } if(!strcmp(cmdtext,"/robcluck",true)) { if(gTeam[playerid] != TEAM_CIVILIAN) { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } else if(waitrobstore[playerid] == true) { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the store again!"); } else if(canrobcluck[playerid] == true) { if(robcluck[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Cluckin Bell in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("cluck", 12500, false, "d", playerid); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robcluck[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the cluckin bell."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing binco."); } return 1; } if(!strcmp(cmdtext,"/robstrip",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(waitrobstore[playerid] == true) { if(canrobstrip[playerid] == true) { if(robstrip[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Strip Club in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("strip", 12500, false, "d", playerid); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robstrip[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the strip club."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing strip club."); } } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the store again!"); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } return 1; } if(!strcmp(cmdtext,"/robburger",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(waitrobstore[playerid] == false) { if(canrobburger[playerid] == true) { if(robburger[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Burger Shot in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("burger", 12500, false, "d", playerid); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robburger[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the burger shot."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing burger shot."); } } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the burger shot again!"); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } return 1; } if(!strcmp(cmdtext,"/robammu",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(waitrobstore[playerid] == false) { if(canrobammu[playerid] == true) { if(robammu[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Ammunation in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("ammu", 12500, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robammu[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the ammunation."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing the ammunation."); } } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the ammunation again!"); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } return 1; } if(!strcmp(cmdtext,"/robsex",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(waitrobstore[playerid] == false) { if(canrobsex[playerid] == true) { if(robsex[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Sex Shop in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("sex", 12500, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robsex[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the sex shop."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing the sex shop."); } } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the sex shop again!"); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } return 1; } if(!strcmp(cmdtext,"/robpizza",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(waitrobstore[playerid] == false) { if(canrobpizza[playerid] == true) { if(robpizza[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); format(string, sizeof(string), "(ROBBERY) The Pizza Parlour in %s is currently being robbed right now.",zones[current_zone][zone_name]); CopRadio(BLUE, string); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet..."); timer1 = SetTimerEx("pizza", 12500, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); robpizza[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the pizza shop."); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing the pizza shop."); } } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the pizza shop again!"); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!"); } return 1; } if(!strcmp(cmdtext,"/robdrag",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(canrobdrag[playerid] == true) { if(robdrag[playerid] == false) { if(waitrobdrag[playerid] == false) { SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6); CopRadio(BLUE, "(ROBBERY) The Four Dragon casino is being robbed right now."); GameTextForPlayer(playerid, "~y~robbery in ~w~progress",20000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing the casino... don't exit the checkpoint !"); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); timer2 = SetTimerEx("dragrob4", 20000, false, "d", playerid); robdrag[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the 4 dragon casino again!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the 4 dragon casino!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing 4 dragon."); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob casinos!"); } return 1; } if(!strcmp(cmdtext,"/robcalg",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(canrobcalg[playerid] == true) { if(robcalg[playerid] == false) { if(waitrobcalg[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6); CopRadio(BLUE, "(ROBBERY) The Caligulas casino is being robbed right now."); GameTextForPlayer(playerid, "~y~robbery in ~w~progress",20000,3); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing the casino... don't exit the checkpoint !"); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); timer2 = SetTimerEx("calg", 20000, false, "d", playerid); robcalg[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the Caligulas again!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the caligulas!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing caligulas."); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob casinos!"); } return 1; } if(!strcmp(cmdtext,"/robsand",true)) { if(gTeam[playerid] == TEAM_CIVILIAN) { if(canrobsand[playerid] == true) { if(robsand[playerid] == false) { if(waitrobsand[playerid] == false) { SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location."); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6); CopRadio(BLUE, "(ROBBERY) The Redsands casino is being robbed right now."); GameTextForPlayer(playerid, "~y~robbery in ~w~progress",20000,3); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing the casino... don't exit the checkpoint !"); ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); timer2 = SetTimerEx("sand", 20000, false, "d", playerid); robsand[playerid] = true; } else { SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the Redsands casino again!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the redsands casino!"); } } else { SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing redsand casino."); } } else { SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob casinos!"); } return 1; } if(!strcmp(cmdtext,"/commands",true) || !strcmp(cmdtext,"/cmds",true)) { if(gTeam[playerid] == TEAM_COPS) { SendClientMessage(playerid, 0xFF0000FF, "Cop Commands: /ar /fine /cm /loc /w /cw /afk /back /pc /rules /pm /gc /animlist /me /newlife"); } if(gTeam[playerid] == TEAM_CIVILIAN) { SendClientMessage(playerid, 0xFF0000FF, "Civilian Commands: /rob /rape /escape /loc /w /cw /afk /back /pc /rules /pm /gc /animlist /me /newlife"); } return 1; } if(!strcmp(cmdtext,"/help",true)) { if(gTeam[playerid] == TEAM_COPS) { SendClientMessage(playerid, GREEN, "Your job is to /ar oranges and reds. Use /tk for yellows."); SendClientMessage(playerid, GREEN, "Use /cmds to see all your commands and /rules to avoid breaking the rules."); } if(gTeam[playerid] == TEAM_CIVILIAN) { SendClientMessage(playerid, GREEN, "Your job is to rob stores, casinos, shops and people. use /rob (id) to rob someone."); SendClientMessage(playerid, GREEN, "Use /cmds to see all your commands and /rules to avoid breaking the rules."); } return 1; } if(!strcmp(cmdtext, "/me", true, 3)) { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "* %s %s", str, cmdtext[4]); SendClientMessageToAll(0xFFFF00AA, str); return 1; } if(!strcmp(cmdtext,"/afk",true)) { new name[MAX_PLAYER_NAME]; if(isafk[playerid] == false) { isafk[playerid] = true; GetPlayerHealth(playerid, pHealth); SetPlayerHealth(playerid, 9999); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s is now AFK.",name); printf(string); SendClientMessage(playerid, GREEN, "Type /back to stop being afk."); SendClientMessageToAll(0x408080FF, string); TogglePlayerControllable(playerid,0); } else { SendClientMessage(playerid, GREEN, "You are already AFK!"); } return 1; } if(!strcmp(cmdtext,"/back",true)) { new name[MAX_PLAYER_NAME]; if(isafk[playerid] == true) { isafk[playerid] = false; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s is no longer AFK.",name); SendClientMessageToAll(0x408080FF, string); SetPlayerHealth(playerid, pHealth); printf(string); TogglePlayerControllable(playerid,1); } else { SendClientMessage(playerid, GREEN, "You are not AFK!"); } return 1; } if(!strcmp(cmdtext,"/rules",true)) { SendClientMessage(playerid, 0xFF80FFFF, "Rule 1: Do Not Hack, Cheat Or Bug Abuse Or You Will Get Kicked/Banned."); SendClientMessage(playerid, 0xFF80FFFF, "Rule 2: Do Not Deathmatch Other Players. Cops can only kill reds and oranges."); SendClientMessage(playerid, 0xFF80FFFF, "Rule 3: Do Not Insult Admins. Respect other players."); SendClientMessage(playerid, 0xFF80FFFF, "Rule 4: Do Not Ask To Be An Admin. We will ask you."); SendClientMessage(playerid, 0xFF80FFFF, "Rule 5: Do Not Bitch/Complain About The Server."); SendClientMessage(playerid, 0xFF80FFFF, "If you want to be admin, apply at www.cmgaming.web-rpg.org"); return 1; } if(!strcmp(cmdtext,"/kill",true)) { if(Jailed[playerid] == true) { SendClientMessage(playerid, 0xFFFFFF, "You Can't use this command in jail."); } else { SetPlayerHealth(playerid, 0.0); suicide[playerid] = true; } return 1; } if(!strcmp(cmdtext,"/heal",true)) { if(canbehealed[playerid] == true) { if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough money to buy health."); SetPlayerHealth(playerid, 100); SendClientMessage(playerid, GREEN, "Your health has been refilled. You paid $4000, come back again!"); GivePlayerMoney(playerid, -4000); } else { SendClientMessage(playerid, 0xFFFFFF, "You need to be in the hospital checkpoint to get healed."); } return 1; } if(!strcmp(cmdtext, "/cm", true, 3)) { if(gTeam[playerid] == TEAM_COPS) { new output[255]; new pname[24]; if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /cm [msg]"); GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,3,strlen(cmdtext)); format(string, sizeof(string), "COP RADIO %s [%d] %s",pname,playerid,output); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(gTeam[i] == TEAM_COPS) { format(string, sizeof(string), "(COP RADIO) %s [%d] %s",pname,playerid,output); SendClientMessage(i,BLUE,string); } } } else { SendClientMessage(playerid, 0xFF0000AA, "Only Law enforcement agents can use this command!"); } return 1; } if(!strcmp(cmdtext,"/skydive",true)) { if(GetPlayerWantedLevel(playerid) <= 3) { if(canbeair[playerid] == true) { SetPlayerPos(playerid, 315.745086,984.969299,1958.919067); SetPlayerInterior(playerid, 9); SendClientMessage(playerid, GREEN, "Welcome to Skydiving! Feel free to Jump!"); GivePlayerWeapon(playerid, 46, 1); GivePlayerMoney(playerid, -10000); SetTimerEx("skydive", 20000, false, "i", playerid); } else { SendClientMessage(playerid, 0xFFFFFF, "You need to be in the airport checkpoint."); } } else { SendClientMessage(playerid, GREEN, "You cannot skydive because your wanted."); } return 1; } if(!strcmp(cmdtext,"/pc",true)) { SendClientMessage(playerid, WHITE, "White Player Color: Innocent Civilian."); SendClientMessage(playerid, YELLOW, "Yellow Player Color: Suspect Civilian."); SendClientMessage(playerid, ORANGE, "Orange Player Color: Wanted Criminal."); SendClientMessage(playerid, RED, "Red Player Color: Most Wanted Criminal."); SendClientMessage(playerid, BLUE, "Blue Player Color: Cop/Law Enforcement."); return 1; } if(!strcmp(cmdtext,"/newlife",true)) { if(Jailed[playerid] == true) { SendClientMessage(playerid, 0xFFFFFF, "You Can't use this command in jail."); } else { SetPlayerWantedLevel(playerid, 0); SetPlayerHealth(playerid, 0.0); ForceClassSelection(playerid); newlife[playerid] = true; } return 1; } return SendClientMessage(playerid, 0xFF00FFFF, "Unknown command. Use /cmds to see our server commands."); } public binco(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Binco store has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from a binco.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from binco.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robbinco[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public ammu(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Ammunation has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from the ammunation.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from ammunation.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robammu[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public bar(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Liquor has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from the liquor store.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from the bar.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robbar[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public sex(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Sex Shop has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from a the sex shop.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from sex shop.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robsex[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public pizza(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Pizza shop has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from the pizza shop.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from pizza shop.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robpizza[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public strip(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Strip Club has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from a strip.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from strip.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robstrip[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public cluck(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Cluckin Bell has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from the cluckin bell.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from the cluckin bell.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robcluck[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public burger(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(20000); CopRadio(BLUE, "(ROBBERY) The Burger Shot has been robbed !!"); format(string, sizeof(string), "You have robbed $%i from the burger shot.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); GivePlayerMoney(playerid,randMoney); format(string, sizeof(string), "%s [%i] has robbed $%i from burger shot.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); SetTimerEx("wait", 25000, false, "d", playerid); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); robburger[playerid] = false; waitrobstore[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public wait(playerid) { waitrobstore[playerid] = false; return 1; } public wait2(playerid) { waitrobdrag[playerid] = false; return 1; } public wait3(playerid) { waitrobsand[playerid] = false; return 1; } public wait4(playerid) { waitrobcalg[playerid] = false; return 1; } public waitesc(playerid) { canesc[playerid] = true; return 1; } public dragrob4(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(60000); SetTimerEx("wait2", 60000, false, "d", playerid); GivePlayerMoney(playerid,randMoney); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); format(string, sizeof(string), "You have robbed $%i from the 4 dragon casino.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s [%i] has robbed $%i from the 4 dragon casino.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); robdrag[playerid] = false; waitrobdrag[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public calg(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(60000); SetTimerEx("wait4", 60000, false, "d", playerid); GivePlayerMoney(playerid,randMoney); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); format(string, sizeof(string), "You have robbed $%i from the Caligulas casino.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s [%i] has robbed $%i from the Caligulas casino.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); robcalg[playerid] = false; waitrobcalg[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public sand(playerid) { new string[128]; new name[MAX_PLAYER_NAME]; new randMoney = random(60000); SetTimerEx("wait3", 60000, false, "d", playerid); GivePlayerMoney(playerid,randMoney); SetPlayerScore(playerid, GetPlayerScore(playerid)+1); format(string, sizeof(string), "You have robbed $%i from the redsands casino.",randMoney); SendClientMessage(playerid, 0xFF8000FF, string); GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s [%i] has robbed $%i from the redsands casino.",name,playerid,randMoney); SendClientMessageToAll(0x80FF00FF,string); robsand[playerid] = false; waitrobsand[playerid] = true; format(string, sizeof(string), "~y~robbery completed~n~~w~you stole $%i",randMoney); GameTextForPlayer(playerid, string ,4000,3); return 1; } public GetPlayerZone(playerid) { new line[10]; format(line,10,"p%dzone",playerid); new zoneid = strval(PropertyGet(line)); return zoneid; } public skydive(playerid) { SetPlayerInterior(playerid, 0); } public waitrobciv(playerid) { canrobciv[playerid] = true; } public waitrapeciv(playerid) { canrapeciv[playerid] = true; } public cantarrestagain(playerid) { canarrestagain[playerid] = true; } CopRadio(color,const string[]) { for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { if(gTeam[i] == TEAM_COPS) { SendClientMessage(i, color, string); } } } return 1; } stock GetDistanceBetweenPlayers(playerid, playerid2) { new Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2; new Float:tmpdis; GetPlayerPos(playerid, x1, y1, z1); GetPlayerPos(playerid2, x2, y2, z2); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2, x1)), 2) + floatpower(floatabs(floatsub(y2, y1)), 2) + floatpower(floatabs(floatsub(z2, z1)), 2)); return floatround(tmpdis); } IsNumeric(const string[]) { for (new i = 0, j = strlen(string); i < j; i++) { if (string[i] > '9' || string[i] < '0') { return 0; } } return 1; } public OnRconLoginAttempt(ip[], password[], success) { if(!success) { printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password); new pip[16]; for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); Kick(i); } } } return 1; } public AutoUnjail() { for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Jailed[i] == true) { if(JailTime[i] > 0) { JailTime[i] --; new jtime; new string[256]; jtime = (JailTime[i]); format(string, sizeof(string), "~n~~w~jailtime~n~%d",jtime); GameTextForPlayer(i, string, 3000,5); JailTimeServed[i] ++; } if(JailTime[i] == 0) { new string[128]; new sName[MAX_PLAYER_NAME]; escaped[i] = false; GetPlayerName(i,sName, MAX_PLAYER_NAME); SetPlayerInterior(i, 3); Jailed[i] = false; SetPlayerWantedLevel(i, 0); SetPlayerPos(i, 202.2559,169.3339,1003.0234); GivePlayerMoney(i, -8000); format(string, sizeof(string), "%s [%i] has been released from jail.",sName,i); SendClientMessageToAll(0x80FF00FF,string); SendClientMessage(i, 0xFF8000FF, "You have been released from jail. You paid $8000."); JailTimeServed[i] = 0; } } } } } /*////////////////////////////////CREDITS//////////////////////////////////////// //Cops and Robbers! 2009/2010 //Made By Crazymax / Jamesbond007 //Dont Remove this Credits** //Thank You! ////////////////////////////////////////////////////////////////////////////////// Dit script was ik aan het aanpassen en wou het omzetten en toen kreeg ik dus foutmeldingen wie me kan helpen benik erg dankbaar, Met vriendelijke groeten Jeffrey Reageren
Big Boss Geplaatst: 6 september 2010 Rapport Geplaatst: 6 september 2010 Pastebin voor grote scripts graag. M'n browser wordt hier enorm traag van. Op regel 5 voeg je na het tweede teken een linebreak toe. Op de laatste regel voeg je achteraan */ toe. Verder kan ik niet gokken welke lijn nummer 841 heeft. Dus als je ALLEEN de lijnen zou willen kopiëren waar nog een error voorkomt... Reageren
specialop Geplaatst: 6 september 2010 Auteur Rapport Geplaatst: 6 september 2010 (bewerkt) Pastebin voor grote scripts graag. M'n browser wordt hier enorm traag van. Op regel 5 voeg je na het tweede teken een linebreak toe. Op de laatste regel voeg je achteraan */ toe. Verder kan ik niet gokken welke lijn nummer 841 heeft. Dus als je ALLEEN de lijnen zou willen kopiëren waar nog een error voorkomt... op ene vandere vage manier krijg ik hem niet upgeload bij pastebin, maar ik zit eigenlijk met nog maar problemen want ik wil dat de army alleen voor vip user beschikbaar komt en dat de army op de army base spawnd en er zijn nog een aantal verzoekjes die graag opgelost moeten worden natuurlijk kan dit tegen een aanbod in geld of ingame enz. is er iemand met veel ervaring die mij kan helpen ? MVG Jeffrey newcnr gamemode script.rar Bewerkt: 6 september 2010 door specialop Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.