Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sistema de GPS com mapicon by GuiLopeS
- // Aproveitem bem essa fs é facil de entender!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- #define GPS 1777
- #define GPSL 1778
- #define CorGPSVerde 0x009059FF
- #else
- #endif
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == GPS)
- {
- if(response)
- {
- if(listitem == 13)
- {
- ShowPlayerDialog(playerid, GPSL, DIALOG_STYLE_LIST, "{FFFFFF}Locais Diversos:", "{87CEFA}Montgomery\nBlueberry\nDillimore\nVinewood\nMarket\nConference Center", "Selecionar", "Voltar");
- }
- else if(listitem == 14)
- {
- RemovePlayerMapIcon(playerid, 69);
- SendClientMessage(playerid, -1, "{FF0000}!GPS Desligado!");
- }
- }
- }
- if(dialogid == GPSL)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerMapIcon(playerid, 69, 1308.0640,285.3542,19.2378, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Montgomery
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- else if(listitem == 1)
- {
- SetPlayerMapIcon(playerid, 69, 233.4631,-78.6278,1.2589, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Blueberry
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- else if(listitem == 2)
- {
- SetPlayerMapIcon(playerid, 69, 685.2550,-533.7612,16.0127, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Dillimore
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- else if(listitem == 3)
- {
- SetPlayerMapIcon(playerid, 69, 820.6790,-1142.1743,23.6573, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Vinewood
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- else if(listitem == 4)
- {
- SetPlayerMapIcon(playerid, 69, 1055.8334,-1284.6420,13.5495, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Market
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- else if(listitem == 5)
- {
- SetPlayerMapIcon(playerid, 69, 1172.7754,-1723.9891,13.4447, 41, 0, MAPICON_GLOBAL_CHECKPOINT); //Conference Center
- SendClientMessage(playerid, CorGPSVerde, "!GPS: Vá até o local marcado no mapa!");
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:gpsteste(playerid){
- ShowPlayerDialog(playerid, GPS, DIALOG_STYLE_LIST, "{009059}GPS - By GuiLopeS", "{FFFFFF}Rotas\nCentro de Licenças\nAluguel de Veiculos\nLocais Uteis\nBases\nCondominíos\nDelegacias\nTunadoras\nLocais de Roubo\nPosto Próximo\nLocalizar Casa\nLocalizar Empresa\nBônus Atual\nCidades e Bairros\nDesligar GPS", "Selecionar", "Sair");
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if (IsPlayerInRangeOfPoint(playerid, 3.0, 1308.0640,285.3542,19.2378))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 233.4631,-78.6278,1.2589))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 685.2550,-533.7612,16.0127))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 820.6790,-1142.1743,23.6573))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 1055.8334,-1284.6420,13.5495))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 1172.7754,-1723.9891,13.4447))
- {
- RemovePlayerMapIcon(playerid, 69);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement