Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Sa Navigation by sean5874");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xAA3333AA,"This server uses the SA Navigation system, typ /nhelp to see the functions");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- //destinations
- //police departs
- if (strcmp("/lspd", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1536.0621, -1671.9874, 13.1854, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the LSPD");
- return 1;
- }
- if (strcmp("/lvpd", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2287.8162, 2416.7979, 10.4952, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the LVPD");
- return 1;
- }
- if (strcmp("/sfpd", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1608.4271,725.0745,12.4856, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SFPD");
- return 1;
- }
- //cluckin' bells
- if (strcmp("/cb market", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 948.5103, -1376.7455, 13.1475, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Market");
- return 1;
- }
- if (strcmp("/cb east ls", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2390.7246,-1494.1410,23.6372, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - East LS");
- return 1;
- }
- if (strcmp("/cb pilgrim", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2610.5852, 1678.2039, 10.5851, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Pilgrim");
- return 1;
- }
- if (strcmp("/cb ocean flats", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2691.5842, 267.6431, 4.4646, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Ocean Flats");
- return 1;
- }
- if (strcmp("/cb downtown", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1809.0095,612.5065,35.2165, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Downtown");
- return 1;
- }
- if (strcmp("/cb angle pine", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2168.9622, -2460.8679, 30.3521, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Angle Pine");
- return 1;
- }
- if (strcmp("/cb fort carson", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 177.6360, 1162.9191, 14.7578, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Fort Carson");
- return 1;
- }
- if (strcmp("/cb old venturas strip", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2361.4619,2032.7275,10.4269, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Old Venturas Strip");
- return 1;
- }
- if (strcmp("/cb creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2851.3699,2411.1450,10.5845, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Creek");
- return 1;
- }
- if (strcmp("/cb the emerald isle", cmdtext, true, 22) == 0)
- {
- SetPlayerCheckpoint(playerid, 2106.1633, 2206.9102, 10.5839, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - The Emerald Isle");
- return 1;
- }
- if (strcmp("/cb willowfield", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2399.6631, -1927.5728, 13.2789, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Willowfield");
- return 1;
- }
- //burger shot's
- if (strcmp("/bs temple", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1193.6932,-887.4058,42.8584, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Temple");
- return 1;
- }
- if (strcmp("/bs redsands east", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1907.5609, 2072.8223, 10.5846, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Redsands East");
- return 1;
- }
- if (strcmp("/bs juniper hollow", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2348.8916,982.0187,50.8183, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Jupiner Hollow");
- return 1;
- }
- if (strcmp("/bs downtown", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1906.3114,811.8765,36.1347, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Downtown");
- return 1;
- }
- if (strcmp("/bs garcia", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2344.8093,-124.9554,35.3057, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Garcia");
- return 1;
- }
- if (strcmp("/bs marina", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 782.3745, -1612.5681, 13.1391, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Marina");
- return 1;
- }
- if (strcmp("/bs old venturas strip", cmdtext, true, 25) == 0)
- {
- SetPlayerCheckpoint(playerid, 2361.7148, 2084.9282, 10.4345, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Old Venturas Strip");
- return 1;
- }
- if (strcmp("/bs starfish strip", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2441.0359, 2017.0809, 10.5841, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Starfish Strip");
- return 1;
- }
- if (strcmp("/bs whitewood estates", cmdtext, true, 25) == 0)
- {
- SetPlayerCheckpoint(playerid, 1116.1512,2074.8035,10.5747, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Whitewood Estates");
- return 1;
- }
- if (strcmp("/bs spinybed", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2142.0911,2814.3711,10.5176, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Spinybed");
- return 1;
- }
- //pizza stacks
- if (strcmp("/ps the emerald isle", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2080.2451, 2206.3557, 10.5829, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - The Emerald Isle");
- return 1;
- }
- if (strcmp("/ps financial", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1801.1934, 956.8420, 24.9353, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Financial");
- return 1;
- }
- if (strcmp("/ps esplanade north", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1729.3180, 1352.1045, 7.2413, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Esplanade North");
- return 1;
- }
- if (strcmp("/ps blueberry", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 196.4801, -155.2249, 1.2947, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Blueberry");
- return 1;
- }
- if (strcmp("/ps palomino creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2338.9280, 79.6917, 26.5176, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Palomino Creek");
- return 1;
- }
- if (strcmp("/ps montgomery", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1354.9136, 242.5144, 19.6636, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Montgomery");
- return 1;
- }
- if (strcmp("/ps creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2780.3474, 2440.4202, 10.5822, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Creek");
- return 1;
- }
- if (strcmp("/ps roca escalante", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2338.5354, 2518.4336, 10.5066, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Roca Escalante");
- return 1;
- }
- if (strcmp("/ps idlewood", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2095.8337, -1797.0409, 13.1899, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Idlewood");
- return 1;
- }
- if (strcmp("/ps starfish casino", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2631.9077, 1858.4803, 10.5457, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Starfish Casino");
- return 1;
- }
- //gym's
- if (strcmp("/g ganton", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2234.4302, -1727.4103, 13.2647, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ganton Gym");
- return 1;
- }
- if (strcmp("/g marital arts", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2273.4146, -131.4616, 35.4477, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Marital Arts Gym");
- return 1;
- }
- if (strcmp("/g below the belt", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1964.4536, 2287.7651, 10.5081, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Below The Belt Gym");
- return 1;
- }
- //24/7
- if (strcmp("/24/7 mulholland", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1327.0806, -920.1055, 36.7676, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Mulholland");
- return 1;
- }
- if (strcmp("/24/7 starfish casino", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2593.9285, 1973.6770, 10.5775, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Starfish Casino");
- return 1;
- }
- if (strcmp("/24/7 creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2883.1511, 2440.1165, 10.5843, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Creek");
- return 1;
- }
- if (strcmp("/24/7 juniper hill", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2429.7515, 741.2960, 35.1430, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Juniper Hill");
- return 1;
- }
- if (strcmp("/24/7 the emerald isle", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2093.7007, 2206.4751, 10.5840, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - The Emerald Isle");
- return 1;
- }
- if (strcmp("/24/7 old venturas strip", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2186.5208, 1979.1324, 10.5846, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Old Venturas Strip");
- return 1;
- }
- if (strcmp("/24/7 old venturas strip 2", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2465.7295, 2058.1682, 10.5070, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Old Venturas Strip");
- return 1;
- }
- if (strcmp("/24/7 whetstone", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1573.5713, -2730.0193, 48.2604, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Whetstone");
- return 1;
- }
- if (strcmp("/24/7 idlewood", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1838.1422, -1871.2747, 13.1060, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Idlewood");
- return 1;
- }
- if (strcmp("/24/7 redsands east", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1932.3293, 2313.6235, 10.5069, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Redsands East");
- return 1;
- }
- if (strcmp("/24/7 roca escalante", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2259.7815, 2408.4136, 10.5096, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Roca Escalante");
- return 1;
- }
- //binco's
- if (strcmp("/bi the emerald isle", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2089.5105, 2206.9495, 10.5833, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - The Emerald Isle");
- return 1;
- }
- if (strcmp("/bi juniper hill", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2379.4583, 899.3407, 45.4919, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - Juniper Hill");
- return 1;
- }
- if (strcmp("/bi ganton", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2259.2715, -1664.2028, 15.1548, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - Ganton");
- return 1;
- }
- //victim's
- if (strcmp("/vt creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2794.0789, 2428.7979, 10.5850, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Creek");
- return 1;
- }
- if (strcmp("/vt downtown", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1687.6414, 938.4521, 24.9428, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Downtown");
- return 1;
- }
- if (strcmp("/vt rodeo", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 456.2662, -1508.7189, 31.0547, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Rodeo");
- return 1;
- }
- //pro laps'
- if (strcmp("/pl creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2813.9641, 2406.5139, 10.5856, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pro Laps - Creek");
- return 1;
- }
- if (strcmp("/pl rodeo", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 508.5496, -1366.2383, 15.7563, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pro Laps - Rodeo");
- return 1;
- }
- //suburban's
- if (strcmp("/su creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2784.7976, 2436.2412, 10.5824, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SubUrban - Creek");
- return 1;
- }
- if (strcmp("/su hashbury", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2496.5063, -19.3609, 25.8116, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SubUrban - Hashbury");
- return 1;
- }
- //zip's
- if (strcmp("/zp the emerald isle", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2048.1777, 2206.7729, 10.5848, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Zip - The Emerald Isle");
- return 1;
- }
- if (strcmp("/zp downtown", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1874.6388, 857.2144, 35.2086, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Zip - Downtown");
- return 1;
- }
- //didier sachs'
- if (strcmp("/ds rodeo", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 448.9300, -1475.4092, 30.3840, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Didier Sachs - Rodeo");
- return 1;
- }
- //barbers
- if (strcmp("/bb the strip", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2072.8931, 2117.9094, 10.5038, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - The Strip");
- return 1;
- }
- if (strcmp("/bb queens", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2561.8420, 247.4589, 11.5590, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Queens");
- return 1;
- }
- if (strcmp("/bb idlewood", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2079.3398, -1781.8812, 13.2633, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Idlewood");
- return 1;
- }
- if (strcmp("/bb playa del seville", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2718.9182, -2033.8898, 13.2194, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Playa Del Seville");
- return 1;
- }
- if (strcmp("/bb marina", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 829.4279, -1599.6731, 13.2621, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Marina");
- return 1;
- }
- if (strcmp("/bb dillimore", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 676.6548, -499.5542, 16.3641, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Dillimore");
- return 1;
- }
- //ammunations
- if (strcmp("/an downtown ls", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 1362.7961, -1296.7817, 13.2407, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Downtown Los Santos");
- return 1;
- }
- if (strcmp("/an angel pine", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2097.7766, -2455.5884, 30.6870, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Angel Pine");
- return 1;
- }
- if (strcmp("/an come a lot", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2152.1165, 933.6719, 10.5057, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Come-A-Lot");
- return 1;
- }
- if (strcmp("/an el quebrados", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -1514.5182, 2606.1421, 55.4766, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - El Quabrados");
- return 1;
- }
- if (strcmp("/an old venturas strip", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2531.9075, 2090.3694, 10.6140, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Old Venturas Strip");
- return 1;
- }
- if (strcmp("/an ocean flats", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -2633.3518, 212.9680, 4.0024, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Ocean Flats");
- return 1;
- }
- if (strcmp("/an willowfield", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2400.531738, -1980.582885, 13.546875, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Willowfield");
- return 1;
- }
- if (strcmp("/an bone country", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 782.1943, 1877.9528, 4.6161, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Bone Country");
- return 1;
- }
- if (strcmp("/an fort carson", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, -308.3494, 844.8906, 11.3482, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Fort Carson ");
- return 1;
- }
- if (strcmp("/an blueberry", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 237.7264, -188.4806, 1.1115, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Blueberry");
- return 1;
- }
- if (strcmp("/an palomino creek", cmdtext, true, 20) == 0)
- {
- SetPlayerCheckpoint(playerid, 2338.7817, 54.8092, 26.2002, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Palomino Creek");
- return 1;
- }
- //special locations
- if (strcmp("/grovestreet", cmdtext, true, 10) == 0)
- {
- SetPlayerCheckpoint(playerid, 2495.1013, -1667.7927, 13.3438, 4);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to Grove Street");
- return 1;
- }
- //other functions
- if (strcmp("/dcancel", cmdtext, true, 20) == 0)
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is cancelled");
- return 1;
- }
- if (strcmp("/nhelp", cmdtext, true, 20) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"You can use the Navigator by typing the destination in your chatbubble");
- SendClientMessage(playerid, 0xAFAFAFAA,"To see a list of avaible locations, typ: /cb | /bs | /ps | /pd | /24/7 | /bi | /vt | /pl | /ds | /su | /zp | /g | /other");
- SendClientMessage(playerid, 0xAFAFAFAA,"If there are locations that are the same, you must typ the place of the location behind it, for example '/cb pilgrim'");
- SendClientMessage(playerid, 0xAFAFAFAA,"You can cancel you current destination by the command /dcancel");
- return 1;
- }
- if (strcmp("/cb", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Cluckin' Bell's");
- SendClientMessage(playerid, 0xAFAFAFAA," /cb market | /cb east ls | /cb pilgrim | /cb ocean flats | /cb downtown | /cb angle pine");
- SendClientMessage(playerid, 0xAFAFAFAA," /cb fort carson | /cb old venturas strip | /cb creek | /cb the emerald isle | /cb willowfield");
- return 1;
- }
- if (strcmp("/bs", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Burger Shot's");
- SendClientMessage(playerid, 0xAFAFAFAA," /bs temple | /bs redsands east | /bs juniper hollow | /bs downtown | /bs garcia | /bs marina");
- SendClientMessage(playerid, 0xAFAFAFAA," /bs old venturas strip | /bs starfish strip | /bs white estates | /bs spinybed");
- return 1;
- }
- if (strcmp("/pd", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Police Departments");
- SendClientMessage(playerid, 0xAFAFAFAA," /lspd | /lvpd | /sfpd");
- return 1;
- }
- if (strcmp("/ps", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Pizza Stack's");
- SendClientMessage(playerid, 0xAFAFAFAA," /ps the emerald isle | /ps financial | /ps esplanade north | /ps blueberry | /ps palomino creek");
- SendClientMessage(playerid, 0xAFAFAFAA," /ps montgomery | /ps creek | /ps roca escalante | /ps idlewood | /ps starfish casino");
- return 1;
- }
- if (strcmp("/24/7", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"24/7's");
- SendClientMessage(playerid, 0xAFAFAFAA," /24/7 mulholland | /24/7 starfish casino | /24/7 creek | /24/7 juniper hill | /24/7 the emerald isle");
- SendClientMessage(playerid, 0xAFAFAFAA," /24/7 old venturas strip | /24/7 old venturas strip 2 | /24/7 whetstone | /24/7 idlewood | /24/7 redsands east");
- SendClientMessage(playerid, 0xAFAFAFAA," /24/7 roca escalante");
- return 1;
- }
- if (strcmp("/bi", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Binco's");
- SendClientMessage(playerid, 0xAFAFAFAA," /bi the emerald isle | /bi juniper hollow | /bi ganton");
- return 1;
- }
- if (strcmp("/vt", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Victim's");
- SendClientMessage(playerid, 0xAFAFAFAA," /vt creek | /vt downtown | /vt rodeo");
- return 1;
- }
- if (strcmp("/pl", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Pro Lap's");
- SendClientMessage(playerid, 0xAFAFAFAA," /pl creek | /pl rodeo");
- return 1;
- }
- if (strcmp("/su", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"SubUrban's");
- SendClientMessage(playerid, 0xAFAFAFAA," /su creek | /su hashbury");
- return 1;
- }
- if (strcmp("/zp", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Zip's");
- SendClientMessage(playerid, 0xAFAFAFAA," /zp the emerald isle | /zp downtown");
- return 1;
- }
- if (strcmp("/ds", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Didier Sach's");
- SendClientMessage(playerid, 0xAFAFAFAA," /ds rodeo");
- return 1;
- }
- if (strcmp("/bb", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Barber's");
- SendClientMessage(playerid, 0xAFAFAFAA," /bb the strip | /bb queens | /bb idlewood | /bb playa des seville | /bb marina | /bb dillimore");
- return 1;
- }
- if (strcmp("/g", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Gym's");
- SendClientMessage(playerid, 0xAFAFAFAA," /g ganton | /g marital arts | /g below the belt");
- return 1;
- }
- if (strcmp("/an", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Ammunations's");
- SendClientMessage(playerid, 0xAFAFAFAA," /an downtown ls| /an angle pine | /an come a lot | /an el quabrados | /an old venturas strip | /an ocean flats");
- SendClientMessage(playerid, 0xAFAFAFAA," /an willowfield | /an bone country | /an fort carson | /an blueberry");
- return 1;
- }
- if (strcmp("/other", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xAFAFAFAA,"Other locations");
- SendClientMessage(playerid, 0xAFAFAFAA," /grovestreet");
- return 1;
- }
- //If you want to add some other locations, you can do this on this way:
- //if (strcmp("/newdestination", cmdtext, true, 10) == 0)
- //{
- //SetPlayerCheckpoint(playerid, -enter your coords- , 4);
- //SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to -your destination");
- //return 1;
- //}
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: You have reached your destination");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment