Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp> //Includes.
- #include <zcmd> //Includes.
- //
- #define FILTERSCRIPT //Defining this as a FilterScript..
- #define blue 0x375FFFFF //Defining the color blue.
- #define red 0xCF2E2EB6 //Defining the color red.
- #define green 0x00FF00B6 //Defining the color green.
- #define orange 0xFF8040B6
- #define lightblue 0x00FFFFB6
- #define darklightblue 0x0080FFB6
- #define seagreen 0x008080C5
- #define EMBED_RED {CF2E2E} //Defining the embed.
- #define EMBED_BLUE {375FFF} //Defining the embed.
- #define EMBED_GREEN {00FF00} //Defining the embed.
- #define EMBED_ORANGE {FF8040}
- #define EMBED_LIGHTBLUE {00FFFF}
- #define EMBED_DARKLIGHTBLUE {0080FF}
- #define EMBED_SEAGREEN {008080}
- #define SCMTA SendClientMessageToAll //Defining SCMTA as SendClientMessageToAll so I don't have to type it out each time.
- //
- #define DIALOG_TPORT 17328 //Defining the dialog.
- //Declaring the variables..
- new string[128];
- new string1[128];
- new string2[128];
- new string3[128];
- new string4[128];
- new string5[128];
- new string6[128];
- new string7[128];
- new string8[128];
- new string9[128];
- new string10[128];
- new string11[128];
- new string12[128];
- new string13[128];
- new pName[24];
- new pName1[24];
- new pName2[24];
- new pName3[24];
- new pName4[24];
- new pName5[24];
- new pName6[24];
- new pName7[24];
- new pName8[24];
- new pName9[24];
- new pName10[24];
- new pName11[24];
- new pName12[24];
- new pName13[24];
- new pName14[24];
- public OnFilterScriptInit()
- {
- print("*************************************************"); // Prints a message on Samp-Server.exe saying the filterscript has loaded.
- print("------------------------EPIC-------------------------------");
- print("NoahF's Random/Useful teleports has loaded!");
- print("*************************************************");
- print("------------------------EPIC-------------------------------");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("*************************************************"); // Prints a message on Samp-Server.exe saying the filterscript has unloaded.
- print("------------------------EPIC-------------------------------");
- print("NoahF's Random/Useful teleports has unloaded!");
- print("*************************************************");
- print("------------------------EPIC-------------------------------");
- return 1;
- }
- CMD:teleports(playerid, params[])
- {
- ShowPlayerDialog(playerid, 17328, DIALOG_STYLE_LIST, "Teleports", "{CF2E2E}Los Santos Hospital\n{375FFF}Los Santos Airport\n{00FF00}Los Santos Police Department\n{FF8040}Las Venturas Bike Jump\n{375FFF}Las Venturas Pyramid\n{CF2E2E}Las Venturas Sniping-Spot\n{00FF00}Las Venturas Crane\n{375FFF}Las Venturas Police Department\n{CF2E2E}Las Venturas Airport\n{375FFF}Exact Middle of San Andreas\n{00FF00}Soda Can\n{0080FF}Red County Docks\n{CF2E2E}Random Place 1\n{008080}Skydive", "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.");
- GetPlayerName(playerid, pName, 24);
- format(string, 128, "%s has teleported to the {00FF00}Los Santos Hospital.", pName);
- SCMTA(blue, string);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,1642.62,-2333.79,13.55);
- SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
- GetPlayerName(playerid, pName2, 24);
- format(string1, 128, "%s has teleported to the {00FF00}Los Santos Airport.", pName1);
- SCMTA(blue, string1);
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid,1549.387084,-1668.78100,13.564489);
- SendClientMessage(playerid,blue, "You have teleported to Los Santos Police Department.");
- GetPlayerName(playerid, pName3, 24);
- format(string2, 128, "%s has teleported to the {00FF00}Los Santos Police Department.", pName2);
- SCMTA(blue, string2);
- }
- if(listitem == 4)
- {
- SetPlayerPos(playerid,-664.36,2305.05,135.74);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Bike Jump.");
- GetPlayerName(playerid, pName4, 24);
- format(string3, 128, "%s has teleported to the {00FF00}Las Venturas Bike Jump.", pName3);
- SCMTA(blue, string3);
- }
- if(listitem == 5)
- {
- SetPlayerPos(playerid,2323.72,1283.32,97.54);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Pyramid.");
- GetPlayerName(playerid, pName5, 24);
- format(string4, 128, "%s has teleported to the {FF00FF}Las Venturas Pyramid.", pName4);
- SCMTA(blue, string4);
- }
- if(listitem == 6)
- {
- SetPlayerPos(playerid,2344.15,1282.82,68.33);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Sniping Spot.");
- GetPlayerName(playerid, pName6, 24);
- format(string5, 128, "%s has teleported to the {FF00FF}Las Venturas Sniping Spot.", pName6);
- SCMTA(blue, string5);
- }
- if(listitem == 7)
- {
- SetPlayerPos(playerid,2398.91,1865.60,76.55);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Crane.");
- GetPlayerName(playerid, pName7, 24);
- format(string6, 128, "%s has teleported to the {FF00FF}Las Venturas Crane.", pName7);
- SCMTA(blue, string6);
- }
- if(listitem == 8)
- {
- SetPlayerPos(playerid,2284.698730,2427.671875,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Police Department.");
- GetPlayerName(playerid, pName8, 24);
- format(string7, 128, "%s has teleported to the {FF00FF}Las Venturas Police Department.", pName8);
- SCMTA(blue, string7);
- }
- if(listitem == 9)
- {
- SetPlayerPos(playerid,1684.706420,1432.456665,10.770483);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Airport.");
- GetPlayerName(playerid, pName9, 24);
- format(string8, 128, "%s has teleported to the {FF00FF}Las Venturas Airport.", pName9);
- SCMTA(blue, string8);
- }
- if(listitem == 10)
- {
- SetPlayerPos(playerid,0.0,0.0,3.0);
- SendClientMessage(playerid,blue, "You have teleported to the exact middle of San Andreas.");
- GetPlayerName(playerid, pName10, 24);
- format(string9, 128, "%s has teleported to the {FF00FF}middle of San Andreas.", pName10);
- SCMTA(blue, string9);
- }
- 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.");
- GetPlayerName(playerid, pName11, 24);
- format(string10, 128, "%s has teleported to the {FF00FF}top of a soda can in Montgomery.", pName11);
- SCMTA(blue, string10);
- }
- if(listitem == 13)
- {
- SetPlayerPos(playerid,2288.134765,608.165283,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to the Red County Docks.");
- GetPlayerName(playerid, pName12, 24);
- format(string11, 128, "%s has teleported to the {FF00FF}Red County Docks.", pName12);
- SCMTA(blue, string11);
- }
- if(listitem == 14)
- {
- SetPlayerPos(playerid,1324.232244,832.221313,15.532247);
- SendClientMessage(playerid,blue, "You have teleported to NoahF's Random Place.");
- GetPlayerName(playerid, pName13, 24);
- format(string12, 128, "%s has teleported to {FF00FF}NoahF's Random Place.", pName13);
- SCMTA(blue, string12);
- }
- if(listitem == 15)
- {
- SetPlayerPos(playerid,2308.833007,1087.774902,1307.941772);
- SendClientMessage(playerid,blue, "You have teleported to Skydive Spot 1.");
- GetPlayerName(playerid, pName14, 24);
- format(string13, 128, "%s has teleported to the {FF00FF}Skydive Spot 1.", pName14);
- SCMTA(blue, string13);
- }
- }
- }
- }
- /*
- -----------------------------------------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 v1.1:
- Completely rescripted everything to put it all in a clickable dialog.
- UPDATE 1.2 9/17/12
- CHANGELOG V1.2:
- Added a variety of colors to the text to make the dialog look nicer.
- Added in when a player teleports to a spot, it says "So&So has teleported to Blablah"
- Added in embedded colors.
- -----------------------------------------END OF CREDITS---------------------------------
- */
Advertisement
Add Comment
Please, Sign In to add comment