All pastes #636131 Raw Edit

Stuff

public text v1 · immutable
#636131 ·published 2007-07-27 17:12 UTC
rendered paste body
#include <a_samp>
#include <core>
#include <a_objects>
#include <float>
#include <a_players>
#include <string>
#include <a_vehicles>
#include <file>
#include <datagram>
#include <dudb>
#include <time>
#include <dini>


forward OnPlayerCommandText(playerid, cmdtext[]);
forward SetupPlayerForClassSelection(playerid);
forward KickAll();
forward UpdateScore();
forward RefreshPlayerZone();

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

static gTeam[MAX_PLAYERS];

new RedAlertTimer;
new player_zone[MAX_PLAYERS];
new allClassId[MAX_PLAYERS];
new allWantedLevels[MAX_PLAYERS];
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] = {
    { "'The Big Ear'",                -410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00},
	{ "Aldea Malvada",               -1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00},
	{ "Angel Pine",                  -2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00},
	{ "Arco del Oeste",               -901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00},
	{ "Avispa Country Club",         -2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00},
	{ "Avispa Country Club",         -2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00},
	{ "Avispa Country Club",         -2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00},
	{ "Avispa Country Club",         -2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10},
	{ "Avispa Country Club",         -2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10},
	{ "Avispa Country Club",         -2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70},
	{ "Back o Beyond",               -1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00},
	{ "Battery Point",               -2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00},
	{ "Bayside",                     -2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00},
	{ "Bayside Marina",              -2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00},
	{ "Beacon Hill",                  -399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50},
	{ "Blackfield",                    964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90},
	{ "Blackfield",                    964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90},
	{ "Blackfield Chapel",            1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90},
	{ "Blackfield Chapel",            1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90},
	{ "Blackfield Intersection",      1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90},
	{ "Blackfield Intersection",      1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90},
	{ "Blackfield Intersection",      1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90},
	{ "Blackfield Intersection",      1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90},
	{ "Blueberry",                     104.50,  -220.10,     2.30,   349.60,   152.20,   200.00},
	{ "Blueberry",                      19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00},
	{ "Blueberry Acres",              -319.60,  -220.10,     0.00,   104.50,   293.30,   200.00},
	{ "Caligula's Palace",            2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90},
	{ "Caligula's Palace",            2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90},
	{ "Calton Heights",              -2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00},
	{ "Chinatown",                   -2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00},
	{ "City Hall",                   -2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00},
	{ "Come-A-Lot",                   2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90},
	{ "Commerce",                     1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90},
	{ "Commerce",                     1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90},
	{ "Commerce",                     1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90},
	{ "Commerce",                     1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90},
	{ "Commerce",                     1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90},
	{ "Commerce",                     1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90},
	{ "Conference Center",            1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90},
	{ "Conference Center",            1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90},
	{ "Cranberry Station",           -2007.80,    56.30,     0.00, -1922.00,   224.70,   100.00},
	{ "Creek",                        2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90},
	{ "Dillimore",                     580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00},
	{ "Doherty",                     -2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00},
	{ "Doherty",                     -2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00},
	{ "Downtown",                    -1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00},
	{ "Downtown",                    -1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00},
	{ "Downtown",                    -1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00},
	{ "Downtown",                    -1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00},
	{ "Downtown",                    -2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00},
	{ "Downtown",                    -1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00},
	{ "Downtown Los Santos",          1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90},
	{ "Downtown Los Santos",          1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90},
	{ "Downtown Los Santos",          1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90},
	{ "Downtown Los Santos",          1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90},
	{ "Downtown Los Santos",          1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90},
	{ "Downtown Los Santos",          1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90},
	{ "Downtown Los Santos",          1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90},
	{ "Downtown Los Santos",          1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90},
	{ "Downtown Los Santos",          1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90},
	{ "East Beach",                   2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90},
	{ "East Beach",                   2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90},
	{ "East Beach",                   2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90},
	{ "East Beach",                   2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90},
	{ "East Los Santos",              2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90},
	{ "East Los Santos",              2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90},
	{ "East Los Santos",              2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90},
	{ "East Los Santos",              2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90},
	{ "East Los Santos",              2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90},
	{ "East Los Santos",              2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90},
	{ "East Los Santos",              2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90},
	{ "Easter Basin",                -1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00},
	{ "Easter Basin",                -1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00},
	{ "Easter Bay Airport",          -1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00},
	{ "Easter Bay Airport",          -1794.90,  -730.10,    -3.00, -1213.90,   -50.00,   200.00},
	{ "Easter Bay Airport",          -1213.90,  -730.10,     0.00, -1132.80,   -50.00,   200.00},
	{ "Easter Bay Airport",          -1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00},
	{ "Easter Bay Airport",          -1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00},
	{ "Easter Bay Airport",          -1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40},
	{ "Easter Bay Airport",          -1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40},
	{ "Easter Bay Airport",          -1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40},
	{ "Easter Bay Chemicals",        -1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00},
	{ "Easter Bay Chemicals",        -1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00},
	{ "El Castillo del Diablo",       -464.50,  2217.60,     0.00,  -208.50,  2580.30,   200.00},
	{ "El Castillo del Diablo",       -208.50,  2123.00,    -7.60,   114.00,  2337.10,   200.00},
	{ "El Castillo del Diablo",       -208.50,  2337.10,     0.00,     8.40,  2487.10,   200.00},
	{ "El Corona",                    1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90},
	{ "El Corona",                    1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90},
	{ "El Quebrados",                -1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00},
	{ "Esplanade East",              -1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00},
	{ "Esplanade East",              -1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00},
	{ "Esplanade East",              -1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30},
	{ "Esplanade North",             -2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00},
	{ "Esplanade North",             -1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00},
	{ "Esplanade North",             -1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00},
	{ "Fallen Tree",                  -792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00},
	{ "Fallow Bridge",                 434.30,   366.50,     0.00,   603.00,   555.60,   200.00},
	{ "Fern Ridge",                    508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00},
	{ "Financial",                   -1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00},
	{ "Fisher's Lagoon",              1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00},
	{ "Flint Intersection",           -187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90},
	{ "Flint Range",                  -594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00},
	{ "Fort Carson",                  -376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00},
	{ "Foster Valley",               -2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00},
	{ "Foster Valley",               -2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00},
	{ "Foster Valley",               -2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00},
	{ "Foster Valley",               -2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00},
	{ "Frederick Bridge",             2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00},
	{ "Gant Bridge",                 -2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00},
	{ "Gant Bridge",                 -2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00},
	{ "Ganton",                       2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90},
	{ "Ganton",                       2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90},
	{ "Garcia",                      -2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00},
	{ "Garcia",                      -2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00},
	{ "Garver Bridge",               -1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90},
	{ "Garver Bridge",               -1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90},
	{ "Garver Bridge",               -1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30},
	{ "Glen Park",                    1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90},
	{ "Glen Park",                    1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90},
	{ "Glen Park",                    1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90},
	{ "Green Palms",                   176.50,  1305.40,    -3.00,   338.60,  1520.70,   200.00},
	{ "Greenglass College",            964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90},
	{ "Greenglass College",            964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90},
	{ "Hampton Barns",                 603.00,   264.30,     0.00,   761.90,   366.50,   200.00},
	{ "Hankypanky Point",             2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00},
	{ "Harry Gold Parkway",           1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90},
	{ "Hashbury",                    -2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00},
	{ "Hilltop Farm",                  967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00},
	{ "Hunter Quarry",                 337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70},
	{ "Idlewood",                     1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90},
	{ "Idlewood",                     1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90},
	{ "Idlewood",                     1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90},
	{ "Idlewood",                     1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90},
	{ "Idlewood",                     2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90},
	{ "Idlewood",                     1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90},
	{ "Jefferson",                    1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90},
	{ "Jefferson",                    2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90},
	{ "Jefferson",                    2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90},
	{ "Jefferson",                    2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90},
	{ "Jefferson",                    2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90},
	{ "Jefferson",                    2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90},
	{ "Julius Thruway East",          2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90},
	{ "Julius Thruway East",          2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90},
	{ "Julius Thruway East",          2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90},
	{ "Julius Thruway East",          2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90},
	{ "Julius Thruway North",         2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90},
	{ "Julius Thruway North",         2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90},
	{ "Julius Thruway North",         2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90},
	{ "Julius Thruway North",         1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90},
	{ "Julius Thruway North",         1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90},
	{ "Julius Thruway North",         1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90},
	{ "Julius Thruway North",         1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90},
	{ "Julius Thruway North",         1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90},
	{ "Julius Thruway South",         1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90},
	{ "Julius Thruway South",         2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90},
	{ "Julius Thruway West",          1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90},
	{ "Julius Thruway West",          1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90},
	{ "Juniper Hill",                -2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00},
	{ "Juniper Hollow",              -2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00},
	{ "K.A.C.C. Military Fuels",      2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90},
	{ "Kincaid Bridge",              -1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90},
	{ "Kincaid Bridge",              -1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90},
	{ "Kincaid Bridge",              -1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90},
	{ "King's",                      -2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00},
	{ "King's",                      -2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00},
	{ "King's",                      -2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00},
	{ "LVA Freight Depot",            1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90},
	{ "LVA Freight Depot",            1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90},
	{ "LVA Freight Depot",            1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90},
	{ "LVA Freight Depot",            1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90},
	{ "LVA Freight Depot",            1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90},
	{ "Las Barrancas",                -926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00},
	{ "Las Brujas",                   -365.10,  2123.00,    -3.00,  -208.50,  2217.60,   200.00},
	{ "Las Colinas",                  1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90},
	{ "Las Colinas",                  2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90},
	{ "Las Colinas",                  2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90},
	{ "Las Colinas",                  2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90},
	{ "Las Colinas",                  2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90},
	{ "Las Colinas",                  2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90},
	{ "Las Colinas",                  2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90},
	{ "Las Payasadas",                -354.30,  2580.30,     2.00,  -133.60,  2816.80,   200.00},
	{ "Las Venturas Airport",         1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90},
	{ "Las Venturas Airport",         1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90},
	{ "Las Venturas Airport",         1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90},
	{ "Las Venturas Airport",         1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50},
	{ "Last Dime Motel",              1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90},
	{ "Leafy Hollow",                -1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00},
	{ "Lil' Probe Inn",                -90.20,  1286.80,    -3.00,   153.80,  1554.10,   200.00},
	{ "Linden Side",                  2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90},
	{ "Linden Station",               2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90},
	{ "Linden Station",               2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40},
	{ "Little Mexico",                1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90},
	{ "Little Mexico",                1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90},
	{ "Los Flores",                   2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90},
	{ "Los Flores",                   2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90},
	{ "Los Santos International",     1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90},
	{ "Los Santos International",     1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90},
	{ "Los Santos International",     1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90},
	{ "Los Santos International",     1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90},
	{ "Los Santos International",     1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90},
	{ "Los Santos International",     2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90},
	{ "Marina",                        647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90},
	{ "Marina",                        647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90},
	{ "Marina",                        807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90},
	{ "Market",                        787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90},
	{ "Market",                        952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90},
	{ "Market",                       1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90},
	{ "Market",                        926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90},
	{ "Market Station",                787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80},
	{ "Martin Bridge",                -222.10,   293.30,     0.00,  -122.10,   476.40,   200.00},
	{ "Missionary Hill",             -2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00},
	{ "Montgomery",                   1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00},
	{ "Montgomery",                   1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00},
	{ "Montgomery Intersection",      1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00},
	{ "Montgomery Intersection",      1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00},
	{ "Mulholland",                   1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90},
	{ "Mulholland",                   1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90},
	{ "Mulholland",                   1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90},
	{ "Mulholland",                   1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90},
	{ "Mulholland",                   1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90},
	{ "Mulholland",                   1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90},
	{ "Mulholland",                    768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90},
	{ "Mulholland",                    687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90},
	{ "Mulholland",                    737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90},
	{ "Mulholland",                   1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90},
	{ "Mulholland",                    952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90},
	{ "Mulholland",                    911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90},
	{ "Mulholland",                    861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90},
	{ "Mulholland Intersection",      1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90},
	{ "North Rock",                   2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00},
	{ "Ocean Docks",                  2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90},
	{ "Ocean Docks",                  2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90},
	{ "Ocean Docks",                  2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90},
	{ "Ocean Docks",                  2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90},
	{ "Ocean Docks",                  2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90},
	{ "Ocean Docks",                  2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90},
	{ "Ocean Docks",                  2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90},
	{ "Ocean Flats",                 -2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00},
	{ "Ocean Flats",                 -2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00},
	{ "Ocean Flats",                 -2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00},
	{ "Octane Springs",                338.60,  1228.50,     0.00,   664.30,  1655.00,   200.00},
	{ "Old Venturas Strip",           2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90},
	{ "Palisades",                   -2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00},
	{ "Palomino Creek",               2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00},
	{ "Paradiso",                    -2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00},
	{ "Pershing Square",              1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90},
	{ "Pilgrim",                      2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90},
	{ "Pilgrim",                      2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90},
	{ "Pilson Intersection",          1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90},
	{ "Pirates in Men's Pants",       1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90},
	{ "Playa del Seville",            2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90},
	{ "Prickle Pine",                 1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90},
	{ "Prickle Pine",                 1117.40,  2507.20,   -89.00,  1534.50,  2723.20,   110.90},
	{ "Prickle Pine",                 1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90},
	{ "Prickle Pine",                 1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90},
	{ "Queens",                      -2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00},
	{ "Queens",                      -2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00},
	{ "Queens",                      -2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00},
	{ "Randolph Industrial Estate",   1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90},
	{ "Redsands East",                1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90},
	{ "Redsands East",                1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90},
	{ "Redsands East",                1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90},
	{ "Redsands West",                1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90},
	{ "Redsands West",                1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90},
	{ "Redsands West",                1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90},
	{ "Redsands West",                1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90},
	{ "Regular Tom",                  -405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00},
	{ "Richman",                       647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90},
	{ "Richman",                       647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90},
	{ "Richman",                       225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90},
	{ "Richman",                       225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90},
	{ "Richman",                        72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90},
	{ "Richman",                        72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90},
	{ "Richman",                       321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90},
	{ "Richman",                       321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90},
	{ "Richman",                       321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90},
	{ "Richman",                       321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90},
	{ "Robada Intersection",         -1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90},
	{ "Roca Escalante",               2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90},
	{ "Roca Escalante",               2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90},
	{ "Rockshore East",               2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90},
	{ "Rockshore West",               1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90},
	{ "Rockshore West",               2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90},
	{ "Rodeo",                          72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90},
	{ "Rodeo",                          72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90},
	{ "Rodeo",                         225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90},
	{ "Rodeo",                         225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90},
	{ "Rodeo",                         334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90},
	{ "Rodeo",                         312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90},
	{ "Rodeo",                         422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90},
	{ "Rodeo",                         558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90},
	{ "Rodeo",                         466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90},
	{ "Rodeo",                         422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90},
	{ "Rodeo",                         466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90},
	{ "Rodeo",                         334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90},
	{ "Royal Casino",                 2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90},
	{ "San Andreas Sound",            2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00},
	{ "Santa Flora",                 -2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00},
	{ "Santa Maria Beach",             342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90},
	{ "Santa Maria Beach",              72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90},
	{ "Shady Cabin",                 -1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00},
	{ "Shady Creeks",                -1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00},
	{ "Shady Creeks",                -2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00},
	{ "Sobell Rail Yards",            2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90},
	{ "Spinybed",                     2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90},
	{ "Starfish Casino",              2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90},
	{ "Starfish Casino",              2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90},
	{ "Starfish Casino",              2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90},
	{ "Temple",                       1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90},
	{ "Temple",                       1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90},
	{ "Temple",                       1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90},
	{ "Temple",                        952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90},
	{ "Temple",                       1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90},
	{ "Temple",                       1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90},
	{ "The Camel's Toe",              2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90},
	{ "The Clown's Pocket",           2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90},
	{ "The Emerald Isle",             2011.90,  2202.70,   -89.00,  2237.40,  2508.20,   110.90},
	{ "The Farm",                    -1209.60, -1317.10,   114.90,  -908.10,  -787.30,   251.90},
	{ "The Four Dragons Casino",      1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90},
	{ "The High Roller",              1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90},
	{ "The Mako Span",                1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00},
	{ "The Panopticon",               -947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00},
	{ "The Pink Swan",                1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90},
	{ "The Sherman Dam",              -968.70,  1929.40,    -3.00,  -481.10,  2155.20,   200.00},
	{ "The Strip",                    2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90},
	{ "The Strip",                    2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90},
	{ "The Strip",                    2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90},
	{ "The Strip",                    2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90},
	{ "The Visage",                   1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90},
	{ "The Visage",                   1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90},
	{ "Unity Station",                1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50},
	{ "Valle Ocultado",               -936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00},
	{ "Verdant Bluffs",                930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90},
	{ "Verdant Bluffs",               1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90},
	{ "Verdant Bluffs",               1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90},
	{ "Verdant Meadows",                37.00,  2337.10,    -3.00,   435.90,  2677.90,   200.00},
	{ "Verona Beach",                  647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90},
	{ "Verona Beach",                  930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90},
	{ "Verona Beach",                  851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90},
	{ "Verona Beach",                 1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90},
	{ "Verona Beach",                 1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90},
	{ "Vinewood",                      787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90},
	{ "Vinewood",                      787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90},
	{ "Vinewood",                      647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90},
	{ "Vinewood",                      647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90},
	{ "Whitewood Estates",             883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90},
	{ "Whitewood Estates",            1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90},
	{ "Willowfield",                  1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90},
	{ "Willowfield",                  2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90},
	{ "Willowfield",                  2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90},
	{ "Willowfield",                  2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90},
	{ "Willowfield",                  2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90},
	{ "Willowfield",                  2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90},
	{ "Willowfield",                  2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90},
	{ "Yellow Bell Station",          1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00},
	{ "Los Santos",                     44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00},
	{ "Las Venturas",                  869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00},
	{ "Bone County",                  -480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00},
	{ "Tierra Robada",               -2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00},
	{ "Tierra Robada",               -1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00},
	{ "San Fierro",                  -2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00},
	{ "Red County",                  -1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00},
	{ "Flint County",                -1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00},
	{ "Whetstone",                   -2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}
};

