Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward teleport(playerid);
- /*
- Underwater Airport by Gamer931215
- ________
- / _____/_____ _____ ___________
- / \ ___\__ \ / \_/ __ \_ __ \
- \ \_\ \/ __ \| Y Y \ ___/| | \/
- \______ (____ /__|_| /\___ >__|
- \/ \/ \/ \/
- [Location]:
- River just under LV Airport
- [How to get there]:
- Land in the water just above the airfield and step out
- [About the bug]:
- If you teleport from land to water, you wont get the water modus but
- you can walk/drive/fly normally underwater.
- */
- public OnFilterScriptInit()
- { //converted with Gamer931215's Xtreme pawnferter
- CreateObject(10767,2199.459717,500.842102,-64.412071,0,0,-46.641514710416);
- CreateObject(10766,2324.678467,496.917816,-51.796432,0,0,267.903834969218);
- CreateObject(972,2119.174805,489.163513,-57.391983,0,0,180.000019806744);
- CreateObject(972,2119.167969,510.844086,-57.412453,0,0,180.000019806744);
- CreateObject(9241,2133.429688,465.630493,-48.805420,0,0,-179.622612507177);
- CreateObject(16771,2140.370605,543.295410,-43.614822,0,0,176.562215740964);
- CreateObject(16771,2192.395264,541.295349,-43.543373,0,0,179.140525818464);
- AddStaticVehicle(487,2131.975098,465.102966,-46.616875,360,-1,-1);
- AddStaticVehicle(513,2129.3005,525.5585,-47.6184,222.1275,30,34);
- AddStaticVehicle(513,2152.6221,527.8354,-47.1064,140.1841,30,34);
- AddStaticVehicle(593,2203.3911,524.9565,-47.5641,116.9627,68,8);
- AddStaticVehicle(593,2181.2292,526.1481,-47.7540,231.1632,68,8);
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if (newstate == PLAYER_STATE_ONFOOT)
- {
- if (IsPlayerInRangeOfPoint(playerid,450,2211.8240,496.4482,-4))
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if (z <0)
- {
- SetPlayerPos(playerid,1291.9738,1578.9110,50.2969);
- SetTimerEx("teleport",500,false,"i",playerid);
- }
- }
- }
- }
- public teleport(playerid)
- {
- SetPlayerPos(playerid,2122.3958,481.8622,-48.4433);
- }
Advertisement
Add Comment
Please, Sign In to add comment