Guest User

Untitled

a guest
Aug 9th, 2010
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.06 KB | None | 0 0
  1. #include <a_samp>
  2. forward teleport(playerid);
  3.  
  4. /*
  5.            Underwater Airport by Gamer931215
  6.           ________
  7.          /  _____/_____    _____   ___________
  8.         /   \  ___\__  \  /     \_/ __ \_  __ \
  9.         \    \_\  \/ __ \|  Y Y  \  ___/|  | \/
  10.          \______  (____  /__|_|  /\___  >__|
  11.                 \/     \/      \/     \/
  12.            
  13.     [Location]:
  14.         River just under LV Airport
  15.    
  16.     [How to get there]:
  17.         Land in the water just above the airfield and step out
  18.    
  19.     [About the bug]:
  20.         If you teleport from land to water, you wont get the water modus but
  21.         you can walk/drive/fly normally underwater.
  22. */
  23.  
  24. public OnFilterScriptInit()
  25. { //converted with Gamer931215's Xtreme pawnferter
  26.     CreateObject(10767,2199.459717,500.842102,-64.412071,0,0,-46.641514710416);
  27.     CreateObject(10766,2324.678467,496.917816,-51.796432,0,0,267.903834969218);
  28.     CreateObject(972,2119.174805,489.163513,-57.391983,0,0,180.000019806744);
  29.     CreateObject(972,2119.167969,510.844086,-57.412453,0,0,180.000019806744);
  30.     CreateObject(9241,2133.429688,465.630493,-48.805420,0,0,-179.622612507177);
  31.     CreateObject(16771,2140.370605,543.295410,-43.614822,0,0,176.562215740964);
  32.     CreateObject(16771,2192.395264,541.295349,-43.543373,0,0,179.140525818464);
  33.     AddStaticVehicle(487,2131.975098,465.102966,-46.616875,360,-1,-1);
  34.     AddStaticVehicle(513,2129.3005,525.5585,-47.6184,222.1275,30,34);
  35.     AddStaticVehicle(513,2152.6221,527.8354,-47.1064,140.1841,30,34);
  36.     AddStaticVehicle(593,2203.3911,524.9565,-47.5641,116.9627,68,8);
  37.     AddStaticVehicle(593,2181.2292,526.1481,-47.7540,231.1632,68,8);
  38. }
  39.  
  40. public OnPlayerStateChange(playerid, newstate, oldstate)
  41. {
  42.     if (newstate == PLAYER_STATE_ONFOOT)
  43.     {
  44.         if (IsPlayerInRangeOfPoint(playerid,450,2211.8240,496.4482,-4))
  45.         {
  46.             new Float:x,Float:y,Float:z;
  47.             GetPlayerPos(playerid,x,y,z);
  48.             if (z <0)
  49.             {
  50.                 SetPlayerPos(playerid,1291.9738,1578.9110,50.2969);
  51.                 SetTimerEx("teleport",500,false,"i",playerid);
  52.             }
  53.         }
  54.     }
  55. }
  56.  
  57. public teleport(playerid)
  58. {
  59.     SetPlayerPos(playerid,2122.3958,481.8622,-48.4433);
  60. }
Advertisement
Add Comment
Please, Sign In to add comment