#pragma tabsize 0

#define COLOR_RED 0xAA3333AA
#define COLOR_BROWN 0xB13E0FAA
#define COLOR_PURPLE 0x660066AA
#define COLOR_DARKRED 0x660000AA
#define COLOR_BLACK 0x000000AA
#define COLOR_BLUE 0x300FFAAB
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BRIGHTPINK 0xFF00CCAA
#define COLOR_ORANGE 0xFF6103AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTBLUE 0x2bc3deAA
#define COLOR_ARMYGREEN 0x397D02AA
#define COLOR_LPINK 0xFFB6C1AA
#define COLOR_LGREEN 0x43cd80AA
#define TEAM_COP 1
#define TEAM_TRIAD 2
#define TEAM_FBI 3
#define TEAM_ADMINPOLICE 4
#define TEAM_SYND 5
#define TEAM_SWAT 6
#define TEAM_HA 7
#define TEAM_ARMY 8
#define TEAM_L 9
#define TEAM_BUS 10






// COP CAR LOCK -------------------------------------------------------------------

UnlockCopCars(playerid)
{
    SetVehicleParamsForPlayer(1, playerid, 0, 0);
    SetVehicleParamsForPlayer(2, playerid, 0, 0);
    SetVehicleParamsForPlayer(3, playerid, 0, 0);
    SetVehicleParamsForPlayer(4, playerid, 0, 0);
    SetVehicleParamsForPlayer(5, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(6, playerid, 0, 0);
    SetVehicleParamsForPlayer(7, playerid, 0, 0);
    SetVehicleParamsForPlayer(8, playerid, 0, 0);
    SetVehicleParamsForPlayer(9, playerid, 0, 0);
    SetVehicleParamsForPlayer(10, playerid, 0, 0);
    SetVehicleParamsForPlayer(11, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(12, playerid, 0, 0);
    SetVehicleParamsForPlayer(13, playerid, 0, 0);
    SetVehicleParamsForPlayer(14, playerid, 0, 0);
    SetVehicleParamsForPlayer(15, playerid, 0, 0);
    SetVehicleParamsForPlayer(16, playerid, 0, 0);
    SetVehicleParamsForPlayer(17, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(18, playerid, 0, 0);
    SetVehicleParamsForPlayer(19, playerid, 0, 0);
    SetVehicleParamsForPlayer(20, playerid, 0, 0);
    SetVehicleParamsForPlayer(21, playerid, 0, 0);
    SetVehicleParamsForPlayer(22, playerid, 0, 0);
    SetVehicleParamsForPlayer(23, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(24, playerid, 0, 0);
    SetVehicleParamsForPlayer(25, playerid, 0, 0);
    SetVehicleParamsForPlayer(26, playerid, 0, 0);
    SetVehicleParamsForPlayer(27, playerid, 0, 0);
    SetVehicleParamsForPlayer(28, playerid, 0, 0);
    SetVehicleParamsForPlayer(29, playerid, 0, 0);
    SetVehicleParamsForPlayer(30, playerid, 0, 0);
    SetVehicleParamsForPlayer(31, playerid, 0, 0);
    SetVehicleParamsForPlayer(32, playerid, 0, 0);
    SetVehicleParamsForPlayer(33, playerid, 0, 0);
    SetVehicleParamsForPlayer(34, playerid, 0, 0);
    SetVehicleParamsForPlayer(35, playerid, 0, 0);
    SetVehicleParamsForPlayer(36, playerid, 0, 0);
    SetVehicleParamsForPlayer(37, playerid, 0, 0);
    SetVehicleParamsForPlayer(38, playerid, 0, 0);
    SetVehicleParamsForPlayer(144, playerid, 0, 0);
    SetVehicleParamsForPlayer(145, playerid, 0, 0);
    SetVehicleParamsForPlayer(180, playerid, 0, 0);
    SetVehicleParamsForPlayer(181, playerid, 0, 0);
    SetVehicleParamsForPlayer(182, playerid, 0, 0);
    SetVehicleParamsForPlayer(183, playerid, 0, 0);
    SetVehicleParamsForPlayer(184, playerid, 0, 0);
}

LockCopCars(playerid)
{
    SetVehicleParamsForPlayer(1, playerid, 0, 1);
    SetVehicleParamsForPlayer(2, playerid, 0, 1);
    SetVehicleParamsForPlayer(3, playerid, 0, 1);
    SetVehicleParamsForPlayer(4, playerid, 0, 1);
    SetVehicleParamsForPlayer(5, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(6, playerid, 0, 1);
    SetVehicleParamsForPlayer(7, playerid, 0, 1);
    SetVehicleParamsForPlayer(8, playerid, 0, 1);
    SetVehicleParamsForPlayer(9, playerid, 0, 1);
    SetVehicleParamsForPlayer(10, playerid, 0, 1);
    SetVehicleParamsForPlayer(11, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(12, playerid, 0, 1);
    SetVehicleParamsForPlayer(13, playerid, 0, 1);
    SetVehicleParamsForPlayer(14, playerid, 0, 1);
    SetVehicleParamsForPlayer(15, playerid, 0, 1);
    SetVehicleParamsForPlayer(16, playerid, 0, 1);
    SetVehicleParamsForPlayer(17, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(18, playerid, 0, 1);
    SetVehicleParamsForPlayer(19, playerid, 0, 1);
    SetVehicleParamsForPlayer(20, playerid, 0, 1);
    SetVehicleParamsForPlayer(21, playerid, 0, 1);
    SetVehicleParamsForPlayer(22, playerid, 0, 1);
    SetVehicleParamsForPlayer(23, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(24, playerid, 0, 1);
    SetVehicleParamsForPlayer(25, playerid, 0, 1);
    SetVehicleParamsForPlayer(26, playerid, 0, 1);
    SetVehicleParamsForPlayer(27, playerid, 0, 1);
    SetVehicleParamsForPlayer(28, playerid, 0, 1);
    SetVehicleParamsForPlayer(29, playerid, 0, 1);
    SetVehicleParamsForPlayer(30, playerid, 0, 1);
    SetVehicleParamsForPlayer(31, playerid, 0, 1);
    SetVehicleParamsForPlayer(32, playerid, 0, 1);
    SetVehicleParamsForPlayer(33, playerid, 0, 1);
    SetVehicleParamsForPlayer(34, playerid, 0, 1);
    SetVehicleParamsForPlayer(35, playerid, 0, 1);
    SetVehicleParamsForPlayer(36, playerid, 0, 1);
    SetVehicleParamsForPlayer(37, playerid, 0, 1);
    SetVehicleParamsForPlayer(38, playerid, 0, 1);
    SetVehicleParamsForPlayer(144, playerid, 0, 1);
    SetVehicleParamsForPlayer(145, playerid, 0, 1);
    SetVehicleParamsForPlayer(180, playerid, 0, 1);
    SetVehicleParamsForPlayer(181, playerid, 0, 1);
    SetVehicleParamsForPlayer(182, playerid, 0, 1);
    SetVehicleParamsForPlayer(183, playerid, 0, 1);
    SetVehicleParamsForPlayer(184, playerid, 0, 1);
    return 1;
    }
 //ADMIN CAR LOCK
 
    UnlockAdminCars(playerid)
{
    SetVehicleParamsForPlayer(64, playerid, 0, 0);
    SetVehicleParamsForPlayer(65, playerid, 0, 0);
    SetVehicleParamsForPlayer(66, playerid, 0, 0);
    SetVehicleParamsForPlayer(67, playerid, 0, 0);
    SetVehicleParamsForPlayer(68, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(69, playerid, 0, 0);
    SetVehicleParamsForPlayer(70, playerid, 0, 0);
    SetVehicleParamsForPlayer(71, playerid, 0, 0);
    SetVehicleParamsForPlayer(72, playerid, 0, 0);
    SetVehicleParamsForPlayer(73, playerid, 0, 0);
    SetVehicleParamsForPlayer(74, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(75, playerid, 0, 0);
    SetVehicleParamsForPlayer(76, playerid, 0, 0);
    SetVehicleParamsForPlayer(77, playerid, 0, 0);
    SetVehicleParamsForPlayer(78, playerid, 0, 0);
    SetVehicleParamsForPlayer(79, playerid, 0, 0);
    SetVehicleParamsForPlayer(80, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(81, playerid, 0, 0);
    SetVehicleParamsForPlayer(82, playerid, 0, 0);
    SetVehicleParamsForPlayer(83, playerid, 0, 0);
    SetVehicleParamsForPlayer(84, playerid, 0, 0);
    SetVehicleParamsForPlayer(85, playerid, 0, 0);
    SetVehicleParamsForPlayer(86, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(87, playerid, 0, 0);
    SetVehicleParamsForPlayer(88, playerid, 0, 0);
    }

LockAdminCars(playerid)
{
    SetVehicleParamsForPlayer(64, playerid, 0, 1);
    SetVehicleParamsForPlayer(65, playerid, 0, 1);
    SetVehicleParamsForPlayer(66, playerid, 0, 1);
    SetVehicleParamsForPlayer(67, playerid, 0, 1);
    SetVehicleParamsForPlayer(68, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(69, playerid, 0, 1);
    SetVehicleParamsForPlayer(70, playerid, 0, 1);
    SetVehicleParamsForPlayer(71, playerid, 0, 1);
    SetVehicleParamsForPlayer(72, playerid, 0, 1);
    SetVehicleParamsForPlayer(73, playerid, 0, 1);
    SetVehicleParamsForPlayer(74, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(75, playerid, 0, 1);
    SetVehicleParamsForPlayer(76, playerid, 0, 1);
    SetVehicleParamsForPlayer(77, playerid, 0, 1);
    SetVehicleParamsForPlayer(78, playerid, 0, 1);
    SetVehicleParamsForPlayer(79, playerid, 0, 1);
    SetVehicleParamsForPlayer(80, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(81, playerid, 0, 1);
    SetVehicleParamsForPlayer(82, playerid, 0, 1);
    SetVehicleParamsForPlayer(83, playerid, 0, 1);
    SetVehicleParamsForPlayer(84, playerid, 0, 1);
    SetVehicleParamsForPlayer(85, playerid, 0, 1);
    SetVehicleParamsForPlayer(86, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(87, playerid, 0, 1);
    SetVehicleParamsForPlayer(88, playerid, 0, 1);
	return 1;
	}
	
	///////////----------------------------------------------------------------------------------

    UnlockSyndCars(playerid)
{
    SetVehicleParamsForPlayer(89, playerid, 0, 0);
    SetVehicleParamsForPlayer(90, playerid, 0, 0);
    SetVehicleParamsForPlayer(91, playerid, 0, 0);
    SetVehicleParamsForPlayer(92, playerid, 0, 0);
    SetVehicleParamsForPlayer(93, playerid, 0, 0);//use as many of these as needed, E.G: 7 3 car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(94, playerid, 0, 0);
    SetVehicleParamsForPlayer(95, playerid, 0, 0);
    SetVehicleParamsForPlayer(96, playerid, 0, 0);
    SetVehicleParamsForPlayer(97, playerid, 0, 0);
    SetVehicleParamsForPlayer(98, playerid, 0, 0);
    SetVehicleParamsForPlayer(99, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(100, playerid, 0, 0);
    SetVehicleParamsForPlayer(149, playerid, 0, 0);
    SetVehicleParamsForPlayer(150, playerid, 0, 0);
    SetVehicleParamsForPlayer(151, playerid, 0, 0);
    SetVehicleParamsForPlayer(152, playerid, 0, 0);
    SetVehicleParamsForPlayer(153, playerid, 0, 0);
    }

LockSyndCars(playerid)
{
    SetVehicleParamsForPlayer(89, playerid, 0, 1);
    SetVehicleParamsForPlayer(90, playerid, 0, 1);
    SetVehicleParamsForPlayer(91, playerid, 0, 1);
    SetVehicleParamsForPlayer(92, playerid, 0, 1);
    SetVehicleParamsForPlayer(93, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(94, playerid, 0, 1);
    SetVehicleParamsForPlayer(95, playerid, 0, 1);
    SetVehicleParamsForPlayer(96, playerid, 0, 1);
    SetVehicleParamsForPlayer(97, playerid, 0, 1);
    SetVehicleParamsForPlayer(98, playerid, 0, 1);
    SetVehicleParamsForPlayer(99, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(100, playerid, 0, 1);
    SetVehicleParamsForPlayer(149, playerid, 0, 1);
    SetVehicleParamsForPlayer(150, playerid, 0, 1);
    SetVehicleParamsForPlayer(151, playerid, 0, 1);
    SetVehicleParamsForPlayer(152, playerid, 0, 1);
    SetVehicleParamsForPlayer(153, playerid, 0, 1);
	return 1;
	}
    
    
//Lock SWAT---------------------------------------------------------------------------------------------------------
    UnlockSwatCars(playerid)
{
    SetVehicleParamsForPlayer(101, playerid, 0, 0);
    SetVehicleParamsForPlayer(102, playerid, 0, 0);
    SetVehicleParamsForPlayer(103, playerid, 0, 0);
    SetVehicleParamsForPlayer(104, playerid, 0, 0);
    SetVehicleParamsForPlayer(105, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(106, playerid, 0, 0);
    SetVehicleParamsForPlayer(107, playerid, 0, 0);
    SetVehicleParamsForPlayer(108, playerid, 0, 0);
    SetVehicleParamsForPlayer(109, playerid, 0, 0);
    SetVehicleParamsForPlayer(110, playerid, 0, 0);
    SetVehicleParamsForPlayer(111, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(112, playerid, 0, 0);
    SetVehicleParamsForPlayer(113, playerid, 0, 0);
    SetVehicleParamsForPlayer(114, playerid, 0, 0);
    SetVehicleParamsForPlayer(115, playerid, 0, 0);
    SetVehicleParamsForPlayer(116, playerid, 0, 0);
    SetVehicleParamsForPlayer(134, playerid, 0, 0);
    SetVehicleParamsForPlayer(135, playerid, 0, 0);
    SetVehicleParamsForPlayer(136, playerid, 0, 0);
    SetVehicleParamsForPlayer(146, playerid, 0, 0);
    SetVehicleParamsForPlayer(147, playerid, 0, 0);
    SetVehicleParamsForPlayer(148, playerid, 0, 0);
    }

LockSwatCars(playerid)
{
    SetVehicleParamsForPlayer(101, playerid, 0, 1);
    SetVehicleParamsForPlayer(102, playerid, 0, 1);
    SetVehicleParamsForPlayer(103, playerid, 0, 1);
    SetVehicleParamsForPlayer(104, playerid, 0, 1);
    SetVehicleParamsForPlayer(105, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(106, playerid, 0, 1);
    SetVehicleParamsForPlayer(107, playerid, 0, 1);
    SetVehicleParamsForPlayer(108, playerid, 0, 1);
    SetVehicleParamsForPlayer(109, playerid, 0, 1);
    SetVehicleParamsForPlayer(110, playerid, 0, 1);
    SetVehicleParamsForPlayer(111, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(112, playerid, 0, 1);
    SetVehicleParamsForPlayer(113, playerid, 0, 1);
    SetVehicleParamsForPlayer(114, playerid, 0, 1);
    SetVehicleParamsForPlayer(115, playerid, 0, 1);
    SetVehicleParamsForPlayer(116, playerid, 0, 1);
    SetVehicleParamsForPlayer(134, playerid, 0, 1);
    SetVehicleParamsForPlayer(135, playerid, 0, 1);
    SetVehicleParamsForPlayer(136, playerid, 0, 1);
    SetVehicleParamsForPlayer(146, playerid, 0, 1);
    SetVehicleParamsForPlayer(147, playerid, 0, 1);
    SetVehicleParamsForPlayer(148, playerid, 0, 1);
	return 1;
	}
	
// ARMY CAR LOCK
	
    UnlockArmyCars(playerid)
{
    SetVehicleParamsForPlayer(117, playerid, 0, 0);
    SetVehicleParamsForPlayer(118, playerid, 0, 0);
    SetVehicleParamsForPlayer(119, playerid, 0, 0);
    SetVehicleParamsForPlayer(120, playerid, 0, 0);
    SetVehicleParamsForPlayer(121, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(122, playerid, 0, 0);
    SetVehicleParamsForPlayer(123, playerid, 0, 0);
    SetVehicleParamsForPlayer(124, playerid, 0, 0);
    SetVehicleParamsForPlayer(125, playerid, 0, 0);
    SetVehicleParamsForPlayer(126, playerid, 0, 0);
    SetVehicleParamsForPlayer(127, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(128, playerid, 0, 0);
    SetVehicleParamsForPlayer(129, playerid, 0, 0);
    SetVehicleParamsForPlayer(130, playerid, 0, 0);
    SetVehicleParamsForPlayer(131, playerid, 0, 0);
    SetVehicleParamsForPlayer(132, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(133, playerid, 0, 0);
    }

LockArmyCars(playerid)
{
    SetVehicleParamsForPlayer(117, playerid, 0, 1);
    SetVehicleParamsForPlayer(118, playerid, 0, 1);
    SetVehicleParamsForPlayer(119, playerid, 0, 1);
    SetVehicleParamsForPlayer(120, playerid, 0, 1);
    SetVehicleParamsForPlayer(121, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(122, playerid, 0, 1);
    SetVehicleParamsForPlayer(123, playerid, 0, 1);
    SetVehicleParamsForPlayer(124, playerid, 0, 1);
    SetVehicleParamsForPlayer(125, playerid, 0, 1);
    SetVehicleParamsForPlayer(126, playerid, 0, 1);
    SetVehicleParamsForPlayer(127, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(128, playerid, 0, 1);
    SetVehicleParamsForPlayer(129, playerid, 0, 1);
    SetVehicleParamsForPlayer(130, playerid, 0, 1);
    SetVehicleParamsForPlayer(131, playerid, 0, 1);
    SetVehicleParamsForPlayer(132, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(133, playerid, 0, 1);
	return 1;
	}
	
	// HellZ AngelZ LOCK

    UnlockHaCars(playerid)
{
    SetVehicleParamsForPlayer(154, playerid, 0, 0);
    SetVehicleParamsForPlayer(155, playerid, 0, 0);
    SetVehicleParamsForPlayer(156, playerid, 0, 0);
    SetVehicleParamsForPlayer(157, playerid, 0, 0);
    SetVehicleParamsForPlayer(158, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(159, playerid, 0, 0);
    SetVehicleParamsForPlayer(160, playerid, 0, 0);
    SetVehicleParamsForPlayer(161, playerid, 0, 0);
    SetVehicleParamsForPlayer(162, playerid, 0, 0);
    SetVehicleParamsForPlayer(163, playerid, 0, 0);
    SetVehicleParamsForPlayer(164, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(165, playerid, 0, 0);
    SetVehicleParamsForPlayer(166, playerid, 0, 0);
    SetVehicleParamsForPlayer(167, playerid, 0, 0);
    }

LockHaCars(playerid)
{
    SetVehicleParamsForPlayer(154, playerid, 0, 1);
    SetVehicleParamsForPlayer(155, playerid, 0, 1);
    SetVehicleParamsForPlayer(156, playerid, 0, 1);
    SetVehicleParamsForPlayer(157, playerid, 0, 1);
    SetVehicleParamsForPlayer(158, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(159, playerid, 0, 1);
    SetVehicleParamsForPlayer(160, playerid, 0, 1);
    SetVehicleParamsForPlayer(161, playerid, 0, 1);
    SetVehicleParamsForPlayer(162, playerid, 0, 1);
    SetVehicleParamsForPlayer(163, playerid, 0, 1);
    SetVehicleParamsForPlayer(164, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(165, playerid, 0, 1);
    SetVehicleParamsForPlayer(166, playerid, 0, 1);
    SetVehicleParamsForPlayer(167, playerid, 0, 1);
	return 1;
	}
	
		// BUS Lock

    UnlockBusCars(playerid)
{
    SetVehicleParamsForPlayer(168, playerid, 0, 0);
    SetVehicleParamsForPlayer(169, playerid, 0, 0);
    SetVehicleParamsForPlayer(170, playerid, 0, 0);
    SetVehicleParamsForPlayer(171, playerid, 0, 0);
    SetVehicleParamsForPlayer(172, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(173, playerid, 0, 0);
    SetVehicleParamsForPlayer(174, playerid, 0, 0);
    SetVehicleParamsForPlayer(175, playerid, 0, 0);
    SetVehicleParamsForPlayer(176, playerid, 0, 0);
    SetVehicleParamsForPlayer(177, playerid, 0, 0);
    SetVehicleParamsForPlayer(178, playerid, 0, 0);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(179, playerid, 0, 0);
    }

LockBusCars(playerid)
{
    SetVehicleParamsForPlayer(168, playerid, 0, 1);
    SetVehicleParamsForPlayer(169, playerid, 0, 1);
    SetVehicleParamsForPlayer(170, playerid, 0, 1);
    SetVehicleParamsForPlayer(171, playerid, 0, 1);
    SetVehicleParamsForPlayer(172, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(173, playerid, 0, 1);
    SetVehicleParamsForPlayer(174, playerid, 0, 1);
    SetVehicleParamsForPlayer(175, playerid, 0, 1);
    SetVehicleParamsForPlayer(176, playerid, 0, 1);
    SetVehicleParamsForPlayer(177, playerid, 0, 1);
    SetVehicleParamsForPlayer(178, playerid, 0, 1);//use as many of these as needed, E.G: 7 cop car = 7 SetVehicleParamsForplayer!
    SetVehicleParamsForPlayer(179, playerid, 0, 1);
	return 1;
	}

//LOCK
main()
{
	print("\n----------------------------------");
	print(" GOD Clan Server [RPG]");
	print("----------------------------------\n");
}



public KickAll()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
  if (IsPlayerConnected(i))
{
Kick(i);
}
}
}

public OnGameModeInit()
{

	AddPlayerClass(0, 1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
  	AddPlayerClass(53,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(57,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(58,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(67,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(75,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(76,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(78,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(84,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(85,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(87,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(88,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(89,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(91,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(92,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(93,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(95,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(96,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(97,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(98,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(100,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(121,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(128,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(129,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(150,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(177,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(180,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(187,1686.8230,1447.7712,10.7689,268.7401, 0, 0, 0, 0, 0, 0);
	
	CreateObject(1257,2286.4231,965.5225,10.3332, 90, 90, 90);
	CreateObject(1257,2141.1045,925.9335,10.8203, 90, 90, 90);
	CreateObject(1257,2233.8601,1313.4581,10.8203, 90, 90, 90);
	CreateObject(1257,2269.8379,2130.0857,10.8203, 90, 90, 90);
	CreateObject(1257,2262.8813,2406.6550,10.8203, 90, 90, 90);
	CreateObject(1257,2115.5420,1909.5956,10.8203, 90, 90, 90);
	CreateObject(1257,2035.3372,1543.1182,10.8203, 90, 90, 90);
	CreateObject(1257,2035.8081,1007.7198,10.8203, 90, 90, 90);
	CreateObject(1257,-159.6178,1228.0432,19.7422, 90, 90, 90);
	CreateObject(1257,-311.4272,1742.4532,43.0398, 90, 90, 90);
	CreateObject(1257,-1288.4409,2710.0420,50.0625, 90, 90, 90);
	CreateObject(1257,-273.9768,2623.2380,62.9070, 90, 90, 90);
	CreateObject(1257,1421.6392,2610.8826,10.8203, 90, 90, 90);
	CreateObject(1257,2371.3130,627.0947,10.8203, 90, 90, 90);
	CreateObject(1257,1013.7438,1895.4719,10.8203, 90, 90, 90);
	CreateObject(1257,1534.5487,2115.3455,10.8203, 90, 90, 90);

//COPCARS (1 - 38)

    AddStaticVehicleEx(598,2273.5459,2476.9202,10.6093,180.4616,53,53, 72000000); // lvpd-1
    AddStaticVehicleEx(598,2255.5574,2477.3787,10.6101,0.0200,53,53, 72000000); // lvpd-2
    AddStaticVehicleEx(598,2255.9778,2442.9236,10.5302,358.4282,53,53, 72000000); // lvpd-3
    AddStaticVehicleEx(598,2260.4255,2459.5542,10.6099,180.4487,53,53, 72000000); // lvpd-4
    AddStaticVehicleEx(598,2291.1682,2467.5518,10.5670,359.1339,53,53, 72000000); // lvpd-5
    AddStaticVehicleEx(598,2288.6697,2424.8081,10.5670,269.8439,53,53, 72000000); // lvpd-6
    AddStaticVehicleEx(599,2303.2119,2430.6553,3.4997,177.6252,53,53, 72000000); // lvpd-7
    AddStaticVehicleEx(599,2241.1458,2476.2239,3.5133,89.6670,53,53, 72000000); // lvpd-8
    AddStaticVehicleEx(490,2268.0994,2474.3828,3.4998,0.2734,0,0, 72000000); // lvpd-tev1
    AddStaticVehicleEx(490,2272.5256,2474.3369,3.4650,0.3126,0,0, 72000000); // lvpd-tev2
    AddStaticVehicleEx(599,-2158.2378,-2391.1924,30.7920,231.3226,0,93, 72000000); // appd-1
    AddStaticVehicleEx(599,-2168.7942,-2382.7241,30.7879,50.7642,0,93, 72000000); // appd-2
    AddStaticVehicleEx(599,-209.7037,998.9528,19.8359,179.5817,0,99, 72000000); // fcpd-1
    AddStaticVehicleEx(490,-227.9827,986.8130,19.8126,359.9878,0,0, 72000000); // fcpd-tev
    AddStaticVehicleEx(599,-215.3607,973.4886,19.4332,271.4514,0,99, 72000000); // fcpd-2
    AddStaticVehicleEx(599,620.8708,-597.0390,17.3325,268.5867,0,93, 72000000); // dpd-1
    AddStaticVehicleEx(599,620.8895,-601.4503,17.3309,269.3235,0,93, 72000000); // dpd-2
    AddStaticVehicleEx(490,635.4242,-576.9704,16.0670,359.9992,0,0, 72000000); // dpd-3
    AddStaticVehicleEx(599,-1400.1700,2656.5740,55.9397,90.0919,0,99, 72000000); // eqpd-1
    AddStaticVehicleEx(599,-1399.5916,2647.0581,55.9399,87.6285,0,99, 72000000); // eqpd-2
    AddStaticVehicleEx(490,-1399.9691,2640.8357,55.8529,269.5368,0,99, 72000000); // eqpd-tev
    AddStaticVehicleEx(598,-1400.3755,2631.5142,55.5376,270.1350,0,99, 72000000); // eqpd-3
    AddStaticVehicleEx(598,-1410.7462,2630.1064,55.4784,0.7146,0,99, 72000000); // eqpd-4
    AddStaticVehicleEx(523,-1412.3741,2649.1125,55.2801,183.5332,0,99, 72000000); // eqpd-bike1
    AddStaticVehicleEx(597,-1606.0087,673.7371,6.9845,1.2131,23,79, 72000000); // sfpd-1
    AddStaticVehicleEx(597,-1587.9940,674.2937,6.9850,180.9109,23,79, 72000000); // sfpd-2
    AddStaticVehicleEx(597,-1588.2476,651.6285,6.9913,177.5259,23,79, 72000000); // sfpd-3
    AddStaticVehicleEx(599,-1633.9285,650.9810,7.4001,358.9937,23,79, 72000000); // sfpd-4
    AddStaticVehicleEx(490,-1573.7371,710.1235,-5.0571,90.7016,1,1, 72000000); // sfpd-tev1
    AddStaticVehicleEx(541,-1572.8530,714.2773,-5.4922,88.7002,0,0, 72000000); // sfpd-tev2
    AddStaticVehicleEx(596,1604.6550,-1625.4084,13.2386,90.9901,1,1, 72000000); //  lspd-1
    AddStaticVehicleEx(596,1604.6243,-1622.2081,13.2489,91.5505,1,1, 72000000); // lspd-2
    AddStaticVehicleEx(490,1585.0198,-1680.4612,5.6839,269.4049,0,0, 72000000); // lspd-tev
    AddStaticVehicleEx(599,1601.5441,-1687.9636,6.0381,270.7893,1,1, 72000000); // lspd-3
    AddStaticVehicleEx(596,1595.0114,-1709.7249,5.6226,179.7219,1,1, 72000000); // lspd-4
    AddStaticVehicleEx(490,1578.6515,-1711.7103,6.0379,359.2814,0,0, 72000000); // lspd-tev
    AddStaticVehicleEx(596,1536.3231,-1667.2554,13.1103,358.4323,1,1, 72000000); // lspd-front1
    AddStaticVehicleEx(599,1536.2727,-1677.3441,13.5727,357.7906,1,1, 72000000); // lspd-front2
// ------------------------------------------------------------------------------------------------------------------------------------

//strip cars (39 - 63) ----------------------------------------------------------------------------------------------------------------
    AddStaticVehicleEx(477,2038.8057,996.7324,10.4246,178.0239,-1,-1, 72000000); // strip1
    AddStaticVehicleEx(536,2075.4270,1100.3224,10.4094,359.4723,-1,-1, 72000000); // Stripnorth1
    AddStaticVehicleEx(411,2075.2349,1241.6407,10.3990,0.0974,-1,-1, 72000000); // Stripnorth2
    AddStaticVehicleEx(424,2074.8977,1348.3702,10.4535,0.3034,-1,-1, 72000000); // stripnorth3
    AddStaticVehicleEx(422,2075.0190,1488.4863,10.6539,0.8329,-1,-1, 72000000); // stripnorth5
    AddStaticVehicleEx(423,2074.7085,1577.6064,10.6969,0.2388,-1,-1, 72000000); // stripnorth6
    AddStaticVehicleEx(572,2092.7266,1694.3508,10.4002,24.5251,-1,-1, 72000000); // calimower
    AddStaticVehicleEx(576,2181.5645,1822.3754,10.4303,0.1691,-1,-1, 72000000); // Circus1
    AddStaticVehicleEx(600,2156.3269,1787.7637,10.5382,180.6086,-1,-1, 72000000); // circus2
    AddStaticVehicleEx(445,2187.2639,1979.2461,10.6953,271.5924,-1,-1, 72000000); // stripdiner1
    AddStaticVehicleEx(578,2360.8140,1917.5728,11.2950,180.2416,1,1, 72000000); // lorryclown1
    AddStaticVehicleEx(451,2227.3223,2131.6453,10.4500,271.0877,-1,-1, 72000000); // Turismostrip1
    AddStaticVehicleEx(522,2118.9199,2188.1055,10.2315,116.1510,-1,-1, 72000000); // nrg1
    AddStaticVehicleEx(521,2118.9973,2186.8442,10.2386,122.2298,-1,-1, 72000000); // fcr
    AddStaticVehicleEx(585,2085.4014,1795.5880,10.2571,153.5175,-1,-1, 72000000); // stripsouth 1
    AddStaticVehicleEx(480,2053.7070,1732.8665,10.4468,154.6406,-1,-1, 72000000); // stripsouth2
    AddStaticVehicleEx(582,2418.9658,1132.0167,10.8776,183.2482,41,20, 72000000); // newsvan
    AddStaticVehicleEx(420,1881.7621,956.9111,10.5976,89.2659,6,1, 72000000); // random car... 4d CP
    AddStaticVehicleEx(420,1919.7158,708.6900,10.5998,358.5882,6,1, 72000000); // random car... South LV CP
    AddStaticVehicleEx(420,1935.9403,708.5153,10.6021,359.5459,6,1, 72000000); // random car southlv carpark 2
    AddStaticVehicleEx(420,2292.1655,610.6434,10.5960,181.5578,6,1, 72000000); // DOCKLVCAR1
    AddStaticVehicleEx(420,2274.9475,552.7291,7.5596,182.9349,6,1, 72000000); // DOCKLVCAR2
    AddStaticVehicleEx(420,2345.6001,548.8235,7.5590,269.4847,6,1, 72000000); // docklvcar3
    AddStaticVehicleEx(420,2358.2454,597.2010,7.5593,90.3758,6,1, 72000000); // docklvcar 4
    AddStaticVehicleEx(420,2291.4353,808.4792,12.2630,358.8987,6,1, 72000000); // bridgecar South LV
    //----------------------------------------------------------------------------------------------------------------------------------
    
    // BAYSIDE (64 - 88 ------------------------------------------------------------------------------------------------------------------
    AddStaticVehicleEx(541,-2426.6975,2346.4783,4.5994,191.4405,0,1, 772000000); // bullet2ayside
    AddStaticVehicleEx(490,-2252.1367,2293.9568,4.9434,89.4971,0,126, 772000000); // BAYSIDERANCHER1
    AddStaticVehicleEx(490,-2251.6775,2306.1006,4.9401,90.5096,0,126, 772000000); // BAYSIDERANCHER2
    AddStaticVehicleEx(490,-2271.7620,2297.4614,4.9494,270.2184,0,126, 772000000); // BAYSIDERANCHER3
    AddStaticVehicleEx(490,-2272.2312,2309.3596,4.9476,269.0605,0,126, 772000000); // BAYSIDERANCHER4
    AddStaticVehicleEx(425,-2227.7673,2325.2932,8.1190,178.3238,86,0, 772000000); // baysidehunter
    AddStaticVehicleEx(497,-2524.4336,2310.1543,13.6952,68.1982,85,126, 772000000); // baysidecopheli
    AddStaticVehicleEx(415,-2470.7190,2225.3423,4.6148,0.2914,126,1, 772000000); // Baysidecheetah
    AddStaticVehicleEx(541,-2458.6443,2225.3608,4.4686,359.8247,85,126, 772000000); // baysidebullet
    AddStaticVehicleEx(461,-2456.7732,2248.7693,4.4921,29.7086,42,126, 772000000); // baysidepcj
    AddStaticVehicleEx(409,-2479.5046,2224.7668,4.6342,359.3515,126,126, 772000000); // baysidelimo
    AddStaticVehicleEx(530,-2473.7402,2303.9104,4.7482,273.0457,126,126, 772000000); // adzfrklift
    AddStaticVehicleEx(572,-2558.6033,2262.5901,4.6397,333.9919,126,126, 772000000); // BRETTS MOWER
    AddStaticVehicleEx(597,-2251.9248,2317.7876,4.5820,91.4053,126,0, 772000000); // BAYSIDECOPCARSF1
    AddStaticVehicleEx(597,-2253.1809,2323.7712,4.5815,91.0259,126,0, 772000000); // BAYSIDE SF COPCAR2
    AddStaticVehicleEx(427,-2252.4983,2288.0476,4.9479,89.5096,0,126, 72000000); // BAYSIDE ENFORCER1
    AddStaticVehicleEx(427,-2271.7788,2288.3738,4.9521,270.5258,0,126, 72000000); // BAYSIDE ENFORCER2
    AddStaticVehicleEx(598,-2271.3293,2321.2107,4.5684,269.5150,126,0, 72000000); // baysidecopVG1
    AddStaticVehicleEx(598,-2271.5127,2327.3618,4.5598,268.9004,126,0, 72000000); // VGCOP2BAYSIDE
    AddStaticVehicleEx(432,-2229.9382,2348.0647,5.0035,99.4245,126,126, 72000000); // RHINOBAYSIDE
    AddStaticVehicleEx(432,-2228.6646,2341.2139,4.9885,92.4039,126,126, 72000000); // rhinobayside2
    AddStaticVehicleEx(601,-2229.9473,2299.1643,5.1531,54.2439,126,126, 72000000); // SWATBAYSIDE1
    AddStaticVehicleEx(601,-2233.9932,2294.3330,5.1023,51.2050,126,126, 72000000); // baysice swat2
    AddStaticVehicleEx(599,-2271.6931,2336.2954,4.9993,270.4094,0,126, 72000000); // baysideranch
    AddStaticVehicleEx(599,-2271.7896,2330.2566,5.0056,270.5407,0,126, 72000000); // baysideranch2

	//synd 89 - 100 ) -----------------------------------------------------------------------------------------------------------------
	AddStaticVehicleEx(541,2540.9026,2381.7495,3.8359,90.9569,0,0, 72000000); // SYNDbullet1
    AddStaticVehicleEx(541,2541.2725,2377.0134,3.8358,88.6855,0,0, 72000000); // SYNDBULLET2
    AddStaticVehicleEx(451,2541.1570,2367.8972,3.8358,91.5162,0,0, 72000000); // SYNDTURISMO1
    AddStaticVehicleEx(451,2541.7661,2363.2419,3.8360,90.8012,0,0, 72000000); // SYNDTURISMO2
    AddStaticVehicleEx(429,2524.6724,2363.6418,3.8412,269.5875,0,0, 72000000); // SYNDBANSHEE1
    AddStaticVehicleEx(429,2524.9106,2368.2166,3.8358,270.0946,0,0, 72000000); // SYNDBANSHEE2
    AddStaticVehicleEx(411,2525.3279,2377.1443,3.8359,270.1808,0,0, 72000000); // SYNDINFERN1
    AddStaticVehicleEx(411,2524.5940,2381.6770,3.8358,271.7795,0,0, 72000000); // SYNDINFERN2
    AddStaticVehicleEx(562,2519.6211,2397.2327,3.8359,180.5223,0,0, 72000000); // SYNDELEGY
    AddStaticVehicleEx(562,2515.5151,2398.0234,3.8358,180.1313,0,0, 72000000); // SYNDELEGY2
    AddStaticVehicleEx(462,2513.0537,2368.0906,3.8429,88.4363,0,0, 72000000); // SYNDFAG1
    AddStaticVehicleEx(462,2513.4822,2377.1479,3.8359,90.9890,0,0, 72000000); // SYNDFAG2

    //SWAT  (101 - 116)-------------------------------------------------------------------------------------
    AddStaticVehicleEx(427,-1472.0701,459.5571,7.3125,1.7411,0,79, 72000000); // SWAT1
    AddStaticVehicleEx(427,-1468.0862,459.6317,7.3128,2.1243,0,79, 72000000); // SWAT2
    AddStaticVehicleEx(427,-1464.3527,459.9203,7.3129,5.6213,0,79, 72000000); // SWAT3
    AddStaticVehicleEx(427,-1460.7889,460.0773,7.3136,5.0556,0,79, 72000000); // SWAT4
    AddStaticVehicleEx(427,-1457.2852,460.3240,7.3163,3.3298,0,79, 72000000); // SWAT5
    AddStaticVehicleEx(427,-1453.7574,460.6300,7.3162,4.2617,0,79, 72000000); // SWAT6
    AddStaticVehicleEx(427,-1450.3110,460.7990,7.3155,1.2981,0,79, 72000000); // SWAT7
    AddStaticVehicleEx(427,-1446.4421,460.9852,7.3158,1.0154,0,79, 72000000); // SWAT8
    AddStaticVehicleEx(601,-1427.4526,458.5871,6.9422,357.0672,1,1, 72000000); // SWATTANK1
    AddStaticVehicleEx(601,-1423.4988,458.2898,6.9431,356.1459,1,1, 72000000); // SWATTANK2
    AddStaticVehicleEx(601,-1419.8724,458.3243,6.9454,0.1728,1,1, 72000000); // SWATTANK3
    AddStaticVehicleEx(601,-1416.1869,458.0889,6.9462,355.0779,1,1, 72000000); // SWATTANK4
    AddStaticVehicleEx(528,-1405.7688,459.0301,7.2241,359.9294,0,0, 72000000); // ARMSWAT1
    AddStaticVehicleEx(528,-1402.2091,459.0626,7.2258,358.7403,0,0, 72000000); // ARMSWAT2
    AddStaticVehicleEx(528,-1398.6909,458.9948,7.2261,356.8728,0,0, 72000000); // ARMSWAT3
    AddStaticVehicleEx(528,-1395.1825,458.8887,7.2277,356.4515,0,0, 72000000); // ARMSWAT4
    
    	//Army (117 - 133)---------------------------------------------------------------------------------------------------------------
    AddStaticVehicleEx(425,245.4748,1971.4550,18.2115,6.8917,43,0, 72000000); // ARMYHUNTER1
    AddStaticVehicleEx(425,228.9366,1969.3409,18.2128,4.0132,43,0, 72000000); // HUNTERARMY2
    AddStaticVehicleEx(425,241.5266,2012.4188,18.2138,187.1063,43,0, 72000000); // ARMYhunter 3
    AddStaticVehicleEx(425,227.1187,2016.2889,18.2126,178.8259,43,0, 72000000); // armyhunter4
    AddStaticVehicleEx(548,356.6172,1966.2468,19.2673,82.8879,1,1, 72000000); // Armycargobob
    AddStaticVehicleEx(433,354.4506,1974.2109,18.0769,87.5799,43,0, 72000000); // Armybarracks5
    AddStaticVehicleEx(433,353.8410,1959.9462,18.0774,86.4287,43,0, 72000000); // barracks6
    AddStaticVehicleEx(470,290.3510,1978.3804,17.6338,275.2582,43,0, 72000000); // Patriot1
    AddStaticVehicleEx(470,292.3138,2000.8391,17.6315,270.2458,43,0, 72000000); // patriot2
    AddStaticVehicleEx(470,290.7950,2011.4574,17.6347,268.6751,43,0, 72000000); // patriot3
    AddStaticVehicleEx(470,291.0714,2035.3315,17.6336,273.6747,43,0, 72000000); // patriot4
    AddStaticVehicleEx(470,292.1930,1968.3871,17.6329,272.7228,43,0, 72000000); // patriot5
    AddStaticVehicleEx(470,291.2439,1943.8741,17.6356,269.8456,43,0, 72000000); // patriot6
    AddStaticVehicleEx(432,277.2742,1955.0890,17.6533,270.9935,43,0, 72000000); // ARMYTANK1
    AddStaticVehicleEx(432,274.5860,1988.9349,17.6533,272.8703,43,0, 72000000); // ARMYTANK2
    AddStaticVehicleEx(432,275.6337,2024.1041,17.6535,271.4655,43,0, 72000000); // ARMYTANK3
//swat Helis 134 - 136)
    AddStaticVehicleEx(497,-1358.3047,466.9390,7.3682,89.6375,0,79, 72000000); // SWATHELI1
    AddStaticVehicleEx(497,-1367.7903,473.7687,7.3642,90.9916,0,79, 72000000); // swatheli2
    AddStaticVehicleEx(447,-1371.4006,463.5724,7.1992,88.6257,75,2, 72000000); // SWATSS
    //Lloyd  (137 - 144)
    AddStaticVehicleEx(487,1291.3909,-787.9411,96.6348,0.7525,126,0, 72000000); // Lloyd Heli
    AddStaticVehicleEx(415,1242.9025,-804.5630,83.9118,182.5318,0,0, 72000000); // lloydcheetah1
    AddStaticVehicleEx(415,1254.8116,-805.0479,83.9131,180.3835,0,0, 72000000); // cheetah llyoyd 2
    AddStaticVehicleEx(409,1248.9281,-806.8245,83.9406,180.7604,6,126, 72000000); // lloyd limo
    AddStaticVehicleEx(523,1246.0150,-804.5894,83.7109,178.6290,0,0, 72000000); // Lloydbike1
    AddStaticVehicleEx(523,1245.9337,-807.9714,83.7071,178.6289,0,0, 72000000); // lloydbike2
    AddStaticVehicleEx(523,1252.0541,-803.8945,83.7104,179.8605,0,0, 72000000); // lloydbike3
    AddStaticVehicleEx(523,1252.0447,-807.7690,83.7090,179.8606,0,0, 72000000); // lloydbike4
    
    //police boats SF 144- 145)
    AddStaticVehicleEx(430,-1475.5350,700.9429,0.2366,354.5562,56,53, 72000000); // police boat 1
    AddStaticVehicleEx(430,-1476.6625,687.3782,0.0628,357.1330,56,53, 72000000); // policeboat 2
    
    //swat cars 146 - 148)
    
    AddStaticVehicleEx(597,-1432.5513,457.9022,6.9467,357.9039,44,1, 72000000); // SWATPATROLCAR1
    AddStaticVehicleEx(597,-1436.2292,457.6643,6.9606,2.6132,44,1, 72000000); // SWAT PATROL CAR 2
    AddStaticVehicleEx(597,-1439.7368,457.5320,6.9409,5.2332,44,1, 72000000); // SWAT PATROL CAR 3

	//more tgs 149 - 153
    AddStaticVehicleEx(480,2542.4006,2397.3982,3.9837,178.4674,0,0, 72000000); // Comet TGS 1
    AddStaticVehicleEx(480,2537.7004,2397.4961,3.9844,179.1610,0,0, 72000000); // Comet TGS 2
    AddStaticVehicleEx(522,2479.5198,2353.4102,3.7817,267.2513,0,0, 72000000); // TGS NRG 1
    AddStaticVehicleEx(522,2479.4292,2355.9285,3.7818,267.9338,0,0, 72000000); // TGS NRG 2
    AddStaticVehicleEx(522,2479.0696,2358.9307,3.7817,268.0828,0,0, 72000000); // TGS NRG 3

	//HELLZ ANGELZ 154 - 167
    AddStaticVehicleEx(522,-237.9080,2595.1179,62.2667,356.2902,0,0, 72000000); // HELLZ ANGELSNRG1
    AddStaticVehicleEx(522,-235.0037,2595.7102,62.2738,3.6593,0,0, 72000000); // HELLZANGELZNRG2
    AddStaticVehicleEx(522,-231.9200,2595.6833,62.2669,359.9964,0,0, 72000000); // HELLZANGELZNRG3
    AddStaticVehicleEx(522,-228.9899,2595.4963,62.2732,0.0164,0,0, 72000000); // HELLZANGELZNRG4
    AddStaticVehicleEx(463,-201.3197,2595.7432,62.2730,357.5380,0,0, 72000000); // HAFREEWAYNEEDID
    AddStaticVehicleEx(463,-204.4869,2596.3215,62.2746,0.5568,0,0, 72000000); // HAFREEWAYNEEDCODE2
    AddStaticVehicleEx(463,-207.4190,2595.3843,62.2676,356.9340,0,0, 72000000); // HAFREEWAYNEEDCODE3
    AddStaticVehicleEx(463,-210.0150,2595.1404,62.2739,0.5010,0,0, 72000000); // HAFREEWAYNEEDCODE4
    AddStaticVehicleEx(521,-213.1070,2608.5996,62.2815,177.9302,0,0, 72000000); // HA FCR 1
    AddStaticVehicleEx(521,-209.9186,2608.1331,62.2759,179.2015,0,0, 72000000); // HA FCR2
    AddStaticVehicleEx(581,-228.7077,2608.7339,62.2739,181.8034,0,0, 72000000); // HABF1
    AddStaticVehicleEx(581,-231.5649,2608.3640,62.2735,176.3731,0,0, 72000000); // HABF2
    AddStaticVehicleEx(437,-271.8840,2609.6738,62.4295,90.4779,0,0, 72000000); // HA COACH437
    AddStaticVehicleEx(504,-261.9450,2587.1384,63.1350,85.3747,0,0, 72000000); // HA BLOODRA 504

	// BUS 168 - 179
    AddStaticVehicleEx(431,1626.5643,741.1287,10.9217,177.9787,123,123, 72000000); // BROWNBUS1
    AddStaticVehicleEx(431,1643.3418,741.0387,10.9157,180.9216,123,123, 72000000); // BROWNBUS3
    AddStaticVehicleEx(431,1634.9435,740.7900,10.9247,178.0697,123,123, 72000000); // BROWNBUS2
    AddStaticVehicleEx(431,1643.8605,699.9824,10.9196,0.8013,86,86, 72000000); // GREENBUS1
    AddStaticVehicleEx(431,1626.6167,699.8786,10.9222,0.2084,86,86, 72000000); // GREENBUS3
    AddStaticVehicleEx(431,1635.1732,699.9780,10.9134,359.7610,86,86, 72000000); // GREENBUS2
    AddStaticVehicleEx(431,1684.0100,739.7711,10.9211,179.3531,3,3, 72000000); // REDBUS1
    AddStaticVehicleEx(431,1692.9691,739.7334,10.9234,178.8909,3,3, 72000000); // REDBUS2
    AddStaticVehicleEx(431,1701.9989,739.7299,10.9206,177.8661,3,3, 72000000); // REDBUS3
    AddStaticVehicleEx(431,1700.7620,698.2939,10.9254,358.2111,6,6, 72000000); // YELLOWBUS1
    AddStaticVehicleEx(431,1692.7574,698.5314,10.8855,359.8653,6,6, 72000000); // YELLOWBUS2
    AddStaticVehicleEx(431,1683.7263,698.4483,10.9221,359.6908,6,6, 72000000); // YELLOWBUS3

	//POLICE HELICOPTERS 180 - 184
    AddStaticVehicleEx(497,2283.9099,2452.9080,47.1544,90.0172,0,6, 72000000); // LVPD-heli1
    AddStaticVehicleEx(497,2271.5959,2444.5610,47.1512,177.7738,0,6, 72000000); // LVPD-HELI2
    AddStaticVehicleEx(497,-1379.4377,2648.9734,58.8343,182.0317,0,6, 72000000); // EQPD-HELI
    AddStaticVehicleEx(497,-1678.4795,705.9395,30.7783,89.1902,0,6, 72000000); // SFPD-HELI
    AddStaticVehicleEx(497,-2208.3794,-2375.5193,31.3703,224.6434,0,6, 72000000); // appd-HELI

    	//FBI
    AddStaticVehicleEx(487,-582.1824,2591.0825,66.0114,170.4910,26,3, 72000000); // FBI HELI 1
	AddStaticVehicleEx(487,-569.6972,2588.3677,66.0134,173.5159,3,29, 72000000); // FBIHELI2
	AddStaticVehicleEx(490,-546.2803,2620.5176,53.6430,268.4630,0,0, 72000000); // FBI1
    AddStaticVehicleEx(490,-546.1281,2616.4934,53.6430,269.2285,0,0, 72000000); // FBI2
    AddStaticVehicleEx(490,-546.2686,2571.6418,53.6444,268.4462,0,0, 72000000); // FBI3
    AddStaticVehicleEx(490,-546.2726,2567.7334,53.6443,269.6403,0,0, 72000000); // FBI4
    AddStaticVehicleEx(421,-507.9648,2606.1482,53.2976,91.4824,0,0, 72000000); // FBI5
    AddStaticVehicleEx(421,-527.0880,2612.0752,53.2888,90.1467,0,0, 72000000); // FBI6
    AddStaticVehicleEx(421,-509.1323,2568.2158,53.2976,269.6023,0,1, 72000000); // FBI7
    AddStaticVehicleEx(421,-528.3267,2558.6848,53.2966,268.7167,0,0, 72000000); // FBI8


		//govern roadblock and shit :p
    AddStaticVehicleEx(427,2419.7095,1087.9719,10.9621,87.5078,0,1, 72000000); // Meetingblock1
    AddStaticVehicleEx(427,2426.4663,1085.1755,10.8093,87.8084,0,1, 72000000); // Governblock2
    AddStaticVehicleEx(427,2433.8000,1087.5096,10.8800,268.5291,0,1, 72000000); // governblock3
    AddStaticVehicleEx(427,2419.7803,1178.5466,10.9532,91.7197,0,1, 72000000); // governblock4
    AddStaticVehicleEx(427,2433.7446,1179.3641,10.8729,273.8847,0,1, 72000000); // governblock5
    AddStaticVehicleEx(427,2426.1277,1181.4142,10.8038,95.0625,0,1, 72000000); // governblock6
    AddStaticVehicleEx(599,2441.6526,1159.5281,11.0093,357.6906,0,1, 72000000); // governalleyblock1
    AddStaticVehicleEx(599,2441.2227,1123.5012,11.0100,0.9926,0,1, 72000000); // governalleyblock2
    AddStaticVehicleEx(582,2415.5784,1131.9802,10.8767,180.8164,41,20, 72000000); // news2
    AddStaticVehicleEx(409,2422.4033,1123.8912,10.5408,179.8557,0,0, 72000000); // President Limo
    AddStaticVehicleEx(523,2421.6292,1115.8533,10.3863,179.7858,0,0, 72000000); // presbike1
    AddStaticVehicleEx(523,2423.3936,1115.8506,10.2402,183.0626,0,0, 72000000); // prescopbike2
    AddStaticVehicleEx(523,2422.8828,1131.2599,10.2395,182.0516,0,0, 72000000); // prescop3
    AddStaticVehicleEx(523,2421.6287,1131.1914,10.3909,182.1777,0,0, 72000000); // prescopbike4

    AddStaticVehicleEx(480,1730.6838,1917.1063,10.5931,309.6256,-1,-1, 72000000); // USEDCARS1
    AddStaticVehicleEx(602,1731.1571,1944.6912,10.6263,219.3190,-1,-1, 72000000); // AUTOMOTERS2
    AddStaticVehicleEx(401,1740.9856,1935.2906,10.5987,22.3347,-1,-1, 72000000); // number 3 AUTOS
    AddStaticVehicleEx(522,2105.0635,2082.2678,10.3537,92.0157,-1,-1, 72000000); // NRGcp1
    AddStaticVehicleEx(522,2104.3940,2079.2703,10.3912,99.0395,-1,-1, 72000000); // NRGcp2
    AddStaticVehicleEx(522,2103.6179,2076.0466,10.3986,85.8057,3,8, 72000000); // NRGcp3
    AddStaticVehicleEx(522,2102.4346,2072.8354,10.3912,90.2821,-1,-1, 72000000); // NRGcp4

	//Airport
    AddStaticVehicleEx(476,1283.1499,1362.2689,11.5106,269.7975,7,6, 72000000); // rustler1
    AddStaticVehicleEx(476,1278.2808,1323.8247,11.5322,269.6244,1,6, 72000000); // rustler2
    AddStaticVehicleEx(511,1285.9918,1393.2794,12.1959,266.6783,4,90, 72000000); // Beagle
    AddStaticVehicleEx(592,1559.6631,1352.9866,12.0649,304.7962,1,1, 72000000); // Andro
    AddStaticVehicleEx(553,1583.4575,1543.0586,12.1486,227.3407,55,23, 72000000); // nevada
    AddStaticVehicleEx(519,1574.8744,1502.7639,11.7576,287.8245,1,1, 72000000); // Shamal
    AddStaticVehicleEx(477,1590.6294,1437.3309,10.5858,122.3148,101,1, 72000000); // sports1
    AddStaticVehicleEx(477,1587.2177,1443.3246,10.5887,99.5587,101,1, 72000000); // sports2
    AddStaticVehicleEx(477,1584.9417,1455.9584,10.5840,107.2145,101,1, 72000000); // sports3
    AddStaticVehicleEx(477,1588.2856,1464.3073,10.5828,51.9566,101,1, 72000000); // sports4


    AddStaticVehicleEx(449,-2006.5618,151.9109,27.3113,359.5704,4,4, 72000000); //  tram sf
    AddStaticVehicleEx(537,-1943.3127,158.0254,27.0006,357.3614,121,1,99999); //main train
    AddStaticVehicleEx(569,-1943.3127,158.0254,27.0006,357.3614,121,1,99999); // train carriage
    AddStaticVehicleEx(569,-1943.3127,158.0254,27.0006,357.3614,121,1,99999); //train carriage
    AddStaticVehicleEx(569,-1943.3127,158.0254,27.0006,357.3614,121,1,99999); // train carriage


	//taxi
    AddStaticVehicleEx(420,2107.1699,1408.6930,10.5931,359.9911,6,1, 72000000); // Taxi1
    AddStaticVehicleEx(420,2113.4802,1408.1844,10.6249,0.7831,6,1, 72000000); // taxi2
    AddStaticVehicleEx(420,2119.9485,1408.4943,10.6128,358.8254,6,1, 72000000); // taxi3
    AddStaticVehicleEx(420,2126.2444,1408.2075,10.6119,359.4631,6,1, 72000000); // taxi4
    AddStaticVehicleEx(420,2132.8330,1408.7015,10.5996,1.2357,6,1, 72000000); // taxi5
    AddStaticVehicleEx(420,2139.1167,1409.2551,10.5998,0.0797,6,1, 72000000); // taxi6
    
    //random cars
    AddStaticVehicleEx(562,-2027.6997,143.0748,28.4973,87.2526,-1,-1, 72000000); // SF CIVILCAR    560
    AddStaticVehicleEx(562,-2026.9020,124.6356,28.7711,180.7147,-1,-1, 72000000); // CIVILSF 560 2
    AddStaticVehicleEx(437,-1988.9863,130.6405,27.6516,0.6427,-1,-1, 72000000); // Bus SF TRAIN STATION1
    AddStaticVehicleEx(437,-1988.9585,143.7607,27.6724,1.5104,-1,-1, 72000000); // BUS SFTRAINSTATION 2
    AddStaticVehicleEx(411,-2033.2002,170.0280,28.5630,91.4607,-1,-1, 72000000); // SFGARAGE INFERN 1
    AddStaticVehicleEx(411,-2033.6508,178.4514,28.5784,91.5558,-1,-1, 72000000); // INFERN2 SF GARAGE
    AddStaticVehicleEx(418,-2034.4868,174.3809,28.9308,270.2868,-1,-1, 72000000); // MOONBEAM SF TELE
    AddStaticVehicleEx(411,2481.8394,-1653.5579,13.1176,92.1198,-1,1, 72000000); // LSTELE infern
    AddStaticVehicleEx(412,2505.0854,-1679.4292,13.2909,142.4788,-1,-1, 72000000); // LSTELE Voodo 1
    AddStaticVehicleEx(415,2482.2925,-1684.1826,13.1749,71.8523,-1,-1, 72000000); // Cheetah 1 LSTELE
    AddStaticVehicleEx(415,2501.6919,-1654.9961,13.2526,59.8193,-1,-1, 72000000); // CHEETAH2 LSTELE
    
        // Pickups

    AddStaticPickup(370, 2, 2488.7031,2401.0229,10.8203); // Jetpack Spawn TGS





	// Don't use these lines if it's a filterscript
	SetGameModeText("GOD Clan :RPG v1 0.2.1");
    SetTimer("UpdateScore", 200, 1);
    SetTimer("RefreshPlayerZone", 3000, 1);
	return 1;
	}
	

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1674.9885,1448.1128,14.8943);
	SetPlayerCameraPos(playerid, 1676.6852,1448.2719,14.8985);
	SetPlayerCameraLookAt(playerid, 1674.9885,1448.1128,14.8943);
	allClassId[playerid]=classid;
    allWantedLevels[playerid]=0; //no wanted level at the beginning of the game
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
    new PlayerName[30], str[256];
    GetPlayerName(playerid, PlayerName, 30);
    format(str, 256, "%s has joined the server!", PlayerName);
    SendClientMessageToAll(0xFF9900AA, str);
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to GoD Clan RPG");
    SendClientMessage(playerid, COLOR_YELLOW, "This server is under Major Construction.. Type /help for info");
    SendClientMessage(playerid, COLOR_YELLOW, "If you are new here, you may realise... there is no cars at LV Airport");
    SendClientMessage(playerid, COLOR_YELLOW, "Please Wait for a Bus to come and pick you up, there is many routes");
    SendClientMessage(playerid, COLOR_YELLOW, "Red, White, Green and Yellow Bus routes will take you round the city");
    
    GameTextForPlayer(playerid,"~r~GoD:Clan ~w~RPG!",2000,5);
    

	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        printf("OnPlayerDisconnect(%d)", playerid);
        new PlayerName[30], str[256];
        GetPlayerName(playerid, PlayerName, 30);
        format(str, 256, "*** %s has left the server.", PlayerName);
        SendClientMessageToAll(0xFF9900AA, str);
        return 1;
}

public OnPlayerSpawn(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to GoD Clan RPG");
    SendClientMessage(playerid, COLOR_YELLOW, "This server is under Major Construction.. Type /help for info");
    SendClientMessage(playerid, COLOR_YELLOW, "This is a RolePlay Server, PLEASE ROLEPLAY :D");
    SendClientMessage(playerid, COLOR_YELLOW, "The Road infront of the airport is closed for Busses and Police only");
    SendClientMessage(playerid, COLOR_LGREEN, "Need emergency Police Help??   /call911   Need Taxi  /calltaxi");
	SetPlayerColor(playerid, COLOR_WHITE);
	LockAdminCars(playerid);
	LockCopCars(playerid);
	LockSyndCars(playerid);
	LockSwatCars(playerid);
	LockArmyCars(playerid);
	LockHaCars(playerid);
	LockBusCars(playerid);
	
	if(gTeam[playerid] == TEAM_COP)
	UnlockCopCars(playerid);
	
	if(gTeam[playerid] == TEAM_SWAT)
	UnlockSwatCars(playerid);
	
	if(gTeam[playerid] == TEAM_ARMY)
	UnlockArmyCars(playerid);
	
	if(gTeam[playerid] == TEAM_SYND)
	UnlockSyndCars(playerid);
	
	if(gTeam[playerid] == TEAM_ADMINPOLICE)
	UnlockAdminCars(playerid);
	
	if(gTeam[playerid] == TEAM_HA)
	UnlockHaCars(playerid);
	
	if(gTeam[playerid] == TEAM_BUS)
	UnlockBusCars(playerid);
	
        return 1;
    }


public OnPlayerDeath(playerid, killerid, reason)
{

if(killerid == INVALID_PLAYER_ID) {
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	} else {
        if(gTeam[killerid] != gTeam[playerid]) {
	    	// Valid kill
	    	SendDeathMessage(killerid,playerid,reason);
			SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
     	}
		else {
		    // Team kill
		    SendDeathMessage(killerid,playerid,reason);
		}
	}
 	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
//Create
    new cmd[255];
    new idx;
	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/a", true) == 0 ){
	if(IsPlayerAdmin(playerid) == 1){
    new tmp[256];
	new objid;
	new rot;
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) {
	SendClientMessage(playerid, COLOR_RED, "/addman [objid] [rot]");
	return 1;
}
	objid = strval(tmp);
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) {
		SendClientMessage(playerid, COLOR_RED, "/addman [objid] [rot]");
	return 1;
}
	new Float:X, Float:Y,Float:Z,Float:rX,Float:rY;
	GetPlayerPos(playerid, X, Y, Z);
	rot = strval(tmp);
	SetPlayerPos(playerid,X,Y,Z +5);
	CreateObject(objid, X, Y, Z, rX, rY, rot);
	}
        return 1;
    }


//car locking code copied from Allan.
	if (strcmp(cmdtext, "/lock", true)==0)
		{
			if(IsPlayerInAnyVehicle(playerid))
			{
				new State=GetPlayerState(playerid);
				if(State!=PLAYER_STATE_DRIVER)
				{
					SendClientMessage(playerid,0xFFFF00AA,"You can only lock the doors as the driver.");
					return 1;
				}
				new i;
				for(i=0;i<MAX_PLAYERS;i++)
				{
					if(i != playerid)
					{
						SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1);
					}
				}
				SendClientMessage(playerid, 0xFFFF00AA, "Vehicle locked!");
		    	new Float:pX, Float:pY, Float:pZ;
				GetPlayerPos(playerid,pX,pY,pZ);
				PlayerPlaySound(playerid,1056,pX,pY,pZ);
			}
			else
			{
				SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!");
			}
		return 1;
		}


if (strcmp(cmdtext, "/unlock", true)==0)
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
			new State=GetPlayerState(playerid);
			if(State!=PLAYER_STATE_DRIVER)
			{
				SendClientMessage(playerid,0xFFFF00AA,"You can only unlock the doors as the driver.");
				return 1;
			}
			new i;
			for(i=0;i<MAX_PLAYERS;i++)
			{
				SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
			}
			SendClientMessage(playerid, 0xFFFF00AA, "Vehicle unlocked!");
			new Float:pX, Float:pY, Float:pZ;
			GetPlayerPos(playerid,pX,pY,pZ);
			PlayerPlaySound(playerid,1057,pX,pY,pZ);
		}
		else
		{
			SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!");
		}
	return 1;
	}

// BUSROUTES

    if(strcmp(cmdtext, "/busroutes", true) == 0) {
	SendClientMessage(playerid, COLOR_RED, "Welcome to San Andreas Bus Transportation Route Help");
	SendClientMessage(playerid, COLOR_LGREEN, "Please note, our bus drivers are highlighted this color");
	SendClientMessage(playerid, COLOR_LGREEN, "There are FOUR Bus Routes in San Andreas, Here they are and where they stop");
	SendClientMessage(playerid, COLOR_LGREEN, "----------------------All Routes are continuous and FREE-------------------");
	SendClientMessage(playerid, COLOR_YELLOW, "YELLOW ROUTE = LV Airport > Ammunation > The Sphinx > LVPD");
	SendClientMessage(playerid, COLOR_ARMYGREEN, "GREEN ROUTE = LV Airport > Old Strip > LVPD > Visage > Ship > 4D Casino");
	SendClientMessage(playerid, COLOR_RED, "RED ROUTE = LV Airport > Whitewood > Bandits Ground > North LV Train > Rockshore");
	SendClientMessage(playerid, COLOR_BROWN, "BROWN ROUTE = LV Airport > Fort Carson > SA Geiser > El Quabrellos > Las Payasades");
	return 1;
}

//----------------------------------------------------

if(strcmp(cmdtext,"/kickpassenger",true)==0){
new vehicleid;
new tmp[256];
new pid;
new string[256];
new playerstate = GetPlayerState(playerid);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
tmp = strtok(cmdtext,idx);
if(!IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle");
return 1;
}
if(playerstate == PLAYER_STATE_PASSENGER){
SendClientMessage(playerid,COLOR_RED,"Passengers can't use This!");
return 1;
}
vehicleid = GetPlayerVehicleID(playerid);
if(!strlen(tmp)){
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /kickpassenger [playerid]");
return 1;
}
pid = strval(tmp);
if(IsPlayerConnected(pid)){
SendClientMessage(playerid,COLOR_RED,"That Player Is Not Connected...");
return 1;
}
if(!IsPlayerInVehicle(pid,vehicleid)){
SendClientMessage(playerid,COLOR_RED,"That Player Is Not In Your Vehicle...");
return 1;
}
RemovePlayerFromVehicle(pid);
format(string,sizeof(string),"You have been kicked from %s's Vehicle",playername);
SendClientMessage(playerid,COLOR_RED,string);
return 1;
}

//logins

	if (strcmp(cmdtext, "/xray99-dpp", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into cops!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BLUE, " You Are Now BLUE :D ");
		gTeam[playerid] = TEAM_COP;
		SetPlayerColor(playerid, COLOR_BLUE);
		SetPlayerPos(playerid, 2295.0293,2459.4961,10.8203);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 41, 9999999);
        GivePlayerWeapon(playerid, 25, 200);
        UnlockCopCars(playerid);
		SetPlayerSkin(playerid, 280);
        return 1;
    }
    
	if (strcmp(cmdtext, "/lloydslogin", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into Lloyds Secret Login!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BLUE, " You Are Now Light Pink :D ");
		gTeam[playerid] = TEAM_L;
		SetPlayerColor(playerid, COLOR_LPINK);
		SetPlayerPos(playerid, 2295.0293,2459.4961,10.8203);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 41, 9999999);
        GivePlayerWeapon(playerid, 25, 200);
        UnlockCopCars(playerid);
		SetPlayerSkin(playerid, 280);
        return 1;
    }

    if (strcmp(cmdtext, "/sapdswatinit", true) == 0) {
        UnlockSwatCars(playerid);
		SendClientMessage(playerid, COLOR_RED, "You Are logged into SAPD SWAT!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BLUE, " You Are Now BLUE :D ");
		gTeam[playerid] = TEAM_SWAT;
		SetPlayerColor(playerid, COLOR_BLUE);
		SetPlayerPos(playerid, -1435.5046,477.5872,7.1875);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 41, 9999999);
        GivePlayerWeapon(playerid, 17, 20);
        GivePlayerWeapon(playerid, 32, 20000);
        GivePlayerWeapon(playerid, 27, 200);
        GivePlayerWeapon(playerid, 31, 9000);
		SetPlayerSkin(playerid, 285);
	    UnlockSwatCars(playerid);
        return 1;
    }
	
    if (strcmp(cmdtext, "/fbisecmen", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into The FBI");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BLUE, " You Are Now Colored BLUE, Make sure [FBI] is after your name :D ");
		gTeam[playerid] = TEAM_FBI;
		SetPlayerColor(playerid, COLOR_BLUE);
		SetPlayerPos(playerid, 1607.2640,1061.0624,10.8203);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 29, 1000);
        GivePlayerWeapon(playerid, 25, 200);
        GivePlayerWeapon(playerid, 41, 4000);
        GivePlayerWeapon(playerid, 34, 200);
		SetPlayerSkin(playerid, 286);
        return 1;
	}
	
		if (strcmp(cmdtext, "/siryessir", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into Army!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BLUE, " You Are Now Colored Green :D ");
		gTeam[playerid] = TEAM_ARMY;
		SetPlayerColor(playerid, COLOR_ARMYGREEN);
		SetPlayerPos(playerid, 225.1377,1822.5035,6.4141);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 42, 1000);
        GivePlayerWeapon(playerid, 31, 9999999);
        GivePlayerWeapon(playerid, 36, 200);
        GivePlayerWeapon(playerid, 27, 6000);
        GivePlayerWeapon(playerid, 32, 6000);
        GivePlayerWeapon(playerid, 46, 1);
        UnlockCopCars(playerid);
		SetPlayerSkin(playerid, 287);
		UnlockArmyCars(playerid);
        return 1;
    }

    if (strcmp(cmdtext, "/secadminpolice", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into The Admins Secret Police :D!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BRIGHTPINK, " You Are Now BRIGHTPINK :D ");
		gTeam[playerid] = TEAM_ADMINPOLICE;
		SetPlayerColor(playerid, COLOR_BRIGHTPINK);
		SetPlayerPos(playerid, -2260.0725,2276.8772,4.9844);
		SetPlayerHealth(playerid, 100.0);
		SetPlayerArmour(playerid, 100.0);
		GivePlayerWeapon(playerid, 24, 4000000);
        GivePlayerWeapon(playerid, 4, 1);
        GivePlayerWeapon(playerid, 29, 1000000);
        GivePlayerWeapon(playerid, 27, 2000000);
        GivePlayerWeapon(playerid, 36, 2000);
        GivePlayerWeapon(playerid, 34, 2000000);
        GivePlayerWeapon(playerid, 41, 4444444);
        GivePlayerWeapon(playerid, 43, 55555552);
        GivePlayerWeapon(playerid, 25, 200);
        GivePlayerWeapon(playerid, 16, 20000000);
        GivePlayerWeapon(playerid, 46, 1);
		SetPlayerSkin(playerid, 217);
		UnlockAdminCars(playerid);
		SendClientMessageToAll(COLOR_BRIGHTPINK, "%s Is Now An Online Administrator!");
        return 1;
	}
	
	    if (strcmp(cmdtext, "/secadminpolicepres", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into The Admins Secret Police President :D!!");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_BRIGHTPINK, " You Are Now BRIGHTPINK :D ");
		gTeam[playerid] = TEAM_ADMINPOLICE;
		SetPlayerColor(playerid, COLOR_BRIGHTPINK);
		SetPlayerPos(playerid, -2260.0725,2276.8772,4.9844);
		SetPlayerHealth(playerid, 100.0);
		SetPlayerArmour(playerid, 100.0);
		GivePlayerWeapon(playerid, 24, 40000000);
        GivePlayerWeapon(playerid, 4, 1);
        GivePlayerWeapon(playerid, 29, 1000000);
        GivePlayerWeapon(playerid, 27, 2000000);
        GivePlayerWeapon(playerid, 36, 2000);
        GivePlayerWeapon(playerid, 34, 20000000);
        GivePlayerWeapon(playerid, 41, 4444444);
        GivePlayerWeapon(playerid, 43, 555555520);
        GivePlayerWeapon(playerid, 25, 200);
        GivePlayerWeapon(playerid, 16, 20000000);
        GivePlayerWeapon(playerid, 46, 1);
		SetPlayerSkin(playerid, 217);
		UnlockAdminCars(playerid);
		SendClientMessageToAll(COLOR_BRIGHTPINK, "%s Is Now An Online Administrator!");
        return 1;
	}

    if (strcmp(cmdtext, "/10tgsdannotgs10", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into The Getaway Syndicates");
		SendClientMessage(playerid, COLOR_RED, "---------- YOUR LEADER IS Scarface -----------");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_YELLOW, " You Are Now A Member of the Getaway Syndicate ");
		gTeam[playerid] = TEAM_SYND;
		SetPlayerColor(playerid, COLOR_YELLOW);
		SetPlayerPos(playerid, 2489.8552,2397.3574,4.2109);
		GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 31, 3000);
        GivePlayerWeapon(playerid, 28, 4000);
		SetPlayerSkin(playerid, 28);
		UnlockSyndCars(playerid);
        return 1;
	}
	
	if (strcmp(cmdtext, "/bikerzfuckyeh", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into HellZ AngelZ!!");
		SendClientMessage(playerid, COLOR_RED, "---------- YOUR LEADER IS [GoD]ButtonZ");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_ORANGE, " You Are Now Orange :D ");
		gTeam[playerid] = TEAM_HA;
		SetPlayerColor(playerid, COLOR_ORANGE);
		SetPlayerPos(playerid, -254.5211,2602.8940,62.8582);
		GivePlayerWeapon(playerid, 9, 1);
        GivePlayerWeapon(playerid, 18, 20);
        GivePlayerWeapon(playerid, 24, 400);
        GivePlayerWeapon(playerid, 28, 4000);
        GivePlayerWeapon(playerid, 27, 1000);
        GivePlayerWeapon(playerid, 30, 5000);
		SetPlayerSkin(playerid, 100);
		UnlockHaCars(playerid);
        return 1;
    }
    
   	if (strcmp(cmdtext, "/godbusdrivers", true) == 0) {
		SendClientMessage(playerid, COLOR_RED, "You Are logged into The Bus Company!!");
		SendClientMessage(playerid, COLOR_RED, "--------------------------------");
		SendClientMessage(playerid, COLOR_RED, "--- COMMANDS TO COME SOON ---");
		SendClientMessage(playerid, COLOR_LGREEN, " You Are Now Sea Green :D ");
		gTeam[playerid] = TEAM_BUS;
		SetPlayerColor(playerid, COLOR_LGREEN);
		SetPlayerPos(playerid, -254.5211,2602.8940,62.8582);
		SetPlayerSkin(playerid, 166);
		UnlockBusCars(playerid);
        return 1;
    }
    
    	if (strcmp(cmdtext, "/help", true) == 0) {
		SendClientMessage(playerid, COLOR_YELLOW, "Welcome to GoD Clan");
		SendClientMessage(playerid, COLOR_RED, "SERVER UNDER MAJOR CONSTRUCTION");
        SendClientMessage(playerid, COLOR_YELLOW, "type /commands for the availiable commands");
        SendClientMessage(playerid, COLOR_YELLOW, "type /busroutes For the basic Routes");
        SendClientMessage(playerid, COLOR_YELLOW, "type /rules For basic rules, more will be on the forum");
        return 1;
        }
    
    	if (strcmp(cmdtext, "/commands", true) == 0) {
		SendClientMessage(playerid, COLOR_YELLOW, "Welcome to GoD Clan");
		SendClientMessage(playerid, COLOR_RED, "SERVER UNDER MAJOR CONSTRUCTION");
		SendClientMessage(playerid, COLOR_YELLOW, "/call911 (stay where you are) /ambulance (stay there)  /fire (stay there)");
        SendClientMessage(playerid, COLOR_YELLOW, "/about  /colors   /colors2");
        SendClientMessage(playerid, COLOR_RED, "More Commands Soon To Come");
        return 1;
        }

    	if (strcmp(cmdtext, "/about", true) == 0) {
		SendClientMessage(playerid, COLOR_YELLOW, "------- GoD Clan 2007 -------");
		SendClientMessage(playerid, COLOR_RED, "SERVER UNDER MAJOR CONSTRUCTION");
		SendClientMessage(playerid, COLOR_YELLOW, "Server and Commands Scripted by [GoD]ButtonZ");
		SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------");
        SendClientMessage(playerid, COLOR_YELLOW, "www.teenchatnation.com    << temporary Website");
        SendClientMessage(playerid, COLOR_YELLOW, "To Join, please register on the forums");
        SendClientMessage(playerid, COLOR_YELLOW, "Remember this is RP, we only DM in clan Wars.");
        SendClientMessage(playerid, COLOR_RED, "Server and Site = Major construction");
        return 1;
        }
        
        if (strcmp(cmdtext, "/rules", true) == 0) {
		SendClientMessage(playerid, COLOR_YELLOW, "------- GoD Clan 2007 -------");
		SendClientMessage(playerid, COLOR_RED, "SERVER UNDER MAJOR CONSTRUCTION");
		SendClientMessage(playerid, COLOR_YELLOW, "1: No Hacking, Cheating, Modding of Any Kind");
		SendClientMessage(playerid, COLOR_YELLOW, "2: Whilst in Roleplay DO NOT TELEPORT");
        SendClientMessage(playerid, COLOR_YELLOW, "3: If you are in jail do not 'escape'");
        SendClientMessage(playerid, COLOR_YELLOW, "4: NO DMMING");
        SendClientMessage(playerid, COLOR_YELLOW, "5: Keep swearing to a minimal please");
        SendClientMessage(playerid, COLOR_RED, "/rules2 for more rules");
        return 1;
        }
        
        if (strcmp(cmdtext, "/rules2", true) == 0) {
		SendClientMessage(playerid, COLOR_YELLOW, "------- GoD Clan 2007 -------");
		SendClientMessage(playerid, COLOR_RED, "SERVER UNDER MAJOR CONSTRUCTION");
		SendClientMessage(playerid, COLOR_YELLOW, "1: No Hacking, Cheating, Modding of Any Kind");
		SendClientMessage(playerid, COLOR_YELLOW, "2: Whilst in Roleplay DO NOT TELEPORT");
        SendClientMessage(playerid, COLOR_YELLOW, "3: If you are in jail do not 'escape'");
        SendClientMessage(playerid, COLOR_YELLOW, "4: NO DMMING");
        SendClientMessage(playerid, COLOR_YELLOW, "5: Keep swearing to a minimal please");
        SendClientMessage(playerid, COLOR_RED, "/rules2 for more rules");
        return 1;
        }
        
        // WANTED HELP COMMAND
        
        
        

// RED ALERT

		if (strcmp(cmdtext, "/redalert", true)==0)
{
    if(IsPlayerAdmin(playerid))
    {
        new string[256];
        new aname[256];
        GetPlayerName(playerid,aname,sizeof(aname));
        GameTextForAll("~r~Red Alert",7000,4);
        format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
        SendClientMessageToAll(0xAA3333AA,string);
        SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
        RedAlertTimer = SetTimer("KickAll",10000,0);
        SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
        printf("%s has initialized the red alert countdown.",aname);
        return 1;
    }
    else
	{
    return 1;
    }
}
if (strcmp(cmdtext, "/abort", true)==0)
{
    if(IsPlayerAdmin(playerid))
    {
        new string[256];
        new aname[256];
        GetPlayerName(playerid,aname,sizeof(aname));
        GameTextForAll("~y~Red Alert Aborted",7000,4);
        format(string,sizeof(string), "Admin: %s has canceled the Red Alert",aname);
        SendClientMessageToAll(0x33AA33AA,string);
        KillTimer(RedAlertTimer);
        SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
printf("%s has cancelled the red alert countdown.",aname);
        return 1;
}
else
{
                return 1;
    }
}
        
        
 //--------------------------------------------------------------------------------------------------------------------------------------
    
    if(strcmp(cmdtext, "/lvtele", true)==0) {
  if(IsPlayerInAnyVehicle(playerid)) {
    SetVehiclePos(GetPlayerVehicleID(playerid), 2038.4742,1338.9492,10.6719);
    SetVehicleZAngle(GetPlayerVehicleID(playerid),265.7448);
  }
  else {
    SetPlayerPos(playerid, 2485.3784,-1669.2168,13.3359);
    SetPlayerFacingAngle(playerid,181.7940);
    SetPlayerInterior(playerid,0);
  }
  GameTextForPlayer(playerid,"~W~Welcome To Las Venturas",3000,5);
return 1;
}




if(strcmp(cmdtext, "/lstele", true)==0) {
  if(IsPlayerInAnyVehicle(playerid)) {
    SetVehiclePos(GetPlayerVehicleID(playerid), 2485.3784,-1669.2168,13.3359);
    SetVehicleZAngle(GetPlayerVehicleID(playerid),265.7448);
  }
  else {
    SetPlayerPos(playerid, 2038.4742,1338.9492,10.6719);
    SetPlayerFacingAngle(playerid,181.7940);
    SetPlayerInterior(playerid,0);
  }
  GameTextForPlayer(playerid,"~W~Welcome To Los Santos",3000,5);
return 1;
}




if(strcmp(cmdtext, "/sftele", true)==0) {
  if(IsPlayerInAnyVehicle(playerid)) {
    SetVehiclePos(GetPlayerVehicleID(playerid), -2030.0209,174.6712,28.8359);
    SetVehicleZAngle(GetPlayerVehicleID(playerid),265.7448);
  }
  else {
    SetPlayerPos(playerid, -2030.0209,174.6712,28.8359);
    SetPlayerFacingAngle(playerid,181.7940);
    SetPlayerInterior(playerid,0);
  }
  GameTextForPlayer(playerid,"~W~Welcome To San Fierro",3000,5);
return 1;
}


//---- COLORS ----------------------------------------------------------------------------------------------------------------------------

	if (strcmp(cmdtext, "/colors", true) == 0) {
		SendClientMessage(playerid, COLOR_WHITE, "WHITE = CIVILIANS");
		SendClientMessage(playerid, COLOR_BRIGHTPINK, "PINK = ADMINISTRATORS");
        SendClientMessage(playerid, COLOR_BLUE, "BLUE = COPS, SWAT and FBI");
		SendClientMessage(playerid, COLOR_ORANGE, "ORANGE = HellZ AngelZ BikerZ");
		SendClientMessage(playerid, COLOR_YELLOW, "YELLOW = The Getaway Syndicate");
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "LIGHTBLUE = Man/Woman in Need of Police");
		SendClientMessage(playerid, COLOR_ARMYGREEN, "GREEN = ARMY");
		SendClientMessage(playerid, 0xFFFFFFAA, "Please type /colors2 for more");
    }
    
   	if (strcmp(cmdtext, "/colors2", true) == 0) {
		SendClientMessage(playerid, COLOR_WHITE, "MORE NEED TO BE MADE");
    }

// ME COMMAND ----------------------------------------------------------------------------------------------------------------------------

if(strcmp(cmdtext, "/me", true, 3)==0) {
new pname[24], string[256];
GetPlayerName(playerid, pname, 24);
format(string, 256, "* %s %s", pname, cmdtext[4]);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}

// MEDIC COMMAND ------------------------------------------------------------------------------------------------------------------------

if(strcmp(cmdtext, "/ambulance", true, 6)==0) {
new pname[24], string[256];
GetPlayerName(playerid, pname, 24);
format(string, 256, "%s Requires Emergency MEDICAL Assistance", pname, cmdtext[4]);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
return 1;
}

// fireeeeeeeeeeeeeeeeee -----------------------------------------------------------------------------------------------------------------

if(strcmp(cmdtext, "/fire", true, 5)==0) {
new pname[24], string[256];
GetPlayerName(playerid, pname, 24);
format(string, 256, "%s Has Reported a Fire at their Location", pname, cmdtext[4]);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
return 1;
}

// NEWS ---------------------------------------------------------------------------------------------------------------------------------

if(strcmp(cmdtext, "/newsman", true, 8) == 0) {
new pname[24], string[256];
GetPlayerName(playerid, pname, 24);
format(string, 256, "*NEWS REPORT::  %s", cmdtext[8]);
SendClientMessageToAll(COLOR_ORANGE, string);
return 1;
}

//SAPD ALERT

if(strcmp(cmdtext, "/pd", true, 3) == 0) {
if (gTeam[playerid] == TEAM_COP) {
new pname[24], string[256];
GetPlayerName(playerid, pname, 24);
format(string, 256, "*Police Notice: %s", cmdtext[3]);
SendClientMessageToAll(0xFF0000AA, string);
return 1;
}
}

// ADMIN /ME SPOOF COMMAND :D ------------------------------------------------------------------------------------------------------------

if(strcmp(cmd,"/i",true)==0){
new tmp[256];
new string[256];
new pid[256];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /i [playerid] [text]");
return 1;
}
format(string, 256, "* %s: %s",(pid),tmp);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
return 1;
}

//----------------------------------------------------------------------------------------------------------------------------------------
	
	// COP COMMANDS BLED
	
	if(strcmp(cmd, "/jail", true) == 0) {
             new tmp[256];
             new playername[25];
             new sendername[25];
             new string[MAX_STRING];
             new giveplayerid;
             new giveplayer[MAX_PLAYER_NAME];
                printf("idx = %d", idx);
				tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_ORANGE, "Usage: /jail [Player ID]");
                        return 1;
                }
        giveplayerid = strval(tmp);

        if (gTeam[playerid] == TEAM_COP) {                    // this can be changed to admin if you wish
            if (IsPlayerConnected(giveplayerid)) {
                      GetPlayerName(giveplayerid, playername, sizeof(playername));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
                                SendClientMessage(playerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "You have been jailed by Officer %s (ID:%d)!", sendername, playerid);
                                SendClientMessage(giveplayerid, COLOR_RED, string);
                                format(string, sizeof(string), "%s (ID:%d) has been jailed by Officer %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid);
                                SendClientMessageToAll(COLOR_LIGHTBLUE, string);
                                printf(string);
                                SetPlayerInterior(giveplayerid,3);
                                SetPlayerPos(giveplayerid,198.3797,160.8905,1003.0300);
                                SetPlayerFacingAngle(giveplayerid,177.0350);
                                SetCameraBehindPlayer(giveplayerid);
                                PlayerPlaySound(giveplayerid,1082,198.3797,160.8905,1003.0300);
                                TogglePlayerControllable(giveplayerid,0);   // sp that can't /kill
                                DisablePlayerCheckpoint(giveplayerid);
                                return 1;
                                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
                                SendClientMessage(playerid, COLOR_YELLOW, string);
}
                }else{
        format(string, sizeof(string), "SERVER: Cops only.", giveplayerid);
                                SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
if(strcmp(cmd, "/unjail", true) == 0) {
             new tmp[256];
             new sendername[25];
             new string[MAX_STRING];
             new giveplayerid;
             new giveplayer[MAX_PLAYER_NAME];
                printf("idx = %d", idx);
				tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_ORANGE, "Usage: /jail [Player ID]");
                        return 1;
                }
        giveplayerid = strval(tmp);

        if (gTeam[playerid] == TEAM_COP) {
            if (IsPlayerConnected(giveplayerid)) {
                      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "You have unjailed %s (ID:%d)", giveplayer, giveplayerid);
                                SendClientMessage(playerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "You have been unjailed by Officer %s (ID:%d)!", sendername, playerid);
                                SendClientMessage(giveplayerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "%s (ID:%d) has been unjailed Officer %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid);
                                SendClientMessageToAll(COLOR_LIGHTBLUE, string);
                                printf(string);
                                SetPlayerInterior(giveplayerid,0);
                                SetPlayerFacingAngle(giveplayerid,90.00);
                                SetPlayerPos(giveplayerid,2296.4031,2468.7754,10.8203);
                                SetPlayerFacingAngle(giveplayerid,177.0350);
                                SetCameraBehindPlayer(giveplayerid);
                                TogglePlayerControllable(giveplayerid,1);
                                return 1;
                                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
                                SendClientMessage(playerid, COLOR_YELLOW, string);
}
                }else{
        format(string, sizeof(string), "SERVER: Cops only.", giveplayerid);
                                SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}

//-----------------------------------------------------------------------------------------------------------

//wanted level ----------------

if(strcmp(cmd, "/setwantedlevel", true, 15)==0) {
if(gTeam[playerid] == TEAM_COP)
{
  new wantedplayerid;
  new wantedlevel;


  wantedplayerid=strval(strtok(cmdtext, idx)); //replace intval with the function that convert a string into an int and strtok to a splitting function.
  wantedlevel=strval(strtok(cmdtext, idx)); //replace intval with the function that convert a string into an int and strtok to a splitting function.

  allWantedLevels[wantedplayerid]=wantedlevel;

   new message[256];
   new wantedplayername[30];
   GetPlayerName(wantedplayerid, wantedplayername, MAX_PLAYER_NAME);
   format(message, sizeof(message), "%s has now wanted level %d", wantedplayername, wantedlevel);
   SetPlayerColor(wantedplayerid, 0xFF0000AA);
   SetPlayerWantedLevel(wantedplayerid, wantedlevel);
   SendClientMessageToAll(COLOR_ORANGE, message);

  for(new i;i<MAX_PLAYERS;i++)
  {
      if(!IsPlayerConnected(i)) { continue; }
      if(gTeam[playerid] == TEAM_COP)
      {
          SendClientMessage(i, 0xFF0000FF, message); //send a "red" message
      }
}
return 1;
}


//------------------------------------------------

	if(strcmp(cmdtext, "/911", true, 4) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
    new nineoneoneplayerid;
    new ninemessage[256];
    new nineoneoneplayername[30];
    GetPlayerName(nineoneoneplayerid, nineoneoneplayername, MAX_PLAYER_NAME);
    nineoneoneplayerid=strval(strtok(cmdtext, idx)); //replace intval with the function that convert a string into an int and strtok to a splitting function.
    format(ninemessage, sizeof(ninemessage), "%s has Been Helped by the Police", nineoneoneplayername);
	SetPlayerColor(nineoneoneplayerid, 0xFFFFFFAA);

	for(new i;i<MAX_PLAYERS;i++)
    {
      if(allClassId[i]==TEAM_COP) //replace TEAM_COP with the good classid: if the first addPlayerClass is for the cops so cops' classid is 0...
      {
          SendClientMessage(i, 0xFF0000FF, ninemessage); //send a "red" message
      }
return 1;
}
return 1;
}
}
}
//-----------------------------------------------------

	if(strcmp(cmdtext, "/po", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "THIS IS THE SAPD, PULL OVER NOW!!!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/mo", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "THIS IS THE POLICE, MOVE OUT OF THE WAY!!!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/st", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "POLICE, STOP!!!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/en", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "THIS IS THE SAPD, SWITCH OFF THE ENGINE AND THROW YOUR KEYS");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/ar", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "THIS IS THE SAPD, YOU'RE UNDER ARREST!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/ex", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "OUT THE VEHICLE AND ON THE GROUND NOW");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

    if(strcmp(cmdtext, "/mo", true) == 0) {
	if(gTeam[playerid] == TEAM_COP)
    {
	SendClientMessageToAll(COLOR_RED, "THIS IS THE SAPD, MOVE OUT THE WAY!!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the Police Force");
	}
	return 1;
}

	if(strcmp(cmdtext, "/dpd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, 621.5112,-592.6478,17.2330);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/appd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, -2162.9580,-2387.0247,30.6250);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/lvpdh", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, 2282.6584,2449.6414,46.9775);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/eqpd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, -1392.4642,2638.4382,55.9664);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}

    if(strcmp(cmdtext, "/lvpd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, 2287.4529,2429.7080,10.8203);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/fcpd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, -216.4379,978.7852,19.4957);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/sfpd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, -1615.8234,685.6168,7.1875);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
    if(strcmp(cmdtext, "/lspd", true) == 0) {
    if(gTeam[playerid] == TEAM_COP)
	{
	SetPlayerPos(playerid, 1580.4758,-1634.8900,13.5611);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}

	
	
	//SWAT COMMANDS!!!
	
	if(strcmp(cmd, "/ja", true) == 0) {
             new tmp[256];
             new playername[25];
             new sendername[25];
             new string[MAX_STRING];
             new giveplayerid;
             new giveplayer[MAX_PLAYER_NAME];
                printf("idx = %d", idx);
				tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_ORANGE, "Usage: /ja [Player ID]");
                        return 1;
                }
        giveplayerid = strval(tmp);

        if (gTeam[playerid] == TEAM_SWAT) {                    // this can be changed to admin if you wish
            if (IsPlayerConnected(giveplayerid)) {
                      GetPlayerName(giveplayerid, playername, sizeof(playername));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
                                SendClientMessage(playerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "You have been jailed by SWAT Officer %s (ID:%d)!", sendername, playerid);
                                SendClientMessage(giveplayerid, COLOR_RED, string);
                                format(string, sizeof(string), "%s (ID:%d) has been jailed by SWAT Officer %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid);
                                SendClientMessageToAll(COLOR_LIGHTBLUE, string);
                                printf(string);
                                SetPlayerInterior(giveplayerid,3);
                                SetPlayerPos(giveplayerid,198.3797,160.8905,1003.0300);
                                SetPlayerFacingAngle(giveplayerid,177.0350);
                                SetCameraBehindPlayer(giveplayerid);
                                PlayerPlaySound(giveplayerid,1082,198.3797,160.8905,1003.0300);
                                TogglePlayerControllable(giveplayerid,0);   // sp that can't /kill
                                DisablePlayerCheckpoint(giveplayerid);
                                return 1;
                                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
                                SendClientMessage(playerid, COLOR_YELLOW, string);
}
                }else{
        format(string, sizeof(string), "SERVER: SWAT only.", giveplayerid);
                                SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
if(strcmp(cmd, "/unja", true) == 0) {
             new tmp[256];
             new sendername[25];
             new string[MAX_STRING];
             new giveplayerid;
             new giveplayer[MAX_PLAYER_NAME];
                printf("idx = %d", idx);
				tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_ORANGE, "Usage: /ja [Player ID]");
                        return 1;
                }
        giveplayerid = strval(tmp);

        if (gTeam[playerid] == TEAM_SWAT) {
            if (IsPlayerConnected(giveplayerid)) {
                      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "You have unjailed %s (ID:%d)", giveplayer, giveplayerid);
                                SendClientMessage(playerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "You have been unjailed by SWAT Officer %s (ID:%d)!", sendername, playerid);
                                SendClientMessage(giveplayerid, COLOR_LGREEN, string);
                                format(string, sizeof(string), "%s (ID:%d) has been unjailed SWAT Officer %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid);
                                SendClientMessageToAll(COLOR_LIGHTBLUE, string);
                                printf(string);
                                SetPlayerInterior(giveplayerid,0);
                                SetPlayerFacingAngle(giveplayerid,90.00);
                                SetPlayerPos(giveplayerid,2296.4031,2468.7754,10.8203);
                                SetPlayerFacingAngle(giveplayerid,177.0350);
                                SetCameraBehindPlayer(giveplayerid);
                                TogglePlayerControllable(giveplayerid,1);
                                return 1;
                                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
                                SendClientMessage(playerid, COLOR_YELLOW, string);
}
                }else{
        format(string, sizeof(string), "SERVER: SWAT only.", giveplayerid);
                                SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}

	if(strcmp(cmdtext, "/lvs", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
	{
	SetPlayerPos(playerid, 2281.8657,2425.4705,3.4766);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT official Police!!");
	}
	return 1;
	}
	
	if(strcmp(cmdtext, "/fr", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "Freeze! This is the SWAT!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/sp", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "This is the SWAT! Pull Over!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/hu", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "Hands Up, And holster your gun!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/go", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "Get out the vehicle, and put your hands up!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/ho", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "Holster your gun, Or we will use force!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/hq", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_RED, "This is the SWAT HQ, Leave this area, Or we will shoot!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}

    if(strcmp(cmdtext, "/aa", true) == 0) {
	if(gTeam[playerid] == TEAM_SWAT)
    {
	SendClientMessageToAll(COLOR_BLUE, "Attention All Units: Suspect is down!");
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not in the SWAT");
	}
	return 1;
}
	
	//FBI COMMANDS!!!!!
	
	if(strcmp(cmdtext, "/fbiheli", true) == 0) {
	if(gTeam[playerid] == TEAM_FBI)
	{
	SetPlayerPos(playerid, -576.0876,2578.6848,65.8368);
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You Are NOT In The FBI!!");
	}
	return 1;
	}
	
	if(strcmp(cmd, "/calltaxi", true) == 0) {
         new taxicall[256];
         new name[MAX_PLAYER_NAME];
		 GetPlayerName(playerid, name, MAX_PLAYER_NAME);
         format(taxicall,256,"*** %s is calling for a taxi [He's in %s]", name, zones[player_zone[playerid]][zone_name]);
		 SendClientMessageToAll(COLOR_YELLOW, taxicall);
   		 return 1;
    }

    //call911

        if(strcmp(cmd, "/call911", true) == 0) {
         new copcall[256];
         new name[MAX_PLAYER_NAME];
		 GetPlayerName(playerid, name, MAX_PLAYER_NAME);
         format(copcall,256,"*** %s Needs Police Assistance [At %s]", name, zones[player_zone[playerid]][zone_name]);
		 SendClientMessageToAll(COLOR_BLUE, copcall);
		 SetPlayerColor(playerid, COLOR_LIGHTBLUE);
   		 return 1;
    }


	//give cash
new giveplayerid;
new giveplayer[MAX_PLAYER_NAME];
new sendername[25];
new string[128];
if(strcmp(cmd, "/givecash", true) == 0) {
    new tmp[256];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
return 1;
}
giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
return 1;
}
new moneys = strval(tmp);

printf("givecash_command: %d %d",giveplayerid,moneys);


if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "You have sent %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
}
}
else {
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}
    return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public UpdateScore()
{
for (new a = 0; a < MAX_PLAYERS; a++)
{
    if (IsPlayerConnected(a))
    {
        new pmoney = GetPlayerMoney(a);
        SetPlayerScore(a, pmoney);
    }
}
}
public RefreshPlayerZone()
{
    new i, j;
    new Float:playerPos[3];

    for(i=0; i<GetMaxPlayers(); i++)
    {
        if(!IsPlayerConnected(i))
        { continue; }

        if(GetPlayerInterior(i))
        { continue; }

        GetPlayerPos(i, playerPos[0], playerPos[1], playerPos[2]);

        for(j=0; j<sizeof(zones); j++)
        {
            if(
               playerPos[0] >= zones[j][zone_minx] &&
               playerPos[1] >= zones[j][zone_miny] &&
               playerPos[2] >= zones[j][zone_minz] &&
               playerPos[0] <= zones[j][zone_maxx] &&
               playerPos[1] <= zones[j][zone_maxy] &&
               playerPos[2] <= zones[j][zone_maxz]
              )
            {
                player_zone[i] = j;
                break;
            }
        }
    }
}