Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- //------------------------------------Define------------------------------------
- #define DIALOG_GPS1 1
- #define DIALOG_GPS2 2
- #define DIALOG_GPS3 3
- #define DIALOG_GPS4 4
- #define COLOR_YELOW 0xE6E600FF
- //------------------------------------------------------------------------------
- //-----------------------CMD----------------------------------------------------
- CMD:gps(playerid,params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff0000aa, " [GPS] Niste u vozilu!");
- ShowPlayerDialog(playerid, DIALOG_GPS1, DIALOG_STYLE_LIST, " GPS:Lokacije", "LA\nLV\nOSTALO" , "Uredu", "Izlaz");
- return 1; }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_GPS1)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: ShowPlayerDialog(playerid, DIALOG_GPS2, DIALOG_STYLE_LIST, " GPS:Lokacije", "OPSTINA\nBANKA\nBOLNICA\nBURG\nOGLASI\nPOSTA\nAUTO PIJACA\nAUTO SKOLA\nZLATARA\nGALERIJA\nBIBLIOTEKA\nPEKARA\nBUREGDZINICA\nKLADIONICA\nGUNSHOP\nHOTEL\nAUTO SERVIS\nJAVNI WC\nBAZEN\nLOTTO\nKONZUM" , "Uredu", "Izlaz");
- case 1: ShowPlayerDialog(playerid, DIALOG_GPS3, DIALOG_STYLE_LIST, " GPS:Lokacije", "LV BANKA\nLV OPSTINA\nLV PD" , "Uredu", "Izlaz");
- case 2: ShowPlayerDialog(playerid, DIALOG_GPS4, DIALOG_STYLE_LIST, " GPS:Lokacije", "OTPAD\nPLANINA\nVIKENDICE" , "Uredu", "Izlaz");
- }
- }
- }
- if(dialogid == DIALOG_GPS2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid, 1480.4794,-1744.1576,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Opstinu");
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid, 1460.9261,-1024.9508,23.8281, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Banku");
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid, 1178.4913,-1323.6295,14.1227, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Bolnicu");
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid, 1213.9261,-917.9029,42.9236, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Burg");
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid, 1284.6312,-1329.5333,13.5453, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Oglase");
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid, 1735.3926,-1273.2003,13.5474, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Postu");
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid, 1638.4176,-1144.9669,23.9063, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Pijacu");
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid, 1771.2250,-1901.9795,13.5552, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Skolu");
- }
- if(listitem == 8)
- {
- SetPlayerCheckpoint(playerid, 1712.3541,-1146.0713,23.9708, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Zlataru");
- }
- if(listitem == 9)
- {
- SetPlayerCheckpoint(playerid, 1220.5927,-1413.0398,13.3184, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La galeriju");
- }
- if(listitem == 10)
- {
- SetPlayerCheckpoint(playerid, 1081.3425,-1701.3613,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Biblioteku");
- }
- if(listitem == 11)
- {
- SetPlayerCheckpoint(playerid, 1746.2682,-1143.5718,24.0422, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Pekaru");
- }
- if(listitem == 12)
- {
- SetPlayerCheckpoint(playerid, 1371.7632,-1878.2181,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Buregdzinicu");
- }
- if(listitem == 13)
- {
- SetPlayerCheckpoint(playerid, 1688.9685,-1449.5391,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Kladionicu");
- }
- if(listitem == 14)
- {
- SetPlayerCheckpoint(playerid, 1365.9648,-1279.6766,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La GunShop");
- }
- if(listitem == 15)
- {
- SetPlayerCheckpoint(playerid, 1095.8713,-1794.6810,13.6043, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Hotel");
- }
- if(listitem == 16)
- {
- SetPlayerCheckpoint(playerid, 1295.7999,-1860.3448,13.5469, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Servis");
- }
- if(listitem == 17)
- {
- SetPlayerCheckpoint(playerid, 1838.9233,-1398.8104,13.5625, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Javni Wc");
- }
- if(listitem == 18)
- {
- SetPlayerCheckpoint(playerid, 1332.6335,-984.3083,33.8966, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Bazen");
- }
- if(listitem == 19)
- {
- SetPlayerCheckpoint(playerid, 1004.6107,-1152.8395,23.7102, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Lotto");
- }
- if(listitem == 20)
- {
- SetPlayerCheckpoint(playerid, 1128.8796,-1413.7729,13.6036, 3.0);
- SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Konzum");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment