Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT
- #define blue 0x375FFFFF
- #define DIALOG_TPORT 555
- public OnFilterScriptInit()
- {
- print("----------------------------------------------"); // Prints a message on Samp-Server.exe saying the filterscript has loaded.
- print("NoahF's Random/Useful teleports has loaded!");
- print("----------------------------------------------");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:teleports(playerid, params[])
- {
- ShowPlayerDialog(playerid, 555, DIALOG_STYLE_LIST, "Teleports", "Los Santos Hospital\nLos Santos Airport\n Los Santos Police Department\nLas Venturas Bike Jump\nLas Venturas Pyramid\nLas Venturas Sniping-Spot\nLas Venturas Crane\nLas Venturas Police Department\nLas Venturas Airport\nExact Middle of San Andreas\nSoda Can\nRed County Docks\nRandom Place 1\nSkydive\nSkydive 2", "Select", "Close");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_TPORT)
- {
- if(response) // If the player clicked a song
- {
- if(listitem == 1)
- {
- SetPlayerPos(playerid,2025.133056,-1419.697000,16.992187);
- SendClientMessage(playerid, blue, "You have teleported to the LS Hospital.");
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,1642.62,-2333.79,13.55);
- SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid,1549.387084,-1668.78100,13.564489);
- SendClientMessage(playerid,blue, "You have teleported to Los Santos Police Department.");
- }
- if(listitem == 4)
- {
- SetPlayerPos(playerid,-664.36,2305.05,135.74);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Bike Jump.");
- }
- if(listitem == 5)
- {
- SetPlayerPos(playerid,2323.72,1283.32,97.54);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Pyramid.");
- }
- if(listitem == 6)
- {
- SetPlayerPos(playerid,2344.15,1282.82,68.33);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Sniping Spot.");
- }
- if(listitem == 7)
- {
- SetPlayerPos(playerid,2398.91,1865.60,76.55);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Crane.");
- }
- if(listitem == 8)
- {
- SetPlayerPos(playerid,2284.698730,2427.671875,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Police Department.");
- }
- if(listitem == 9)
- {
- SetPlayerPos(playerid,1684.706420,1432.456665,10.770483);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Airport.");
- }
- if(listitem == 10)
- {
- SetPlayerPos(playerid,0.0,0.0,3.0);
- SendClientMessage(playerid,blue, "You have teleported to the exact middle of San Andreas.");
- }
- if(listitem == 11)
- {
- SetPlayerPos(playerid,1309.738403,255.183334,36.615425);
- SendClientMessage(playerid,blue, "You have teleported to the top of a soda can in Montgomery.");
- }
- if(listitem == 13)
- {
- SetPlayerPos(playerid,2288.134765,608.165283,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to the Red County Docks.");
- }
- if(listitem == 14)
- {
- SetPlayerPos(playerid,1324.232244,832.221313,15.532247);
- SendClientMessage(playerid,blue, "You have teleported to NoahF's random place.");
- }
- if(listitem == 15)
- {
- SetPlayerPos(playerid,2308.833007,1087.774902,1307.941772);
- SendClientMessage(playerid,blue, "You have teleported to Skydive spot 1.");
- }
- if(listitem == 16)
- {
- SetPlayerPos(playerid,1774.494750,2804.618652,1450.130859);
- SendClientMessage(playerid,blue, "You have teleported to Skydive spot 2.");
- }
- }
- }
- }
- /*
- -----------------------------------------CREDITS----------------------------------------
- NoahF's Random/Useful Teleports FilterScript scripted/created by Noah Fallon (NoahF) on 8/3/12.
- Please do not remove these credits.
- Changing things are allowed but when you do please post the newly modified code in a reply to my SA-MP Forums topic on this FS.
- Thanks for using ;)
- Also, don't be afraid to put some constructive criticism in a reply to the topic! This is my first FS and I would like to know how I can improve on future scripts. :)
- UPDATE 1.1 8/31/12
- CHANGELOG:
- Completely rescripted everything to put it all in a clickable dialog.
- -----------------------------------------END OF CREDITS---------------------------------
- */
Advertisement
Add Comment
Please, Sign In to add comment