Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define blue 0x375FFFFF
- // Teleports players to the center of San Andreas when they type /middle
- public OnFilterScriptInIt()
- {
- print("/n-------------------------------------"); // Prints a message on Samp-Server.exe saying the filterscript has loaded.
- print(" NoahF's Random/Useful teleports has loaded!");
- print("-------------------------------------/n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- if(!strcmp(cmdtext,"/LSHospital", true, 11)) // teleports to the the Hospital in LS
- {
- SetPlayerPos(playerid,2025.133056,-1419.697000,16.992187);
- SendClientMessage(playerid,blue, "You have teleported to the LS hospital.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LSAirport", true, 10)) // teleports to the airport in LS
- {
- SetPlayerPos(playerid,1642.62,-2333.79,13.55);
- SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LSPD", true, 5)) // teleports to the police department in Los Santos
- {
- SetPlayerPos(playerid,1549.387084,-1668.78100,13.564489);
- SendClientMessage(playerid,blue, "You have teleported to Los Santos Police Department.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVBikeJump", true, 11)) // teleports to a cool jump for bikes in Las Venturas
- {
- SetPlayerPos(playerid,-664.36,2305.05,135.74);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Bike Jump.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVPyramid", true, 10)) // Teleports you to the top of the pyramid in Las Venturas
- {
- SetPlayerPos(playerid,2323.72,1283.32,97.54);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Pyramid.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVSniperSpot", true, 12)) //Teleports you to a cool sniping spot.
- {
- SetPlayerPos(playerid,2344.15,1282.82,68.33);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Sniping Spot.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVCrane", true, 7)) // Teleports you to the top of a crane in Las Venturas
- {
- SetPlayerPos(playerid,2398.91,1865.60,76.55);
- SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Crane.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVPD", true, 5)) // Teleports you to the Las Venturas Police Department
- {
- SetPlayerPos(playerid,2284.698730,2427.671875,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Police Department.");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVAirport", true, 10)) // Teleports you to the Las venturas airport.
- {
- SetPlayerPos(playerid,1684.706420,1432.456665,10.770483);
- SendClientMessage(playerid,blue, "You have teleported to Las Venturas Airport.");
- return 1;
- }
- if(!strcmp(cmdtext,"/Middle", true, 7)) // Teleports you to the EXACT middle of San Andreas
- {
- SetPlayerPos(playerid,0.0,0.0,3.0);
- SendClientMessage(playerid,blue, "You have teleported to the exact middle of San Andreas.");
- return 1;
- }
- if(!strcmp(cmdtext,"/SodaCan", true, 8)) //Teleports you to the top of a soda can!
- {
- SetPlayerPos(playerid,1309.738403,255.183334,36.615425);
- SendClientMessage(playerid,blue, "You have teleported to the top of a soda can in Montgomery.");
- return 1;
- }
- if(!strcmp(cmdtext,"/RedCountyDocks", true, 15)) // Teleports you to some docks in Red County
- {
- SetPlayerPos(playerid,2288.134765,608.165283,10.820312);
- SendClientMessage(playerid,blue, "You have teleported to the Red County Docks.");
- return 1;
- }
- if(!strcmp(cmdtext,"/RandomPlace1", true, 13)) // Teleports you to a random place I came up with
- {
- SetPlayerPos(playerid,1324.232244,832.221313,15.532247);
- SendClientMessage(playerid,blue, "You have teleported to NoahF's random place.");
- return 1;
- }
- if(!strcmp(cmdtext, "/skydive", true, 8)) // Teleports you to a cool place high in the air.
- {
- SetPlayerPos(playerid,2308.833007,1087.774902,1307.941772);
- SendClientMessage(playerid,blue, "You have teleported to SkyDive.");
- return 1;
- }
- if(!strcmp(cmdtext, "/skydive1", true, 8)) // Teleports you to another high place in the air.
- {
- SetPlayerPos(playerid,1774.494750,2804.618652,1450.130859);
- SendClientMessage(playerid,blue, "You have teleported to SkyDive1.");
- }
- return 0;
- }
- /*
- -----------------------------------------CREDITS----------------------------------------
- MakeMeDrunk 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. :)
- -----------------------------------------END OF CREDITS---------------------------------
- */
Advertisement
Add Comment
Please, Sign In to add comment