Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*GPS System by EmiNEm (3MY)*/
- #include <a_samp>
- #pragma tabsize 0
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED 0xFF3366FF
- #define Filterscript
- #if defined Filterscript
- enum pInfo
- {
- pWait,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- forward WaitGPS(playerid);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" GPS by EmiNEm (3MY)");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" GPS by EmiNEm (3MY)");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PlayerInfo[playerid][pWait] = 0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/gps", true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie] /gps2 (next page) {EC0707}/gpssf (San Fierro locations)");
- SendClientMessage(playerid, COLOR_GREEN, "/stopgps (It removes the checkpoint from the map)");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: CartierProGaming, Mall BancaLS, 24/7, PrimariaLS");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: LicenteLS, GunShopLS, Ferma, CarPaint, Politie");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: Pizza, Binco, PigPen, Alhambra, SRI, Aeroport");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: BurgerShot, Benzinarie, Benzinarie2, Benzinarie3,");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: Dealership, Dealership2, Spital, FermaTractorist");
- SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
- }
- }
- if (strcmp(cmdtext, "/gps2", true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie]");
- SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (It removes the checkpoint from the map)");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: GroveStreet, Jefferson, Rodeo, SantaMaria, VeronaBeach");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: Marina, Mulholland, Richman, FlintCounty, EastBeach");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: LosFlores, ElCorona, Ganton, Mall, Vinewood");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: Dillimore, Blueberry, Montgomery, PalominoCreek");
- SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
- }
- }
- if (strcmp(cmdtext, "/gpssf", true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_GREEN, "/gps [location]");
- SendClientMessage(playerid, COLOR_GREEN, "/stopgps (It removes the checkpoint from the map)");
- SendClientMessage(playerid, COLOR_ORANGE, "Location: PrimariaSF, BancaSF, LicenteSF, DrugStoreSF, GunShopSF, CnnSF");
- SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
- }
- }
- if(IsPlayerConnected(playerid))
- if (strcmp(cmdtext, "/gps LicenteLS", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1412.0840,-1701.5978,13.5395,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- }
- if (strcmp(cmdtext, "/gps BancaLS", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1461.7273,-1023.7429,23.4017,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps 24/7", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1315.3618,-899.8662,39.1489,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Dealership", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,838.007934,-2064.709960,12.867187,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Dealership2", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1553.2808,-1019.0084,23.9063,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps CartierProGaming", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2865.053710,-1962.187255,11.109375,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Aeroport", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1599.2776,-2328.4224,13.5366,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps PrimariaLS", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1480.8268,-1744.1536,13.1170,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Politie", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps GroveStreet", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2493.8511,-1669.5573,12.9113,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Jefferson", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2220.9824,-1148.7661,25.3504,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Benzinarie", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1005.4007,-940.1948,41.7549,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Rodeo", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,347.7415,-1367.7371,13.9776,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/SantaMaria -", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,327.8009,-1797.7816,4.2844,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps VeronaBeach", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,831.8949,-1819.0989,11.8452,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Marina", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,728.5689,-1593.4337,13.9832,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps GunShopLS", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1364.6945,-1279.8040,13.1127,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Spital", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1183.3936,-1323.9601,13.1430,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Mall", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Mulholland", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1338.9668,-694.6091,91.4037,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Richman", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,675.6179,-1061.0540,48.9433,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps FlintCounty", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Benzinarie2", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Ferma", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-376.0385,-1440.0708,25.2968,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps BurgerShot", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,819.6470,-1619.0469,13.1127,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Binco", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2245.066406,-1662.401000,15.469003,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Pizza", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2093.0984,-1807.0825,13.1196,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps CarPaint", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2074.3252,-1830.9292,13.1171,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps EastBeach", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2732.0156,-1662.9469,12.8089,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps LosFlores", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2729.4907,-1258.4280,59.1302,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps PigPen", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2418.3625,-1234.1200,23.9079,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Alhambra", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1827.9978,-1683.6870,13.1136,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps FermaTractorist", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-37.921279,-1.555945,3.117187,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps SRI", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,325.586669,-1515.012939,36.032508,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps ElCorona", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1822.0739,-2081.0579,12.9534,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Ganton", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2314.2036,-1742.4119,12.9531,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Mall", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Vinewood", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1103.8586,-941.0670,42.4828,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Dillimore", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,635.8654,-570.4843,15.9069,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Benzinarie3", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,651.2009,-563.4557,15.8840,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Blueberry", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,161.5037,-205.9166,1.1486,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps Montgomery", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,1340.4523,257.0470,19.1249,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps PalominoCreek", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,2337.7549,43.0897,26.0518,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps PrimariaSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2756.8433,375.6679,4.3345,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps BancaSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2414.1084,330.9960,34.9755,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps LicenteSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2026.543090,-101.443748,35.164062,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps GunShopSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2626.0784,211.0085,4.6121,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps DrugStoreSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2096.9119,85.7754,35.3134,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if (strcmp(cmdtext, "/gps CnnSF", true)==0)
- {
- if(PlayerInfo[playerid][pWait] == 0)
- {
- SetPlayerCheckpoint(playerid,-2656.675292,375.925445,4.333777,5);
- PlayerInfo[playerid][pWait] = 1;
- SetTimer("WaitGPS", 300000, false);
- }
- else
- {
- SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
- }
- }
- if(strcmp(cmdtext,"/stopgps",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- DisablePlayerCheckpoint(playerid);
- }
- }
- return 0;
- }
- public WaitGPS(playerid)
- {
- PlayerInfo[playerid][pWait] = 0; // dupa timpul ales, asta ii va da voie sa foloseasca GPS iar.
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement