noahfallon

NoahF's Random/Useful Teleports v1.1

Aug 31st, 2012
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.59 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #define FILTERSCRIPT
  4. #define blue 0x375FFFFF
  5. #define DIALOG_TPORT 555
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("----------------------------------------------");  // Prints a message on Samp-Server.exe saying the filterscript has loaded.
  10.     print("NoahF's Random/Useful teleports has loaded!");
  11.     print("----------------------------------------------");
  12.     return 1;
  13. }
  14. public OnFilterScriptExit()
  15. {
  16.     return 1;
  17. }
  18. CMD:teleports(playerid, params[])
  19. {
  20.     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");
  21.     return 1;
  22. }
  23. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  24. {
  25.     if(dialogid == DIALOG_TPORT)
  26.     {
  27.         if(response) // If the player clicked a song
  28.         {
  29.             if(listitem == 1)
  30.             {
  31.                 SetPlayerPos(playerid,2025.133056,-1419.697000,16.992187);
  32.                 SendClientMessage(playerid, blue, "You have teleported to the LS Hospital.");
  33.             }
  34.             if(listitem == 2)
  35.             {
  36.                 SetPlayerPos(playerid,1642.62,-2333.79,13.55);
  37.                 SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
  38.             }
  39.             if(listitem == 3)
  40.             {
  41.                 SetPlayerPos(playerid,1549.387084,-1668.78100,13.564489);
  42.                 SendClientMessage(playerid,blue, "You have teleported to Los Santos Police Department.");
  43.             }
  44.             if(listitem == 4)
  45.             {
  46.                 SetPlayerPos(playerid,-664.36,2305.05,135.74);
  47.                 SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Bike Jump.");
  48.             }
  49.             if(listitem == 5)
  50.             {
  51.                 SetPlayerPos(playerid,2323.72,1283.32,97.54);
  52.                 SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Pyramid.");
  53.             }
  54.             if(listitem == 6)
  55.             {
  56.                 SetPlayerPos(playerid,2344.15,1282.82,68.33);
  57.                 SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Sniping Spot.");
  58.             }
  59.             if(listitem == 7)
  60.             {
  61.                 SetPlayerPos(playerid,2398.91,1865.60,76.55);
  62.                 SendClientMessage(playerid,blue, "You have teleported to the Las Venturas Crane.");
  63.             }
  64.             if(listitem == 8)
  65.             {
  66.                 SetPlayerPos(playerid,2284.698730,2427.671875,10.820312);
  67.                 SendClientMessage(playerid,blue, "You have teleported to Las Venturas Police Department.");
  68.             }
  69.             if(listitem == 9)
  70.             {
  71.                 SetPlayerPos(playerid,1684.706420,1432.456665,10.770483);
  72.                 SendClientMessage(playerid,blue, "You have teleported to Las Venturas Airport.");
  73.             }
  74.             if(listitem == 10)
  75.             {
  76.                 SetPlayerPos(playerid,0.0,0.0,3.0);
  77.                 SendClientMessage(playerid,blue, "You have teleported to the exact middle of San Andreas.");
  78.             }
  79.             if(listitem == 11)
  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.             }
  84.             if(listitem == 13)
  85.             {
  86.                 SetPlayerPos(playerid,2288.134765,608.165283,10.820312);
  87.                 SendClientMessage(playerid,blue, "You have teleported to the Red County Docks.");
  88.             }
  89.             if(listitem == 14)
  90.             {
  91.                 SetPlayerPos(playerid,1324.232244,832.221313,15.532247);
  92.                 SendClientMessage(playerid,blue, "You have teleported to NoahF's random place.");
  93.             }
  94.             if(listitem == 15)
  95.             {
  96.                 SetPlayerPos(playerid,2308.833007,1087.774902,1307.941772);
  97.                 SendClientMessage(playerid,blue, "You have teleported to Skydive spot 1.");
  98.             }
  99.             if(listitem == 16)
  100.             {
  101.                 SetPlayerPos(playerid,1774.494750,2804.618652,1450.130859);
  102.                 SendClientMessage(playerid,blue, "You have teleported to Skydive spot 2.");
  103.             }
  104.         }
  105.     }
  106. }
  107.  
  108.  
  109.  
  110. /*
  111. -----------------------------------------CREDITS----------------------------------------
  112. NoahF's Random/Useful Teleports FilterScript scripted/created by Noah Fallon (NoahF) on 8/3/12.
  113. Please do not remove these credits.
  114. 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.
  115. Thanks for using ;)
  116. 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. :)
  117.  
  118. UPDATE 1.1 8/31/12
  119. CHANGELOG:
  120. Completely rescripted everything to put it all in a clickable dialog.
  121. -----------------------------------------END OF CREDITS---------------------------------
  122. */
Advertisement
Add Comment
Please, Sign In to add comment