Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_GREEN 0x33AA33AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" GPS by Haydz");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- if (strcmp("/gps", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN,"GPS: Please choose your destination");
- ShowPlayerDialog(playerid, 20320, DIALOG_STYLE_LIST, "GPS Menu", "Grove street\nLS train station\nLSPD\nBurger shot\nCluckin bell\nJefferson motel\nPizza Stack", "Select", "Exit");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 20321 && response) {
- switch(listitem) {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Grove street");
- SetPlayerCheckpoint(playerid, 2490.6201, -1667.4989, 13.3438, 5.0);
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to LS train station");
- SetPlayerCheckpoint(playerid, 1777.9893, -1931.8132, 13.3868, 5.0);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to LSPD");
- SetPlayerCheckpoint(playerid, 1536.3883, -1676.4635, 13.3828, 5.0);
- }
- case 3:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Burger shot");
- SetPlayerCheckpoint(playerid, 1213.8230, -907.5296, 42.9226, 5.0);
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Cluckin bell");
- SetPlayerCheckpoint(playerid, 932.1118, -1392.9386, 13.2556, 5.0);
- }
- case 5:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Jefferson motel");
- SetPlayerCheckpoint(playerid, 2219.0396, -1165.8395, 25.7266, 5.0);
- }
- case 6:
- {
- SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Pizza stack");
- SetPlayerCheckpoint(playerid, 2093.9421, -1806.0039, 13.5501, 5.0);
- }
- }
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- SendClientMessage(playerid,COLOR_GREEN,"GPS: You have arrived at your destination.");
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid,COLOR_Green,"GPS: Your GPS has been switched off");
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement