Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sistema de GPS feito por qSmoke, skype> pagotto51. usufrua como quiser, não exijo créditos.
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define GPS_SYSTEM 0
- public OnFilterScriptInit()
- {
- print("O Filterscript de GPS foi carregado com sucesso");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/gps",true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid,GPS_SYSTEM,DIALOG_STYLE_LIST,"{FFC400}- {FFFFFF}Global Position System","Prefeitura.\nDepartamento Policial\nAlhambra\nEstação Unit\n24/7\nPosto Sul\nPosto Norte\nPizzaria Stacked\nAcademia\nBinco\nAeroporto de Los Santos\nPuteiro PigPen\nMotel Jefferson\nPark Gleen\nPista de Skate\nHospital All Saints\nHospital County General\nAmmu Nation\nShopping Center","Selecionar","Fechar");
- return 1;
- }
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- // GPS
- if(dialogid == GPS_SYSTEM)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,1481.3762,-1735.0176,13.1046,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Prefeitura foi marcada no mapa.");
- return 1;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,1535.9352,-1673.6252,13.1050,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Departamento de Polícia no mapa.");
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,1827.3373,-1682.8510,13.1834,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Alhambra foi marcada no mapa.");
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid,1713.4973,-1857.9926,13.2941,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Estação Unit foi marcada no mapa.");
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid,1830.5277,-1842.4434,13.3006,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A 24/7 foi marcada no mapa.");
- return 1;
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid,1944.2931,-1766.9156,13.1062,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Sul foi marcado no mapa.");
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid,1007.1274,-955.4174,41.4625,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Norte foi marcado no mapa.");
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid,2086.6018,-1796.9097,13.1036,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pizzaria Stacked foi marcada no mapa.");
- }
- if(listitem == 8)
- {
- SetPlayerCheckpoint(playerid,2223.2188,-1725.7490,13.1978,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Academia foi marcada no mapa.");
- return 1;
- }
- if(listitem == 9)
- {
- SetPlayerCheckpoint(playerid,2245.2305,-1660.8929,15.0889,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Binco foi marcada no mapa.");
- }
- if(listitem == 10)
- {
- SetPlayerCheckpoint(playerid,1961.8196,-2193.7415,13.2670,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Aeroporto de Los Santos foi marcado no mapa.");
- }
- if(listitem == 11)
- {
- SetPlayerCheckpoint(playerid,2420.4238,-1237.1250,24.0127,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O puteiro PigPen foi marcado no mapa.");
- }
- if(listitem == 12)
- {
- SetPlayerCheckpoint(playerid,2221.1968,-1144.8896,25.5154,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Motel Jefferson foi marcado no mapa.");
- return 1;
- }
- if(listitem == 13)
- {
- SetPlayerCheckpoint(playerid,1904.6732,-1179.5765,23.0765,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Park Gleen foi marcado no mapa.");
- }
- if(listitem == 14)
- {
- SetPlayerCheckpoint(playerid,1899.2813,-1401.5333,10.1659,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pista de Skate foi marcada no mapa.");
- }
- if(listitem == 15)
- {
- SetPlayerCheckpoint(playerid,1190.8040,-1328.0825,13.2014,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital All Saints foi marcado no mapa.");
- }
- if(listitem == 16)
- {
- SetPlayerCheckpoint(playerid,2016.8428,-1432.0167,13.2625,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital County General foi marcado no mapa.");
- return 1;
- }
- if(listitem == 17)
- {
- SetPlayerCheckpoint(playerid,1362.2203,-1278.0447,13.1828,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Ammu Nation foi marcada no mapa.");
- }
- if(listitem == 18)
- {
- SetPlayerCheckpoint(playerid,1122.7183,-1462.1166,15.5171,7.0);
- SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Shopping Center foi marcado no mapa.");
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment