Skydiving? - +REP
#1

Is it possible to have people jump off an andromeda like in this video:

[ame]http://www.youtube.com/watch?v=38MEueiDHtY&feature=related[/ame]
Reply
#2

Sure. That Plane is just an interior placed high in the sky. All you have to do is find the interior and place it high in the sky using MTA. Then just convert it into your Pawno script and add spawn points.

Reply
#3

Okay I found the interior ID: 9

How can I set it where when I type in /skydive , it will automatically take me to the plane and when I jump out, it will send me above Los Santos?
Reply
#4

https://sampwiki.blast.hk/wiki/Interiors

Quote:

Andromada cargo hold 9 315.856170 1024.496459 1949.797363 Interior of the Andromeda Plane Mission "Stowaway"

EDIT: You edited your post and found the interiors faster. xD
Reply
#5

What are you use? ZCMD, YCMD, DCMD, strcmp?
Reply
#6

I'm using ZCMD.
Reply
#7

Quote:
Originally Posted by TheMightyEddy
Посмотреть сообщение
Okay I found the interior ID: 9

How can I set it where when I type in /skydive , it will automatically take me to the plane and when I jump out, it will send me above Los Santos?
Use checkpoints, when you enter in checkpoint, your position will be set to somewhere in air at Los Santos.

https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Reply
#8

pawn Код:
COMMAND:skydive(playerid, params[]) // or CMD:mycommand(playerid, params[])
{
    SetPlayerPos(playerid, 315.856170, 1024.496459, 1949.797363); // Interior
    SetPlayerInterior(playerid, 9); // Interior ID
    SetPlayerCheckpoint(playerid, X, Y, Z, 3.0); // Where do you want the checkpoint in the interior
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z )) // Same X,Y,Z as SetPlayerCheckPoint
    {
        SetPlayerPos(playerid, X, Y, Z); // somewhere in the air
        SetPlayerInterior(playerid, 0); // Normal world
    }
    return 1;
}
Reply
#9

Quote:
Originally Posted by sjvt
Посмотреть сообщение
pawn Код:
COMMAND:skydive(playerid, params[]) // or CMD:mycommand(playerid, params[])
{
    SetPlayerPos(playerid, 315.856170, 1024.496459, 1949.797363); // Interior
    SetPlayerInterior(playerid, 9); // Interior ID
    SetPlayerCheckpoint(playerid, X, Y, Z, 3.0); // Where do you want the checkpoint in the interior
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z )) // Same X,Y,Z as SetPlayerCheckPoint
    {
        SetPlayerPos(playerid, X, Y, Z); // somewhere in the air
        SetPlayerInterior(playerid, 0); // Normal world
    }
    return 1;
}
I'm not home right now but when I do get home ill test it out and if it works then ill rep you for sure!
Reply
#10

Quote:
Originally Posted by TheMightyEddy
Посмотреть сообщение
I'm not home right now but when I do get home ill test it out and if it works then ill rep you for sure!
No problem but you need to know that you need to change this

pawn Код:
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0); // Where do you want the checkpoint in the interior
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z )) // Same X,Y,Z as SetPlayerCheckPoint
SetPlayerPos(playerid, X, Y, Z); // somewhere in the air
EDIT: im going to make it for you perfectly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)