1. 0
    30-06-2020, 10:59
    #1

    uMad?
    225 • 892 • 7
    In-game: guest
    I'm sure that most of PTP players hates this "bug"

    When you are in a plane, about to block a president, you get killed by "falling" or either getting launched very far away by your plane... We have to jump from the plane in the exact moment to not ocurre any of those situations, so the idea is simple.

    - Disable the collision of the plane we just jumped from, to avoid these situations. (Disable this only to the "driver?" of the plane of course..)

    Hoping to see this added in the next few updates..

    best regards Izzo a.k.a kawazaki
    yes


  2. 30-06-2020, 12:31
    Junior Member
    55 • 111 • 0
    In-game: Rs|Mr_
    Re: Huge & annoying problems with the planes 30-06-2020, 12:31 • #2
    @RoCK$TaR should like this
    ,.
    1 Like


  3. 30-06-2020, 15:40
    Junior of PTP
    1,214 • 7,940 • 29
    In-game: Tru-KaaN
    Re: Huge & annoying problems with the planes 30-06-2020, 15:40 • #3
    This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.

    https://i.imgur.com/RphQRiC.mp4

    Code:
    function onPlaneExit(player)
        if player == localPlayer then
            local myPlane = getPedOccupiedVehicle(player)
            if getVehicleType(source) == "Plane" then 
                setElementAlpha(source, 170)
                setElementCollidableWith(source, player, false)
                setTimer(function()
                    setElementCollidableWith(myPlane, player, true)
                    setElementAlpha(myPlane, 255)
                end, 3000, 1)
            end
        end
    end
    addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)


  4. 30-06-2020, 15:52
    Junior Member
    26 • 26 • 2
    In-game: Dk|=AeoN
    Re: Huge & annoying problems with the planes 30-06-2020, 15:52 • #4
    Originally Posted by TKN
    This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.

    https://i.imgur.com/RphQRiC.mp4

    Code:
    function onPlaneExit(player)
        if player == localPlayer then
            local myPlane = getPedOccupiedVehicle(player)
            if getVehicleType(source) == "Plane" then 
                setElementAlpha(source, 170)
                setElementCollidableWith(source, player, false)
                setTimer(function()
                    setElementCollidableWith(myPlane, player, true)
                    setElementAlpha(myPlane, 255)
                end, 3000, 1)
            end
        end
    end
    addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)
    good bro


  5. 30-06-2020, 20:02
    Junior Member
    55 • 111 • 0
    In-game: Rs|Mr_
    Re: Huge & annoying problems with the planes 30-06-2020, 20:02 • #5
    Originally Posted by tkn
    this code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.

    https://i.imgur.com/rphqric.mp4

    Code:
    function onplaneexit(player)
        if player == localplayer then
            local myplane = getpedoccupiedvehicle(player)
            if getvehicletype(source) == "plane" then 
                setelementalpha(source, 170)
                setelementcollidablewith(source, player, false)
                settimer(function()
                    setelementcollidablewith(myplane, player, true)
                    setelementalpha(myplane, 255)
                end, 3000, 1)
            end
        end
    end
    addeventhandler("onclientvehiclestartexit", getrootelement(), onplaneexit)
    pro!!!
    ,.


  6. 01-07-2020, 02:23
    Junior Member
    34 • 91 • 1
    In-game: N1SnakeEye
    Re: Huge & annoying problems with the planes 01-07-2020, 02:23 • #6
    Originally Posted by TKN
    This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.

    https://i.imgur.com/RphQRiC.mp4

    Code:
    function onPlaneExit(player)
        if player == localPlayer then
            local myPlane = getPedOccupiedVehicle(player)
            if getVehicleType(source) == "Plane" then 
                setElementAlpha(source, 170)
                setElementCollidableWith(source, player, false)
                setTimer(function()
                    setElementCollidableWith(myPlane, player, true)
                    setElementAlpha(myPlane, 255)
                end, 3000, 1)
            end
        end
    end
    addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)
    ye but how to use that or u wil tell admins to add it to ptp in next updates

1 Users reading this thread (0 Members and 1 Guests)