Guest User

NoahF's Teleports

a guest
Aug 3rd, 2012
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.04 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. #define blue 0x375FFFFF
  4. // Teleports players to the center of San Andreas when they type /middle
  5. public OnFilterScriptInIt()
  6. {
  7.     print("/n-------------------------------------");  // Prints a message on Samp-Server.exe saying the filterscript has loaded.
  8.     print(" NoahF's Random/Useful teleports has loaded!");
  9.     print("-------------------------------------/n");
  10.     return 1;
  11. }
  12. public OnFilterScriptExit()
  13. {
  14.     return 1;
  15. }
  16.  
  17. public OnPlayerCommandText(playerid,cmdtext[])
  18. {
  19.     if(!strcmp(cmdtext,"/LSHospital", true, 11)) // teleports to the the Hospital in LS
  20.     {
  21.         SetPlayerPos(playerid,2025.133056,-1419.697000,16.992187);
  22.         SendClientMessage(playerid,blue, "You have teleported to the LS hospital.");
  23.         return 1;
  24.     }
  25.     if(!strcmp(cmdtext,"/LSAirport", true, 10)) // teleports to the airport in LS
  26.     {
  27.         SetPlayerPos(playerid,1642.62,-2333.79,13.55);
  28.         SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
  29.         return 1;
  30.     }
  31.     if(!strcmp(cmdtext,"/LSPD", true, 5)) // teleports to the police department in Los Santos
  32.     {
  33.         SetPlayerPos(playerid,1549.387084,-1668.78100,13.564489);
  34.         SendClientMessage(playerid,blue, "You have teleported to Los Santos Police Department.");
  35.         return 1;
  36.     }
  37.     if(!strcmp(cmdtext,"/LVBikeJump", true, 11)) // teleports to a cool jump for bikes in Las Venturas
  38.     {
  39.         SetPlayerPos(playerid,-664.36,2305.05,135.74);
  40.         SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Bike Jump.");
  41.         return 1;
  42.     }
  43.     if(!strcmp(cmdtext,"/LVPyramid", true, 10)) // Teleports you to the top of the pyramid in Las Venturas
  44.     {
  45.         SetPlayerPos(playerid,2323.72,1283.32,97.54);
  46.         SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Pyramid.");
  47.         return 1;
  48.     }
  49.     if(!strcmp(cmdtext,"/LVSniperSpot", true, 12)) //Teleports you to a cool sniping spot.
  50.     {
  51.         SetPlayerPos(playerid,2344.15,1282.82,68.33);
  52.         SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Sniping Spot.");
  53.         return 1;
  54.     }
  55.     if(!strcmp(cmdtext,"/LVCrane", true, 7)) // Teleports you to the top of a crane in Las Venturas
  56.     {
  57.         SetPlayerPos(playerid,2398.91,1865.60,76.55);
  58.         SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Crane.");
  59.         return 1;
  60.     }
  61.     if(!strcmp(cmdtext,"/LVPD", true, 5)) // Teleports you to the Las Venturas Police Department
  62.     {
  63.         SetPlayerPos(playerid,2284.698730,2427.671875,10.820312);
  64.         SendClientMessage(playerid,blue, "You have teleported to Las Venturas Police Department.");
  65.         return 1;
  66.     }
  67.     if(!strcmp(cmdtext,"/LVAirport", true, 10)) // Teleports you to the Las venturas airport.
  68.     {
  69.         SetPlayerPos(playerid,1684.706420,1432.456665,10.770483);
  70.         SendClientMessage(playerid,blue, "You have teleported to Las Venturas Airport.");
  71.         return 1;
  72.     }
  73.     if(!strcmp(cmdtext,"/Middle", true, 7)) // Teleports you to the EXACT middle of San Andreas
  74.     {
  75.         SetPlayerPos(playerid,0.0,0.0,3.0);
  76.         SendClientMessage(playerid,blue, "You have teleported to the exact middle of San Andreas.");
  77.         return 1;
  78.     }
  79.     if(!strcmp(cmdtext,"/SodaCan", true, 8)) //Teleports you to the top of a soda can!
  80.     {
  81.         SetPlayerPos(playerid,1309.738403,255.183334,36.615425);
  82.         SendClientMessage(playerid,blue, "You have teleported to the top of a soda can in Montgomery.");
  83.         return 1;
  84.     }
  85.     if(!strcmp(cmdtext,"/RedCountyDocks", true, 15)) // Teleports you to some docks in Red County
  86.     {
  87.         SetPlayerPos(playerid,2288.134765,608.165283,10.820312);
  88.         SendClientMessage(playerid,blue, "You have teleported to the Red County Docks.");
  89.         return 1;
  90.     }
  91.     if(!strcmp(cmdtext,"/RandomPlace1", true, 13)) // Teleports you to a random place I came up with
  92.     {
  93.         SetPlayerPos(playerid,1324.232244,832.221313,15.532247);
  94.         SendClientMessage(playerid,blue, "You have teleported to NoahF's random place.");
  95.         return 1;
  96.     }
  97.     if(!strcmp(cmdtext, "/skydive", true, 8)) // Teleports you to a cool place high in the air.
  98.     {
  99.         SetPlayerPos(playerid,2308.833007,1087.774902,1307.941772);
  100.         SendClientMessage(playerid,blue, "You have teleported to SkyDive.");
  101.         return 1;
  102.     }
  103.     if(!strcmp(cmdtext, "/skydive1", true, 8)) // Teleports you to another high place in the air.
  104.     {
  105.         SetPlayerPos(playerid,1774.494750,2804.618652,1450.130859);
  106.         SendClientMessage(playerid,blue, "You have teleported to SkyDive1.");
  107.     }
  108.     return 0;
  109. }
  110.  
  111.  
  112. /*
  113. -----------------------------------------CREDITS----------------------------------------
  114. MakeMeDrunk FilterScript scripted/created by Noah Fallon (NoahF) on 8/3/12.
  115. Please do not remove these credits.
  116. 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.
  117. Thanks for using ;)
  118. 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. :)
  119. -----------------------------------------END OF CREDITS---------------------------------
  120. */
Advertisement
Add Comment
Please, Sign In to add comment