#include <a_samp>

#pragma tabsize 0

#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xFF3366FF

#define Filterscript

#if defined Filterscript

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" GPS System by Fusion");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" GPS System by Fusion");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
		if (strcmp(cmdtext, "/гид", true)==0)
		{
				if(IsPlayerConnected(playerid))
		{
				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------");
				SendClientMessage(playerid, COLOR_GREEN, "/гид [название]");
				SendClientMessage(playerid, COLOR_ORANGE, "Автошкола, Банк, 24/7, Аэропорт, SAPD, FBI");
				SendClientMessage(playerid, COLOR_ORANGE, "БольницаЛС, БольницаСФ, Военкомат");
				SendClientMessage(playerid, COLOR_GREEN, "/гидвыйти [убрать чекпоинт]");
				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------");
			}
   }


                if(IsPlayerConnected(playerid))
                
				if (strcmp(cmdtext, "/гид Автошкола", true)==0)
				SetPlayerCheckpoint(playerid,739.013,-1414.906,12.713,5);
				
				if (strcmp(cmdtext, "/гид Банк", true)==0)
				SetPlayerCheckpoint(playerid,1461.7273,-1023.7429,23.4017,5);

				if (strcmp(cmdtext, "/гид 24/7", true)==0)
				SetPlayerCheckpoint(playerid,1831.736,-1842.690,12.773,5);

				if (strcmp(cmdtext, "/гид Аэропорт", true)==0)
				SetPlayerCheckpoint(playerid,1599.2776,-2328.4224,13.5366,5);
				
				if (strcmp(cmdtext, "/гид SAPD", true)==0)
				SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);

				if (strcmp(cmdtext, "/гид БольницаЛС", true)==0)
				SetPlayerCheckpoint(playerid,1183.3936,-1323.9601,13.1430,5);

				if (strcmp(cmdtext, "/гид БольницаСФ", true)==0)
				SetPlayerCheckpoint(playerid,-2433.766,512.054,29.571,5);

				if (strcmp(cmdtext, "/гид FBI", true)==0)
				SetPlayerCheckpoint(playerid,1534.5702,-1448.2894,12.9553,5);
				
				if (strcmp(cmdtext, "/гид Военкомат", true)==0)
				SetPlayerCheckpoint(playerid,-1550.233,514.761,6.256,5);

			{
			     if(IsPlayerAdmin(playerid))
				{

		if (strcmp(cmdtext, "/агид", true)==0)
		{
				if(IsPlayerConnected(playerid))
		{
				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------");
				SendClientMessage(playerid, COLOR_GREEN, "/агид [location]");
				SendClientMessage(playerid, COLOR_ORANGE, "License, Bank, 24/7, CityHall, Airport");
				SendClientMessage(playerid, COLOR_ORANGE, "Dock, GunShop, Farm, CarPaint, Police,");
				SendClientMessage(playerid, COLOR_ORANGE, "Pizza, Taxi, PigPen, Alhambra, FBI, BurgerShot,");
				SendClientMessage(playerid, COLOR_ORANGE, "BurgerShot2, GasStation, GasStation2, GasStation3,");
				SendClientMessage(playerid, COLOR_ORANGE, "CarMarket, CarMarket2, Hospital, Hospital2");
				SendClientMessage(playerid, COLOR_ORANGE, "GroveStreet, Jefferson, Rodeo, SantaMaria, VeronaBeach");
				SendClientMessage(playerid, COLOR_ORANGE, "Marina, Mulholland, Richman, FlintCounty, EastBeach");
				SendClientMessage(playerid, COLOR_ORANGE, "LosFlores, ElCorona, Ganton, Mall, Vinewood");
				SendClientMessage(playerid, COLOR_ORANGE, "Dillimore, Blueberry, Montgomery, PalominoCreek");
				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------");
				}
  		 	}
   		}
   }
   			{
				if(IsPlayerAdmin(playerid))
				{

				if (strcmp(cmdtext, "/агид License", true)==0)
				SetPlayerPos(playerid,2053.2761,-1909.5160,13.5469);

				if (strcmp(cmdtext, "/агид Bank", true)==0)
				SetPlayerPos(playerid,1461.7273,-1023.7429,23.4017);

				if (strcmp(cmdtext, "/агид 24/7", true)==0)
				SetPlayerPos(playerid,1315.3618,-899.8662,39.1489);

				if (strcmp(cmdtext, "/агид CarMarket", true)==0)
				SetPlayerPos(playerid,2127.3984,-1139.6178,24.8447);

				if (strcmp(cmdtext, "/агид CarMarket2", true)==0)
				SetPlayerPos(playerid,548.8578,-1275.4779,16.8200);

				if (strcmp(cmdtext, "/агид Dock", true)==0)
				SetPlayerPos(playerid,370.7815,-2041.0538,7.2422);

				if (strcmp(cmdtext, "/агид Airport", true)==0)
				SetPlayerPos(playerid,1599.2776,-2328.4224,13.5366);

				if (strcmp(cmdtext, "/агид CityHall", true)==0)
				SetPlayerPos(playerid,1480.8268,-1744.1536,13.1170);

				if (strcmp(cmdtext, "/агид Police", true)==0)
				SetPlayerPos(playerid,1544.0143,-1675.6829,13.5576);

				if (strcmp(cmdtext, "/агид GroveStreet", true)==0)
				SetPlayerPos(playerid,2493.8511,-1669.5573,12.9113);

				if (strcmp(cmdtext, "/агид Jefferson", true)==0)
				SetPlayerPos(playerid,2220.9824,-1148.7661,25.3504);

				if (strcmp(cmdtext, "/агид GasStation", true)==0)
				SetPlayerPos(playerid,1005.4007,-940.1948,41.7549);

				if (strcmp(cmdtext, "/агид Rodeo", true)==0)
				SetPlayerPos(playerid,347.7415,-1367.7371,13.9776);

				if (strcmp(cmdtext, "/агид SantaMaria", true)==0)
				SetPlayerPos(playerid,327.8009,-1797.7816,4.2844);

				if (strcmp(cmdtext, "/агид VeronaBeach", true)==0)
				SetPlayerPos(playerid,831.8949,-1819.0989,11.8452);

				if (strcmp(cmdtext, "/агид Marina", true)==0)
				SetPlayerPos(playerid,728.5689,-1593.4337,13.9832);

				if (strcmp(cmdtext, "/агид GunShop", true)==0)
				SetPlayerPos(playerid,1364.6945,-1279.8040,13.1127);

				if (strcmp(cmdtext, "/агид Hospital", true)==0)
				SetPlayerPos(playerid,1183.3936,-1323.9601,13.1430);

				if (strcmp(cmdtext, "/агид BurgerShot", true)==0)
				SetPlayerPos(playerid,1200.4105,-923.6525,42.5841);

				if (strcmp(cmdtext, "/агид Mulholland", true)==0)
				SetPlayerPos(playerid,1338.9668,-694.6091,91.4037);

				if (strcmp(cmdtext, "/агид Richman", true)==0)
				SetPlayerPos(playerid,675.6179,-1061.0540,48.9433);

				if (strcmp(cmdtext, "/агид FlintCounty", true)==0)
				SetPlayerPos(playerid,-116.5864,-1186.2360,2.2648);

				if (strcmp(cmdtext, "/агид GasStation2", true)==0)
				SetPlayerPos(playerid,-116.5864,-1186.2360,2.2648);

				if (strcmp(cmdtext, "/агид Farm", true)==0)
				SetPlayerPos(playerid,-376.0385,-1440.0708,25.2968);

				if (strcmp(cmdtext, "/агид BurgerShot2", true)==0)
				SetPlayerPos(playerid,819.6470,-1619.0469,13.1127);

				if (strcmp(cmdtext, "/агид Taxi", true)==0)
				SetPlayerPos(playerid,1809.1172,-1864.4482,13.1492);

				if (strcmp(cmdtext, "/агид Pizza", true)==0)
				SetPlayerPos(playerid,2093.0984,-1807.0825,13.1196);

				if (strcmp(cmdtext, "/агид CarPaint", true)==0)
				SetPlayerPos(playerid,2074.3252,-1830.9292,13.1171);

				if (strcmp(cmdtext, "/агид EastBeach", true)==0)
				SetPlayerPos(playerid,2732.0156,-1662.9469,12.8089);

				if (strcmp(cmdtext, "/агид LosFlores", true)==0)
				SetPlayerPos(playerid,2729.4907,-1258.4280,59.1302);

				if (strcmp(cmdtext, "/агид PigPen", true)==0)
				SetPlayerPos(playerid,2418.3625,-1234.1200,23.9079);

				if (strcmp(cmdtext, "/агид Alhambra", true)==0)
				SetPlayerPos(playerid,1827.9978,-1683.6870,13.1136);

				if (strcmp(cmdtext, "/агид Hospital2", true)==0)
				SetPlayerPos(playerid,2000.3309,-1446.3424,13.1316);

				if (strcmp(cmdtext, "/агид FBI", true)==0)
				SetPlayerPos(playerid,1534.5702,-1448.2894,12.9553);

				if (strcmp(cmdtext, "/агид ElCorona", true)==0)
				SetPlayerPos(playerid,1822.0739,-2081.0579,12.9534);

				if (strcmp(cmdtext, "/агид Ganton", true)==0)
				SetPlayerPos(playerid,2314.2036,-1742.4119,12.9531);

				if (strcmp(cmdtext, "/агид Mall", true)==0)
				SetPlayerPos(playerid,1120.2430,-1389.5569,13.2156);

				if (strcmp(cmdtext, "/агид Vinewood", true)==0)
				SetPlayerPos(playerid,1103.8586,-941.0670,42.4828);

				if (strcmp(cmdtext, "/агид Dillimore", true)==0)
				SetPlayerPos(playerid,635.8654,-570.4843,15.9069);

				if (strcmp(cmdtext, "/агид GasStation3", true)==0)
				SetPlayerPos(playerid,651.2009,-563.4557,15.8840);

				if (strcmp(cmdtext, "/агид Blueberry", true)==0)
				SetPlayerPos(playerid,161.5037,-205.9166,1.1486);

				if (strcmp(cmdtext, "/агид Montgomery", true)==0)
				SetPlayerPos(playerid,1340.4523,257.0470,19.1249);

				if (strcmp(cmdtext, "/агид PalominoCreek", true)==0)
				SetPlayerPos(playerid,2337.7549,43.0897,26.0518);

				}
			}
				if(strcmp(cmdtext,"/гидвыйти",true)==0)
 	{
		if(IsPlayerConnected(playerid))
		{
				DisablePlayerCheckpoint(playerid);
			}
		}

	return 0;
}
